diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 685d8948..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: 2 - -defaults: &defaults - working_directory: ~/api-client-javascript - docker: - - image: cimg/node:22.7.0 -jobs: - deploy: - <<: *defaults - steps: - - checkout - - run: - name: Authenticate with registry - command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - - run: npm install - - run: npm prune - - run: - name: Versioning - command: npm version 1.0.$CIRCLE_BUILD_NUM --no-git-tag-version - - run: - name: Version - command: npm version - - run: - name: Publish package - command: npm publish --access public -workflows: - version: 2 - build-deploy: - jobs: - - deploy: - filters: - branches: - only: /^master/ diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..819914fc --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,67 @@ +name: flipdishbytes.api-client-javascript.publish +on: + pull_request: + push: + branches: + - master +permissions: + id-token: write + contents: read +jobs: + build-and-publish: + concurrency: + group: npm-publish-${{ github.ref }} + cancel-in-progress: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v4 + with: + node-version: 24 + - name: Install dependencies + run: npm install + - name: Build package + run: npm run build + - name: Get current version from npm + id: current_version + run: | + CURRENT_VERSION=$(npm view @flipdish/api-client-javascript version 2>/dev/null) + if [ -z "$CURRENT_VERSION" ] || [ "$CURRENT_VERSION" = "undefined" ]; then + echo "::error::npm view returned no version for @flipdish/api-client-javascript - registry lookup failed or package missing" + exit 1 + fi + echo "Current version from npm: $CURRENT_VERSION" + echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT + - name: Calculate new version + id: new_version + run: | + CURRENT_VERSION=${{ steps.current_version.outputs.version }} + IFS='.' read -r major minor patch <<< "$CURRENT_VERSION" + NEW_VERSION="$major.$minor.$((patch + 1))" + echo "NEW_VERSION: $NEW_VERSION" + echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT + - name: Install moreutils + run: | + sudo apt-get install -qy moreutils + - name: Update version in package.json + run: | + jq --arg version "${{ steps.new_version.outputs.version }}" '.version = $version' package.json | sponge package.json + echo "Updated package version to $(node -p "require('./package.json').version")" + - name: Dry run publish to npm + if: github.event_name == 'pull_request' + run: | + # Run npm publish dry-run and capture output + output=$(npm publish --access public --dry-run 2>&1) + echo "$output" + # Check for real npm errors ("npm error" / "npm ERR!"), not error-named files + # (this package legitimately contains files like ValidationErrorResult.js) + if echo "$output" | grep -E "^npm error|^npm ERR!" > /dev/null; then + echo "Dry run failed" + exit 1 + fi + shell: bash + - name: Publish to npm + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: | + npm -v + npm publish --access public diff --git a/README.md b/README.md new file mode 100644 index 00000000..fbd0ca60 --- /dev/null +++ b/README.md @@ -0,0 +1,1518 @@ +# @flipdish/api-client-javascript + +Flipdish - JavaScript client for @flipdish/api-client-javascript +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) +This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: v1.0 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen + +## Installation + +### For [Node.js](https://nodejs.org/) + +#### npm + +To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). + +Then install it via: + +```shell +npm install @flipdish/api-client-javascript --save +``` + +Finally, you need to build the module: + +```shell +npm run build +``` + +##### Local development + +To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run: + +```shell +npm install +``` + +Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`: + +```shell +npm link +``` + +To use the link you just defined in your project, switch to the directory you want to use your @flipdish/api-client-javascript from, and run: + +```shell +npm link /path/to/ +``` + +Finally, you need to build the module: + +```shell +npm run build +``` + +#### git + +If the library is hosted at a git repository, e.g.https://github.com/flipdishbytes/api-client-javascript +then install it via: + +```shell + npm install flipdishbytes/api-client-javascript --save +``` + +### For browser + +The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following +the above steps with Node.js and installing browserify with `npm install -g browserify`, +perform the following (assuming *main.js* is your entry file): + +```shell +browserify main.js > bundle.js +``` + +Then include *bundle.js* in the HTML pages. + +### Webpack Configuration + +Using Webpack you may encounter the following error: "Module not found: Error: +Cannot resolve module", most certainly you should disable AMD loader. Add/merge +the following section to your webpack config: + +```javascript +module: { + rules: [ + { + parser: { + amd: false + } + } + ] +} +``` + +## Getting Started + +Please follow the [installation](#installation) instruction and execute the following JS code: + +```javascript +var Flipdish = require('@flipdish/api-client-javascript'); + +var defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +var oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = "YOUR ACCESS TOKEN" + +var api = new Flipdish.AccountsApi() +var signupStepAction = "signupStepAction_example"; // {String} +var answerId = 56; // {Number} +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}; +api.answerSignUpQuestion(signupStepAction, answerId, callback); + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.flipdish.co* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*Flipdish.AccountsApi* | [**answerSignUpQuestion**](docs/AccountsApi.md#answerSignUpQuestion) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/answer | +*Flipdish.AccountsApi* | [**changePassword**](docs/AccountsApi.md#changePassword) | **PUT** /api/v1.0/accounts/password | +*Flipdish.AccountsApi* | [**changePasswordWithPin**](docs/AccountsApi.md#changePasswordWithPin) | **PUT** /api/v1.0/accounts/password/pin | +*Flipdish.AccountsApi* | [**createAccount**](docs/AccountsApi.md#createAccount) | **POST** /api/v1.0/accounts | +*Flipdish.AccountsApi* | [**createBasicAccount**](docs/AccountsApi.md#createBasicAccount) | **POST** /api/v1.0/accounts/basic-account | +*Flipdish.AccountsApi* | [**getAccountDetails**](docs/AccountsApi.md#getAccountDetails) | **GET** /api/v1.0/accounts | +*Flipdish.AccountsApi* | [**getLocalisedTimeZones**](docs/AccountsApi.md#getLocalisedTimeZones) | **GET** /api/v1.0/accounts/timezones | +*Flipdish.AccountsApi* | [**login**](docs/AccountsApi.md#login) | **POST** /api/v1.0/accounts/login | +*Flipdish.AccountsApi* | [**loginSso**](docs/AccountsApi.md#loginSso) | **POST** /api/v1.0/accounts/login/sso | +*Flipdish.AccountsApi* | [**loginWithPin**](docs/AccountsApi.md#loginWithPin) | **POST** /api/v1.0/accounts/login/pin | +*Flipdish.AccountsApi* | [**logout**](docs/AccountsApi.md#logout) | **POST** /api/v1.0/accounts/logout | +*Flipdish.AccountsApi* | [**passwordResetWithToken**](docs/AccountsApi.md#passwordResetWithToken) | **POST** /api/v1.0/accounts/password | +*Flipdish.AccountsApi* | [**recaptchaValidate**](docs/AccountsApi.md#recaptchaValidate) | **POST** /api/v1.0/accounts/recaptcha | +*Flipdish.AccountsApi* | [**requestLoginPin**](docs/AccountsApi.md#requestLoginPin) | **POST** /api/v1.0/accounts/pin | +*Flipdish.AccountsApi* | [**requestPasswordReset**](docs/AccountsApi.md#requestPasswordReset) | **POST** /api/v1.0/accounts/passwordreset | +*Flipdish.AccountsApi* | [**sendPinForPasswordReset**](docs/AccountsApi.md#sendPinForPasswordReset) | **POST** /api/v1.0/accounts/password/resetpin | +*Flipdish.AccountsApi* | [**skipSignupStep**](docs/AccountsApi.md#skipSignupStep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | +*Flipdish.AccountsApi* | [**updateAccount**](docs/AccountsApi.md#updateAccount) | **PUT** /api/v1.0/accounts | +*Flipdish.AddressApi* | [**addressTemplates**](docs/AddressApi.md#addressTemplates) | **POST** /api/v1.0/address/templates | +*Flipdish.AddressApi* | [**formByApp**](docs/AddressApi.md#formByApp) | **GET** /api/v1.0/app/{appId}/address/form | +*Flipdish.AddressApi* | [**formByCountry**](docs/AddressApi.md#formByCountry) | **GET** /api/v1.0/address/country/{countryCode}/form | +*Flipdish.AddressApi* | [**formatGoogleAddress**](docs/AddressApi.md#formatGoogleAddress) | **POST** /api/v1.0/address/google | +*Flipdish.AddressApi* | [**getCountries**](docs/AddressApi.md#getCountries) | **GET** /api/v1.0/address/countries | +*Flipdish.ApmApi* | [**getApmStatus**](docs/ApmApi.md#getApmStatus) | **GET** /api/v1.0/{appId}/apm/status | +*Flipdish.ApmApi* | [**getBasicStatistics**](docs/ApmApi.md#getBasicStatistics) | **GET** /api/v1.0/{appId}/apm/statistics | +*Flipdish.ApmApi* | [**getCalendarWeekStatistics**](docs/ApmApi.md#getCalendarWeekStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | +*Flipdish.ApmApi* | [**getCallsStatistics**](docs/ApmApi.md#getCallsStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | +*Flipdish.ApmApi* | [**getOrderStatistics**](docs/ApmApi.md#getOrderStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | +*Flipdish.ApmApi* | [**getPaginatedCallList**](docs/ApmApi.md#getPaginatedCallList) | **GET** /api/v1.0/{appId}/apm/calls | +*Flipdish.AppStoreApi* | [**getAppStoreApp**](docs/AppStoreApi.md#getAppStoreApp) | **GET** /api/v1.0/appstore/apps/{appStoreAppId} | +*Flipdish.AppStoreApi* | [**getAppStoreApps**](docs/AppStoreApi.md#getAppStoreApps) | **GET** /api/v1.0/appstore/apps | +*Flipdish.AppStoreConfigurationsApi* | [**appStoreConfigurationsAppStoreHandleOauthResponseCode**](docs/AppStoreConfigurationsApi.md#appStoreConfigurationsAppStoreHandleOauthResponseCode) | **GET** /api/v1.0/appstore/oauthresponse/{appStoreAppId}/responsecode | +*Flipdish.AppStoreConfigurationsApi* | [**createAppStoreConfig**](docs/AppStoreConfigurationsApi.md#createAppStoreConfig) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config | +*Flipdish.AppStoreConfigurationsApi* | [**deleteAppStoreConfig**](docs/AppStoreConfigurationsApi.md#deleteAppStoreConfig) | **DELETE** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +*Flipdish.AppStoreConfigurationsApi* | [**executeConfigurationAction**](docs/AppStoreConfigurationsApi.md#executeConfigurationAction) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/action | +*Flipdish.AppStoreConfigurationsApi* | [**getAppStoreConfig**](docs/AppStoreConfigurationsApi.md#getAppStoreConfig) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +*Flipdish.AppStoreConfigurationsApi* | [**getConfiguredAppSingleApp**](docs/AppStoreConfigurationsApi.md#getConfiguredAppSingleApp) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId} | +*Flipdish.AppStoreConfigurationsApi* | [**getConfiguredApps**](docs/AppStoreConfigurationsApi.md#getConfiguredApps) | **GET** /api/v1.0/{appId}/appstore/apps | +*Flipdish.AppStoreConfigurationsApi* | [**updateAppStoreConfig**](docs/AppStoreConfigurationsApi.md#updateAppStoreConfig) | **PUT** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +*Flipdish.AppStoreConfigurationsApi* | [**updateAppStoreConfigSettingValues**](docs/AppStoreConfigurationsApi.md#updateAppStoreConfigSettingValues) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/updatesettings | +*Flipdish.AppStoreDeveloperApi* | [**appVerificationUpdate**](docs/AppStoreDeveloperApi.md#appVerificationUpdate) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification | +*Flipdish.AppStoreDeveloperApi* | [**createAppStoreApp**](docs/AppStoreDeveloperApi.md#createAppStoreApp) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps | +*Flipdish.AppStoreDeveloperApi* | [**deleteAppStoreApp**](docs/AppStoreDeveloperApi.md#deleteAppStoreApp) | **DELETE** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +*Flipdish.AppStoreDeveloperApi* | [**getAppExternalProduct**](docs/AppStoreDeveloperApi.md#getAppExternalProduct) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +*Flipdish.AppStoreDeveloperApi* | [**getExternalFunctionSigningKey**](docs/AppStoreDeveloperApi.md#getExternalFunctionSigningKey) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_function_signing_key | +*Flipdish.AppStoreDeveloperApi* | [**updateAppStoreApp**](docs/AppStoreDeveloperApi.md#updateAppStoreApp) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +*Flipdish.AppStoreDeveloperApi* | [**updateExternalProduct**](docs/AppStoreDeveloperApi.md#updateExternalProduct) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +*Flipdish.AppStoreDeveloperApi* | [**uploadAppStoreAppLogo**](docs/AppStoreDeveloperApi.md#uploadAppStoreAppLogo) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo | +*Flipdish.AppStoreEntitlementsApi* | [**getAppStoreAppEntitlements**](docs/AppStoreEntitlementsApi.md#getAppStoreAppEntitlements) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/entitlements | +*Flipdish.AppsApi* | [**appsSetPropertyId**](docs/AppsApi.md#appsSetPropertyId) | **POST** /api/v1.0/apps/{appId}/orgId/{orgId} | +*Flipdish.AppsApi* | [**createApp**](docs/AppsApi.md#createApp) | **POST** /api/v1.0/apps | +*Flipdish.AppsApi* | [**getApp**](docs/AppsApi.md#getApp) | **GET** /api/v1.0/apps/{appId} | +*Flipdish.AppsApi* | [**getAppHostnameStatus**](docs/AppsApi.md#getAppHostnameStatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | +*Flipdish.AppsApi* | [**getAppName**](docs/AppsApi.md#getAppName) | **GET** /api/v1.0/apps/{appId}/name | +*Flipdish.AppsApi* | [**getApps**](docs/AppsApi.md#getApps) | **GET** /api/v1.0/apps | +*Flipdish.AppsApi* | [**getCompliance**](docs/AppsApi.md#getCompliance) | **GET** /api/v1.0/apps/{appId}/compliance | +*Flipdish.AppsApi* | [**getPanaceaVanityUrl**](docs/AppsApi.md#getPanaceaVanityUrl) | **GET** /api/v1.0/apps/{appId}/panacea/url | +*Flipdish.AppsApi* | [**getSupportedCountries**](docs/AppsApi.md#getSupportedCountries) | **GET** /api/v1.0/apps/supportedcountries | +*Flipdish.AppsApi* | [**isPanaceaVanityUrlAvailable**](docs/AppsApi.md#isPanaceaVanityUrlAvailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | +*Flipdish.AppsApi* | [**lookupByWhitelabelId**](docs/AppsApi.md#lookupByWhitelabelId) | **GET** /api/v1.0/apps/{whitelabelId}/lookup | +*Flipdish.AppsApi* | [**setAppConfig**](docs/AppsApi.md#setAppConfig) | **POST** /api/v1.0/apps/{appId}/config | +*Flipdish.AppsApi* | [**setAppHostname**](docs/AppsApi.md#setAppHostname) | **POST** /api/v1.0/apps/{appId}/hostname | +*Flipdish.AppsApi* | [**setAppLanguages**](docs/AppsApi.md#setAppLanguages) | **POST** /api/v1.0/apps/{appId}/config/languages | +*Flipdish.AppsApi* | [**setAppStoreName**](docs/AppsApi.md#setAppStoreName) | **POST** /api/v1.0/apps/{appId}/appstorename | +*Flipdish.AppsApi* | [**setCompliance**](docs/AppsApi.md#setCompliance) | **POST** /api/v1.0/apps/{appId}/compliance | +*Flipdish.AppsApi* | [**setPanaceaVanityUrl**](docs/AppsApi.md#setPanaceaVanityUrl) | **POST** /api/v1.0/apps/{appId}/panacea/url | +*Flipdish.AppsApi* | [**toggleNextGenWeb**](docs/AppsApi.md#toggleNextGenWeb) | **POST** /api/v1.0/apps/{appId}/nextgenweb | +*Flipdish.AppsApi* | [**uploadAppLogo**](docs/AppsApi.md#uploadAppLogo) | **POST** /api/v1.0/apps/{appId}/logo | +*Flipdish.AuditLogsApi* | [**addOrderAuditLog**](docs/AuditLogsApi.md#addOrderAuditLog) | **POST** /api/v1.0/auditlogs/orders/{orderId} | +*Flipdish.AuditLogsApi* | [**addStoreAuditLogEvent**](docs/AuditLogsApi.md#addStoreAuditLogEvent) | **POST** /api/v1.0/auditlogs/stores/{storeId} | +*Flipdish.AuthorizationTokensApi* | [**getAuthorizationTokens**](docs/AuthorizationTokensApi.md#getAuthorizationTokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | +*Flipdish.AuthorizationTokensApi* | [**revokeToken**](docs/AuthorizationTokensApi.md#revokeToken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | +*Flipdish.BankAccountApi* | [**attachBankAccountToStore**](docs/BankAccountApi.md#attachBankAccountToStore) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId} | +*Flipdish.BankAccountApi* | [**createBankAccount**](docs/BankAccountApi.md#createBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts | +*Flipdish.BankAccountApi* | [**deleteBankAccount**](docs/BankAccountApi.md#deleteBankAccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +*Flipdish.BankAccountApi* | [**getBankAccountById**](docs/BankAccountApi.md#getBankAccountById) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +*Flipdish.BankAccountApi* | [**getBankAccounts**](docs/BankAccountApi.md#getBankAccounts) | **GET** /api/v1.0/{appId}/bankaccounts | +*Flipdish.BankAccountApi* | [**getCountriesWithFieldDefinitions**](docs/BankAccountApi.md#getCountriesWithFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | +*Flipdish.BankAccountApi* | [**getFieldDefinitions**](docs/BankAccountApi.md#getFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | +*Flipdish.BankAccountApi* | [**updateBankAccount**](docs/BankAccountApi.md#updateBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +*Flipdish.BankAccountApi* | [**updateBankAccountState**](docs/BankAccountApi.md#updateBankAccountState) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | +*Flipdish.CampaignsApi* | [**createLoyaltyCampaign**](docs/CampaignsApi.md#createLoyaltyCampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty | +*Flipdish.CampaignsApi* | [**createRetentionCampaign**](docs/CampaignsApi.md#createRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | +*Flipdish.CampaignsApi* | [**getLoyaltyCampaignsForApp**](docs/CampaignsApi.md#getLoyaltyCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | +*Flipdish.CampaignsApi* | [**getLoyaltyCampaignsForStore**](docs/CampaignsApi.md#getLoyaltyCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | +*Flipdish.CampaignsApi* | [**getRetentionCampaignsForApp**](docs/CampaignsApi.md#getRetentionCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/retention | +*Flipdish.CampaignsApi* | [**getRetentionCampaignsForStore**](docs/CampaignsApi.md#getRetentionCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | +*Flipdish.CampaignsApi* | [**getStoreList**](docs/CampaignsApi.md#getStoreList) | **GET** /api/v1.0/{appId}/campaigns/stores | +*Flipdish.CampaignsApi* | [**removeCampaign**](docs/CampaignsApi.md#removeCampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | +*Flipdish.CampaignsApi* | [**updateLoyaltyCampaign**](docs/CampaignsApi.md#updateLoyaltyCampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | +*Flipdish.CampaignsApi* | [**updateRetentionCampaign**](docs/CampaignsApi.md#updateRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | +*Flipdish.CardReadersApi* | [**cancelCurrentlyInitiatedBluetoothDeviceUpdate**](docs/CardReadersApi.md#cancelCurrentlyInitiatedBluetoothDeviceUpdate) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate | +*Flipdish.CardReadersApi* | [**cancelReaderAction**](docs/CardReadersApi.md#cancelReaderAction) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action | +*Flipdish.CardReadersApi* | [**cardReadersGetReader**](docs/CardReadersApi.md#cardReadersGetReader) | **GET** /api/v1.0/{appId}/payments/terminals/stripe/{readerId} | +*Flipdish.CardReadersApi* | [**generateStripeTerminalLocation**](docs/CardReadersApi.md#generateStripeTerminalLocation) | **POST** /api/v1.0/{appId}/stripeterminal/location | +*Flipdish.CardReadersApi* | [**getBluetoothTerminalStatus**](docs/CardReadersApi.md#getBluetoothTerminalStatus) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | +*Flipdish.CardReadersApi* | [**getStripeConnectionToken**](docs/CardReadersApi.md#getStripeConnectionToken) | **GET** /api/v1.0/{appId}/stripeterminal/connectiontoken | +*Flipdish.CardReadersApi* | [**initiateBluetoothTerminalDeviceUpdateCheck**](docs/CardReadersApi.md#initiateBluetoothTerminalDeviceUpdateCheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | +*Flipdish.CardReadersApi* | [**initiateKioskBluetoothPairingMode**](docs/CardReadersApi.md#initiateKioskBluetoothPairingMode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | +*Flipdish.CardReadersApi* | [**initiateKioskBluetoothUpdateInstall**](docs/CardReadersApi.md#initiateKioskBluetoothUpdateInstall) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | +*Flipdish.CardReadersApi* | [**initiateReaderProcessPaymentIntent**](docs/CardReadersApi.md#initiateReaderProcessPaymentIntent) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent | +*Flipdish.CardReadersApi* | [**registerStripeTerminal**](docs/CardReadersApi.md#registerStripeTerminal) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/register | +*Flipdish.CardReadersApi* | [**unRegisterTerminal**](docs/CardReadersApi.md#unRegisterTerminal) | **DELETE** /api/v1.0/{appId}/payments/terminals/stripe/unregister | +*Flipdish.CardReadersApi* | [**unpairCurrentlyPairedBluetoothDevice**](docs/CardReadersApi.md#unpairCurrentlyPairedBluetoothDevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | +*Flipdish.CatalogChangesApi* | [**getPendingMenuChanges**](docs/CatalogChangesApi.md#getPendingMenuChanges) | **GET** /api/v1.0/{appId}/menus/catalog-changes | Get menu pending changes from Catalog groups and items +*Flipdish.CatalogChangesApi* | [**getPendingMenuChangesSummaries**](docs/CatalogChangesApi.md#getPendingMenuChangesSummaries) | **GET** /api/v1.0/{appId}/menus/catalog-changes/summaries | Get menu pending changes summaries by appId +*Flipdish.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 +*Flipdish.CatalogGroupsApi* | [**archiveGroup**](docs/CatalogGroupsApi.md#archiveGroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId}/archive | Archive Catalog Group +*Flipdish.CatalogGroupsApi* | [**createGroup**](docs/CatalogGroupsApi.md#createGroup) | **POST** /api/v1.0/{appId}/catalog/groups | Create a Catalog Group +*Flipdish.CatalogGroupsApi* | [**duplicateGroup**](docs/CatalogGroupsApi.md#duplicateGroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId}/duplicate | Duplicate Catalog Group +*Flipdish.CatalogGroupsApi* | [**getGroupById**](docs/CatalogGroupsApi.md#getGroupById) | **GET** /api/v1.0/{appId}/catalog/groups/{catalogItemId} | Get group by Id +*Flipdish.CatalogGroupsApi* | [**getGroups**](docs/CatalogGroupsApi.md#getGroups) | **GET** /api/v1.0/{appId}/catalog/groups | Get paginated groups by app name id filtered by types +*Flipdish.CatalogGroupsApi* | [**updateGroup**](docs/CatalogGroupsApi.md#updateGroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId} | Update Catalog Group +*Flipdish.CatalogImagesApi* | [**uploadCatalogImage**](docs/CatalogImagesApi.md#uploadCatalogImage) | **POST** /api/v1.0/{appId}/catalog/images | Upload a Catalog Image +*Flipdish.CatalogItemsApi* | [**archiveCatalogItem**](docs/CatalogItemsApi.md#archiveCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId}/archive | Archive Catalog Item +*Flipdish.CatalogItemsApi* | [**createCatalogItem**](docs/CatalogItemsApi.md#createCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items | Create a Catalog Item +*Flipdish.CatalogItemsApi* | [**duplicateCatalogItem**](docs/CatalogItemsApi.md#duplicateCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId}/duplicate | Duplicate Catalog Item +*Flipdish.CatalogItemsApi* | [**getCatalogItemById**](docs/CatalogItemsApi.md#getCatalogItemById) | **GET** /api/v1.0/{appId}/catalog/items/{catalogItemId} | Get item by Id +*Flipdish.CatalogItemsApi* | [**getItems**](docs/CatalogItemsApi.md#getItems) | **GET** /api/v1.0/{appId}/catalog/items | Get paginated items by app name id filtered by types +*Flipdish.CatalogItemsApi* | [**updateCatalogItem**](docs/CatalogItemsApi.md#updateCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId} | Update Catalog Item +*Flipdish.CatalogProductsApi* | [**archiveProduct**](docs/CatalogProductsApi.md#archiveProduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId}/archive | Archive Product +*Flipdish.CatalogProductsApi* | [**createProduct**](docs/CatalogProductsApi.md#createProduct) | **POST** /api/v1.0/{appId}/catalog/products | Create a Product +*Flipdish.CatalogProductsApi* | [**duplicateProduct**](docs/CatalogProductsApi.md#duplicateProduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId}/duplicate | Duplicate Product +*Flipdish.CatalogProductsApi* | [**getProductById**](docs/CatalogProductsApi.md#getProductById) | **GET** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Get Product by Id +*Flipdish.CatalogProductsApi* | [**getProducts**](docs/CatalogProductsApi.md#getProducts) | **GET** /api/v1.0/{appId}/catalog/products | Get paginated products by app name id filtered by types +*Flipdish.CatalogProductsApi* | [**updateProduct**](docs/CatalogProductsApi.md#updateProduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Update Product +*Flipdish.ChannelsApi* | [**assignAppIdToSalesChannel**](docs/ChannelsApi.md#assignAppIdToSalesChannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/assign-appId | +*Flipdish.ChannelsApi* | [**assignStoreToChannel**](docs/ChannelsApi.md#assignStoreToChannel) | **POST** /api/v1.0/{appId}/channels/assign-store | +*Flipdish.ChannelsApi* | [**attachStoreToSalesChannel**](docs/ChannelsApi.md#attachStoreToSalesChannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +*Flipdish.ChannelsApi* | [**detachAllStoresFromSalesChannel**](docs/ChannelsApi.md#detachAllStoresFromSalesChannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores | +*Flipdish.ChannelsApi* | [**detachStoreFromSalesChannel**](docs/ChannelsApi.md#detachStoreFromSalesChannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +*Flipdish.ChannelsApi* | [**getAssignedChannels**](docs/ChannelsApi.md#getAssignedChannels) | **GET** /api/v1.0/{appId}/channels/assigned-channels | +*Flipdish.ChannelsApi* | [**getAvailableChannels**](docs/ChannelsApi.md#getAvailableChannels) | **GET** /api/v1.0/{appId}/channels/available-channels | +*Flipdish.ChannelsApi* | [**getChannel**](docs/ChannelsApi.md#getChannel) | **GET** /api/v1.0/{appId}/channels/{id} | +*Flipdish.ChannelsApi* | [**getChannels**](docs/ChannelsApi.md#getChannels) | **GET** /api/v1.0/{appId}/channels | +*Flipdish.ChannelsApi* | [**getStoresAssignedToChannel**](docs/ChannelsApi.md#getStoresAssignedToChannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/assigned-stores | +*Flipdish.ChannelsApi* | [**getStoresBySalesChannel**](docs/ChannelsApi.md#getStoresBySalesChannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/stores | +*Flipdish.ChannelsApi* | [**unassignStoreFromChannel**](docs/ChannelsApi.md#unassignStoreFromChannel) | **DELETE** /api/v1.0/{appId}/channels/unassign-store | +*Flipdish.ClientsApi* | [**getClient**](docs/ClientsApi.md#getClient) | **GET** /api/v1.0/clients/{clientId} | +*Flipdish.ClientsApi* | [**setSalesForceContactId**](docs/ClientsApi.md#setSalesForceContactId) | **POST** /api/v1.0/clients/{clientId}/salesforcecontactid | +*Flipdish.ClientsApi* | [**setStripeCustomerId**](docs/ClientsApi.md#setStripeCustomerId) | **POST** /api/v1.0/clients/{clientId}/stripecustomerid | +*Flipdish.ContentSecurityPolicyApi* | [**contentSecurityPolicyReport**](docs/ContentSecurityPolicyApi.md#contentSecurityPolicyReport) | **POST** /api/v1.0/csp/report | +*Flipdish.CrossSellApi* | [**getCrossSellMenuItems**](docs/CrossSellApi.md#getCrossSellMenuItems) | **GET** /api/v1.0/{appId}/crossSell/menuItems | +*Flipdish.CustomersApi* | [**createCustomer**](docs/CustomersApi.md#createCustomer) | **POST** /api/v1.0/{appId}/customers | +*Flipdish.CustomersApi* | [**getCustomerById**](docs/CustomersApi.md#getCustomerById) | **GET** /api/v1.0/{appId}/customers/{customerId} | +*Flipdish.CustomersApi* | [**getCustomers**](docs/CustomersApi.md#getCustomers) | **GET** /api/v1.0/{appId}/customers | +*Flipdish.CustomersApi* | [**updateCustomerById**](docs/CustomersApi.md#updateCustomerById) | **POST** /api/v1.0/{appId}/customers/{customerId} | +*Flipdish.DeliveryZoneApi* | [**addDeliveryZone**](docs/DeliveryZoneApi.md#addDeliveryZone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones | +*Flipdish.DeliveryZoneApi* | [**getDeliveryZones**](docs/DeliveryZoneApi.md#getDeliveryZones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | +*Flipdish.DeliveryZoneApi* | [**removeDeliveryZone**](docs/DeliveryZoneApi.md#removeDeliveryZone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | +*Flipdish.DeliveryZoneApi* | [**updateDeliveryZone**](docs/DeliveryZoneApi.md#updateDeliveryZone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | +*Flipdish.DeviceApi* | [**assignDevice**](docs/DeviceApi.md#assignDevice) | **POST** /api/v1.0/{appId}/devices/assign | +*Flipdish.DeviceApi* | [**enrollDevice**](docs/DeviceApi.md#enrollDevice) | **POST** /api/v1.0/{appId}/devices/enroll | +*Flipdish.DeviceApi* | [**getDeviceDetails**](docs/DeviceApi.md#getDeviceDetails) | **GET** /api/v1.0/{appId}/devices/device/{deviceModel}/{deviceId} | +*Flipdish.DeviceApi* | [**searchDevices**](docs/DeviceApi.md#searchDevices) | **GET** /api/v1.0/{appId}/devices/search | +*Flipdish.DriversApi* | [**driversAddDriverNotificationToken**](docs/DriversApi.md#driversAddDriverNotificationToken) | **POST** /api/v1.0/drivers/token | +*Flipdish.DriversApi* | [**driversDeleteDriverProfileImage**](docs/DriversApi.md#driversDeleteDriverProfileImage) | **DELETE** /api/v1.0/drivers/profile/image | +*Flipdish.DriversApi* | [**driversDriverLogin**](docs/DriversApi.md#driversDriverLogin) | **POST** /api/v1.0/drivers/login | +*Flipdish.DriversApi* | [**driversDriverRequestLoginCodeSms**](docs/DriversApi.md#driversDriverRequestLoginCodeSms) | **POST** /api/v1.0/drivers/pin | +*Flipdish.DriversApi* | [**driversGetDriverProfile**](docs/DriversApi.md#driversGetDriverProfile) | **GET** /api/v1.0/drivers/profile | +*Flipdish.DriversApi* | [**driversGetStoresForDriver**](docs/DriversApi.md#driversGetStoresForDriver) | **GET** /api/v1.0/drivers/assignedstores | +*Flipdish.DriversApi* | [**driversRemoveDriverNotificationToken**](docs/DriversApi.md#driversRemoveDriverNotificationToken) | **DELETE** /api/v1.0/drivers/token | +*Flipdish.DriversApi* | [**driversSetDriverPresenceForStore**](docs/DriversApi.md#driversSetDriverPresenceForStore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | +*Flipdish.DriversApi* | [**driversSetDriverProfileImage**](docs/DriversApi.md#driversSetDriverProfileImage) | **POST** /api/v1.0/drivers/profile/image | +*Flipdish.DriversApi* | [**driversUpdateDeliveryTrackingStatus**](docs/DriversApi.md#driversUpdateDeliveryTrackingStatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | +*Flipdish.DriversApi* | [**driversUpdateDriverProfile**](docs/DriversApi.md#driversUpdateDriverProfile) | **POST** /api/v1.0/drivers/profile | +*Flipdish.EventsApi* | [**getCustomerEvents**](docs/EventsApi.md#getCustomerEvents) | **GET** /api/v1.0/{appId}/events/customer/{customerId} | +*Flipdish.EventsApi* | [**getEvents**](docs/EventsApi.md#getEvents) | **GET** /api/v1.0/{appId}/events | +*Flipdish.EventsApi* | [**getEventsById**](docs/EventsApi.md#getEventsById) | **GET** /api/v1.0/{appId}/events/{eventId} | +*Flipdish.EventsApi* | [**getMenuEvents**](docs/EventsApi.md#getMenuEvents) | **GET** /api/v1.0/{appId}/events/menu/{menuId} | +*Flipdish.EventsApi* | [**getOrderEvents**](docs/EventsApi.md#getOrderEvents) | **GET** /api/v1.0/{appId}/events/order/{orderId} | +*Flipdish.EventsApi* | [**getOrderEventsByCustomer**](docs/EventsApi.md#getOrderEventsByCustomer) | **GET** /api/v1.0/{appId}/events/order | +*Flipdish.EventsApi* | [**getStoreEvents**](docs/EventsApi.md#getStoreEvents) | **GET** /api/v1.0/{appId}/events/store/{storeId} | +*Flipdish.EventsApi* | [**getUserEvents**](docs/EventsApi.md#getUserEvents) | **GET** /api/v1.0/{appId}/events/user/{userId} | +*Flipdish.EventsApi* | [**getWhiteLabelEvents**](docs/EventsApi.md#getWhiteLabelEvents) | **GET** /api/v1.0/{appId}/events/whitelabel/{whitelabelId} | +*Flipdish.FeaturesApi* | [**disableFeatures**](docs/FeaturesApi.md#disableFeatures) | **POST** /api/v1.0/{appId}/features/disable | +*Flipdish.FeaturesApi* | [**enableFeatures**](docs/FeaturesApi.md#enableFeatures) | **POST** /api/v1.0/{appId}/features/enable | +*Flipdish.FilesApi* | [**downloadFile**](docs/FilesApi.md#downloadFile) | **GET** /api/v1.0/{appId}/files/download/{fileId} | +*Flipdish.FirebaseAppsApi* | [**firebaseAppsAddFirebaseApp**](docs/FirebaseAppsApi.md#firebaseAppsAddFirebaseApp) | **POST** /api/v1.0/FirebaseApp | +*Flipdish.FirebaseAppsApi* | [**firebaseAppsDeleteFirebaseApp**](docs/FirebaseAppsApi.md#firebaseAppsDeleteFirebaseApp) | **DELETE** /api/v1.0/FirebaseApp/{whiteLabelId} | +*Flipdish.FirebaseAppsApi* | [**firebaseAppsGetFirebaseApp**](docs/FirebaseAppsApi.md#firebaseAppsGetFirebaseApp) | **GET** /api/v1.0/FirebaseApp/{whitelabelId} | +*Flipdish.FpmApi* | [**createFpmForStore**](docs/FpmApi.md#createFpmForStore) | **POST** /api/v1.0/{storeId}/fpm | +*Flipdish.FpmApi* | [**editFpmForStore**](docs/FpmApi.md#editFpmForStore) | **POST** /api/v1.0/{storeId}/fpm/edit | +*Flipdish.FpmApi* | [**getFpmForStore**](docs/FpmApi.md#getFpmForStore) | **GET** /api/v1.0/{storeId}/fpm | +*Flipdish.FulfillmentStateConfigurationApi* | [**createFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#createFulfillmentStatesConfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states | +*Flipdish.FulfillmentStateConfigurationApi* | [**deleteFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#deleteFulfillmentStatesConfig) | **DELETE** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +*Flipdish.FulfillmentStateConfigurationApi* | [**getFulfillmentStatesConfiguration**](docs/FulfillmentStateConfigurationApi.md#getFulfillmentStatesConfiguration) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +*Flipdish.FulfillmentStateConfigurationApi* | [**getFulfillmentStatesConfigurationTemplate**](docs/FulfillmentStateConfigurationApi.md#getFulfillmentStatesConfigurationTemplate) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states_template | +*Flipdish.FulfillmentStateConfigurationApi* | [**searchFulfillmentStatesConfigurations**](docs/FulfillmentStateConfigurationApi.md#searchFulfillmentStatesConfigurations) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states | +*Flipdish.FulfillmentStateConfigurationApi* | [**updateFulfillmentStatesConfig**](docs/FulfillmentStateConfigurationApi.md#updateFulfillmentStatesConfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +*Flipdish.HeartbeatApi* | [**headHostname**](docs/HeartbeatApi.md#headHostname) | **HEAD** /api/v1.0/heartbeat/Hostname | +*Flipdish.HeartbeatApi* | [**headPing**](docs/HeartbeatApi.md#headPing) | **HEAD** /api/v1.0/heartbeat | +*Flipdish.HeartbeatApi* | [**hostname**](docs/HeartbeatApi.md#hostname) | **GET** /api/v1.0/heartbeat/Hostname | +*Flipdish.HeartbeatApi* | [**ping**](docs/HeartbeatApi.md#ping) | **GET** /api/v1.0/heartbeat | +*Flipdish.HomeApi* | [**completeHomeAction**](docs/HomeApi.md#completeHomeAction) | **POST** /api/v1.0/{appId}/home/{homeActionId} | +*Flipdish.HomeApi* | [**getHomeActions**](docs/HomeApi.md#getHomeActions) | **GET** /api/v1.0/{appId}/home | +*Flipdish.HomeApi* | [**getHomeStatistics**](docs/HomeApi.md#getHomeStatistics) | **GET** /api/v1.0/{appId}/home/stats | +*Flipdish.HomeApi* | [**getOktaPortalFeatureFlag**](docs/HomeApi.md#getOktaPortalFeatureFlag) | **GET** /api/v1.0/home/okta-portal | +*Flipdish.HydraApi* | [**assignEmv**](docs/HydraApi.md#assignEmv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId} | +*Flipdish.HydraApi* | [**attachStoreToKiosk**](docs/HydraApi.md#attachStoreToKiosk) | **POST** /api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId} | +*Flipdish.HydraApi* | [**attachStoreToTerminal**](docs/HydraApi.md#attachStoreToTerminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | +*Flipdish.HydraApi* | [**cancelEmvPayment**](docs/HydraApi.md#cancelEmvPayment) | **POST** /api/v1.0/{appId}/hydra/cancelemvpayment/{orderId} | +*Flipdish.HydraApi* | [**detachStoreFromTerminal**](docs/HydraApi.md#detachStoreFromTerminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId} | +*Flipdish.HydraApi* | [**getAblyToken**](docs/HydraApi.md#getAblyToken) | **GET** /api/v1.0/hydra/ably_token | +*Flipdish.HydraApi* | [**getAttachedDevice**](docs/HydraApi.md#getAttachedDevice) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/{deviceId} | +*Flipdish.HydraApi* | [**getAttachedDevices**](docs/HydraApi.md#getAttachedDevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | +*Flipdish.HydraApi* | [**getEMVTerminalDetails**](docs/HydraApi.md#getEMVTerminalDetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | +*Flipdish.HydraApi* | [**getEmvOrderState**](docs/HydraApi.md#getEmvOrderState) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | +*Flipdish.HydraApi* | [**getKioskCashPaymentSettings**](docs/HydraApi.md#getKioskCashPaymentSettings) | **GET** /api/v1.0/{appId}/kioskcashsettings/{deviceId} | +*Flipdish.HydraApi* | [**getKioskSettings**](docs/HydraApi.md#getKioskSettings) | **GET** /api/v1.0/{appId}/kiosksettings/{deviceId} | +*Flipdish.HydraApi* | [**getRegistration**](docs/HydraApi.md#getRegistration) | **GET** /api/v1.0/hydra/registration | +*Flipdish.HydraApi* | [**getSettings**](docs/HydraApi.md#getSettings) | **GET** /api/v1.0/hydra/settings | +*Flipdish.HydraApi* | [**hydraCreateEmv**](docs/HydraApi.md#hydraCreateEmv) | **POST** /api/v1.0/{appId}/emvterminals | +*Flipdish.HydraApi* | [**hydraDeleteEmv**](docs/HydraApi.md#hydraDeleteEmv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | +*Flipdish.HydraApi* | [**hydraDetachStoreFromKiosk**](docs/HydraApi.md#hydraDetachStoreFromKiosk) | **DELETE** /api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId} | +*Flipdish.HydraApi* | [**hydraGetEmvsForAppId**](docs/HydraApi.md#hydraGetEmvsForAppId) | **GET** /api/v1.0/{appId}/emvterminals | +*Flipdish.HydraApi* | [**loginWithDeviceId**](docs/HydraApi.md#loginWithDeviceId) | **POST** /api/v1.0/hydra/{deviceId}/login | +*Flipdish.HydraApi* | [**register**](docs/HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | +*Flipdish.HydraApi* | [**unAssign**](docs/HydraApi.md#unAssign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | +*Flipdish.HydraApi* | [**unassignEmv**](docs/HydraApi.md#unassignEmv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | +*Flipdish.HydraApi* | [**updateKioskCashVisibilitySettings**](docs/HydraApi.md#updateKioskCashVisibilitySettings) | **POST** /api/v1.0/{appId}/kioskupdatecashsettings | +*Flipdish.HydraApi* | [**updateKioskSettings**](docs/HydraApi.md#updateKioskSettings) | **POST** /api/v1.0/{appId}/kiosksettings/{deviceId} | +*Flipdish.IntercomApi* | [**userHash**](docs/IntercomApi.md#userHash) | **GET** /api/v1.0/intercom/userHash | +*Flipdish.InvoicesApi* | [**getInvoices**](docs/InvoicesApi.md#getInvoices) | **GET** /api/v1.0/{appId}/invoices | +*Flipdish.InvoicesApi* | [**invoicePdf**](docs/InvoicesApi.md#invoicePdf) | **GET** /api/v1.0/{appId}/invoices/InvoicePdf | +*Flipdish.InvoicesApi* | [**listInvoices**](docs/InvoicesApi.md#listInvoices) | **GET** /api/v1.0/{appId}/invoices/ListInvoices | +*Flipdish.InvoicesApi* | [**listSubscriptionInvoices**](docs/InvoicesApi.md#listSubscriptionInvoices) | **GET** /api/v1.0/{appId}/invoices/ListSubscriptionInvoices | +*Flipdish.KioskEntitlementsApi* | [**queryKioskEntitlementsByOrgId**](docs/KioskEntitlementsApi.md#queryKioskEntitlementsByOrgId) | **GET** /api/v1.0/orgs/{orgId}/kiosk/entitlements | +*Flipdish.KioskIotApi* | [**getKioskIotConnection**](docs/KioskIotApi.md#getKioskIotConnection) | **POST** /api/v1.0/kioskiot/connect | +*Flipdish.KioskIotApi* | [**queryTelemetrySeries**](docs/KioskIotApi.md#queryTelemetrySeries) | **POST** /api/v1.0/{appId}/kioskiot/timeseries/query | +*Flipdish.LightspeedApi* | [**lightspeedGenerateMenu**](docs/LightspeedApi.md#lightspeedGenerateMenu) | **POST** /api/v1.0/lightspeed/{storeId}/menu/generate | +*Flipdish.LightspeedApi* | [**lightspeedGetStoreSettings**](docs/LightspeedApi.md#lightspeedGetStoreSettings) | **GET** /api/v1.0/lightspeed/{storeId}/settings | +*Flipdish.LightspeedApi* | [**lightspeedSaveStoreSettings**](docs/LightspeedApi.md#lightspeedSaveStoreSettings) | **POST** /api/v1.0/lightspeed/{storeId}/settings | +*Flipdish.LocationApi* | [**createLocation**](docs/LocationApi.md#createLocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location | +*Flipdish.LocationApi* | [**deleteLocation**](docs/LocationApi.md#deleteLocation) | **DELETE** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete | +*Flipdish.LocationApi* | [**mapLocationToExternalId**](docs/LocationApi.md#mapLocationToExternalId) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external | +*Flipdish.LocationApi* | [**moveLocation**](docs/LocationApi.md#moveLocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move | +*Flipdish.LocationApi* | [**updateLocation**](docs/LocationApi.md#updateLocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update | +*Flipdish.LocationAreasApi* | [**createLocationArea**](docs/LocationAreasApi.md#createLocationArea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas | +*Flipdish.LocationAreasApi* | [**getLocationArea**](docs/LocationAreasApi.md#getLocationArea) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId} | +*Flipdish.LocationAreasApi* | [**getLocationAreasForStore**](docs/LocationAreasApi.md#getLocationAreasForStore) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas | +*Flipdish.LocationAreasApi* | [**updateLocationArea**](docs/LocationAreasApi.md#updateLocationArea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update | +*Flipdish.LookerDashboardApi* | [**lookerDashboardGetAll**](docs/LookerDashboardApi.md#lookerDashboardGetAll) | **GET** /api/v1.0/{appId}/looker/dashboards | +*Flipdish.LookerSingleSignOnApi* | [**getSSOEndpoint**](docs/LookerSingleSignOnApi.md#getSSOEndpoint) | **GET** /api/v1.0/{appId}/looker/sso | +*Flipdish.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 +*Flipdish.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 +*Flipdish.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 +*Flipdish.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 +*Flipdish.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 +*Flipdish.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 +*Flipdish.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 +*Flipdish.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 +*Flipdish.MenuOptionSetsApi* | [**createMenuItemOptionSet**](docs/MenuOptionSetsApi.md#createMenuItemOptionSet) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets | Create menu item option set +*Flipdish.MenuOptionSetsApi* | [**deleteMenuItemOptionSet**](docs/MenuOptionSetsApi.md#deleteMenuItemOptionSet) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Delete menu item option set +*Flipdish.MenuOptionSetsApi* | [**deleteOptionSetImage**](docs/MenuOptionSetsApi.md#deleteOptionSetImage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image | Delete option set image +*Flipdish.MenuOptionSetsApi* | [**getMenuItemOptionSetById**](docs/MenuOptionSetsApi.md#getMenuItemOptionSetById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Get menu item option set by identifier +*Flipdish.MenuOptionSetsApi* | [**getMenuItemOptionSets**](docs/MenuOptionSetsApi.md#getMenuItemOptionSets) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets | Get menu item option sets +*Flipdish.MenuOptionSetsApi* | [**updateMenuItemOptionSet**](docs/MenuOptionSetsApi.md#updateMenuItemOptionSet) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Update menu item option set +*Flipdish.MenuOptionSetsApi* | [**uploadOptionSetImage**](docs/MenuOptionSetsApi.md#uploadOptionSetImage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image | Upload menu item option set image +*Flipdish.MenuSectionItemsApi* | [**cloneMenuSectionItem**](docs/MenuSectionItemsApi.md#cloneMenuSectionItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/clone | Clone menu section item +*Flipdish.MenuSectionItemsApi* | [**createMenuSectionItem**](docs/MenuSectionItemsApi.md#createMenuSectionItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems | Create menu section item +*Flipdish.MenuSectionItemsApi* | [**createMenuSectionItemFromCatalogItems**](docs/MenuSectionItemsApi.md#createMenuSectionItemFromCatalogItems) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/add-catalogitems | Create menu section items from a list of Catalog Items +*Flipdish.MenuSectionItemsApi* | [**deleteMenuSectionItem**](docs/MenuSectionItemsApi.md#deleteMenuSectionItem) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Delete menu section item +*Flipdish.MenuSectionItemsApi* | [**deleteMenuSectionItemImage**](docs/MenuSectionItemsApi.md#deleteMenuSectionItemImage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Delete menu section item image +*Flipdish.MenuSectionItemsApi* | [**getMenuItemById**](docs/MenuSectionItemsApi.md#getMenuItemById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Get menu item by identifier +*Flipdish.MenuSectionItemsApi* | [**getMenuItems**](docs/MenuSectionItemsApi.md#getMenuItems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems | Get menu items +*Flipdish.MenuSectionItemsApi* | [**moveMenuItem**](docs/MenuSectionItemsApi.md#moveMenuItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder} | Move an Item within a menu +*Flipdish.MenuSectionItemsApi* | [**setSectionItemTax**](docs/MenuSectionItemsApi.md#setSectionItemTax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId} | Set tax rate for menu item +*Flipdish.MenuSectionItemsApi* | [**updateMenuSectionItem**](docs/MenuSectionItemsApi.md#updateMenuSectionItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Update menu section item +*Flipdish.MenuSectionItemsApi* | [**uploadMenuSectionItemImage**](docs/MenuSectionItemsApi.md#uploadMenuSectionItemImage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Upload menu section item image +*Flipdish.MenuSectionsApi* | [**cloneMenuSection**](docs/MenuSectionsApi.md#cloneMenuSection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone | Clone menu section +*Flipdish.MenuSectionsApi* | [**createMenuAvailabilityForDay**](docs/MenuSectionsApi.md#createMenuAvailabilityForDay) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek} | Set/update menu section availability hours. +*Flipdish.MenuSectionsApi* | [**createMenuSection**](docs/MenuSectionsApi.md#createMenuSection) | **POST** /api/v1.0/menus/{menuId}/sections | Create menu section +*Flipdish.MenuSectionsApi* | [**createMenuSectionAvailability**](docs/MenuSectionsApi.md#createMenuSectionAvailability) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability | Create menu availability type +*Flipdish.MenuSectionsApi* | [**deleteMenuSection**](docs/MenuSectionsApi.md#deleteMenuSection) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Delete menu section +*Flipdish.MenuSectionsApi* | [**deleteMenuSectionImage**](docs/MenuSectionsApi.md#deleteMenuSectionImage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Delete menu section image +*Flipdish.MenuSectionsApi* | [**getMenuSectionById**](docs/MenuSectionsApi.md#getMenuSectionById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Get menu section by identifier +*Flipdish.MenuSectionsApi* | [**getMenuSections**](docs/MenuSectionsApi.md#getMenuSections) | **GET** /api/v1.0/menus/{menuId}/sections | Get menu sections +*Flipdish.MenuSectionsApi* | [**menuSectionsSetItemDisplayOrders**](docs/MenuSectionsApi.md#menuSectionsSetItemDisplayOrders) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders | Re-arrange Items within a Section +*Flipdish.MenuSectionsApi* | [**updateMenuSection**](docs/MenuSectionsApi.md#updateMenuSection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Update menu section +*Flipdish.MenuSectionsApi* | [**uploadMenuSectionImage**](docs/MenuSectionsApi.md#uploadMenuSectionImage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Upload menu section image +*Flipdish.MenuZonesApi* | [**addMenuZone**](docs/MenuZonesApi.md#addMenuZone) | **POST** /api/v1.0/menus/{menuId}/zones | Adds a new menu zone to a menu. +*Flipdish.MenuZonesApi* | [**deleteMenuZone**](docs/MenuZonesApi.md#deleteMenuZone) | **DELETE** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Deletes a menu zone. +*Flipdish.MenuZonesApi* | [**deleteMenuZoneImage**](docs/MenuZonesApi.md#deleteMenuZoneImage) | **DELETE** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Deletes a menu zone image. +*Flipdish.MenuZonesApi* | [**flipMenuZones**](docs/MenuZonesApi.md#flipMenuZones) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/flip/{menuZoneI2} | Flips the order of two menu zones. +*Flipdish.MenuZonesApi* | [**getMenuZone**](docs/MenuZonesApi.md#getMenuZone) | **GET** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Gets a specific menu zone for a given zone id +*Flipdish.MenuZonesApi* | [**getMenuZonesForMenuId**](docs/MenuZonesApi.md#getMenuZonesForMenuId) | **GET** /api/v1.0/menus/{menuId}/zones | Gets all the menu zones for a menu +*Flipdish.MenuZonesApi* | [**setMenuSectionMenuZone**](docs/MenuZonesApi.md#setMenuSectionMenuZone) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/section/{menuSectionId} | Assigns a zone to a menu section. +*Flipdish.MenuZonesApi* | [**setMenuZoneDescription**](docs/MenuZonesApi.md#setMenuZoneDescription) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/description | Sets the description of a menu zone. +*Flipdish.MenuZonesApi* | [**setMenuZoneName**](docs/MenuZonesApi.md#setMenuZoneName) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/name/{menuZoneName} | Sets the name of a menu zone. +*Flipdish.MenuZonesApi* | [**updateMenuZone**](docs/MenuZonesApi.md#updateMenuZone) | **PUT** /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Updates a menu zone. +*Flipdish.MenuZonesApi* | [**uploadMenuZoneImage**](docs/MenuZonesApi.md#uploadMenuZoneImage) | **POST** /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Uploads an image for a menu zone. +*Flipdish.MenusApi* | [**createDraftMenuFromExistingMenu**](docs/MenusApi.md#createDraftMenuFromExistingMenu) | **POST** /api/v1.0/menus/{menuId}/clone/{newName} | Clone a menu, (without attaching stores) +*Flipdish.MenusApi* | [**createNewMenuAsync**](docs/MenusApi.md#createNewMenuAsync) | **POST** /api/v1.0/{appId}/menus/async | Create a new menu asynchronously +*Flipdish.MenusApi* | [**createNewMenuForApp**](docs/MenusApi.md#createNewMenuForApp) | **POST** /api/v1.0/{appId}/menus | Create a new menu +*Flipdish.MenusApi* | [**deleteMenu**](docs/MenusApi.md#deleteMenu) | **DELETE** /api/v1.0/menus/{menuId} | Mark a Menu as Deleted +*Flipdish.MenusApi* | [**deleteMenuImage**](docs/MenusApi.md#deleteMenuImage) | **DELETE** /api/v1.0/menus/{menuId}/image | Delete menu image +*Flipdish.MenusApi* | [**deleteMenuItemMetadata**](docs/MenusApi.md#deleteMenuItemMetadata) | **DELETE** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Delete menu item metadata +*Flipdish.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 +*Flipdish.MenusApi* | [**getMenuById**](docs/MenusApi.md#getMenuById) | **GET** /api/v1.0/menus/{menuId} | Get menu by identifier +*Flipdish.MenusApi* | [**getMenuItemMetadata**](docs/MenusApi.md#getMenuItemMetadata) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Get menu item metadata +*Flipdish.MenusApi* | [**getMenuItemMetadataByKey**](docs/MenusApi.md#getMenuItemMetadataByKey) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Get menu item metadata by key +*Flipdish.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 +*Flipdish.MenusApi* | [**getMenuName**](docs/MenusApi.md#getMenuName) | **GET** /api/v1.0/menus/{menuId}/name | Get Menus Name +*Flipdish.MenusApi* | [**getMenuStoreNames**](docs/MenusApi.md#getMenuStoreNames) | **GET** /api/v1.0/menus/{menuId}/stores | Get menus store names +*Flipdish.MenusApi* | [**getMenuTaxDetails**](docs/MenusApi.md#getMenuTaxDetails) | **GET** /api/v1.0/menus/{menuId}/tax | Get menus tax details +*Flipdish.MenusApi* | [**getMenusByAppId**](docs/MenusApi.md#getMenusByAppId) | **GET** /api/v1.0/{appId}/menus | Get menus by appId +*Flipdish.MenusApi* | [**getMenusCheckpoints**](docs/MenusApi.md#getMenusCheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | Get a Menus Checkpoints +*Flipdish.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 +*Flipdish.MenusApi* | [**menusGetMenuBulkShowHide**](docs/MenusApi.md#menusGetMenuBulkShowHide) | **GET** /api/v1.0/menus/{menuId}/bulkshowhide/list | Get bulk show/hide menu items and option set items +*Flipdish.MenusApi* | [**menusIsWhiteLabelMigratedToRms**](docs/MenusApi.md#menusIsWhiteLabelMigratedToRms) | **GET** /api/v1.0/menus/isWhiteLabelMigratedToRms | PRIVATE API, TEMPORARY ENDPOINT RMS can check if a white label is migrated to RMS +*Flipdish.MenusApi* | [**menusMarkWhiteLabelAsMigratedToRms**](docs/MenusApi.md#menusMarkWhiteLabelAsMigratedToRms) | **POST** /api/v1.0/menus/markWhiteLabelAsMigratedToRms | PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as migrated to RMS, which will block all Menu editing operations via Zeus +*Flipdish.MenusApi* | [**menusMarkWhiteLabelAsNotMigratedToRms**](docs/MenusApi.md#menusMarkWhiteLabelAsNotMigratedToRms) | **POST** /api/v1.0/menus/markWhiteLabelAsNotMigratedToRms | PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as NOT migrated to RMS, which will unblock all Menu editing operations via Zeus +*Flipdish.MenusApi* | [**menusSetDisplayOnMenuTax**](docs/MenusApi.md#menusSetDisplayOnMenuTax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | Set if tax shows for a Menu +*Flipdish.MenusApi* | [**menusSetItemDisplayOrders**](docs/MenusApi.md#menusSetItemDisplayOrders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | Re-arrange Sections within a Menu +*Flipdish.MenusApi* | [**menusShowHideBulkItems**](docs/MenusApi.md#menusShowHideBulkItems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | Bulk show/hide menu items or option set items +*Flipdish.MenusApi* | [**menusUpdateTaxType**](docs/MenusApi.md#menusUpdateTaxType) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | Set the type of Tax on a Menu +*Flipdish.MenusApi* | [**menusUpsertTaxRate**](docs/MenusApi.md#menusUpsertTaxRate) | **POST** /api/v1.0/menus/{menuId}/taxrate | Add/Update a Tax Rate +*Flipdish.MenusApi* | [**restoreAMenuCheckpoint**](docs/MenusApi.md#restoreAMenuCheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | Restore a Menu to a checkpoint +*Flipdish.MenusApi* | [**setMenuItemMetadata**](docs/MenusApi.md#setMenuItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Update menu item metadata +*Flipdish.MenusApi* | [**setMenuItemOptionSetItemMetadata**](docs/MenusApi.md#setMenuItemOptionSetItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Update menu item option set item metadata +*Flipdish.MenusApi* | [**setMenuLock**](docs/MenusApi.md#setMenuLock) | **POST** /api/v1.0/menus/{menuId}/lock | Lock/Unlock a Menu for Editing +*Flipdish.MenusApi* | [**setMenuName**](docs/MenusApi.md#setMenuName) | **POST** /api/v1.0/menus/{menuId}/name | Set Menus Name +*Flipdish.MenusApi* | [**updateMenu**](docs/MenusApi.md#updateMenu) | **POST** /api/v1.0/menus/{menuId} | Update menu +*Flipdish.MenusApi* | [**uploadMenuImage**](docs/MenusApi.md#uploadMenuImage) | **POST** /api/v1.0/menus/{menuId}/image | Upload menu image +*Flipdish.MenusApi* | [**uploadNewMenuForApp**](docs/MenusApi.md#uploadNewMenuForApp) | **POST** /api/v1.0/{appId}/menus/xlsx | Create a new menu from xlsx file. +*Flipdish.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 +*Flipdish.MenusNutritionInfoApi* | [**addOrUpdateMenuItemOptionSetItemNutritionInfo**](docs/MenusNutritionInfoApi.md#addOrUpdateMenuItemOptionSetItemNutritionInfo) | **POST** /api/v1.0/menus/{menuId}/menuItemOption/{publicId}/nutrition | Add or update menuitem optionsetitem nutrition info its publicId +*Flipdish.MenusNutritionInfoApi* | [**addOrUpdateMenuNutritionInfoByMenuId**](docs/MenusNutritionInfoApi.md#addOrUpdateMenuNutritionInfoByMenuId) | **POST** /api/v1.0/menus/{menuId}/nutrition | Add or update menu nutrition by identifier +*Flipdish.MenusNutritionInfoApi* | [**deleteMenuNutritionInfoByMenuId**](docs/MenusNutritionInfoApi.md#deleteMenuNutritionInfoByMenuId) | **DELETE** /api/v1.0/menus/{menuId}/nutrition | Delete menu nutrition information by menuId +*Flipdish.MenusNutritionInfoApi* | [**getAllergens**](docs/MenusNutritionInfoApi.md#getAllergens) | **GET** /api/v1.0/{appId}/menus/nutrition/allergens | Get allergens +*Flipdish.MenusNutritionInfoApi* | [**getMenuNutritionInfoByMenuId**](docs/MenusNutritionInfoApi.md#getMenuNutritionInfoByMenuId) | **GET** /api/v1.0/menus/{menuId}/nutrition | Get menu nutrition by menuId +*Flipdish.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 +*Flipdish.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 +*Flipdish.MenusNutritionInfoV2Api* | [**getAllergensV2**](docs/MenusNutritionInfoV2Api.md#getAllergensV2) | **GET** /api/v1.0/{appId}/menus/nutritionv2/allergens | Get allergens +*Flipdish.MenusNutritionInfoV2Api* | [**getMenuNutritionInfoV2ByMenuId**](docs/MenusNutritionInfoV2Api.md#getMenuNutritionInfoV2ByMenuId) | **GET** /api/v1.0/{appId}/menus/{menuId}/nutritionv2 | Get menu nutrition by menuId +*Flipdish.MetafieldDefinitionsApi* | [**createMetafieldDefinition**](docs/MetafieldDefinitionsApi.md#createMetafieldDefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +*Flipdish.MetafieldDefinitionsApi* | [**getMetafieldDefinitionByKey**](docs/MetafieldDefinitionsApi.md#getMetafieldDefinitionByKey) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | +*Flipdish.MetafieldDefinitionsApi* | [**getMetafieldDefinitions**](docs/MetafieldDefinitionsApi.md#getMetafieldDefinitions) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +*Flipdish.MetafieldDefinitionsApi* | [**getOwnerEntityConfigurations**](docs/MetafieldDefinitionsApi.md#getOwnerEntityConfigurations) | **GET** /api/v1.0/{appId}/metafields/definitions | +*Flipdish.MetafieldDefinitionsApi* | [**getOwnerEntityRecommendations**](docs/MetafieldDefinitionsApi.md#getOwnerEntityRecommendations) | **GET** /api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity} | +*Flipdish.MetafieldDefinitionsApi* | [**updateMetafieldDefinition**](docs/MetafieldDefinitionsApi.md#updateMetafieldDefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | +*Flipdish.MobileAppsApi* | [**getAppConfigSalesChannel**](docs/MobileAppsApi.md#getAppConfigSalesChannel) | **GET** /api/v1.0/mobileapps/{appId}/saleschannel/details | +*Flipdish.MobileAppsApi* | [**getStatistics**](docs/MobileAppsApi.md#getStatistics) | **GET** /api/v1.0/mobileapps/{appId}/statistics | +*Flipdish.MobileAppsApi* | [**getSubmissionDetails**](docs/MobileAppsApi.md#getSubmissionDetails) | **GET** /api/v1.0/mobileapps/{appId}/submission/details | +*Flipdish.MobileAppsApi* | [**getSubmissionStatus**](docs/MobileAppsApi.md#getSubmissionStatus) | **GET** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +*Flipdish.MobileAppsApi* | [**publish**](docs/MobileAppsApi.md#publish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/publish | +*Flipdish.MobileAppsApi* | [**resubmission**](docs/MobileAppsApi.md#resubmission) | **POST** /api/v1.0/mobileapps/{appId}/resubmission | +*Flipdish.MobileAppsApi* | [**submission**](docs/MobileAppsApi.md#submission) | **POST** /api/v1.0/mobileapps/{appId}/submission | +*Flipdish.MobileAppsApi* | [**unpublish**](docs/MobileAppsApi.md#unpublish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/unpublish | +*Flipdish.MobileAppsApi* | [**updateAppConfigSalesChannel**](docs/MobileAppsApi.md#updateAppConfigSalesChannel) | **POST** /api/v1.0/mobileapps/{appId}/saleschannel | +*Flipdish.MobileAppsApi* | [**updateSubmissionStatus**](docs/MobileAppsApi.md#updateSubmissionStatus) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +*Flipdish.MobileAppsApi* | [**uploadImage**](docs/MobileAppsApi.md#uploadImage) | **POST** /api/v1.0/mobileapps/{appId}/submission/image | +*Flipdish.OAuthClientsApi* | [**addRedirectUri**](docs/OAuthClientsApi.md#addRedirectUri) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | +*Flipdish.OAuthClientsApi* | [**createOAuthApp**](docs/OAuthClientsApi.md#createOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients | +*Flipdish.OAuthClientsApi* | [**deleteOAuthApp**](docs/OAuthClientsApi.md#deleteOAuthApp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +*Flipdish.OAuthClientsApi* | [**getOAuthApps**](docs/OAuthClientsApi.md#getOAuthApps) | **GET** /api/v1.0/{appId}/oauthclients | +*Flipdish.OAuthClientsApi* | [**getOAuthClientByClientId**](docs/OAuthClientsApi.md#getOAuthClientByClientId) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +*Flipdish.OAuthClientsApi* | [**getOAuthClientSecret**](docs/OAuthClientsApi.md#getOAuthClientSecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | +*Flipdish.OAuthClientsApi* | [**getOauthAccessToken**](docs/OAuthClientsApi.md#getOauthAccessToken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | +*Flipdish.OAuthClientsApi* | [**getRedirectUris**](docs/OAuthClientsApi.md#getRedirectUris) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | +*Flipdish.OAuthClientsApi* | [**oAuthClientsGetApplications**](docs/OAuthClientsApi.md#oAuthClientsGetApplications) | **GET** /api/v1.0/{appId}/oauthclients/appnames | +*Flipdish.OAuthClientsApi* | [**removeRedirectUri**](docs/OAuthClientsApi.md#removeRedirectUri) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId} | +*Flipdish.OAuthClientsApi* | [**updateOAuthApp**](docs/OAuthClientsApi.md#updateOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +*Flipdish.OnboardingApi* | [**onboardingGetOnboardingConfig**](docs/OnboardingApi.md#onboardingGetOnboardingConfig) | **GET** /api/v1.0/clients/{appId}/onboarding/config | +*Flipdish.OnboardingApi* | [**onboardingGetOnboardingConfigs**](docs/OnboardingApi.md#onboardingGetOnboardingConfigs) | **GET** /api/v1.0/clients/{appId}/onboarding/configs | +*Flipdish.OnboardingApi* | [**onboardingGetOnboardingItems**](docs/OnboardingApi.md#onboardingGetOnboardingItems) | **GET** /api/v1.0/clients/{appId}/onboarding/stores/{storeId} | +*Flipdish.OnboardingApi* | [**onboardingGetOnboardingItemsV2**](docs/OnboardingApi.md#onboardingGetOnboardingItemsV2) | **GET** /api/v1.0/clients/{appId}/onboarding/stores | +*Flipdish.OnboardingApi* | [**onboardingUpdateOnboardingConfig**](docs/OnboardingApi.md#onboardingUpdateOnboardingConfig) | **POST** /api/v1.0/clients/{appId}/onboarding/config | +*Flipdish.OnboardingApi* | [**onboardingUpdateOnboardingConfigById**](docs/OnboardingApi.md#onboardingUpdateOnboardingConfigById) | **POST** /api/v1.0/clients/{appId}/onboarding/config/{configId} | +*Flipdish.OnboardingApi* | [**onboardingUpdateOnboardingItem**](docs/OnboardingApi.md#onboardingUpdateOnboardingItem) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/{storeId}/items/{onboardingItemId} | +*Flipdish.OnboardingApi* | [**onboardingUpdateOnboardingItemV2**](docs/OnboardingApi.md#onboardingUpdateOnboardingItemV2) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/items/{onboardingItemId} | +*Flipdish.OrderBatchesApi* | [**getAllOrderBatches**](docs/OrderBatchesApi.md#getAllOrderBatches) | **GET** /api/v1.0/{appId}/order-batches | +*Flipdish.OrderBatchesApi* | [**getOrderBatch**](docs/OrderBatchesApi.md#getOrderBatch) | **GET** /api/v1.0/{appId}/order-batches/{orderBatchId} | +*Flipdish.OrderBatchingConfigurationApi* | [**get**](docs/OrderBatchingConfigurationApi.md#get) | **GET** /api/v1.0/stores/{storeId}/order-batching-configuration | +*Flipdish.OrderBatchingConfigurationApi* | [**post**](docs/OrderBatchingConfigurationApi.md#post) | **POST** /api/v1.0/stores/{storeId}/order-batching-configuration | +*Flipdish.OrdersApi* | [**acceptOrder**](docs/OrdersApi.md#acceptOrder) | **POST** /api/v1.0/orders/{id}/accept | +*Flipdish.OrdersApi* | [**dispatchOrder**](docs/OrdersApi.md#dispatchOrder) | **POST** /api/v1.0/orders/{id}/dispatch | +*Flipdish.OrdersApi* | [**getDeliveryInformation**](docs/OrdersApi.md#getDeliveryInformation) | **GET** /api/v1.0/orders/{orderId}/deliveryinfo | +*Flipdish.OrdersApi* | [**getFulfillmentState**](docs/OrdersApi.md#getFulfillmentState) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state | +*Flipdish.OrdersApi* | [**getFulfillmentStatusWithDetailsAndActions**](docs/OrdersApi.md#getFulfillmentStatusWithDetailsAndActions) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state/details | +*Flipdish.OrdersApi* | [**getOrderById**](docs/OrdersApi.md#getOrderById) | **GET** /api/v1.0/orders/{id} | +*Flipdish.OrdersApi* | [**getOrders**](docs/OrdersApi.md#getOrders) | **GET** /api/v1.0/orders | +*Flipdish.OrdersApi* | [**getOrdersSummary**](docs/OrdersApi.md#getOrdersSummary) | **GET** /api/v1.0/{appId}/orders/summaries | +*Flipdish.OrdersApi* | [**getOrdersSummaryNew**](docs/OrdersApi.md#getOrdersSummaryNew) | **GET** /api/v1.0/{appId}/orders/summariesNew | +*Flipdish.OrdersApi* | [**getReadyToProcess**](docs/OrdersApi.md#getReadyToProcess) | **GET** /api/v1.0/{appId}/orders/ready_to_process | +*Flipdish.OrdersApi* | [**refundOrder**](docs/OrdersApi.md#refundOrder) | **POST** /api/v1.0/orders/{id}/refund | +*Flipdish.OrdersApi* | [**rejectOrder**](docs/OrdersApi.md#rejectOrder) | **POST** /api/v1.0/orders/{id}/reject | +*Flipdish.OrdersApi* | [**searchFulfillmentStatuses**](docs/OrdersApi.md#searchFulfillmentStatuses) | **GET** /api/v1.0/{appId}/orders/fulfillmentstatuses | +*Flipdish.OrdersApi* | [**updateDeliveryInformation**](docs/OrdersApi.md#updateDeliveryInformation) | **POST** /api/v1.0/orders/{orderId}/deliveryinfo | +*Flipdish.OrdersApi* | [**updateFulfillmentState**](docs/OrdersApi.md#updateFulfillmentState) | **POST** /api/v1.0/orders/{orderId}/fulfillment/state | +*Flipdish.PaymentIntentsApi* | [**getPaymentIntent**](docs/PaymentIntentsApi.md#getPaymentIntent) | **GET** /api/v1.0/payment_intents/{paymentIntentId} | +*Flipdish.PaymentsApi* | [**getOrderPaymentInformation**](docs/PaymentsApi.md#getOrderPaymentInformation) | **GET** /api/v1.0/payments/payment/{orderId}/refundable | +*Flipdish.PayoutReportsApi* | [**getPayoutReport3Details**](docs/PayoutReportsApi.md#getPayoutReport3Details) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/details | +*Flipdish.PayoutReportsApi* | [**getPayoutReport3Overview**](docs/PayoutReportsApi.md#getPayoutReport3Overview) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/overview | +*Flipdish.PayoutReportsApi* | [**getPayoutReport3RefundedOrders**](docs/PayoutReportsApi.md#getPayoutReport3RefundedOrders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/refundedOrders | +*Flipdish.PayoutReportsApi* | [**payoutReport3ExportPayoutChargebacks**](docs/PayoutReportsApi.md#payoutReport3ExportPayoutChargebacks) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/chargebacks | +*Flipdish.PayoutReportsApi* | [**payoutReport3ExportPayoutOrders**](docs/PayoutReportsApi.md#payoutReport3ExportPayoutOrders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/orders | +*Flipdish.PayoutReportsApi* | [**payoutReport3ExportPayoutPosSales**](docs/PayoutReportsApi.md#payoutReport3ExportPayoutPosSales) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/possales | +*Flipdish.PayoutReportsApi* | [**payoutReport3ExportPayoutRefundedOrders**](docs/PayoutReportsApi.md#payoutReport3ExportPayoutRefundedOrders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/refundedOrders | +*Flipdish.PayoutsApi* | [**getPayout**](docs/PayoutsApi.md#getPayout) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId} | +*Flipdish.PayoutsApi* | [**getPayoutChargebacks**](docs/PayoutsApi.md#getPayoutChargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | +*Flipdish.PayoutsApi* | [**getPayoutOrders**](docs/PayoutsApi.md#getPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | +*Flipdish.PayoutsApi* | [**getPayoutOtherCharges**](docs/PayoutsApi.md#getPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | +*Flipdish.PayoutsApi* | [**getPayoutRefunds**](docs/PayoutsApi.md#getPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | +*Flipdish.PayoutsApi* | [**getPayoutSummaries**](docs/PayoutsApi.md#getPayoutSummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | +*Flipdish.PayoutsApi* | [**getPayouts**](docs/PayoutsApi.md#getPayouts) | **GET** /api/v1.0/{appId}/payouts | +*Flipdish.PayoutsExportApi* | [**exportPayoutChargebacks**](docs/PayoutsExportApi.md#exportPayoutChargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export | +*Flipdish.PayoutsExportApi* | [**exportPayoutOrders**](docs/PayoutsExportApi.md#exportPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export | +*Flipdish.PayoutsExportApi* | [**exportPayoutOtherCharges**](docs/PayoutsExportApi.md#exportPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export | +*Flipdish.PayoutsExportApi* | [**exportPayoutRefunds**](docs/PayoutsExportApi.md#exportPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export | +*Flipdish.PayoutsExportApi* | [**exportPayoutStores**](docs/PayoutsExportApi.md#exportPayoutStores) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export | +*Flipdish.PayoutsExportApi* | [**exportPayouts**](docs/PayoutsExportApi.md#exportPayouts) | **GET** /api/v1.0/{appId}/payouts/export | +*Flipdish.ProcessingFeeConfigsApi* | [**getProcessingFeeConfigsByStoreIds**](docs/ProcessingFeeConfigsApi.md#getProcessingFeeConfigsByStoreIds) | **GET** /api/v1.0/processingfeeconfigs | +*Flipdish.PushNotificationsApi* | [**deletePushNotification**](docs/PushNotificationsApi.md#deletePushNotification) | **DELETE** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | +*Flipdish.PushNotificationsApi* | [**getPushNotifications**](docs/PushNotificationsApi.md#getPushNotifications) | **GET** /api/v1.0/{appId}/pushnotifications | +*Flipdish.PushNotificationsApi* | [**schedulePushNotification**](docs/PushNotificationsApi.md#schedulePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications | +*Flipdish.PushNotificationsApi* | [**updatePushNotification**](docs/PushNotificationsApi.md#updatePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | +*Flipdish.ReceiptsApi* | [**getReceipt**](docs/ReceiptsApi.md#getReceipt) | **GET** /api/v1.0/receipts/{orderId} | +*Flipdish.RestaurantVouchersPayGreenApi* | [**createPayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#createPayGreenConfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen | +*Flipdish.RestaurantVouchersPayGreenApi* | [**deletePayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#deletePayGreenConfiguration) | **DELETE** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +*Flipdish.RestaurantVouchersPayGreenApi* | [**getElegibleStores**](docs/RestaurantVouchersPayGreenApi.md#getElegibleStores) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores | +*Flipdish.RestaurantVouchersPayGreenApi* | [**getPayGreenConfigurations**](docs/RestaurantVouchersPayGreenApi.md#getPayGreenConfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen | +*Flipdish.RestaurantVouchersPayGreenApi* | [**getStoreAvailablePayGreenConfigurations**](docs/RestaurantVouchersPayGreenApi.md#getStoreAvailablePayGreenConfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}/available-configurations | +*Flipdish.RestaurantVouchersPayGreenApi* | [**getStorePayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#getStorePayGreenConfiguration) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId} | +*Flipdish.RestaurantVouchersPayGreenApi* | [**listPayGreenConfigurations**](docs/RestaurantVouchersPayGreenApi.md#listPayGreenConfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +*Flipdish.RestaurantVouchersPayGreenApi* | [**updatePayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#updatePayGreenConfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +*Flipdish.RestaurantVouchersPayGreenApi* | [**updateStorePayGreenConfiguration**](docs/RestaurantVouchersPayGreenApi.md#updateStorePayGreenConfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId} | +*Flipdish.SearchApi* | [**searchRestaurants**](docs/SearchApi.md#searchRestaurants) | **GET** /api/v1.0/search/restaurants | +*Flipdish.SmsProviderCredentialsApi* | [**getBrandSmsProviderCredentialByServiceType**](docs/SmsProviderCredentialsApi.md#getBrandSmsProviderCredentialByServiceType) | **GET** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +*Flipdish.SmsProviderCredentialsApi* | [**getBrandSmsProviderCredentials**](docs/SmsProviderCredentialsApi.md#getBrandSmsProviderCredentials) | **GET** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials | +*Flipdish.SmsProviderCredentialsApi* | [**smsProviderCredentialDelete**](docs/SmsProviderCredentialsApi.md#smsProviderCredentialDelete) | **DELETE** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +*Flipdish.SmsProviderCredentialsApi* | [**smsProviderCredentialUpdate**](docs/SmsProviderCredentialsApi.md#smsProviderCredentialUpdate) | **POST** /api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType} | +*Flipdish.SmsProviderCredentialsApi* | [**smsProviderCredentialsBulkUpsert**](docs/SmsProviderCredentialsApi.md#smsProviderCredentialsBulkUpsert) | **POST** /api/v1.0/sms-providers/bulk-upsert | +*Flipdish.StoreGroupsApi* | [**assignStoresToStoreGroup**](docs/StoreGroupsApi.md#assignStoresToStoreGroup) | **POST** /api/v1.0/{appId}/storegroups/{storeGroupId}/assignStores | +*Flipdish.StoreGroupsApi* | [**createStoreGroup**](docs/StoreGroupsApi.md#createStoreGroup) | **POST** /api/v1.0/{appNameId}/storegroups | +*Flipdish.StoreGroupsApi* | [**getStoreGroup**](docs/StoreGroupsApi.md#getStoreGroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | +*Flipdish.StoreGroupsApi* | [**getStoreGroups**](docs/StoreGroupsApi.md#getStoreGroups) | **GET** /api/v1.0/{appNameId}/storegroups | +*Flipdish.StoreGroupsApi* | [**getStoreGroupsExtended**](docs/StoreGroupsApi.md#getStoreGroupsExtended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | +*Flipdish.StoreGroupsApi* | [**removeStoreGroup**](docs/StoreGroupsApi.md#removeStoreGroup) | **DELETE** /api/v1.0/storegroups/{storeGroupId} | +*Flipdish.StoreGroupsApi* | [**setCustomerMessages**](docs/StoreGroupsApi.md#setCustomerMessages) | **POST** /api/v1.0/storegroups/{storeGroupId}/CustomerMessages | +*Flipdish.StoreGroupsApi* | [**updateStoreGroup**](docs/StoreGroupsApi.md#updateStoreGroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | +*Flipdish.StoreOrderCapacityApi* | [**getStoreOrderCapacity**](docs/StoreOrderCapacityApi.md#getStoreOrderCapacity) | **GET** /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | +*Flipdish.StoreOrderCapacityApi* | [**updateStoreOrderCapacityConfig**](docs/StoreOrderCapacityApi.md#updateStoreOrderCapacityConfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | +*Flipdish.StoresApi* | [**archiveStore**](docs/StoresApi.md#archiveStore) | **POST** /api/v1.0/stores/{storeId}/archive | +*Flipdish.StoresApi* | [**assignMenu**](docs/StoresApi.md#assignMenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | +*Flipdish.StoresApi* | [**cloneStore**](docs/StoresApi.md#cloneStore) | **POST** /api/v1.0/stores/{storeId}/clone | +*Flipdish.StoresApi* | [**configureStoreServiceCharge**](docs/StoresApi.md#configureStoreServiceCharge) | **POST** /api/v1.0/stores/{storeId}/servicecharge | +*Flipdish.StoresApi* | [**createBusinessHoursOverrideByStoreId**](docs/StoresApi.md#createBusinessHoursOverrideByStoreId) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | +*Flipdish.StoresApi* | [**createStore**](docs/StoresApi.md#createStore) | **POST** /api/v1.0/stores | +*Flipdish.StoresApi* | [**createStoreInProperty**](docs/StoresApi.md#createStoreInProperty) | **POST** /api/v1.0/properties/{propertyId}/stores | +*Flipdish.StoresApi* | [**deleteBusinessHoursOverride**](docs/StoresApi.md#deleteBusinessHoursOverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | +*Flipdish.StoresApi* | [**getBankAccountForStore**](docs/StoresApi.md#getBankAccountForStore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | +*Flipdish.StoresApi* | [**getBusinessHours**](docs/StoresApi.md#getBusinessHours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +*Flipdish.StoresApi* | [**getBusinessHoursOverrideByStoreId**](docs/StoresApi.md#getBusinessHoursOverrideByStoreId) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | +*Flipdish.StoresApi* | [**getEndOfDayReport**](docs/StoresApi.md#getEndOfDayReport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | +*Flipdish.StoresApi* | [**getPreOrderConfig**](docs/StoresApi.md#getPreOrderConfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +*Flipdish.StoresApi* | [**getPreOrderPreview**](docs/StoresApi.md#getPreOrderPreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | +*Flipdish.StoresApi* | [**getProcessingFeeConfigsByStoreId**](docs/StoresApi.md#getProcessingFeeConfigsByStoreId) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | +*Flipdish.StoresApi* | [**getProcessingFeeConfigsByStoreIdAndPaymentAccountType**](docs/StoresApi.md#getProcessingFeeConfigsByStoreIdAndPaymentAccountType) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | +*Flipdish.StoresApi* | [**getStoreById**](docs/StoresApi.md#getStoreById) | **GET** /api/v1.0/stores/{storeId} | +*Flipdish.StoresApi* | [**getStoreDeliveryFeeConfig**](docs/StoresApi.md#getStoreDeliveryFeeConfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +*Flipdish.StoresApi* | [**getStoreFeeConfig**](docs/StoresApi.md#getStoreFeeConfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig | +*Flipdish.StoresApi* | [**getStoreHeadersByAppId**](docs/StoresApi.md#getStoreHeadersByAppId) | **GET** /api/v1.0/{appId}/stores/header | +*Flipdish.StoresApi* | [**getStoreLeadTimes**](docs/StoresApi.md#getStoreLeadTimes) | **GET** /api/v1.0/stores/{storeId}/leadTimes | +*Flipdish.StoresApi* | [**getStoreNetSales**](docs/StoresApi.md#getStoreNetSales) | **GET** /api/v1.0/{appId}/stores/stats | +*Flipdish.StoresApi* | [**getStoreServiceCharge**](docs/StoresApi.md#getStoreServiceCharge) | **GET** /api/v1.0/stores/{storeId}/servicecharge | +*Flipdish.StoresApi* | [**getStores**](docs/StoresApi.md#getStores) | **GET** /api/v1.0/stores | +*Flipdish.StoresApi* | [**getStoresByAppId**](docs/StoresApi.md#getStoresByAppId) | **GET** /api/v1.0/{appId}/stores | +*Flipdish.StoresApi* | [**getStoresByStoreIdWithValidations**](docs/StoresApi.md#getStoresByStoreIdWithValidations) | **GET** /api/v1.0/{appId}/storevalidation/kiosk | +*Flipdish.StoresApi* | [**publishStore**](docs/StoresApi.md#publishStore) | **POST** /api/v1.0/stores/{storeId}/publish | +*Flipdish.StoresApi* | [**putStoreDeliveryFeeConfig**](docs/StoresApi.md#putStoreDeliveryFeeConfig) | **PUT** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +*Flipdish.StoresApi* | [**setBusinessHours**](docs/StoresApi.md#setBusinessHours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +*Flipdish.StoresApi* | [**setPreOrdeEnabled**](docs/StoresApi.md#setPreOrdeEnabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | +*Flipdish.StoresApi* | [**setStoreCollectionSettings**](docs/StoresApi.md#setStoreCollectionSettings) | **POST** /api/v1.0/stores/{storeId}/collectionsettings | +*Flipdish.StoresApi* | [**setStoreLeadTimes**](docs/StoresApi.md#setStoreLeadTimes) | **POST** /api/v1.0/stores/{storeId}/leadTimes | +*Flipdish.StoresApi* | [**storesSetPropertyId**](docs/StoresApi.md#storesSetPropertyId) | **POST** /api/v1.0/stores/{storeId}/propertyId/{propertyId} | +*Flipdish.StoresApi* | [**supportedSalesChannelsTypes**](docs/StoresApi.md#supportedSalesChannelsTypes) | **POST** /api/v1.0/properties/{propertyId}/stores/{storeId}/supportedSalesChannels | +*Flipdish.StoresApi* | [**unpublishStore**](docs/StoresApi.md#unpublishStore) | **POST** /api/v1.0/stores/{storeId}/unpublish | +*Flipdish.StoresApi* | [**updatePreOrderConfig**](docs/StoresApi.md#updatePreOrderConfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +*Flipdish.StoresApi* | [**updateStore**](docs/StoresApi.md#updateStore) | **POST** /api/v1.0/stores/{storeId} | +*Flipdish.StoresApi* | [**updateStoreAddress**](docs/StoresApi.md#updateStoreAddress) | **POST** /api/v1.0/stores/{storeId}/address | +*Flipdish.StoresApi* | [**updateStoreAddressCoordinates**](docs/StoresApi.md#updateStoreAddressCoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | +*Flipdish.StoresApi* | [**updateStoreAddressForm**](docs/StoresApi.md#updateStoreAddressForm) | **POST** /api/v1.0/stores/{storeId}/addressform | +*Flipdish.StripeCustomConnectApi* | [**createBankAccountAndConnectedAccount**](docs/StripeCustomConnectApi.md#createBankAccountAndConnectedAccount) | **POST** /api/v1.0/{appId}/customconnect/bank-account | +*Flipdish.StripeCustomConnectApi* | [**createStripeConnectedAccount**](docs/StripeCustomConnectApi.md#createStripeConnectedAccount) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account | +*Flipdish.StripeCustomConnectApi* | [**createStripeConnectedAccountLink**](docs/StripeCustomConnectApi.md#createStripeConnectedAccountLink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | +*Flipdish.StripeCustomConnectApi* | [**getCustomConnect**](docs/StripeCustomConnectApi.md#getCustomConnect) | **GET** /api/v1.0/{appId}/customconnect/{storeId} | +*Flipdish.StripeCustomConnectApi* | [**getVerificationStatus**](docs/StripeCustomConnectApi.md#getVerificationStatus) | **GET** /api/v1.0/{appId}/customconnect/verification-status | +*Flipdish.StripeCustomConnectApi* | [**setBankAccountBusinessType**](docs/StripeCustomConnectApi.md#setBankAccountBusinessType) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | +*Flipdish.StripeCustomConnectApi* | [**stripeCustomConnectRefresh**](docs/StripeCustomConnectApi.md#stripeCustomConnectRefresh) | **GET** /api/v1.0/{appId}/customconnect/refresh-link | +*Flipdish.StripeCustomConnectApi* | [**updateBankAccountDetails**](docs/StripeCustomConnectApi.md#updateBankAccountDetails) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details | +*Flipdish.StripeCustomConnectApi* | [**updatePayoutSchedule**](docs/StripeCustomConnectApi.md#updatePayoutSchedule) | **POST** /api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval} | +*Flipdish.StuartApi* | [**stuartCancelJob**](docs/StuartApi.md#stuartCancelJob) | **DELETE** /api/v1.0/stuart/jobs/{jobId} | +*Flipdish.StuartApi* | [**stuartGetJob**](docs/StuartApi.md#stuartGetJob) | **GET** /api/v1.0/stuart/jobs/{jobId} | +*Flipdish.StuartApi* | [**stuartGetStuartSettings**](docs/StuartApi.md#stuartGetStuartSettings) | **GET** /api/v1.0/stuart/settings/{storeId} | +*Flipdish.StuartApi* | [**stuartPostStuartSettings**](docs/StuartApi.md#stuartPostStuartSettings) | **POST** /api/v1.0/stuart/settings/{storeId} | +*Flipdish.SubscriptionsApi* | [**getSubscriptionById**](docs/SubscriptionsApi.md#getSubscriptionById) | **GET** /api/v1.0/{appId}/subscriptions/{subscriptionId} | +*Flipdish.SubscriptionsApi* | [**getSubscriptionsForApp**](docs/SubscriptionsApi.md#getSubscriptionsForApp) | **GET** /api/v1.0/{appId}/subscriptions | +*Flipdish.SubscriptionsApi* | [**hasCustomerGotPaymentMethodOnFile**](docs/SubscriptionsApi.md#hasCustomerGotPaymentMethodOnFile) | **GET** /api/v1.0/{appId}/subscriptions/hasPaymentMethod | +*Flipdish.TeammatesApi* | [**createTeammate**](docs/TeammatesApi.md#createTeammate) | **POST** /api/v1.0/{appId}/teammates | +*Flipdish.TeammatesApi* | [**deleteTeammate**](docs/TeammatesApi.md#deleteTeammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | +*Flipdish.TeammatesApi* | [**getTeammateByAppIdAndTeammateId**](docs/TeammatesApi.md#getTeammateByAppIdAndTeammateId) | **GET** /api/v1.0/{appId}/teammates/{id} | +*Flipdish.TeammatesApi* | [**getTeammatesByAppId**](docs/TeammatesApi.md#getTeammatesByAppId) | **GET** /api/v1.0/{appId}/teammates | +*Flipdish.TeammatesApi* | [**grantaccess**](docs/TeammatesApi.md#grantaccess) | **POST** /api/v1.0/{appId}/teammates/grantaccess | +*Flipdish.TeammatesApi* | [**redeemInvitation**](docs/TeammatesApi.md#redeemInvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | +*Flipdish.TeammatesApi* | [**teammatesAcceptInvitation**](docs/TeammatesApi.md#teammatesAcceptInvitation) | **GET** /api/v1.0/{appId}/teammates/accept/{otc} | +*Flipdish.TeammatesApi* | [**teammatesAcceptInvitations**](docs/TeammatesApi.md#teammatesAcceptInvitations) | **POST** /api/v1.0/teammates/acceptInvitations | +*Flipdish.TeammatesApi* | [**teammatesPendingInvitations**](docs/TeammatesApi.md#teammatesPendingInvitations) | **GET** /api/v1.0/teammates/pending-invitations | +*Flipdish.TeammatesApi* | [**updateTeammate**](docs/TeammatesApi.md#updateTeammate) | **POST** /api/v1.0/{appId}/teammates/{id} | +*Flipdish.TerminalIotApi* | [**getTerminalIotConnection**](docs/TerminalIotApi.md#getTerminalIotConnection) | **POST** /api/v1.0/terminaliot/connect | +*Flipdish.TipsApi* | [**tipConfigGet**](docs/TipsApi.md#tipConfigGet) | **GET** /api/v1.0/stores/{storeId}/tipconfig | +*Flipdish.TipsApi* | [**tipConfigUpsert**](docs/TipsApi.md#tipConfigUpsert) | **POST** /api/v1.0/stores/{storeId}/tipconfig | +*Flipdish.UsersApi* | [**addUserNote**](docs/UsersApi.md#addUserNote) | **POST** /api/v1.0/users/{userId}/AddUserNote | +*Flipdish.UsersApi* | [**addUserToRole**](docs/UsersApi.md#addUserToRole) | **POST** /api/v1.0/users/{userId}/AddUserToRole/{roleName} | +*Flipdish.UsersApi* | [**anonymizeUser**](docs/UsersApi.md#anonymizeUser) | **POST** /api/v1.0/users/{userId}/AnonymizeUser | +*Flipdish.UsersApi* | [**blockUserPhoneNumber**](docs/UsersApi.md#blockUserPhoneNumber) | **POST** /api/v1.0/users/{userId}/BlockUserPhoneNumber | +*Flipdish.UsersApi* | [**getPreviousOrderCountForStore**](docs/UsersApi.md#getPreviousOrderCountForStore) | **GET** /api/v1.0/users/{userId}/previousordercount/{storeId} | +*Flipdish.UsersApi* | [**getRestaurantUserAccounts**](docs/UsersApi.md#getRestaurantUserAccounts) | **GET** /api/v1.0/users/{userId}/RestaurantUserAccounts | +*Flipdish.UsersApi* | [**getRestaurantUserStores**](docs/UsersApi.md#getRestaurantUserStores) | **GET** /api/v1.0/users/{userId}/RestaurantUserStores | +*Flipdish.UsersApi* | [**getRoles**](docs/UsersApi.md#getRoles) | **GET** /api/v1.0/users/roles | +*Flipdish.UsersApi* | [**getRolesAndUnassignedRoles**](docs/UsersApi.md#getRolesAndUnassignedRoles) | **GET** /api/v1.0/users/{userId}/roles | +*Flipdish.UsersApi* | [**getUserById**](docs/UsersApi.md#getUserById) | **GET** /api/v1.0/users/{userId} | +*Flipdish.UsersApi* | [**getUserNotes**](docs/UsersApi.md#getUserNotes) | **GET** /api/v1.0/users/{userId}/UserNotes | +*Flipdish.UsersApi* | [**markUserAsFraudulent**](docs/UsersApi.md#markUserAsFraudulent) | **POST** /api/v1.0/users/{userId}/MarkUserAsFraudulent | +*Flipdish.UsersApi* | [**markUserAsSuspicious**](docs/UsersApi.md#markUserAsSuspicious) | **POST** /api/v1.0/users/{userId}/MarkUserAsSuspicious | +*Flipdish.UsersApi* | [**removeUserFromRole**](docs/UsersApi.md#removeUserFromRole) | **POST** /api/v1.0/users/{userId}/RemoveUserFromRole/{roleName} | +*Flipdish.UsersApi* | [**resetMfa**](docs/UsersApi.md#resetMfa) | **POST** /api/v1.0/users/{userId}/ResetMfa | +*Flipdish.UsersApi* | [**searchUsers**](docs/UsersApi.md#searchUsers) | **GET** /api/v1.0/users/search | +*Flipdish.UsersApi* | [**setCustomerName**](docs/UsersApi.md#setCustomerName) | **POST** /api/v1.0/users/{userId}/SetCustomerName | +*Flipdish.UsersApi* | [**setUserLanguage**](docs/UsersApi.md#setUserLanguage) | **POST** /api/v1.0/users/{userId}/SetLanguage/{languageId} | +*Flipdish.UsersApi* | [**unblockUserPhoneNumber**](docs/UsersApi.md#unblockUserPhoneNumber) | **POST** /api/v1.0/users/{userId}/UnblockUserPhoneNumber | +*Flipdish.VouchersApi* | [**createVoucher**](docs/VouchersApi.md#createVoucher) | **POST** /api/v1.0/vouchers/{appId} | +*Flipdish.VouchersApi* | [**getVoucherByCode**](docs/VouchersApi.md#getVoucherByCode) | **GET** /api/v1.0/{appId}/vouchers/code/{code} | +*Flipdish.VouchersApi* | [**getVoucherById**](docs/VouchersApi.md#getVoucherById) | **GET** /api/v1.0/vouchers/{voucherId} | +*Flipdish.VouchersApi* | [**getVoucherStatsById**](docs/VouchersApi.md#getVoucherStatsById) | **GET** /api/v1.0/vouchers/stats/{voucherId} | +*Flipdish.VouchersApi* | [**getVoucherValidityPeriods**](docs/VouchersApi.md#getVoucherValidityPeriods) | **GET** /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods | +*Flipdish.VouchersApi* | [**getVouchers**](docs/VouchersApi.md#getVouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | +*Flipdish.VouchersApi* | [**setVoucherValidityPeriodsSimplified**](docs/VouchersApi.md#setVoucherValidityPeriodsSimplified) | **POST** /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified | +*Flipdish.VouchersApi* | [**updateVoucher**](docs/VouchersApi.md#updateVoucher) | **POST** /api/v1.0/vouchers/{voucherId} | +*Flipdish.VouchersApi* | [**updateVoucherUsage**](docs/VouchersApi.md#updateVoucherUsage) | **POST** /api/v1.0/{appId}/vouchers/{voucherId}/usage | +*Flipdish.WebhooksApi* | [**createWebhookSubscription**](docs/WebhooksApi.md#createWebhookSubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +*Flipdish.WebhooksApi* | [**createWebhookSubscriptionEventNames**](docs/WebhooksApi.md#createWebhookSubscriptionEventNames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +*Flipdish.WebhooksApi* | [**deleteWebhookSubscription**](docs/WebhooksApi.md#deleteWebhookSubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | +*Flipdish.WebhooksApi* | [**deleteWebhookSubscriptionEventName**](docs/WebhooksApi.md#deleteWebhookSubscriptionEventName) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +*Flipdish.WebhooksApi* | [**getWebhookEventNames**](docs/WebhooksApi.md#getWebhookEventNames) | **GET** /api/v1.0/{appId}/webhooks/events | +*Flipdish.WebhooksApi* | [**getWebhookEventNamesBySubscriptionId**](docs/WebhooksApi.md#getWebhookEventNamesBySubscriptionId) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | +*Flipdish.WebhooksApi* | [**getWebhookEventSample**](docs/WebhooksApi.md#getWebhookEventSample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | +*Flipdish.WebhooksApi* | [**getWebhookLogs**](docs/WebhooksApi.md#getWebhookLogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | +*Flipdish.WebhooksApi* | [**getWebhookSubscriptions**](docs/WebhooksApi.md#getWebhookSubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +*Flipdish.WebhooksApi* | [**updateWebhookSubscription**](docs/WebhooksApi.md#updateWebhookSubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | +*Flipdish.WebsiteApi* | [**addTestimonial**](docs/WebsiteApi.md#addTestimonial) | **POST** /api/v1.0/{appId}/website/testimonial | +*Flipdish.WebsiteApi* | [**deleteTestimonial**](docs/WebsiteApi.md#deleteTestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +*Flipdish.WebsiteApi* | [**deleteWebsiteImage**](docs/WebsiteApi.md#deleteWebsiteImage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | +*Flipdish.WebsiteApi* | [**editTestimonial**](docs/WebsiteApi.md#editTestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +*Flipdish.WebsiteApi* | [**getIndexConfiguration**](docs/WebsiteApi.md#getIndexConfiguration) | **GET** /api/v1.0/{appId}/website/index | +*Flipdish.WebsiteApi* | [**setIndexConfiguration**](docs/WebsiteApi.md#setIndexConfiguration) | **POST** /api/v1.0/{appId}/website/index | +*Flipdish.WebsiteApi* | [**uploadWebsiteImage**](docs/WebsiteApi.md#uploadWebsiteImage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | +*Flipdish.WebsiteApi* | [**websiteCheckNow**](docs/WebsiteApi.md#websiteCheckNow) | **GET** /api/v1.0/{appId}/website/dnscheck | + + +## Documentation for Models + + - [Flipdish.Accept](docs/Accept.md) + - [Flipdish.AcceptInvitationResult](docs/AcceptInvitationResult.md) + - [Flipdish.AccountDetail](docs/AccountDetail.md) + - [Flipdish.AccountDetailBase](docs/AccountDetailBase.md) + - [Flipdish.AccountFieldDefinition](docs/AccountFieldDefinition.md) + - [Flipdish.AccountFieldKeyValuePair](docs/AccountFieldKeyValuePair.md) + - [Flipdish.AccountFieldsDefinitions](docs/AccountFieldsDefinitions.md) + - [Flipdish.AddressFormDisplayFormat](docs/AddressFormDisplayFormat.md) + - [Flipdish.AddressFormResponse](docs/AddressFormResponse.md) + - [Flipdish.AllMetadataResult](docs/AllMetadataResult.md) + - [Flipdish.Allergen](docs/Allergen.md) + - [Flipdish.AnalyticsClientEvent](docs/AnalyticsClientEvent.md) + - [Flipdish.ApmCurrencyDataPoint](docs/ApmCurrencyDataPoint.md) + - [Flipdish.ApmDataPoint](docs/ApmDataPoint.md) + - [Flipdish.ApmHourlyDataPoint](docs/ApmHourlyDataPoint.md) + - [Flipdish.ApmStatistics](docs/ApmStatistics.md) + - [Flipdish.ApmStatus](docs/ApmStatus.md) + - [Flipdish.App](docs/App.md) + - [Flipdish.AppChannelAssignment](docs/AppChannelAssignment.md) + - [Flipdish.AppCompliance](docs/AppCompliance.md) + - [Flipdish.AppConfigSalesChannel](docs/AppConfigSalesChannel.md) + - [Flipdish.AppConfigUpdateModel](docs/AppConfigUpdateModel.md) + - [Flipdish.AppCreatedEvent](docs/AppCreatedEvent.md) + - [Flipdish.AppInstall](docs/AppInstall.md) + - [Flipdish.AppLookup](docs/AppLookup.md) + - [Flipdish.AppStoreApp](docs/AppStoreApp.md) + - [Flipdish.AppStoreAppConfiguration](docs/AppStoreAppConfiguration.md) + - [Flipdish.AppStoreAppConfigurationSummary](docs/AppStoreAppConfigurationSummary.md) + - [Flipdish.AppStoreAppEntitlements](docs/AppStoreAppEntitlements.md) + - [Flipdish.AppStoreAppSummary](docs/AppStoreAppSummary.md) + - [Flipdish.AppStoreAppSupportInfo](docs/AppStoreAppSupportInfo.md) + - [Flipdish.AppStoreConfigCreatedEvent](docs/AppStoreConfigCreatedEvent.md) + - [Flipdish.AppStoreConfigDeletedEvent](docs/AppStoreConfigDeletedEvent.md) + - [Flipdish.AppStoreConfigUpdatedEvent](docs/AppStoreConfigUpdatedEvent.md) + - [Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent](docs/AppStoreSubscriptionChangeJobUpdatedEvent.md) + - [Flipdish.AppUpdatedEvent](docs/AppUpdatedEvent.md) + - [Flipdish.AssignedBankAccount](docs/AssignedBankAccount.md) + - [Flipdish.AuditLogFieldChangeInformation](docs/AuditLogFieldChangeInformation.md) + - [Flipdish.BalanceDetails](docs/BalanceDetails.md) + - [Flipdish.BankAccount](docs/BankAccount.md) + - [Flipdish.BankAccountAssignedEvent](docs/BankAccountAssignedEvent.md) + - [Flipdish.BankAccountCreate](docs/BankAccountCreate.md) + - [Flipdish.BankAccountCreatedEvent](docs/BankAccountCreatedEvent.md) + - [Flipdish.BankAccountDeletedEvent](docs/BankAccountDeletedEvent.md) + - [Flipdish.BankAccountDetail](docs/BankAccountDetail.md) + - [Flipdish.BankAccountDetailsUpdateRequest](docs/BankAccountDetailsUpdateRequest.md) + - [Flipdish.BankAccountSummary](docs/BankAccountSummary.md) + - [Flipdish.BankAccountUpdatedEvent](docs/BankAccountUpdatedEvent.md) + - [Flipdish.BluetoothTerminalStatus](docs/BluetoothTerminalStatus.md) + - [Flipdish.BusinessHoursOverride](docs/BusinessHoursOverride.md) + - [Flipdish.BusinessHoursOverrideBase](docs/BusinessHoursOverrideBase.md) + - [Flipdish.BusinessHoursPeriod](docs/BusinessHoursPeriod.md) + - [Flipdish.BusinessHoursPeriodBase](docs/BusinessHoursPeriodBase.md) + - [Flipdish.CampaignStatistics](docs/CampaignStatistics.md) + - [Flipdish.CancellationToken](docs/CancellationToken.md) + - [Flipdish.CardReader](docs/CardReader.md) + - [Flipdish.CardReaderRegistrationRequest](docs/CardReaderRegistrationRequest.md) + - [Flipdish.CatalogGroupArchivedEvent](docs/CatalogGroupArchivedEvent.md) + - [Flipdish.CatalogGroupCreatedEvent](docs/CatalogGroupCreatedEvent.md) + - [Flipdish.CatalogGroupReference](docs/CatalogGroupReference.md) + - [Flipdish.CatalogGroupUpdatedEvent](docs/CatalogGroupUpdatedEvent.md) + - [Flipdish.CatalogImage](docs/CatalogImage.md) + - [Flipdish.CatalogItem](docs/CatalogItem.md) + - [Flipdish.CatalogItemArchivedEvent](docs/CatalogItemArchivedEvent.md) + - [Flipdish.CatalogItemCreatedEvent](docs/CatalogItemCreatedEvent.md) + - [Flipdish.CatalogItemUpdatedEvent](docs/CatalogItemUpdatedEvent.md) + - [Flipdish.CertificateCreatedEvent](docs/CertificateCreatedEvent.md) + - [Flipdish.CertificateRenewedEvent](docs/CertificateRenewedEvent.md) + - [Flipdish.ChangePasswordModel](docs/ChangePasswordModel.md) + - [Flipdish.Channel](docs/Channel.md) + - [Flipdish.ChannelStoresUpdatedEvent](docs/ChannelStoresUpdatedEvent.md) + - [Flipdish.ChargebackDetails](docs/ChargebackDetails.md) + - [Flipdish.ClientDevice](docs/ClientDevice.md) + - [Flipdish.ClientDeviceAssignEnrolledDevice](docs/ClientDeviceAssignEnrolledDevice.md) + - [Flipdish.ClientDeviceEnroll](docs/ClientDeviceEnroll.md) + - [Flipdish.ClientDeviceEnrollmentResult](docs/ClientDeviceEnrollmentResult.md) + - [Flipdish.ClientDeviceSummary](docs/ClientDeviceSummary.md) + - [Flipdish.ConfiguredStore](docs/ConfiguredStore.md) + - [Flipdish.Coordinates](docs/Coordinates.md) + - [Flipdish.CountryFormResponse](docs/CountryFormResponse.md) + - [Flipdish.CountryWithAccountFieldsDefinitions](docs/CountryWithAccountFieldsDefinitions.md) + - [Flipdish.CreateAccountModel](docs/CreateAccountModel.md) + - [Flipdish.CreateAppParameters](docs/CreateAppParameters.md) + - [Flipdish.CreateAppStoreApp](docs/CreateAppStoreApp.md) + - [Flipdish.CreateBasicAccountModel](docs/CreateBasicAccountModel.md) + - [Flipdish.CreateCatalogGroupReference](docs/CreateCatalogGroupReference.md) + - [Flipdish.CreateCatalogItem](docs/CreateCatalogItem.md) + - [Flipdish.CreateFulfillmentStatesConfiguration](docs/CreateFulfillmentStatesConfiguration.md) + - [Flipdish.CreateFullMenu](docs/CreateFullMenu.md) + - [Flipdish.CreateFullMenuItemOptionSet](docs/CreateFullMenuItemOptionSet.md) + - [Flipdish.CreateFullMenuItemOptionSetItem](docs/CreateFullMenuItemOptionSetItem.md) + - [Flipdish.CreateFullMenuSection](docs/CreateFullMenuSection.md) + - [Flipdish.CreateFullMenuSectionItem](docs/CreateFullMenuSectionItem.md) + - [Flipdish.CreateGroup](docs/CreateGroup.md) + - [Flipdish.CreateGroupReference](docs/CreateGroupReference.md) + - [Flipdish.CreateLocation](docs/CreateLocation.md) + - [Flipdish.CreateLocationArea](docs/CreateLocationArea.md) + - [Flipdish.CreateMenuSectionItemFromCatalogItems](docs/CreateMenuSectionItemFromCatalogItems.md) + - [Flipdish.CreateMenuTaxRate](docs/CreateMenuTaxRate.md) + - [Flipdish.CreateMetadata](docs/CreateMetadata.md) + - [Flipdish.CreateMetafieldDefinition](docs/CreateMetafieldDefinition.md) + - [Flipdish.CreatePayGreenConfigurationRequest](docs/CreatePayGreenConfigurationRequest.md) + - [Flipdish.CreateProduct](docs/CreateProduct.md) + - [Flipdish.CreateProductReference](docs/CreateProductReference.md) + - [Flipdish.CreatePromotion](docs/CreatePromotion.md) + - [Flipdish.CreateTeammate](docs/CreateTeammate.md) + - [Flipdish.CreateVoucher](docs/CreateVoucher.md) + - [Flipdish.CreatedMenuSectionItems](docs/CreatedMenuSectionItems.md) + - [Flipdish.CreditNoteDetails](docs/CreditNoteDetails.md) + - [Flipdish.CrossSellMenuItems](docs/CrossSellMenuItems.md) + - [Flipdish.CspReport](docs/CspReport.md) + - [Flipdish.CspReportRequest](docs/CspReportRequest.md) + - [Flipdish.CurrencyData](docs/CurrencyData.md) + - [Flipdish.Customer](docs/Customer.md) + - [Flipdish.CustomerConsentUpdatedEvent](docs/CustomerConsentUpdatedEvent.md) + - [Flipdish.CustomerCreateModel](docs/CustomerCreateModel.md) + - [Flipdish.CustomerCreatedEvent](docs/CustomerCreatedEvent.md) + - [Flipdish.CustomerDeliveryTrackingOrder](docs/CustomerDeliveryTrackingOrder.md) + - [Flipdish.CustomerDeliveryTrackingOrderLine](docs/CustomerDeliveryTrackingOrderLine.md) + - [Flipdish.CustomerMessages](docs/CustomerMessages.md) + - [Flipdish.CustomerSummary](docs/CustomerSummary.md) + - [Flipdish.CustomerUpdateModel](docs/CustomerUpdateModel.md) + - [Flipdish.CustomerUpdatedEvent](docs/CustomerUpdatedEvent.md) + - [Flipdish.Customers](docs/Customers.md) + - [Flipdish.DashboardEmbed](docs/DashboardEmbed.md) + - [Flipdish.DeliveryLocation](docs/DeliveryLocation.md) + - [Flipdish.DeliveryZone](docs/DeliveryZone.md) + - [Flipdish.DeliveryZoneBase](docs/DeliveryZoneBase.md) + - [Flipdish.DeliveryZoneCreatedEvent](docs/DeliveryZoneCreatedEvent.md) + - [Flipdish.DeliveryZoneDeletedEvent](docs/DeliveryZoneDeletedEvent.md) + - [Flipdish.DeliveryZoneUpdatedEvent](docs/DeliveryZoneUpdatedEvent.md) + - [Flipdish.DepositReturnFeesSummary](docs/DepositReturnFeesSummary.md) + - [Flipdish.DeviceSettings](docs/DeviceSettings.md) + - [Flipdish.DnsRecordInformation](docs/DnsRecordInformation.md) + - [Flipdish.DnsVerifiedEvent](docs/DnsVerifiedEvent.md) + - [Flipdish.DriverLoginModel](docs/DriverLoginModel.md) + - [Flipdish.DriverRequestLoginPinModel](docs/DriverRequestLoginPinModel.md) + - [Flipdish.DynamicFormField](docs/DynamicFormField.md) + - [Flipdish.DynamicFormFieldOption](docs/DynamicFormFieldOption.md) + - [Flipdish.DynamicFormRule](docs/DynamicFormRule.md) + - [Flipdish.DynamicFormRules](docs/DynamicFormRules.md) + - [Flipdish.EmvNotificationEvent](docs/EmvNotificationEvent.md) + - [Flipdish.EmvTerminal](docs/EmvTerminal.md) + - [Flipdish.EmvTerminalWithAssignments](docs/EmvTerminalWithAssignments.md) + - [Flipdish.EventSearchResult](docs/EventSearchResult.md) + - [Flipdish.ExecuteConfigurationActionRequest](docs/ExecuteConfigurationActionRequest.md) + - [Flipdish.ExecuteConfigurationActionResult](docs/ExecuteConfigurationActionResult.md) + - [Flipdish.ExternalStoreAuditLog](docs/ExternalStoreAuditLog.md) + - [Flipdish.ExternalStoreEvent](docs/ExternalStoreEvent.md) + - [Flipdish.FeeSummary](docs/FeeSummary.md) + - [Flipdish.Field](docs/Field.md) + - [Flipdish.FieldChangeInformation](docs/FieldChangeInformation.md) + - [Flipdish.FieldGroup](docs/FieldGroup.md) + - [Flipdish.FileCreationResult](docs/FileCreationResult.md) + - [Flipdish.FileDownloadResult](docs/FileDownloadResult.md) + - [Flipdish.FirebaseApp](docs/FirebaseApp.md) + - [Flipdish.FlipdishEventBase](docs/FlipdishEventBase.md) + - [Flipdish.FlipdishFeesDetails](docs/FlipdishFeesDetails.md) + - [Flipdish.FulfillentStatusActionItem](docs/FulfillentStatusActionItem.md) + - [Flipdish.FulfillmentStatesConfiguration](docs/FulfillmentStatesConfiguration.md) + - [Flipdish.FulfillmentStatesConfigurationSummary](docs/FulfillmentStatesConfigurationSummary.md) + - [Flipdish.FulfillmentStatesConfiguredStore](docs/FulfillmentStatesConfiguredStore.md) + - [Flipdish.FulfillmentStatusConfigurationItem](docs/FulfillmentStatusConfigurationItem.md) + - [Flipdish.GeoPointRequest](docs/GeoPointRequest.md) + - [Flipdish.GetReceiptByOrderIdQueryResponse](docs/GetReceiptByOrderIdQueryResponse.md) + - [Flipdish.GoogleAddress](docs/GoogleAddress.md) + - [Flipdish.GoogleAddressComponent](docs/GoogleAddressComponent.md) + - [Flipdish.GoogleAddressResult](docs/GoogleAddressResult.md) + - [Flipdish.GoogleCoordinates](docs/GoogleCoordinates.md) + - [Flipdish.GoogleGeometry](docs/GoogleGeometry.md) + - [Flipdish.GoogleLocation](docs/GoogleLocation.md) + - [Flipdish.GoogleViewport](docs/GoogleViewport.md) + - [Flipdish.Group](docs/Group.md) + - [Flipdish.GroupReference](docs/GroupReference.md) + - [Flipdish.GroupedCoordinates](docs/GroupedCoordinates.md) + - [Flipdish.HasPaymentMethodResponse](docs/HasPaymentMethodResponse.md) + - [Flipdish.HomeAction](docs/HomeAction.md) + - [Flipdish.HomeStatistics](docs/HomeStatistics.md) + - [Flipdish.HttpPostedFileBase](docs/HttpPostedFileBase.md) + - [Flipdish.HydraAssignedEvent](docs/HydraAssignedEvent.md) + - [Flipdish.HydraConfig](docs/HydraConfig.md) + - [Flipdish.HydraConnectionStatusChangedEvent](docs/HydraConnectionStatusChangedEvent.md) + - [Flipdish.HydraDeviceDetails](docs/HydraDeviceDetails.md) + - [Flipdish.HydraRegistrationRequest](docs/HydraRegistrationRequest.md) + - [Flipdish.HydraRequestResetEvent](docs/HydraRequestResetEvent.md) + - [Flipdish.HydraSettingChangedEvent](docs/HydraSettingChangedEvent.md) + - [Flipdish.HydraStatus](docs/HydraStatus.md) + - [Flipdish.HydraStoreAssignedEvent](docs/HydraStoreAssignedEvent.md) + - [Flipdish.HydraStoreData](docs/HydraStoreData.md) + - [Flipdish.HydraStoreUnassignedEvent](docs/HydraStoreUnassignedEvent.md) + - [Flipdish.HydraUnAssignedEvent](docs/HydraUnAssignedEvent.md) + - [Flipdish.IndexPage](docs/IndexPage.md) + - [Flipdish.IndexPageBase](docs/IndexPageBase.md) + - [Flipdish.IntercomUserHash](docs/IntercomUserHash.md) + - [Flipdish.Invoice](docs/Invoice.md) + - [Flipdish.InvoiceDiscount](docs/InvoiceDiscount.md) + - [Flipdish.InvoiceItem](docs/InvoiceItem.md) + - [Flipdish.InvoicePeriod](docs/InvoicePeriod.md) + - [Flipdish.ItemNutritionInfoAddUpdateModel](docs/ItemNutritionInfoAddUpdateModel.md) + - [Flipdish.ItemNutritionInfoV2AddUpdateModel](docs/ItemNutritionInfoV2AddUpdateModel.md) + - [Flipdish.JobAddress](docs/JobAddress.md) + - [Flipdish.JobCancellation](docs/JobCancellation.md) + - [Flipdish.JobContact](docs/JobContact.md) + - [Flipdish.JobDelivery](docs/JobDelivery.md) + - [Flipdish.JobDeliveryDetail](docs/JobDeliveryDetail.md) + - [Flipdish.JobDriver](docs/JobDriver.md) + - [Flipdish.JobEta](docs/JobEta.md) + - [Flipdish.JobPricing](docs/JobPricing.md) + - [Flipdish.JobProof](docs/JobProof.md) + - [Flipdish.JobResponse](docs/JobResponse.md) + - [Flipdish.KioskBluetoothInstallUpdateInitiateEvent](docs/KioskBluetoothInstallUpdateInitiateEvent.md) + - [Flipdish.KioskBluetoothPairingModeEvent](docs/KioskBluetoothPairingModeEvent.md) + - [Flipdish.KioskBluetoothTerminalCancelUpdateEvent](docs/KioskBluetoothTerminalCancelUpdateEvent.md) + - [Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent](docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md) + - [Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent](docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md) + - [Flipdish.KioskBluetoothTerminalInstallationStatusEvent](docs/KioskBluetoothTerminalInstallationStatusEvent.md) + - [Flipdish.KioskBluetoothTerminalUnpairedEvent](docs/KioskBluetoothTerminalUnpairedEvent.md) + - [Flipdish.KioskBluetoothTerminalUpdatedEvent](docs/KioskBluetoothTerminalUpdatedEvent.md) + - [Flipdish.KioskBluetoothUnpairingModeEvent](docs/KioskBluetoothUnpairingModeEvent.md) + - [Flipdish.KioskCashPaymentSettings](docs/KioskCashPaymentSettings.md) + - [Flipdish.KioskEntitlementsResult](docs/KioskEntitlementsResult.md) + - [Flipdish.KioskIotConnectionParameters](docs/KioskIotConnectionParameters.md) + - [Flipdish.KioskSettings](docs/KioskSettings.md) + - [Flipdish.KioskTerminalActionStateChangedEvent](docs/KioskTerminalActionStateChangedEvent.md) + - [Flipdish.Language](docs/Language.md) + - [Flipdish.LastPaymentError](docs/LastPaymentError.md) + - [Flipdish.LeadTime](docs/LeadTime.md) + - [Flipdish.LightspeedSettings](docs/LightspeedSettings.md) + - [Flipdish.LocalisedTimeZone](docs/LocalisedTimeZone.md) + - [Flipdish.LocationArea](docs/LocationArea.md) + - [Flipdish.LocationAreaCreatedEvent](docs/LocationAreaCreatedEvent.md) + - [Flipdish.LocationAreaLocation](docs/LocationAreaLocation.md) + - [Flipdish.LocationAreaUpdatedEvent](docs/LocationAreaUpdatedEvent.md) + - [Flipdish.LocationAreaWithLocations](docs/LocationAreaWithLocations.md) + - [Flipdish.LocationCreatedEvent](docs/LocationCreatedEvent.md) + - [Flipdish.LocationDeletedEvent](docs/LocationDeletedEvent.md) + - [Flipdish.LoginModel](docs/LoginModel.md) + - [Flipdish.LoginWithPinModel](docs/LoginWithPinModel.md) + - [Flipdish.LoyaltyCampaign](docs/LoyaltyCampaign.md) + - [Flipdish.LoyaltyCampaignBase](docs/LoyaltyCampaignBase.md) + - [Flipdish.LoyaltyCampaignCreatedEvent](docs/LoyaltyCampaignCreatedEvent.md) + - [Flipdish.LoyaltyCampaignDeletedEvent](docs/LoyaltyCampaignDeletedEvent.md) + - [Flipdish.LoyaltyCampaignUpdatedEvent](docs/LoyaltyCampaignUpdatedEvent.md) + - [Flipdish.LumpDiscountDetails](docs/LumpDiscountDetails.md) + - [Flipdish.MappedLocation](docs/MappedLocation.md) + - [Flipdish.MaskedPhoneNumber](docs/MaskedPhoneNumber.md) + - [Flipdish.Menu](docs/Menu.md) + - [Flipdish.MenuAsyncCreationCompletedEvent](docs/MenuAsyncCreationCompletedEvent.md) + - [Flipdish.MenuBase](docs/MenuBase.md) + - [Flipdish.MenuBulkEditEvent](docs/MenuBulkEditEvent.md) + - [Flipdish.MenuCatalogItem](docs/MenuCatalogItem.md) + - [Flipdish.MenuCheckpoint](docs/MenuCheckpoint.md) + - [Flipdish.MenuCheckpointCreatedEvent](docs/MenuCheckpointCreatedEvent.md) + - [Flipdish.MenuCreatedEvent](docs/MenuCreatedEvent.md) + - [Flipdish.MenuElementEditResponse](docs/MenuElementEditResponse.md) + - [Flipdish.MenuElementHide](docs/MenuElementHide.md) + - [Flipdish.MenuElementListItemResponse](docs/MenuElementListItemResponse.md) + - [Flipdish.MenuElementListResponse](docs/MenuElementListResponse.md) + - [Flipdish.MenuItemOptionSet](docs/MenuItemOptionSet.md) + - [Flipdish.MenuItemOptionSetBase](docs/MenuItemOptionSetBase.md) + - [Flipdish.MenuItemOptionSetCreatedEvent](docs/MenuItemOptionSetCreatedEvent.md) + - [Flipdish.MenuItemOptionSetDeletedEvent](docs/MenuItemOptionSetDeletedEvent.md) + - [Flipdish.MenuItemOptionSetItem](docs/MenuItemOptionSetItem.md) + - [Flipdish.MenuItemOptionSetItemBase](docs/MenuItemOptionSetItemBase.md) + - [Flipdish.MenuItemOptionSetItemCreatedEvent](docs/MenuItemOptionSetItemCreatedEvent.md) + - [Flipdish.MenuItemOptionSetItemDeletedEvent](docs/MenuItemOptionSetItemDeletedEvent.md) + - [Flipdish.MenuItemOptionSetItemUpdatedEvent](docs/MenuItemOptionSetItemUpdatedEvent.md) + - [Flipdish.MenuItemOptionSetUpdatedEvent](docs/MenuItemOptionSetUpdatedEvent.md) + - [Flipdish.MenuNutritionInfoHeader](docs/MenuNutritionInfoHeader.md) + - [Flipdish.MenuObjectDisplayOrders](docs/MenuObjectDisplayOrders.md) + - [Flipdish.MenuSection](docs/MenuSection.md) + - [Flipdish.MenuSectionAvailability](docs/MenuSectionAvailability.md) + - [Flipdish.MenuSectionAvailabilityBase](docs/MenuSectionAvailabilityBase.md) + - [Flipdish.MenuSectionBase](docs/MenuSectionBase.md) + - [Flipdish.MenuSectionCreatedEvent](docs/MenuSectionCreatedEvent.md) + - [Flipdish.MenuSectionDeletedEvent](docs/MenuSectionDeletedEvent.md) + - [Flipdish.MenuSectionItem](docs/MenuSectionItem.md) + - [Flipdish.MenuSectionItemBase](docs/MenuSectionItemBase.md) + - [Flipdish.MenuSectionItemCreatedEvent](docs/MenuSectionItemCreatedEvent.md) + - [Flipdish.MenuSectionItemDeletedEvent](docs/MenuSectionItemDeletedEvent.md) + - [Flipdish.MenuSectionItemUpdatedEvent](docs/MenuSectionItemUpdatedEvent.md) + - [Flipdish.MenuSectionUpdatedEvent](docs/MenuSectionUpdatedEvent.md) + - [Flipdish.MenuStoreNames](docs/MenuStoreNames.md) + - [Flipdish.MenuSummary](docs/MenuSummary.md) + - [Flipdish.MenuTaxDetails](docs/MenuTaxDetails.md) + - [Flipdish.MenuTaxRate](docs/MenuTaxRate.md) + - [Flipdish.MenuUpdatedEvent](docs/MenuUpdatedEvent.md) + - [Flipdish.MenuUploadedEvent](docs/MenuUploadedEvent.md) + - [Flipdish.MenuZone](docs/MenuZone.md) + - [Flipdish.Metadata](docs/Metadata.md) + - [Flipdish.Metafield](docs/Metafield.md) + - [Flipdish.MetafieldDefinition](docs/MetafieldDefinition.md) + - [Flipdish.MetafieldDefinitionRecommendation](docs/MetafieldDefinitionRecommendation.md) + - [Flipdish.MobileAppsImage](docs/MobileAppsImage.md) + - [Flipdish.MobileAppsStatistics](docs/MobileAppsStatistics.md) + - [Flipdish.MobileAppsSubmission](docs/MobileAppsSubmission.md) + - [Flipdish.MobileAppsSubmissionDetails](docs/MobileAppsSubmissionDetails.md) + - [Flipdish.MobileAppsSubmissionStatus](docs/MobileAppsSubmissionStatus.md) + - [Flipdish.MobileAppsSubmissionStatusUpdatedEvent](docs/MobileAppsSubmissionStatusUpdatedEvent.md) + - [Flipdish.MobileAppsSubmissionUpdatedEvent](docs/MobileAppsSubmissionUpdatedEvent.md) + - [Flipdish.NextStatusWithOrderType](docs/NextStatusWithOrderType.md) + - [Flipdish.NutritionInfo](docs/NutritionInfo.md) + - [Flipdish.NutritionInfoItemAddUpdateLabelModel](docs/NutritionInfoItemAddUpdateLabelModel.md) + - [Flipdish.NutritionInfoLabel](docs/NutritionInfoLabel.md) + - [Flipdish.NutritionInfoMenuItem](docs/NutritionInfoMenuItem.md) + - [Flipdish.NutritionInfoMenuOptionSetItem](docs/NutritionInfoMenuOptionSetItem.md) + - [Flipdish.NutritionInfoV2](docs/NutritionInfoV2.md) + - [Flipdish.NutritionInfoV2Allergen](docs/NutritionInfoV2Allergen.md) + - [Flipdish.NutritionInfoV2Item](docs/NutritionInfoV2Item.md) + - [Flipdish.OAuthApp](docs/OAuthApp.md) + - [Flipdish.OAuthTokenModel](docs/OAuthTokenModel.md) + - [Flipdish.OauthClientRedirectUri](docs/OauthClientRedirectUri.md) + - [Flipdish.ObjectDisplayOrder](docs/ObjectDisplayOrder.md) + - [Flipdish.OktaPortalFeatureFlag](docs/OktaPortalFeatureFlag.md) + - [Flipdish.OnboardingConfigUpdate](docs/OnboardingConfigUpdate.md) + - [Flipdish.OnboardingItemUpdate](docs/OnboardingItemUpdate.md) + - [Flipdish.Order](docs/Order.md) + - [Flipdish.OrderAcceptedEvent](docs/OrderAcceptedEvent.md) + - [Flipdish.OrderBatch](docs/OrderBatch.md) + - [Flipdish.OrderBatchPublishedEvent](docs/OrderBatchPublishedEvent.md) + - [Flipdish.OrderBatchSummary](docs/OrderBatchSummary.md) + - [Flipdish.OrderBatchingConfiguration](docs/OrderBatchingConfiguration.md) + - [Flipdish.OrderCapacityConfigUpdatedEvent](docs/OrderCapacityConfigUpdatedEvent.md) + - [Flipdish.OrderCreatedEvent](docs/OrderCreatedEvent.md) + - [Flipdish.OrderCustomerTrackingCreatedEvent](docs/OrderCustomerTrackingCreatedEvent.md) + - [Flipdish.OrderDeliveryInformation](docs/OrderDeliveryInformation.md) + - [Flipdish.OrderDeliveryInformationBase](docs/OrderDeliveryInformationBase.md) + - [Flipdish.OrderDeliveryTrackingStatusUpdatedEvent](docs/OrderDeliveryTrackingStatusUpdatedEvent.md) + - [Flipdish.OrderDispatchedEvent](docs/OrderDispatchedEvent.md) + - [Flipdish.OrderDropOffLocation](docs/OrderDropOffLocation.md) + - [Flipdish.OrderFulfillmentStatus](docs/OrderFulfillmentStatus.md) + - [Flipdish.OrderFulfillmentStatusBase](docs/OrderFulfillmentStatusBase.md) + - [Flipdish.OrderFulfillmentStatusUpdate](docs/OrderFulfillmentStatusUpdate.md) + - [Flipdish.OrderFulfillmentStatusUpdatedEvent](docs/OrderFulfillmentStatusUpdatedEvent.md) + - [Flipdish.OrderFulfillmentStatusWithConfigurationActions](docs/OrderFulfillmentStatusWithConfigurationActions.md) + - [Flipdish.OrderItem](docs/OrderItem.md) + - [Flipdish.OrderItemOption](docs/OrderItemOption.md) + - [Flipdish.OrderLeadTimes](docs/OrderLeadTimes.md) + - [Flipdish.OrderList](docs/OrderList.md) + - [Flipdish.OrderPaymentInformation](docs/OrderPaymentInformation.md) + - [Flipdish.OrderRatingUpdatedEvent](docs/OrderRatingUpdatedEvent.md) + - [Flipdish.OrderReference](docs/OrderReference.md) + - [Flipdish.OrderRefundedEvent](docs/OrderRefundedEvent.md) + - [Flipdish.OrderRejectedEvent](docs/OrderRejectedEvent.md) + - [Flipdish.OrderSummary](docs/OrderSummary.md) + - [Flipdish.OrderTipUpdatedEvent](docs/OrderTipUpdatedEvent.md) + - [Flipdish.OrderVoucherSummary](docs/OrderVoucherSummary.md) + - [Flipdish.OtherChargesDetails](docs/OtherChargesDetails.md) + - [Flipdish.OwnerEntityConfiguration](docs/OwnerEntityConfiguration.md) + - [Flipdish.OwnerEntityConfigurations](docs/OwnerEntityConfigurations.md) + - [Flipdish.PasswordResetModel](docs/PasswordResetModel.md) + - [Flipdish.PaymentAccount](docs/PaymentAccount.md) + - [Flipdish.PaymentIntent](docs/PaymentIntent.md) + - [Flipdish.PaymentTerminalDetails](docs/PaymentTerminalDetails.md) + - [Flipdish.PaymentTerminalTransactionDetails](docs/PaymentTerminalTransactionDetails.md) + - [Flipdish.Payout](docs/Payout.md) + - [Flipdish.PayoutChargeback](docs/PayoutChargeback.md) + - [Flipdish.PayoutDetail](docs/PayoutDetail.md) + - [Flipdish.PayoutOrder](docs/PayoutOrder.md) + - [Flipdish.PayoutOtherCharge](docs/PayoutOtherCharge.md) + - [Flipdish.PayoutRefund](docs/PayoutRefund.md) + - [Flipdish.PayoutReport3Details](docs/PayoutReport3Details.md) + - [Flipdish.PayoutReport3DetailsAdjustments](docs/PayoutReport3DetailsAdjustments.md) + - [Flipdish.PayoutReport3DetailsFlipdishFees](docs/PayoutReport3DetailsFlipdishFees.md) + - [Flipdish.PayoutReport3DetailsRevenue](docs/PayoutReport3DetailsRevenue.md) + - [Flipdish.PayoutReport3DetailsSalesLine](docs/PayoutReport3DetailsSalesLine.md) + - [Flipdish.PayoutReport3DetailsSummary](docs/PayoutReport3DetailsSummary.md) + - [Flipdish.PayoutReport3Overview](docs/PayoutReport3Overview.md) + - [Flipdish.PayoutReport3OverviewHeader](docs/PayoutReport3OverviewHeader.md) + - [Flipdish.PayoutReport3RefundedOrder](docs/PayoutReport3RefundedOrder.md) + - [Flipdish.PayoutReport3Store](docs/PayoutReport3Store.md) + - [Flipdish.PayoutRequestIds](docs/PayoutRequestIds.md) + - [Flipdish.PayoutStore](docs/PayoutStore.md) + - [Flipdish.PayoutSummary](docs/PayoutSummary.md) + - [Flipdish.PendingInvitation](docs/PendingInvitation.md) + - [Flipdish.PendingMenuChanges](docs/PendingMenuChanges.md) + - [Flipdish.PendingMenuChangesSummaries](docs/PendingMenuChangesSummaries.md) + - [Flipdish.PercentDiscountDetails](docs/PercentDiscountDetails.md) + - [Flipdish.PhoneCall](docs/PhoneCall.md) + - [Flipdish.PhoneCallEndedEvent](docs/PhoneCallEndedEvent.md) + - [Flipdish.PhoneCallStartedEvent](docs/PhoneCallStartedEvent.md) + - [Flipdish.PosRevenueDetails](docs/PosRevenueDetails.md) + - [Flipdish.PreOrderConfig](docs/PreOrderConfig.md) + - [Flipdish.PreOrderTime](docs/PreOrderTime.md) + - [Flipdish.PredefinedAnswer](docs/PredefinedAnswer.md) + - [Flipdish.PreviousOrder](docs/PreviousOrder.md) + - [Flipdish.PreviousOrderItem](docs/PreviousOrderItem.md) + - [Flipdish.PreviousOrderItemOption](docs/PreviousOrderItemOption.md) + - [Flipdish.Printer](docs/Printer.md) + - [Flipdish.PrinterAssignedToStoreEvent](docs/PrinterAssignedToStoreEvent.md) + - [Flipdish.PrinterTurnedOffEvent](docs/PrinterTurnedOffEvent.md) + - [Flipdish.PrinterTurnedOnEvent](docs/PrinterTurnedOnEvent.md) + - [Flipdish.PrinterUnassignedFromStoreEvent](docs/PrinterUnassignedFromStoreEvent.md) + - [Flipdish.ProcessPaymentIntentRequest](docs/ProcessPaymentIntentRequest.md) + - [Flipdish.ProcessingFeeConfig](docs/ProcessingFeeConfig.md) + - [Flipdish.Product](docs/Product.md) + - [Flipdish.ProductReference](docs/ProductReference.md) + - [Flipdish.PromotionAward](docs/PromotionAward.md) + - [Flipdish.PromotionDetails](docs/PromotionDetails.md) + - [Flipdish.PublishMenuChanges](docs/PublishMenuChanges.md) + - [Flipdish.PushNotificationDeletedEvent](docs/PushNotificationDeletedEvent.md) + - [Flipdish.PushNotificationRequest](docs/PushNotificationRequest.md) + - [Flipdish.PushNotificationResponse](docs/PushNotificationResponse.md) + - [Flipdish.PushNotificationScheduledEvent](docs/PushNotificationScheduledEvent.md) + - [Flipdish.PushNotificationSentEvent](docs/PushNotificationSentEvent.md) + - [Flipdish.Range](docs/Range.md) + - [Flipdish.ReaderActionStateInfo](docs/ReaderActionStateInfo.md) + - [Flipdish.RedeemInvitationResult](docs/RedeemInvitationResult.md) + - [Flipdish.Refund](docs/Refund.md) + - [Flipdish.Reject](docs/Reject.md) + - [Flipdish.RequestLoginPinModel](docs/RequestLoginPinModel.md) + - [Flipdish.RequestLoginPinResponse](docs/RequestLoginPinResponse.md) + - [Flipdish.RequestPasswordResetModel](docs/RequestPasswordResetModel.md) + - [Flipdish.RequestPasswordResetPinResponse](docs/RequestPasswordResetPinResponse.md) + - [Flipdish.Response](docs/Response.md) + - [Flipdish.RestApiArrayResultAllMetadataResult](docs/RestApiArrayResultAllMetadataResult.md) + - [Flipdish.RestApiArrayResultAllergen](docs/RestApiArrayResultAllergen.md) + - [Flipdish.RestApiArrayResultApmCurrencyDataPoint](docs/RestApiArrayResultApmCurrencyDataPoint.md) + - [Flipdish.RestApiArrayResultApmDataPoint](docs/RestApiArrayResultApmDataPoint.md) + - [Flipdish.RestApiArrayResultApmHourlyDataPoint](docs/RestApiArrayResultApmHourlyDataPoint.md) + - [Flipdish.RestApiArrayResultAppStoreAppConfigurationSummary](docs/RestApiArrayResultAppStoreAppConfigurationSummary.md) + - [Flipdish.RestApiArrayResultAppStoreAppSummary](docs/RestApiArrayResultAppStoreAppSummary.md) + - [Flipdish.RestApiArrayResultBankAccountSummary](docs/RestApiArrayResultBankAccountSummary.md) + - [Flipdish.RestApiArrayResultBusinessHoursPeriod](docs/RestApiArrayResultBusinessHoursPeriod.md) + - [Flipdish.RestApiArrayResultChannel](docs/RestApiArrayResultChannel.md) + - [Flipdish.RestApiArrayResultClientDeviceSummary](docs/RestApiArrayResultClientDeviceSummary.md) + - [Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions](docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md) + - [Flipdish.RestApiArrayResultDeliveryZone](docs/RestApiArrayResultDeliveryZone.md) + - [Flipdish.RestApiArrayResultEmvTerminalWithAssignments](docs/RestApiArrayResultEmvTerminalWithAssignments.md) + - [Flipdish.RestApiArrayResultFulfillmentStatesConfigurationSummary](docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md) + - [Flipdish.RestApiArrayResultHomeAction](docs/RestApiArrayResultHomeAction.md) + - [Flipdish.RestApiArrayResultKioskCashPaymentSettings](docs/RestApiArrayResultKioskCashPaymentSettings.md) + - [Flipdish.RestApiArrayResultLocalisedTimeZone](docs/RestApiArrayResultLocalisedTimeZone.md) + - [Flipdish.RestApiArrayResultLocationAreaLocation](docs/RestApiArrayResultLocationAreaLocation.md) + - [Flipdish.RestApiArrayResultLocationAreaWithLocations](docs/RestApiArrayResultLocationAreaWithLocations.md) + - [Flipdish.RestApiArrayResultLoyaltyCampaign](docs/RestApiArrayResultLoyaltyCampaign.md) + - [Flipdish.RestApiArrayResultMenuCheckpoint](docs/RestApiArrayResultMenuCheckpoint.md) + - [Flipdish.RestApiArrayResultMenuElementEditResponse](docs/RestApiArrayResultMenuElementEditResponse.md) + - [Flipdish.RestApiArrayResultMenuElementListResponse](docs/RestApiArrayResultMenuElementListResponse.md) + - [Flipdish.RestApiArrayResultMenuItemOptionSet](docs/RestApiArrayResultMenuItemOptionSet.md) + - [Flipdish.RestApiArrayResultMenuItemOptionSetItem](docs/RestApiArrayResultMenuItemOptionSetItem.md) + - [Flipdish.RestApiArrayResultMenuSection](docs/RestApiArrayResultMenuSection.md) + - [Flipdish.RestApiArrayResultMenuSectionItem](docs/RestApiArrayResultMenuSectionItem.md) + - [Flipdish.RestApiArrayResultMenuStoreNames](docs/RestApiArrayResultMenuStoreNames.md) + - [Flipdish.RestApiArrayResultMenuSummary](docs/RestApiArrayResultMenuSummary.md) + - [Flipdish.RestApiArrayResultMenuTaxDetails](docs/RestApiArrayResultMenuTaxDetails.md) + - [Flipdish.RestApiArrayResultMenuZone](docs/RestApiArrayResultMenuZone.md) + - [Flipdish.RestApiArrayResultMetadata](docs/RestApiArrayResultMetadata.md) + - [Flipdish.RestApiArrayResultMobileAppsStatistics](docs/RestApiArrayResultMobileAppsStatistics.md) + - [Flipdish.RestApiArrayResultOAuthApp](docs/RestApiArrayResultOAuthApp.md) + - [Flipdish.RestApiArrayResultOauthClientRedirectUri](docs/RestApiArrayResultOauthClientRedirectUri.md) + - [Flipdish.RestApiArrayResultOrderBatch](docs/RestApiArrayResultOrderBatch.md) + - [Flipdish.RestApiArrayResultOrderFulfillmentStatus](docs/RestApiArrayResultOrderFulfillmentStatus.md) + - [Flipdish.RestApiArrayResultPayoutSummary](docs/RestApiArrayResultPayoutSummary.md) + - [Flipdish.RestApiArrayResultPendingInvitation](docs/RestApiArrayResultPendingInvitation.md) + - [Flipdish.RestApiArrayResultPendingMenuChangesSummaries](docs/RestApiArrayResultPendingMenuChangesSummaries.md) + - [Flipdish.RestApiArrayResultPreOrderTime](docs/RestApiArrayResultPreOrderTime.md) + - [Flipdish.RestApiArrayResultProcessingFeeConfig](docs/RestApiArrayResultProcessingFeeConfig.md) + - [Flipdish.RestApiArrayResultRedeemInvitationResult](docs/RestApiArrayResultRedeemInvitationResult.md) + - [Flipdish.RestApiArrayResultRestApiDefaultResponse](docs/RestApiArrayResultRestApiDefaultResponse.md) + - [Flipdish.RestApiArrayResultRestaurantVoucherEligibleStore](docs/RestApiArrayResultRestaurantVoucherEligibleStore.md) + - [Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfiguration](docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md) + - [Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary](docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md) + - [Flipdish.RestApiArrayResultRetentionCampaign](docs/RestApiArrayResultRetentionCampaign.md) + - [Flipdish.RestApiArrayResultSmsProviderCredential](docs/RestApiArrayResultSmsProviderCredential.md) + - [Flipdish.RestApiArrayResultStoreChannelAssignment](docs/RestApiArrayResultStoreChannelAssignment.md) + - [Flipdish.RestApiArrayResultStoreDeliveryZoneFeeConfig](docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md) + - [Flipdish.RestApiArrayResultStoreListItem](docs/RestApiArrayResultStoreListItem.md) + - [Flipdish.RestApiArrayResultStoreStatistics](docs/RestApiArrayResultStoreStatistics.md) + - [Flipdish.RestApiArrayResultStripeCustomConnectedAccount](docs/RestApiArrayResultStripeCustomConnectedAccount.md) + - [Flipdish.RestApiArrayResultSubscriptionSummary](docs/RestApiArrayResultSubscriptionSummary.md) + - [Flipdish.RestApiArrayResultSupportedCountry](docs/RestApiArrayResultSupportedCountry.md) + - [Flipdish.RestApiArrayResultTeammate](docs/RestApiArrayResultTeammate.md) + - [Flipdish.RestApiArrayResultUserFlipdishAccount](docs/RestApiArrayResultUserFlipdishAccount.md) + - [Flipdish.RestApiArrayResultUserNote](docs/RestApiArrayResultUserNote.md) + - [Flipdish.RestApiArrayResultUserStoreInfo](docs/RestApiArrayResultUserStoreInfo.md) + - [Flipdish.RestApiArrayResultVoucherDataPoint](docs/RestApiArrayResultVoucherDataPoint.md) + - [Flipdish.RestApiDefaultResponse](docs/RestApiDefaultResponse.md) + - [Flipdish.RestApiErrorResult](docs/RestApiErrorResult.md) + - [Flipdish.RestApiEventSearchPaginationResult](docs/RestApiEventSearchPaginationResult.md) + - [Flipdish.RestApiFinanceSearchPaginationResultInvoice](docs/RestApiFinanceSearchPaginationResultInvoice.md) + - [Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice](docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md) + - [Flipdish.RestApiForbiddenResult](docs/RestApiForbiddenResult.md) + - [Flipdish.RestApiIntegerResult](docs/RestApiIntegerResult.md) + - [Flipdish.RestApiPaginationResultApp](docs/RestApiPaginationResultApp.md) + - [Flipdish.RestApiPaginationResultAppStoreAppSummary](docs/RestApiPaginationResultAppStoreAppSummary.md) + - [Flipdish.RestApiPaginationResultBusinessHoursOverride](docs/RestApiPaginationResultBusinessHoursOverride.md) + - [Flipdish.RestApiPaginationResultCatalogItem](docs/RestApiPaginationResultCatalogItem.md) + - [Flipdish.RestApiPaginationResultGroup](docs/RestApiPaginationResultGroup.md) + - [Flipdish.RestApiPaginationResultHydraDeviceDetails](docs/RestApiPaginationResultHydraDeviceDetails.md) + - [Flipdish.RestApiPaginationResultMetafieldDefinition](docs/RestApiPaginationResultMetafieldDefinition.md) + - [Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation](docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md) + - [Flipdish.RestApiPaginationResultOAuthTokenModel](docs/RestApiPaginationResultOAuthTokenModel.md) + - [Flipdish.RestApiPaginationResultOrder](docs/RestApiPaginationResultOrder.md) + - [Flipdish.RestApiPaginationResultOrderSummary](docs/RestApiPaginationResultOrderSummary.md) + - [Flipdish.RestApiPaginationResultPayout](docs/RestApiPaginationResultPayout.md) + - [Flipdish.RestApiPaginationResultPayoutChargeback](docs/RestApiPaginationResultPayoutChargeback.md) + - [Flipdish.RestApiPaginationResultPayoutOrder](docs/RestApiPaginationResultPayoutOrder.md) + - [Flipdish.RestApiPaginationResultPayoutOtherCharge](docs/RestApiPaginationResultPayoutOtherCharge.md) + - [Flipdish.RestApiPaginationResultPayoutRefund](docs/RestApiPaginationResultPayoutRefund.md) + - [Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder](docs/RestApiPaginationResultPayoutReport3RefundedOrder.md) + - [Flipdish.RestApiPaginationResultPendingMenuChanges](docs/RestApiPaginationResultPendingMenuChanges.md) + - [Flipdish.RestApiPaginationResultPhoneCall](docs/RestApiPaginationResultPhoneCall.md) + - [Flipdish.RestApiPaginationResultProduct](docs/RestApiPaginationResultProduct.md) + - [Flipdish.RestApiPaginationResultPushNotificationResponse](docs/RestApiPaginationResultPushNotificationResponse.md) + - [Flipdish.RestApiPaginationResultRestaurant](docs/RestApiPaginationResultRestaurant.md) + - [Flipdish.RestApiPaginationResultStore](docs/RestApiPaginationResultStore.md) + - [Flipdish.RestApiPaginationResultStoreGroup](docs/RestApiPaginationResultStoreGroup.md) + - [Flipdish.RestApiPaginationResultStoreGroupExtended](docs/RestApiPaginationResultStoreGroupExtended.md) + - [Flipdish.RestApiPaginationResultStoreHeader](docs/RestApiPaginationResultStoreHeader.md) + - [Flipdish.RestApiPaginationResultStoreValidationConfig](docs/RestApiPaginationResultStoreValidationConfig.md) + - [Flipdish.RestApiPaginationResultUserSearch](docs/RestApiPaginationResultUserSearch.md) + - [Flipdish.RestApiPaginationResultVoucherSummary](docs/RestApiPaginationResultVoucherSummary.md) + - [Flipdish.RestApiPaginationResultWebhookLog](docs/RestApiPaginationResultWebhookLog.md) + - [Flipdish.RestApiPaginationResultWebhookSubscription](docs/RestApiPaginationResultWebhookSubscription.md) + - [Flipdish.RestApiResultAcceptInvitationResult](docs/RestApiResultAcceptInvitationResult.md) + - [Flipdish.RestApiResultAccountDetail](docs/RestApiResultAccountDetail.md) + - [Flipdish.RestApiResultAccountFieldsDefinitions](docs/RestApiResultAccountFieldsDefinitions.md) + - [Flipdish.RestApiResultAddressFormResponse](docs/RestApiResultAddressFormResponse.md) + - [Flipdish.RestApiResultApmStatistics](docs/RestApiResultApmStatistics.md) + - [Flipdish.RestApiResultApmStatus](docs/RestApiResultApmStatus.md) + - [Flipdish.RestApiResultApp](docs/RestApiResultApp.md) + - [Flipdish.RestApiResultAppChannelAssignment](docs/RestApiResultAppChannelAssignment.md) + - [Flipdish.RestApiResultAppCompliance](docs/RestApiResultAppCompliance.md) + - [Flipdish.RestApiResultAppConfigSalesChannel](docs/RestApiResultAppConfigSalesChannel.md) + - [Flipdish.RestApiResultAppStoreApp](docs/RestApiResultAppStoreApp.md) + - [Flipdish.RestApiResultAppStoreAppConfiguration](docs/RestApiResultAppStoreAppConfiguration.md) + - [Flipdish.RestApiResultAppStoreAppEntitlements](docs/RestApiResultAppStoreAppEntitlements.md) + - [Flipdish.RestApiResultAssignedBankAccount](docs/RestApiResultAssignedBankAccount.md) + - [Flipdish.RestApiResultBankAccountDetail](docs/RestApiResultBankAccountDetail.md) + - [Flipdish.RestApiResultBluetoothTerminalStatus](docs/RestApiResultBluetoothTerminalStatus.md) + - [Flipdish.RestApiResultBusinessHoursOverride](docs/RestApiResultBusinessHoursOverride.md) + - [Flipdish.RestApiResultBusinessHoursPeriod](docs/RestApiResultBusinessHoursPeriod.md) + - [Flipdish.RestApiResultCardReader](docs/RestApiResultCardReader.md) + - [Flipdish.RestApiResultCatalogItem](docs/RestApiResultCatalogItem.md) + - [Flipdish.RestApiResultChannel](docs/RestApiResultChannel.md) + - [Flipdish.RestApiResultClientDevice](docs/RestApiResultClientDevice.md) + - [Flipdish.RestApiResultClientDeviceEnrollmentResult](docs/RestApiResultClientDeviceEnrollmentResult.md) + - [Flipdish.RestApiResultCoordinates](docs/RestApiResultCoordinates.md) + - [Flipdish.RestApiResultCountryFormResponse](docs/RestApiResultCountryFormResponse.md) + - [Flipdish.RestApiResultCreatedMenuSectionItems](docs/RestApiResultCreatedMenuSectionItems.md) + - [Flipdish.RestApiResultCrossSellMenuItems](docs/RestApiResultCrossSellMenuItems.md) + - [Flipdish.RestApiResultCustomer](docs/RestApiResultCustomer.md) + - [Flipdish.RestApiResultCustomers](docs/RestApiResultCustomers.md) + - [Flipdish.RestApiResultDeliveryZone](docs/RestApiResultDeliveryZone.md) + - [Flipdish.RestApiResultDnsRecordInformation](docs/RestApiResultDnsRecordInformation.md) + - [Flipdish.RestApiResultExecuteConfigurationActionResult](docs/RestApiResultExecuteConfigurationActionResult.md) + - [Flipdish.RestApiResultFileCreationResult](docs/RestApiResultFileCreationResult.md) + - [Flipdish.RestApiResultFileDownloadResult](docs/RestApiResultFileDownloadResult.md) + - [Flipdish.RestApiResultFulfillmentStatesConfiguration](docs/RestApiResultFulfillmentStatesConfiguration.md) + - [Flipdish.RestApiResultGroup](docs/RestApiResultGroup.md) + - [Flipdish.RestApiResultHasPaymentMethodResponse](docs/RestApiResultHasPaymentMethodResponse.md) + - [Flipdish.RestApiResultHomeStatistics](docs/RestApiResultHomeStatistics.md) + - [Flipdish.RestApiResultHydraConfig](docs/RestApiResultHydraConfig.md) + - [Flipdish.RestApiResultHydraDeviceDetails](docs/RestApiResultHydraDeviceDetails.md) + - [Flipdish.RestApiResultHydraStatus](docs/RestApiResultHydraStatus.md) + - [Flipdish.RestApiResultIndexPage](docs/RestApiResultIndexPage.md) + - [Flipdish.RestApiResultIndexPageBase](docs/RestApiResultIndexPageBase.md) + - [Flipdish.RestApiResultIntercomUserHash](docs/RestApiResultIntercomUserHash.md) + - [Flipdish.RestApiResultJobResponse](docs/RestApiResultJobResponse.md) + - [Flipdish.RestApiResultKioskEntitlementsResult](docs/RestApiResultKioskEntitlementsResult.md) + - [Flipdish.RestApiResultKioskIotConnectionParameters](docs/RestApiResultKioskIotConnectionParameters.md) + - [Flipdish.RestApiResultKioskSettings](docs/RestApiResultKioskSettings.md) + - [Flipdish.RestApiResultLightspeedSettings](docs/RestApiResultLightspeedSettings.md) + - [Flipdish.RestApiResultLocationArea](docs/RestApiResultLocationArea.md) + - [Flipdish.RestApiResultLocationAreaLocation](docs/RestApiResultLocationAreaLocation.md) + - [Flipdish.RestApiResultLocationAreaWithLocations](docs/RestApiResultLocationAreaWithLocations.md) + - [Flipdish.RestApiResultLoyaltyCampaign](docs/RestApiResultLoyaltyCampaign.md) + - [Flipdish.RestApiResultMappedLocation](docs/RestApiResultMappedLocation.md) + - [Flipdish.RestApiResultMenu](docs/RestApiResultMenu.md) + - [Flipdish.RestApiResultMenuItemOptionSet](docs/RestApiResultMenuItemOptionSet.md) + - [Flipdish.RestApiResultMenuItemOptionSetItem](docs/RestApiResultMenuItemOptionSetItem.md) + - [Flipdish.RestApiResultMenuNutritionInfoHeader](docs/RestApiResultMenuNutritionInfoHeader.md) + - [Flipdish.RestApiResultMenuSection](docs/RestApiResultMenuSection.md) + - [Flipdish.RestApiResultMenuSectionAvailability](docs/RestApiResultMenuSectionAvailability.md) + - [Flipdish.RestApiResultMenuSectionItem](docs/RestApiResultMenuSectionItem.md) + - [Flipdish.RestApiResultMenuZone](docs/RestApiResultMenuZone.md) + - [Flipdish.RestApiResultMetadata](docs/RestApiResultMetadata.md) + - [Flipdish.RestApiResultMetafieldDefinition](docs/RestApiResultMetafieldDefinition.md) + - [Flipdish.RestApiResultMobileAppsImage](docs/RestApiResultMobileAppsImage.md) + - [Flipdish.RestApiResultMobileAppsSubmission](docs/RestApiResultMobileAppsSubmission.md) + - [Flipdish.RestApiResultMobileAppsSubmissionDetails](docs/RestApiResultMobileAppsSubmissionDetails.md) + - [Flipdish.RestApiResultMobileAppsSubmissionStatus](docs/RestApiResultMobileAppsSubmissionStatus.md) + - [Flipdish.RestApiResultModelBase](docs/RestApiResultModelBase.md) + - [Flipdish.RestApiResultNutritionInfo](docs/RestApiResultNutritionInfo.md) + - [Flipdish.RestApiResultNutritionInfoV2](docs/RestApiResultNutritionInfoV2.md) + - [Flipdish.RestApiResultOAuthApp](docs/RestApiResultOAuthApp.md) + - [Flipdish.RestApiResultOauthClientRedirectUri](docs/RestApiResultOauthClientRedirectUri.md) + - [Flipdish.RestApiResultOktaPortalFeatureFlag](docs/RestApiResultOktaPortalFeatureFlag.md) + - [Flipdish.RestApiResultOrder](docs/RestApiResultOrder.md) + - [Flipdish.RestApiResultOrderBatch](docs/RestApiResultOrderBatch.md) + - [Flipdish.RestApiResultOrderBatchingConfiguration](docs/RestApiResultOrderBatchingConfiguration.md) + - [Flipdish.RestApiResultOrderDeliveryInformation](docs/RestApiResultOrderDeliveryInformation.md) + - [Flipdish.RestApiResultOrderFulfillmentStatus](docs/RestApiResultOrderFulfillmentStatus.md) + - [Flipdish.RestApiResultOrderFulfillmentStatusWithConfigurationActions](docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md) + - [Flipdish.RestApiResultOrderLeadTimes](docs/RestApiResultOrderLeadTimes.md) + - [Flipdish.RestApiResultOrderPaymentInformation](docs/RestApiResultOrderPaymentInformation.md) + - [Flipdish.RestApiResultPaymentIntent](docs/RestApiResultPaymentIntent.md) + - [Flipdish.RestApiResultPaymentTerminalDetails](docs/RestApiResultPaymentTerminalDetails.md) + - [Flipdish.RestApiResultPaymentTerminalTransactionDetails](docs/RestApiResultPaymentTerminalTransactionDetails.md) + - [Flipdish.RestApiResultPayoutReport3Details](docs/RestApiResultPayoutReport3Details.md) + - [Flipdish.RestApiResultPayoutReport3Overview](docs/RestApiResultPayoutReport3Overview.md) + - [Flipdish.RestApiResultPreOrderConfig](docs/RestApiResultPreOrderConfig.md) + - [Flipdish.RestApiResultProcessingFeeConfig](docs/RestApiResultProcessingFeeConfig.md) + - [Flipdish.RestApiResultProduct](docs/RestApiResultProduct.md) + - [Flipdish.RestApiResultPushNotificationResponse](docs/RestApiResultPushNotificationResponse.md) + - [Flipdish.RestApiResultRedeemInvitationResult](docs/RestApiResultRedeemInvitationResult.md) + - [Flipdish.RestApiResultRestApiDefaultResponse](docs/RestApiResultRestApiDefaultResponse.md) + - [Flipdish.RestApiResultRestApiIntegerResult](docs/RestApiResultRestApiIntegerResult.md) + - [Flipdish.RestApiResultRestaurantVoucherPayGreenConfiguration](docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md) + - [Flipdish.RestApiResultRestaurantVoucherPayGreenStoreConfiguration](docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md) + - [Flipdish.RestApiResultRetentionCampaign](docs/RestApiResultRetentionCampaign.md) + - [Flipdish.RestApiResultServiceCharge](docs/RestApiResultServiceCharge.md) + - [Flipdish.RestApiResultSmsProviderCredential](docs/RestApiResultSmsProviderCredential.md) + - [Flipdish.RestApiResultStore](docs/RestApiResultStore.md) + - [Flipdish.RestApiResultStoreAddress](docs/RestApiResultStoreAddress.md) + - [Flipdish.RestApiResultStoreChannelAssignment](docs/RestApiResultStoreChannelAssignment.md) + - [Flipdish.RestApiResultStoreEndOfDayReport](docs/RestApiResultStoreEndOfDayReport.md) + - [Flipdish.RestApiResultStoreGroup](docs/RestApiResultStoreGroup.md) + - [Flipdish.RestApiResultStoreGroupBase](docs/RestApiResultStoreGroupBase.md) + - [Flipdish.RestApiResultStoreOrderCapacityConfig](docs/RestApiResultStoreOrderCapacityConfig.md) + - [Flipdish.RestApiResultStripeConnectedAccount](docs/RestApiResultStripeConnectedAccount.md) + - [Flipdish.RestApiResultStripeTerminalConnectionToken](docs/RestApiResultStripeTerminalConnectionToken.md) + - [Flipdish.RestApiResultStripeTerminalLocation](docs/RestApiResultStripeTerminalLocation.md) + - [Flipdish.RestApiResultStuartSettings](docs/RestApiResultStuartSettings.md) + - [Flipdish.RestApiResultSubscription](docs/RestApiResultSubscription.md) + - [Flipdish.RestApiResultTeammate](docs/RestApiResultTeammate.md) + - [Flipdish.RestApiResultTelemetrySeriesResult](docs/RestApiResultTelemetrySeriesResult.md) + - [Flipdish.RestApiResultTipConfiguration](docs/RestApiResultTipConfiguration.md) + - [Flipdish.RestApiResultUpdateMobileAppsSubmissionStatus](docs/RestApiResultUpdateMobileAppsSubmissionStatus.md) + - [Flipdish.RestApiResultUserInfo](docs/RestApiResultUserInfo.md) + - [Flipdish.RestApiResultUserRole](docs/RestApiResultUserRole.md) + - [Flipdish.RestApiResultVoucher](docs/RestApiResultVoucher.md) + - [Flipdish.RestApiResultVoucherWithStats](docs/RestApiResultVoucherWithStats.md) + - [Flipdish.RestApiResultWebsiteImage](docs/RestApiResultWebsiteImage.md) + - [Flipdish.RestApiResultWebsiteTestimonial](docs/RestApiResultWebsiteTestimonial.md) + - [Flipdish.RestApiStringArrayResult](docs/RestApiStringArrayResult.md) + - [Flipdish.RestApiStringResult](docs/RestApiStringResult.md) + - [Flipdish.RestApiUnauthorizedResult](docs/RestApiUnauthorizedResult.md) + - [Flipdish.Restaurant](docs/Restaurant.md) + - [Flipdish.RestaurantVoucherAssignedStore](docs/RestaurantVoucherAssignedStore.md) + - [Flipdish.RestaurantVoucherEligibleStore](docs/RestaurantVoucherEligibleStore.md) + - [Flipdish.RestaurantVoucherPayGreenConfiguration](docs/RestaurantVoucherPayGreenConfiguration.md) + - [Flipdish.RestaurantVoucherPayGreenConfigurationSummary](docs/RestaurantVoucherPayGreenConfigurationSummary.md) + - [Flipdish.RestaurantVoucherPayGreenStoreConfiguration](docs/RestaurantVoucherPayGreenStoreConfiguration.md) + - [Flipdish.RetentionCampaign](docs/RetentionCampaign.md) + - [Flipdish.RetentionCampaignBase](docs/RetentionCampaignBase.md) + - [Flipdish.RetentionCampaignCreatedEvent](docs/RetentionCampaignCreatedEvent.md) + - [Flipdish.RetentionCampaignDeletedEvent](docs/RetentionCampaignDeletedEvent.md) + - [Flipdish.RetentionCampaignUpdatedEvent](docs/RetentionCampaignUpdatedEvent.md) + - [Flipdish.RevenueAdjustmentsDetails](docs/RevenueAdjustmentsDetails.md) + - [Flipdish.RevenueDetail](docs/RevenueDetail.md) + - [Flipdish.SafeWaitHandle](docs/SafeWaitHandle.md) + - [Flipdish.SearchCriteria](docs/SearchCriteria.md) + - [Flipdish.ServiceCharge](docs/ServiceCharge.md) + - [Flipdish.SetOrderBatchingConfiguration](docs/SetOrderBatchingConfiguration.md) + - [Flipdish.SetPasswordWithPinModel](docs/SetPasswordWithPinModel.md) + - [Flipdish.SetVoucherValidityPeriodsSimplifiedRequest](docs/SetVoucherValidityPeriodsSimplifiedRequest.md) + - [Flipdish.Setting](docs/Setting.md) + - [Flipdish.SignupStep](docs/SignupStep.md) + - [Flipdish.SmsInfo](docs/SmsInfo.md) + - [Flipdish.SmsProviderCredential](docs/SmsProviderCredential.md) + - [Flipdish.SmsProviderCredentialUpdateRequest](docs/SmsProviderCredentialUpdateRequest.md) + - [Flipdish.SmsReceivedEvent](docs/SmsReceivedEvent.md) + - [Flipdish.StatisticsCurrencyDataPoint](docs/StatisticsCurrencyDataPoint.md) + - [Flipdish.Store](docs/Store.md) + - [Flipdish.StoreAddress](docs/StoreAddress.md) + - [Flipdish.StoreAddressBase](docs/StoreAddressBase.md) + - [Flipdish.StoreAddressForm](docs/StoreAddressForm.md) + - [Flipdish.StoreAddressUpdatedEvent](docs/StoreAddressUpdatedEvent.md) + - [Flipdish.StoreArchivedEvent](docs/StoreArchivedEvent.md) + - [Flipdish.StoreBase](docs/StoreBase.md) + - [Flipdish.StoreBusinessHoursOverrideCreatedEvent](docs/StoreBusinessHoursOverrideCreatedEvent.md) + - [Flipdish.StoreBusinessHoursOverrideDeletedEvent](docs/StoreBusinessHoursOverrideDeletedEvent.md) + - [Flipdish.StoreCampaignStartTime](docs/StoreCampaignStartTime.md) + - [Flipdish.StoreChannelAssignment](docs/StoreChannelAssignment.md) + - [Flipdish.StoreCloneSettings](docs/StoreCloneSettings.md) + - [Flipdish.StoreCollectionSettings](docs/StoreCollectionSettings.md) + - [Flipdish.StoreConfig](docs/StoreConfig.md) + - [Flipdish.StoreCreateBase](docs/StoreCreateBase.md) + - [Flipdish.StoreCreatedEvent](docs/StoreCreatedEvent.md) + - [Flipdish.StoreDataPoint](docs/StoreDataPoint.md) + - [Flipdish.StoreDeletedEvent](docs/StoreDeletedEvent.md) + - [Flipdish.StoreDeliveryZoneFeeConfig](docs/StoreDeliveryZoneFeeConfig.md) + - [Flipdish.StoreDeliveryZoneFeeConfigUpdateRequest](docs/StoreDeliveryZoneFeeConfigUpdateRequest.md) + - [Flipdish.StoreEndOfDayReport](docs/StoreEndOfDayReport.md) + - [Flipdish.StoreFeeConfig](docs/StoreFeeConfig.md) + - [Flipdish.StoreFeeConfigUpdatedEvent](docs/StoreFeeConfigUpdatedEvent.md) + - [Flipdish.StoreGroup](docs/StoreGroup.md) + - [Flipdish.StoreGroupBase](docs/StoreGroupBase.md) + - [Flipdish.StoreGroupCreatedEvent](docs/StoreGroupCreatedEvent.md) + - [Flipdish.StoreGroupDeletedEvent](docs/StoreGroupDeletedEvent.md) + - [Flipdish.StoreGroupExtended](docs/StoreGroupExtended.md) + - [Flipdish.StoreGroupUpdatedEvent](docs/StoreGroupUpdatedEvent.md) + - [Flipdish.StoreHeader](docs/StoreHeader.md) + - [Flipdish.StoreItemHeader](docs/StoreItemHeader.md) + - [Flipdish.StoreKioskSetting](docs/StoreKioskSetting.md) + - [Flipdish.StoreKioskSettingUpdatedEvent](docs/StoreKioskSettingUpdatedEvent.md) + - [Flipdish.StoreListItem](docs/StoreListItem.md) + - [Flipdish.StoreLogoCreatedEvent](docs/StoreLogoCreatedEvent.md) + - [Flipdish.StoreLogoDeletedEvent](docs/StoreLogoDeletedEvent.md) + - [Flipdish.StoreLogoUpdatedEvent](docs/StoreLogoUpdatedEvent.md) + - [Flipdish.StoreMenuAssignedEvent](docs/StoreMenuAssignedEvent.md) + - [Flipdish.StoreNote](docs/StoreNote.md) + - [Flipdish.StoreOpeningHoursUpdatedEvent](docs/StoreOpeningHoursUpdatedEvent.md) + - [Flipdish.StoreOrderCapacityConfig](docs/StoreOrderCapacityConfig.md) + - [Flipdish.StoreOrderCapacityConfigEditModel](docs/StoreOrderCapacityConfigEditModel.md) + - [Flipdish.StoreOrderCapacityPeriod](docs/StoreOrderCapacityPeriod.md) + - [Flipdish.StorePreOrderConfigUpdatedEvent](docs/StorePreOrderConfigUpdatedEvent.md) + - [Flipdish.StorePublishedEvent](docs/StorePublishedEvent.md) + - [Flipdish.StoreServiceChargeUpdatedEvent](docs/StoreServiceChargeUpdatedEvent.md) + - [Flipdish.StoreStatistics](docs/StoreStatistics.md) + - [Flipdish.StoreSummary](docs/StoreSummary.md) + - [Flipdish.StoreTipUpdatedEvent](docs/StoreTipUpdatedEvent.md) + - [Flipdish.StoreUnarchivedEvent](docs/StoreUnarchivedEvent.md) + - [Flipdish.StoreUnpublishedEvent](docs/StoreUnpublishedEvent.md) + - [Flipdish.StoreUpdatedEvent](docs/StoreUpdatedEvent.md) + - [Flipdish.StoreValidationConfig](docs/StoreValidationConfig.md) + - [Flipdish.Stream](docs/Stream.md) + - [Flipdish.StripeAccountLinkRequest](docs/StripeAccountLinkRequest.md) + - [Flipdish.StripeConnectedAccount](docs/StripeConnectedAccount.md) + - [Flipdish.StripeConnectedAccountInfo](docs/StripeConnectedAccountInfo.md) + - [Flipdish.StripeCustomConnectedAccount](docs/StripeCustomConnectedAccount.md) + - [Flipdish.StripeTerminalConnectionToken](docs/StripeTerminalConnectionToken.md) + - [Flipdish.StripeTerminalLocation](docs/StripeTerminalLocation.md) + - [Flipdish.StuartSettings](docs/StuartSettings.md) + - [Flipdish.StuartSettingsTransportPrices](docs/StuartSettingsTransportPrices.md) + - [Flipdish.Subscription](docs/Subscription.md) + - [Flipdish.SubscriptionInvoice](docs/SubscriptionInvoice.md) + - [Flipdish.SubscriptionProduct](docs/SubscriptionProduct.md) + - [Flipdish.SubscriptionStore](docs/SubscriptionStore.md) + - [Flipdish.SubscriptionSummary](docs/SubscriptionSummary.md) + - [Flipdish.SupportedCountry](docs/SupportedCountry.md) + - [Flipdish.TaxItem](docs/TaxItem.md) + - [Flipdish.TaxRate](docs/TaxRate.md) + - [Flipdish.Teammate](docs/Teammate.md) + - [Flipdish.TeammateBase](docs/TeammateBase.md) + - [Flipdish.TeammateDeletedEvent](docs/TeammateDeletedEvent.md) + - [Flipdish.TeammateInviteAcceptedEvent](docs/TeammateInviteAcceptedEvent.md) + - [Flipdish.TeammateInviteSentEvent](docs/TeammateInviteSentEvent.md) + - [Flipdish.TeammateUpdatedEvent](docs/TeammateUpdatedEvent.md) + - [Flipdish.TelemetrySeriesProperty](docs/TelemetrySeriesProperty.md) + - [Flipdish.TelemetrySeriesQueryParameters](docs/TelemetrySeriesQueryParameters.md) + - [Flipdish.TelemetrySeriesResult](docs/TelemetrySeriesResult.md) + - [Flipdish.TelephonyConfig](docs/TelephonyConfig.md) + - [Flipdish.TelephonyConfigUpdatedEvent](docs/TelephonyConfigUpdatedEvent.md) + - [Flipdish.ThirdPartyFeesDetails](docs/ThirdPartyFeesDetails.md) + - [Flipdish.TipConfiguration](docs/TipConfiguration.md) + - [Flipdish.UnRegisterCardReaderRequest](docs/UnRegisterCardReaderRequest.md) + - [Flipdish.UpcomingInvoice](docs/UpcomingInvoice.md) + - [Flipdish.UpdateAppStoreApp](docs/UpdateAppStoreApp.md) + - [Flipdish.UpdateAppStoreAppConfiguration](docs/UpdateAppStoreAppConfiguration.md) + - [Flipdish.UpdateAppStoreAppConfigurationValuesBatch](docs/UpdateAppStoreAppConfigurationValuesBatch.md) + - [Flipdish.UpdateAppStoreAppConfigurationWebhookDTO](docs/UpdateAppStoreAppConfigurationWebhookDTO.md) + - [Flipdish.UpdateAppStoreAppExternalProduct](docs/UpdateAppStoreAppExternalProduct.md) + - [Flipdish.UpdateCatalogGroupReference](docs/UpdateCatalogGroupReference.md) + - [Flipdish.UpdateCatalogItem](docs/UpdateCatalogItem.md) + - [Flipdish.UpdateDriverNotificationToken](docs/UpdateDriverNotificationToken.md) + - [Flipdish.UpdateDriverProfileModel](docs/UpdateDriverProfileModel.md) + - [Flipdish.UpdateFulfillmentStatesConfiguration](docs/UpdateFulfillmentStatesConfiguration.md) + - [Flipdish.UpdateGroup](docs/UpdateGroup.md) + - [Flipdish.UpdateGroupReference](docs/UpdateGroupReference.md) + - [Flipdish.UpdateLocationArea](docs/UpdateLocationArea.md) + - [Flipdish.UpdateMetafieldDefinition](docs/UpdateMetafieldDefinition.md) + - [Flipdish.UpdateMobileAppsSubmissionStatus](docs/UpdateMobileAppsSubmissionStatus.md) + - [Flipdish.UpdatePayGreenConfigurationRequest](docs/UpdatePayGreenConfigurationRequest.md) + - [Flipdish.UpdateProduct](docs/UpdateProduct.md) + - [Flipdish.UpdateProductReference](docs/UpdateProductReference.md) + - [Flipdish.UpdateStorePayGreenConfigurationRequest](docs/UpdateStorePayGreenConfigurationRequest.md) + - [Flipdish.UpdateTipConfiguration](docs/UpdateTipConfiguration.md) + - [Flipdish.UpdateVoucher](docs/UpdateVoucher.md) + - [Flipdish.UpdateVoucherUsage](docs/UpdateVoucherUsage.md) + - [Flipdish.UserAnsweredSignupQuestionsEvent](docs/UserAnsweredSignupQuestionsEvent.md) + - [Flipdish.UserCreatedEvent](docs/UserCreatedEvent.md) + - [Flipdish.UserDeletedEvent](docs/UserDeletedEvent.md) + - [Flipdish.UserEventInfo](docs/UserEventInfo.md) + - [Flipdish.UserFlipdishAccount](docs/UserFlipdishAccount.md) + - [Flipdish.UserInfo](docs/UserInfo.md) + - [Flipdish.UserLoginEvent](docs/UserLoginEvent.md) + - [Flipdish.UserMonthlyCommission](docs/UserMonthlyCommission.md) + - [Flipdish.UserNote](docs/UserNote.md) + - [Flipdish.UserPasswordCreatedEvent](docs/UserPasswordCreatedEvent.md) + - [Flipdish.UserRole](docs/UserRole.md) + - [Flipdish.UserSearch](docs/UserSearch.md) + - [Flipdish.UserStoreInfo](docs/UserStoreInfo.md) + - [Flipdish.UserUpdatedEvent](docs/UserUpdatedEvent.md) + - [Flipdish.UserWhiteLabelConfig](docs/UserWhiteLabelConfig.md) + - [Flipdish.UserWhiteLabelInfo](docs/UserWhiteLabelInfo.md) + - [Flipdish.ValidValue](docs/ValidValue.md) + - [Flipdish.ValidationErrorResult](docs/ValidationErrorResult.md) + - [Flipdish.ValidityPeriod](docs/ValidityPeriod.md) + - [Flipdish.Voucher](docs/Voucher.md) + - [Flipdish.VoucherAppliedEvent](docs/VoucherAppliedEvent.md) + - [Flipdish.VoucherCreatedEvent](docs/VoucherCreatedEvent.md) + - [Flipdish.VoucherDataPoint](docs/VoucherDataPoint.md) + - [Flipdish.VoucherDeletedEvent](docs/VoucherDeletedEvent.md) + - [Flipdish.VoucherSummary](docs/VoucherSummary.md) + - [Flipdish.VoucherUpdatedEvent](docs/VoucherUpdatedEvent.md) + - [Flipdish.VoucherWithStats](docs/VoucherWithStats.md) + - [Flipdish.WaitHandle](docs/WaitHandle.md) + - [Flipdish.WebhookEventSample](docs/WebhookEventSample.md) + - [Flipdish.WebhookLog](docs/WebhookLog.md) + - [Flipdish.WebhookSubscription](docs/WebhookSubscription.md) + - [Flipdish.WebhookSubscriptionCreatedEvent](docs/WebhookSubscriptionCreatedEvent.md) + - [Flipdish.WebhookSubscriptionDeletedEvent](docs/WebhookSubscriptionDeletedEvent.md) + - [Flipdish.WebhookSubscriptionEventInfo](docs/WebhookSubscriptionEventInfo.md) + - [Flipdish.WebhookSubscriptionUpdatedEvent](docs/WebhookSubscriptionUpdatedEvent.md) + - [Flipdish.WebsiteImage](docs/WebsiteImage.md) + - [Flipdish.WebsiteTestimonial](docs/WebsiteTestimonial.md) + - [Flipdish.WebsiteTestimonialBase](docs/WebsiteTestimonialBase.md) + - [Flipdish.WebsiteUpdatedEvent](docs/WebsiteUpdatedEvent.md) + - [Flipdish.WebsiteVanityUrlUpdatedEvent](docs/WebsiteVanityUrlUpdatedEvent.md) + - [Flipdish.WhiteLabelConfig](docs/WhiteLabelConfig.md) + + +## Documentation for Authorization + + + +### oauth2 + + +- **Type**: OAuth +- **Flow**: implicit +- **Authorization URL**: https://api.flipdish.co/identity/connect/authorize +- **Scopes**: + - api: Access to Flipdish API + diff --git a/docs/Accept.md b/docs/Accept.md new file mode 100644 index 00000000..2560747f --- /dev/null +++ b/docs/Accept.md @@ -0,0 +1,9 @@ +# Flipdish.Accept + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EstimatedMinutesForDelivery** | **Number** | Estimated minutes for delivery | [optional] + + diff --git a/docs/AcceptInvitationResult.md b/docs/AcceptInvitationResult.md new file mode 100644 index 00000000..72750d39 --- /dev/null +++ b/docs/AcceptInvitationResult.md @@ -0,0 +1,10 @@ +# Flipdish.AcceptInvitationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsNewUser** | **Boolean** | Bool indicating if the user accepting the invitation is a new user | [optional] +**InvitedEmailAddress** | **String** | The email address that was invited. | [optional] + + diff --git a/docs/AccountDetail.md b/docs/AccountDetail.md new file mode 100644 index 00000000..0f578c25 --- /dev/null +++ b/docs/AccountDetail.md @@ -0,0 +1,19 @@ +# Flipdish.AccountDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email | [optional] +**SignupSteps** | [**[SignupStep]**](SignupStep.md) | Signup steps | [optional] +**IsVerified** | **Boolean** | Is account email verified | [optional] +**IsSelfServeUser** | **Boolean** | is the account a Self Server | [optional] +**AccountId** | **Number** | Accounts Id | [optional] +**Name** | **String** | Name | [optional] +**Language** | **String** | Language Id | [optional] +**TimeZoneInfoId** | **String** | Time Zone Info Id | [optional] +**DisplayTimesInUserLocalTimeZone** | **Boolean** | Display the time in time zone local to the user | [optional] +**ShowHiddenFeatures** | **Boolean** | Show hidden features | [optional] +**CreatedAt** | **Date** | User created at | [optional] + + diff --git a/docs/AccountDetailBase.md b/docs/AccountDetailBase.md new file mode 100644 index 00000000..dd8df5c4 --- /dev/null +++ b/docs/AccountDetailBase.md @@ -0,0 +1,14 @@ +# Flipdish.AccountDetailBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name | [optional] +**Language** | **String** | Language Id | [optional] +**TimeZoneInfoId** | **String** | Time Zone Info Id | [optional] +**DisplayTimesInUserLocalTimeZone** | **Boolean** | Display the time in time zone local to the user | [optional] +**ShowHiddenFeatures** | **Boolean** | Show hidden features | [optional] +**CreatedAt** | **Date** | User created at | [optional] + + diff --git a/docs/AccountFieldDefinition.md b/docs/AccountFieldDefinition.md new file mode 100644 index 00000000..9381edc5 --- /dev/null +++ b/docs/AccountFieldDefinition.md @@ -0,0 +1,59 @@ +# Flipdish.AccountFieldDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **String** | Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData | [optional] +**DisplayName** | **String** | Display name of the field | [optional] +**Type** | **String** | There are some fields that are of type known to the frontend (IBAN, Swift) -- for those frontend should use its own validation library, e.g. ibantools | [optional] +**MinLength** | **Number** | Minimum length of the field | [optional] +**MaxLength** | **Number** | Maximum length of the field | [optional] +**DigitsOnly** | **Boolean** | Is the field digits (numeric) only | [optional] +**Regex** | **String** | Regex for validating the field (if specified) | [optional] + + + +## Enum: KeyEnum + + +* `Iban` (value: `"Iban"`) + +* `AccountNumber` (value: `"AccountNumber"`) + +* `RoutingNumber` (value: `"RoutingNumber"`) + +* `BSB` (value: `"BSB"`) + +* `BranchCode` (value: `"BranchCode"`) + +* `BankCode` (value: `"BankCode"`) + +* `InstitutionNumber` (value: `"InstitutionNumber"`) + +* `TransitNumber` (value: `"TransitNumber"`) + +* `ClearingCode` (value: `"ClearingCode"`) + +* `IfscCode` (value: `"IfscCode"`) + +* `Clabe` (value: `"Clabe"`) + +* `SortCode` (value: `"SortCode"`) + +* `Swift` (value: `"Swift"`) + + + + + +## Enum: TypeEnum + + +* `None` (value: `"None"`) + +* `Iban` (value: `"Iban"`) + + + + diff --git a/docs/AccountFieldKeyValuePair.md b/docs/AccountFieldKeyValuePair.md new file mode 100644 index 00000000..c82b2400 --- /dev/null +++ b/docs/AccountFieldKeyValuePair.md @@ -0,0 +1,43 @@ +# Flipdish.AccountFieldKeyValuePair + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **String** | Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData | [optional] +**Value** | **String** | The value of the field | [optional] + + + +## Enum: KeyEnum + + +* `Iban` (value: `"Iban"`) + +* `AccountNumber` (value: `"AccountNumber"`) + +* `RoutingNumber` (value: `"RoutingNumber"`) + +* `BSB` (value: `"BSB"`) + +* `BranchCode` (value: `"BranchCode"`) + +* `BankCode` (value: `"BankCode"`) + +* `InstitutionNumber` (value: `"InstitutionNumber"`) + +* `TransitNumber` (value: `"TransitNumber"`) + +* `ClearingCode` (value: `"ClearingCode"`) + +* `IfscCode` (value: `"IfscCode"`) + +* `Clabe` (value: `"Clabe"`) + +* `SortCode` (value: `"SortCode"`) + +* `Swift` (value: `"Swift"`) + + + + diff --git a/docs/AccountFieldsDefinitions.md b/docs/AccountFieldsDefinitions.md new file mode 100644 index 00000000..83316b6d --- /dev/null +++ b/docs/AccountFieldsDefinitions.md @@ -0,0 +1,9 @@ +# Flipdish.AccountFieldsDefinitions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefinitionsPerCountry** | **{String: [AccountFieldDefinition]}** | List of field definitions per country | [optional] + + diff --git a/docs/AccountsApi.md b/docs/AccountsApi.md new file mode 100644 index 00000000..5f8fa86b --- /dev/null +++ b/docs/AccountsApi.md @@ -0,0 +1,858 @@ +# Flipdish.AccountsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**answerSignUpQuestion**](AccountsApi.md#answerSignUpQuestion) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/answer | +[**changePassword**](AccountsApi.md#changePassword) | **PUT** /api/v1.0/accounts/password | +[**changePasswordWithPin**](AccountsApi.md#changePasswordWithPin) | **PUT** /api/v1.0/accounts/password/pin | +[**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 | +[**loginWithPin**](AccountsApi.md#loginWithPin) | **POST** /api/v1.0/accounts/login/pin | +[**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 | +[**requestLoginPin**](AccountsApi.md#requestLoginPin) | **POST** /api/v1.0/accounts/pin | +[**requestPasswordReset**](AccountsApi.md#requestPasswordReset) | **POST** /api/v1.0/accounts/passwordreset | +[**sendPinForPasswordReset**](AccountsApi.md#sendPinForPasswordReset) | **POST** /api/v1.0/accounts/password/resetpin | +[**skipSignupStep**](AccountsApi.md#skipSignupStep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | +[**updateAccount**](AccountsApi.md#updateAccount) | **PUT** /api/v1.0/accounts | + + + +## answerSignUpQuestion + +> answerSignUpQuestion(signupStepAction, answerId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let signupStepAction = "signupStepAction_example"; // String | +let answerId = 56; // Number | +apiInstance.answerSignUpQuestion(signupStepAction, answerId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **signupStepAction** | **String**| | + **answerId** | **Number**| | + +### Return type + +null (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 + + +## changePassword + +> changePassword(changePasswordModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let changePasswordModel = new Flipdish.ChangePasswordModel(); // ChangePasswordModel | +apiInstance.changePassword(changePasswordModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **changePasswordModel** | [**ChangePasswordModel**](ChangePasswordModel.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## changePasswordWithPin + +> changePasswordWithPin(changePasswordModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let changePasswordModel = new Flipdish.SetPasswordWithPinModel(); // SetPasswordWithPinModel | +apiInstance.changePasswordWithPin(changePasswordModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **changePasswordModel** | [**SetPasswordWithPinModel**](SetPasswordWithPinModel.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## createAccount + +> createAccount(createAccountModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let createAccountModel = new Flipdish.CreateAccountModel(); // CreateAccountModel | +apiInstance.createAccount(createAccountModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createAccountModel** | [**CreateAccountModel**](CreateAccountModel.md)| | + +### Return type + +null (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**: Message, ErrorCode, StackTrace, application/json, text/json, application/xml, text/xml + + +## createBasicAccount + +> String createBasicAccount(basicAccountModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let basicAccountModel = new Flipdish.CreateBasicAccountModel(); // CreateBasicAccountModel | +apiInstance.createBasicAccount(basicAccountModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **basicAccountModel** | [**CreateBasicAccountModel**](CreateBasicAccountModel.md)| | + +### Return type + +**String** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## getAccountDetails + +> RestApiResultAccountDetail getAccountDetails() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +apiInstance.getAccountDetails((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultAccountDetail**](RestApiResultAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getLocalisedTimeZones + +> RestApiArrayResultLocalisedTimeZone getLocalisedTimeZones() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +apiInstance.getLocalisedTimeZones((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiArrayResultLocalisedTimeZone**](RestApiArrayResultLocalisedTimeZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## login + +> login(loginModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let loginModel = new Flipdish.LoginModel(); // LoginModel | +apiInstance.login(loginModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **loginModel** | [**LoginModel**](LoginModel.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## loginSso + +> loginSso() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +apiInstance.loginSso((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## loginWithPin + +> loginWithPin(loginModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let loginModel = new Flipdish.LoginWithPinModel(); // LoginWithPinModel | +apiInstance.loginWithPin(loginModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **loginModel** | [**LoginWithPinModel**](LoginWithPinModel.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## logout + +> logout() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +apiInstance.logout((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## passwordResetWithToken + +> passwordResetWithToken(passwordResetModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let passwordResetModel = new Flipdish.PasswordResetModel(); // PasswordResetModel | +apiInstance.passwordResetWithToken(passwordResetModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **passwordResetModel** | [**PasswordResetModel**](PasswordResetModel.md)| | + +### Return type + +null (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**: Message, ErrorCode, StackTrace, application/json, text/json, application/xml, text/xml + + +## recaptchaValidate + +> recaptchaValidate(token) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let token = "token_example"; // String | +apiInstance.recaptchaValidate(token, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Message, ErrorCode, StackTrace, application/json, text/json, application/xml, text/xml + + +## requestLoginPin + +> RequestLoginPinResponse requestLoginPin(requestLoginPinRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let requestLoginPinRequest = new Flipdish.RequestLoginPinModel(); // RequestLoginPinModel | +apiInstance.requestLoginPin(requestLoginPinRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestLoginPinRequest** | [**RequestLoginPinModel**](RequestLoginPinModel.md)| | + +### Return type + +[**RequestLoginPinResponse**](RequestLoginPinResponse.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, Data, Message, ErrorCode, StackTrace + + +## requestPasswordReset + +> requestPasswordReset(requestPasswordResetModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let requestPasswordResetModel = new Flipdish.RequestPasswordResetModel(); // RequestPasswordResetModel | +apiInstance.requestPasswordReset(requestPasswordResetModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestPasswordResetModel** | [**RequestPasswordResetModel**](RequestPasswordResetModel.md)| | + +### Return type + +null (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**: Message, ErrorCode, StackTrace, application/json, text/json, application/xml, text/xml + + +## sendPinForPasswordReset + +> RequestPasswordResetPinResponse sendPinForPasswordReset(requestPasswordResetRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let requestPasswordResetRequest = new Flipdish.RequestPasswordResetModel(); // RequestPasswordResetModel | +apiInstance.sendPinForPasswordReset(requestPasswordResetRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## skipSignupStep + +> skipSignupStep(signupStepAction) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let signupStepAction = "signupStepAction_example"; // String | +apiInstance.skipSignupStep(signupStepAction, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **signupStepAction** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateAccount + +> updateAccount(updateAccountModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AccountsApi(); +let updateAccountModel = new Flipdish.AccountDetailBase(); // AccountDetailBase | +apiInstance.updateAccount(updateAccountModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateAccountModel** | [**AccountDetailBase**](AccountDetailBase.md)| | + +### Return type + +null (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**: Message, ErrorCode, StackTrace, application/json, text/json, application/xml, text/xml + diff --git a/docs/AddressApi.md b/docs/AddressApi.md new file mode 100644 index 00000000..4e389250 --- /dev/null +++ b/docs/AddressApi.md @@ -0,0 +1,262 @@ +# Flipdish.AddressApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addressTemplates**](AddressApi.md#addressTemplates) | **POST** /api/v1.0/address/templates | +[**formByApp**](AddressApi.md#formByApp) | **GET** /api/v1.0/app/{appId}/address/form | +[**formByCountry**](AddressApi.md#formByCountry) | **GET** /api/v1.0/address/country/{countryCode}/form | +[**formatGoogleAddress**](AddressApi.md#formatGoogleAddress) | **POST** /api/v1.0/address/google | +[**getCountries**](AddressApi.md#getCountries) | **GET** /api/v1.0/address/countries | + + + +## addressTemplates + +> RestApiStringResult addressTemplates(address) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AddressApi(); +let address = new Flipdish.StoreAddressForm(); // StoreAddressForm | +apiInstance.addressTemplates(address, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## formByApp + +> RestApiResultAddressFormResponse formByApp(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AddressApi(); +let appId = "appId_example"; // String | +let opts = { + 'language': "language_example" // String | +}; +apiInstance.formByApp(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **language** | **String**| | [optional] + +### Return type + +[**RestApiResultAddressFormResponse**](RestApiResultAddressFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## formByCountry + +> RestApiResultAddressFormResponse formByCountry(countryCode, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AddressApi(); +let countryCode = "countryCode_example"; // String | +let opts = { + 'language': "language_example" // String | +}; +apiInstance.formByCountry(countryCode, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **countryCode** | **String**| | + **language** | **String**| | [optional] + +### Return type + +[**RestApiResultAddressFormResponse**](RestApiResultAddressFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## formatGoogleAddress + +> RestApiResultAddressFormResponse formatGoogleAddress(googleAddress, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AddressApi(); +let googleAddress = new Flipdish.GoogleAddress(); // GoogleAddress | +let opts = { + 'language': "language_example" // String | +}; +apiInstance.formatGoogleAddress(googleAddress, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **googleAddress** | [**GoogleAddress**](GoogleAddress.md)| | + **language** | **String**| | [optional] + +### Return type + +[**RestApiResultAddressFormResponse**](RestApiResultAddressFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getCountries + +> RestApiResultCountryFormResponse getCountries(opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AddressApi(); +let opts = { + 'language': "language_example" // String | +}; +apiInstance.getCountries(opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **language** | **String**| | [optional] + +### Return type + +[**RestApiResultCountryFormResponse**](RestApiResultCountryFormResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/AddressFormDisplayFormat.md b/docs/AddressFormDisplayFormat.md new file mode 100644 index 00000000..39c1e5a1 --- /dev/null +++ b/docs/AddressFormDisplayFormat.md @@ -0,0 +1,10 @@ +# Flipdish.AddressFormDisplayFormat + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OneLine** | **String** | | [optional] +**TwoLines** | **[String]** | | [optional] + + diff --git a/docs/AddressFormResponse.md b/docs/AddressFormResponse.md new file mode 100644 index 00000000..54804554 --- /dev/null +++ b/docs/AddressFormResponse.md @@ -0,0 +1,12 @@ +# Flipdish.AddressFormResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FormData** | [**[DynamicFormField]**](DynamicFormField.md) | List of field definitions. | [optional] +**CountryCode** | **String** | ISO two letter code. | [optional] +**Language** | **String** | ISO culture code. | [optional] +**DisplayFormat** | [**AddressFormDisplayFormat**](AddressFormDisplayFormat.md) | | [optional] + + diff --git a/docs/AllMetadataResult.md b/docs/AllMetadataResult.md new file mode 100644 index 00000000..6f81b22d --- /dev/null +++ b/docs/AllMetadataResult.md @@ -0,0 +1,10 @@ +# Flipdish.AllMetadataResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemMetadata** | [**[Metadata]**](Metadata.md) | Menu item metadata | [optional] +**MenuItemOptionSetItemMetadata** | [**[Metadata]**](Metadata.md) | Menu item optionset item metadata | [optional] + + diff --git a/docs/Allergen.md b/docs/Allergen.md new file mode 100644 index 00000000..05855d20 --- /dev/null +++ b/docs/Allergen.md @@ -0,0 +1,11 @@ +# Flipdish.Allergen + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllergenId** | **String** | A unique identifier for the allergen | [optional] +**LocalizedName** | **String** | Localized name of the allergen | [optional] +**IconUrl** | **String** | Url to the icon for the allergen | [optional] + + diff --git a/docs/AnalyticsClientEvent.md b/docs/AnalyticsClientEvent.md new file mode 100644 index 00000000..946d7397 --- /dev/null +++ b/docs/AnalyticsClientEvent.md @@ -0,0 +1,21 @@ +# Flipdish.AnalyticsClientEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**EventType** | **String** | Type of the event | [optional] +**AppType** | **String** | Type of the app the event is coming from | [optional] +**Metadata** | **String** | JSON Metadata | [optional] +**UserId** | **Number** | User Id | [optional] +**Latitude** | **Number** | Latitude of the event | [optional] +**Longitude** | **Number** | Longitude of the event | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/ApmApi.md b/docs/ApmApi.md new file mode 100644 index 00000000..e035e96b --- /dev/null +++ b/docs/ApmApi.md @@ -0,0 +1,328 @@ +# Flipdish.ApmApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getApmStatus**](ApmApi.md#getApmStatus) | **GET** /api/v1.0/{appId}/apm/status | +[**getBasicStatistics**](ApmApi.md#getBasicStatistics) | **GET** /api/v1.0/{appId}/apm/statistics | +[**getCalendarWeekStatistics**](ApmApi.md#getCalendarWeekStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | +[**getCallsStatistics**](ApmApi.md#getCallsStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | +[**getOrderStatistics**](ApmApi.md#getOrderStatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | +[**getPaginatedCallList**](ApmApi.md#getPaginatedCallList) | **GET** /api/v1.0/{appId}/apm/calls | + + + +## getApmStatus + +> RestApiResultApmStatus getApmStatus(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ApmApi(); +let appId = "appId_example"; // String | +apiInstance.getApmStatus(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultApmStatus**](RestApiResultApmStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getBasicStatistics + +> RestApiResultApmStatistics getBasicStatistics(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ApmApi(); +let appId = "appId_example"; // String | +let opts = { + 'storeId': [null] // [Number] | +}; +apiInstance.getBasicStatistics(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiResultApmStatistics**](RestApiResultApmStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getCalendarWeekStatistics + +> RestApiArrayResultApmHourlyDataPoint getCalendarWeekStatistics(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ApmApi(); +let appId = "appId_example"; // String | +let opts = { + 'storeId': [null] // [Number] | +}; +apiInstance.getCalendarWeekStatistics(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiArrayResultApmHourlyDataPoint**](RestApiArrayResultApmHourlyDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getCallsStatistics + +> RestApiArrayResultApmDataPoint getCallsStatistics(appId, aggregateDataBy, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ApmApi(); +let appId = "appId_example"; // String | +let aggregateDataBy = "aggregateDataBy_example"; // String | +let opts = { + 'dataPointLimit': 56, // Number | + 'storeId': [null] // [Number] | +}; +apiInstance.getCallsStatistics(appId, aggregateDataBy, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **aggregateDataBy** | **String**| | + **dataPointLimit** | **Number**| | [optional] + **storeId** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiArrayResultApmDataPoint**](RestApiArrayResultApmDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getOrderStatistics + +> RestApiArrayResultApmCurrencyDataPoint getOrderStatistics(appId, aggregateDataBy, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ApmApi(); +let appId = "appId_example"; // String | +let aggregateDataBy = "aggregateDataBy_example"; // String | +let opts = { + 'dataPointLimit': 56, // Number | + 'storeId': [null] // [Number] | +}; +apiInstance.getOrderStatistics(appId, aggregateDataBy, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **aggregateDataBy** | **String**| | + **dataPointLimit** | **Number**| | [optional] + **storeId** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiArrayResultApmCurrencyDataPoint**](RestApiArrayResultApmCurrencyDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPaginatedCallList + +> RestApiPaginationResultPhoneCall getPaginatedCallList(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ApmApi(); +let appId = "appId_example"; // String | +let opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeId': [null] // [Number] | +}; +apiInstance.getPaginatedCallList(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **storeId** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPhoneCall**](RestApiPaginationResultPhoneCall.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/ApmCurrencyDataPoint.md b/docs/ApmCurrencyDataPoint.md new file mode 100644 index 00000000..2fdc3c9d --- /dev/null +++ b/docs/ApmCurrencyDataPoint.md @@ -0,0 +1,11 @@ +# Flipdish.ApmCurrencyDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PeriodStart** | **Date** | Date from which the data point starts | [optional] +**PeriodLengthInDays** | **Number** | The length in days that this data point covers | [optional] +**CurrencyData** | [**[CurrencyData]**](CurrencyData.md) | The values of this data point | [optional] + + diff --git a/docs/ApmDataPoint.md b/docs/ApmDataPoint.md new file mode 100644 index 00000000..9359d2fa --- /dev/null +++ b/docs/ApmDataPoint.md @@ -0,0 +1,11 @@ +# Flipdish.ApmDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PeriodStart** | **Date** | Date from which the data point starts | [optional] +**PeriodLengthInDays** | **Number** | The length in days that this data point covers | [optional] +**Value** | **Number** | The value of this data point | [optional] + + diff --git a/docs/ApmHourlyDataPoint.md b/docs/ApmHourlyDataPoint.md new file mode 100644 index 00000000..9f55c891 --- /dev/null +++ b/docs/ApmHourlyDataPoint.md @@ -0,0 +1,32 @@ +# Flipdish.ApmHourlyDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Day** | **String** | Day of the week | [optional] +**Hour** | **Number** | Hour in the day | [optional] +**TotalValue** | **Number** | Total Value | [optional] + + + +## Enum: DayEnum + + +* `Sunday` (value: `"Sunday"`) + +* `Monday` (value: `"Monday"`) + +* `Tuesday` (value: `"Tuesday"`) + +* `Wednesday` (value: `"Wednesday"`) + +* `Thursday` (value: `"Thursday"`) + +* `Friday` (value: `"Friday"`) + +* `Saturday` (value: `"Saturday"`) + + + + diff --git a/docs/ApmStatistics.md b/docs/ApmStatistics.md new file mode 100644 index 00000000..16e0c9b5 --- /dev/null +++ b/docs/ApmStatistics.md @@ -0,0 +1,11 @@ +# Flipdish.ApmStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EstimatedMinutesSaved** | **Number** | Total amount of time spent with APM | [optional] +**EstimatedMinutesCouldSaved** | **Number** | Total amount of time that could be saved | [optional] +**CurrencyData** | [**[StatisticsCurrencyDataPoint]**](StatisticsCurrencyDataPoint.md) | Currency based data | [optional] + + diff --git a/docs/ApmStatus.md b/docs/ApmStatus.md new file mode 100644 index 00000000..7fa81182 --- /dev/null +++ b/docs/ApmStatus.md @@ -0,0 +1,9 @@ +# Flipdish.ApmStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsApmEnabled** | **Boolean** | Indicates if APM is active or otherwise | [optional] + + diff --git a/docs/App.md b/docs/App.md new file mode 100644 index 00000000..05e6c9cc --- /dev/null +++ b/docs/App.md @@ -0,0 +1,514 @@ +# Flipdish.App + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **String** | App Identifier | [optional] +**HasIosApp** | **Boolean** | Has iOS app in Apple App Store. This is readonly. | [optional] +**IosAppStoreUrl** | **String** | IOS App Store URL | [optional] +**HasAndroidApp** | **Boolean** | Has Android app in Google Play Store. This is readonly. | [optional] +**AndroidPlayStoreUrl** | **String** | Android Play Store URL | [optional] +**DisplayDeliveryRestaurantScreen** | **Boolean** | Display delivery restaurant screen | [optional] +**LogoImageUrl** | **String** | Application Logo. | [optional] +**Languages** | [**[Language]**](Language.md) | Languages that have been selected to be available to customers. | [optional] +**AvailableAppLanguages** | [**[Language]**](Language.md) | Lists all languages that are supported by Flipdish. | [optional] +**AppAccessLevel** | **String** | App access level for the logged in user | [optional] +**AppResourceSet** | **[String]** | Constitutes a list of available resources | [optional] +**Features** | **[String]** | Feature flags. These cannot be set by 3rd parties. | [optional] +**MapCenter** | [**Coordinates**](Coordinates.md) | | [optional] +**MapNorthEast** | [**Coordinates**](Coordinates.md) | | [optional] +**MapSouthWest** | [**Coordinates**](Coordinates.md) | | [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** | **Boolean** | 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** | **Boolean** | 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] + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + +* `Onboarding` (value: `"Onboarding"`) + +* `Support` (value: `"Support"`) + + + + + +## Enum: [AppResourceSetEnum] + + +* `ViewApp` (value: `"ViewApp"`) + +* `CreateApp` (value: `"CreateApp"`) + +* `UpdateApp` (value: `"UpdateApp"`) + +* `ViewAppName` (value: `"ViewAppName"`) + +* `EditAppAssets` (value: `"EditAppAssets"`) + +* `EditAppFeatures` (value: `"EditAppFeatures"`) + +* `ViewTeammates` (value: `"ViewTeammates"`) + +* `EditTeammates` (value: `"EditTeammates"`) + +* `CreateTeammateOwner` (value: `"CreateTeammateOwner"`) + +* `CreateTeammateManagedOwner` (value: `"CreateTeammateManagedOwner"`) + +* `CreateTeammateStoreOwner` (value: `"CreateTeammateStoreOwner"`) + +* `CreateTeammateStoreManager` (value: `"CreateTeammateStoreManager"`) + +* `CreateTeammateStoreStaff` (value: `"CreateTeammateStoreStaff"`) + +* `CreateTeammateStoreReadAccess` (value: `"CreateTeammateStoreReadAccess"`) + +* `CreateTeammateFinanceManager` (value: `"CreateTeammateFinanceManager"`) + +* `CreateTeammateIntegrator` (value: `"CreateTeammateIntegrator"`) + +* `CreateTeammateOnboarding` (value: `"CreateTeammateOnboarding"`) + +* `CreateTeammatePropertyManager` (value: `"CreateTeammatePropertyManager"`) + +* `CreateTeammatePropertyOwner` (value: `"CreateTeammatePropertyOwner"`) + +* `ViewApmConfigurations` (value: `"ViewApmConfigurations"`) + +* `EditApmConfigurations` (value: `"EditApmConfigurations"`) + +* `ViewCampaignsConfigurations` (value: `"ViewCampaignsConfigurations"`) + +* `CreateCampaignsConfigurations` (value: `"CreateCampaignsConfigurations"`) + +* `UpdateCampaignsConfigurations` (value: `"UpdateCampaignsConfigurations"`) + +* `DeleteCampaignsConfigurations` (value: `"DeleteCampaignsConfigurations"`) + +* `StampLoyaltyCardAgainstCampaignsConfigurations` (value: `"StampLoyaltyCardAgainstCampaignsConfigurations"`) + +* `ViewDevelopersSettings` (value: `"ViewDevelopersSettings"`) + +* `EditDevelopersSettings` (value: `"EditDevelopersSettings"`) + +* `ViewOrders` (value: `"ViewOrders"`) + +* `UpdateOrdersAccept` (value: `"UpdateOrdersAccept"`) + +* `UpdateOrdersReject` (value: `"UpdateOrdersReject"`) + +* `UpdateOrdersRefund` (value: `"UpdateOrdersRefund"`) + +* `UpdateOrdersDispatch` (value: `"UpdateOrdersDispatch"`) + +* `ViewStores` (value: `"ViewStores"`) + +* `CreateStores` (value: `"CreateStores"`) + +* `EditStores` (value: `"EditStores"`) + +* `ViewStoresOpeningHours` (value: `"ViewStoresOpeningHours"`) + +* `UpdateStoresOpenForCollectionOrDelivery` (value: `"UpdateStoresOpenForCollectionOrDelivery"`) + +* `UpdateStoresOpeningHours` (value: `"UpdateStoresOpeningHours"`) + +* `ViewStoresOpeningHoursOverride` (value: `"ViewStoresOpeningHoursOverride"`) + +* `EditStoresOpeningHoursOverride` (value: `"EditStoresOpeningHoursOverride"`) + +* `EditStoresOpeningHoursOverrideTemporary` (value: `"EditStoresOpeningHoursOverrideTemporary"`) + +* `UpdateStoresName` (value: `"UpdateStoresName"`) + +* `EditStoreKioskSettings` (value: `"EditStoreKioskSettings"`) + +* `EditStoreOrderCapacity` (value: `"EditStoreOrderCapacity"`) + +* `ArchiveStores` (value: `"ArchiveStores"`) + +* `PublishStores` (value: `"PublishStores"`) + +* `UpdatePrinterTerminalsAssign` (value: `"UpdatePrinterTerminalsAssign"`) + +* `UpdatePrinterTerminalsToggle` (value: `"UpdatePrinterTerminalsToggle"`) + +* `EditStoreNotifications` (value: `"EditStoreNotifications"`) + +* `ViewStoreGroups` (value: `"ViewStoreGroups"`) + +* `CreateStoreGroups` (value: `"CreateStoreGroups"`) + +* `UpdateStoreGroups` (value: `"UpdateStoreGroups"`) + +* `DeleteStoreGroups` (value: `"DeleteStoreGroups"`) + +* `ViewDeliveryZones` (value: `"ViewDeliveryZones"`) + +* `CreateDeliveryZones` (value: `"CreateDeliveryZones"`) + +* `UpdateDeliveryZones` (value: `"UpdateDeliveryZones"`) + +* `DeleteDeliveryZones` (value: `"DeleteDeliveryZones"`) + +* `ViewMenu` (value: `"ViewMenu"`) + +* `CreateMenu` (value: `"CreateMenu"`) + +* `UpdateMenu` (value: `"UpdateMenu"`) + +* `DeleteMenu` (value: `"DeleteMenu"`) + +* `UpdateMenuLock` (value: `"UpdateMenuLock"`) + +* `UpdateMenuItemsHideTemporarily` (value: `"UpdateMenuItemsHideTemporarily"`) + +* `EditMenuImage` (value: `"EditMenuImage"`) + +* `ViewVouchers` (value: `"ViewVouchers"`) + +* `EditVouchers` (value: `"EditVouchers"`) + +* `ViewWebsiteContent` (value: `"ViewWebsiteContent"`) + +* `EditWebsiteContent` (value: `"EditWebsiteContent"`) + +* `ViewWebsiteDnsVerified` (value: `"ViewWebsiteDnsVerified"`) + +* `ViewWebsiteCertificateCreated` (value: `"ViewWebsiteCertificateCreated"`) + +* `ViewWebsiteCertificateRenewed` (value: `"ViewWebsiteCertificateRenewed"`) + +* `ViewBankAccounts` (value: `"ViewBankAccounts"`) + +* `CreateBankAccounts` (value: `"CreateBankAccounts"`) + +* `UpdateBankAccounts` (value: `"UpdateBankAccounts"`) + +* `UpdateBankAccountsAssign` (value: `"UpdateBankAccountsAssign"`) + +* `ViewAssignedBankAccount` (value: `"ViewAssignedBankAccount"`) + +* `VerifyBankAccounts` (value: `"VerifyBankAccounts"`) + +* `ViewServiceChargeConfigurations` (value: `"ViewServiceChargeConfigurations"`) + +* `EditServiceChargeConfigurations` (value: `"EditServiceChargeConfigurations"`) + +* `EditStoreDeliveryZoneFees` (value: `"EditStoreDeliveryZoneFees"`) + +* `EditStoreDeliveryFeesLimited` (value: `"EditStoreDeliveryFeesLimited"`) + +* `ViewHydraConfig` (value: `"ViewHydraConfig"`) + +* `UpdateHydraConfigManage` (value: `"UpdateHydraConfigManage"`) + +* `InitiateBluetoothPairingMode` (value: `"InitiateBluetoothPairingMode"`) + +* `DeleteTerminal` (value: `"DeleteTerminal"`) + +* `ViewKioskTelemetry` (value: `"ViewKioskTelemetry"`) + +* `ViewCustomers` (value: `"ViewCustomers"`) + +* `EditCustomers` (value: `"EditCustomers"`) + +* `CreateCustomers` (value: `"CreateCustomers"`) + +* `CreateCatalogElements` (value: `"CreateCatalogElements"`) + +* `UpdateCatalogElements` (value: `"UpdateCatalogElements"`) + +* `ViewCatalogElements` (value: `"ViewCatalogElements"`) + +* `DeleteCatalogElements` (value: `"DeleteCatalogElements"`) + +* `ViewMetafieldDefinitions` (value: `"ViewMetafieldDefinitions"`) + +* `CreateMetafieldDefinitions` (value: `"CreateMetafieldDefinitions"`) + +* `UpdateMetafieldDefinitions` (value: `"UpdateMetafieldDefinitions"`) + +* `DeleteMetafieldDefinitions` (value: `"DeleteMetafieldDefinitions"`) + +* `UpdateMetafields` (value: `"UpdateMetafields"`) + +* `ViewCatalogMenuChanges` (value: `"ViewCatalogMenuChanges"`) + +* `PublishCatalogMenuChanges` (value: `"PublishCatalogMenuChanges"`) + +* `ViewAppStatistics` (value: `"ViewAppStatistics"`) + +* `ViewApmStatistics` (value: `"ViewApmStatistics"`) + +* `ViewCampaignsStatistics` (value: `"ViewCampaignsStatistics"`) + +* `ViewCustomerStatistics` (value: `"ViewCustomerStatistics"`) + +* `ViewLiveStatistics` (value: `"ViewLiveStatistics"`) + +* `ViewOrderStatistics` (value: `"ViewOrderStatistics"`) + +* `ViewSalesStatistics` (value: `"ViewSalesStatistics"`) + +* `ViewSalesEndOfDayStatistics` (value: `"ViewSalesEndOfDayStatistics"`) + +* `ViewVouchersStatistics` (value: `"ViewVouchersStatistics"`) + +* `DownloadCustomerCsvExport` (value: `"DownloadCustomerCsvExport"`) + +* `ViewApmAuditLogs` (value: `"ViewApmAuditLogs"`) + +* `ViewStoreAuditLogs` (value: `"ViewStoreAuditLogs"`) + +* `ViewMenuAuditLogs` (value: `"ViewMenuAuditLogs"`) + +* `ViewBankAccountAuditLogs` (value: `"ViewBankAccountAuditLogs"`) + +* `ViewFeeConfigurationsAuditLogs` (value: `"ViewFeeConfigurationsAuditLogs"`) + +* `ViewOrdersAuditLogs` (value: `"ViewOrdersAuditLogs"`) + +* `ViewVouchersAuditLogs` (value: `"ViewVouchersAuditLogs"`) + +* `ViewUserEventsAuditLogs` (value: `"ViewUserEventsAuditLogs"`) + +* `ViewCampaignsAuditLogs` (value: `"ViewCampaignsAuditLogs"`) + +* `ViewTeammatesAuditLogs` (value: `"ViewTeammatesAuditLogs"`) + +* `ViewAppAuditLogs` (value: `"ViewAppAuditLogs"`) + +* `ViewCustomerAuditLogs` (value: `"ViewCustomerAuditLogs"`) + +* `ViewPrinterAuditLogs` (value: `"ViewPrinterAuditLogs"`) + +* `ViewHydraAuditLogs` (value: `"ViewHydraAuditLogs"`) + +* `ViewPushNotificationAuditLogs` (value: `"ViewPushNotificationAuditLogs"`) + +* `ViewStripeCustomConnectedAccountAuditLogs` (value: `"ViewStripeCustomConnectedAccountAuditLogs"`) + +* `ViewKioskBluetoothDeviceAuditLogs` (value: `"ViewKioskBluetoothDeviceAuditLogs"`) + +* `ViewExternalAuditLogs` (value: `"ViewExternalAuditLogs"`) + +* `CreateExternalAuditLogEvents` (value: `"CreateExternalAuditLogEvents"`) + +* `ViewCatalogAuditLogs` (value: `"ViewCatalogAuditLogs"`) + +* `ViewOrderFulfillmentAuditLogs` (value: `"ViewOrderFulfillmentAuditLogs"`) + +* `ViewChannelAuditLogs` (value: `"ViewChannelAuditLogs"`) + +* `ViewAppStoreAuditLogs` (value: `"ViewAppStoreAuditLogs"`) + +* `SendPushNotificationToCustomer` (value: `"SendPushNotificationToCustomer"`) + +* `InviteDriverToApp` (value: `"InviteDriverToApp"`) + +* `GetDriverForApp` (value: `"GetDriverForApp"`) + +* `RemoveDriverFromApp` (value: `"RemoveDriverFromApp"`) + +* `AssignDriverToOrder` (value: `"AssignDriverToOrder"`) + +* `UnassignDriverFromOrder` (value: `"UnassignDriverFromOrder"`) + +* `UpdateOrdersDeliveryTrackingStatus` (value: `"UpdateOrdersDeliveryTrackingStatus"`) + +* `UpdateOrderFulfillmentStatus` (value: `"UpdateOrderFulfillmentStatus"`) + +* `ViewFulfillmentStatesConfiguration` (value: `"ViewFulfillmentStatesConfiguration"`) + +* `CreateFulfillmentStatesConfiguration` (value: `"CreateFulfillmentStatesConfiguration"`) + +* `UpdateFulfillmentStatesConfiguration` (value: `"UpdateFulfillmentStatesConfiguration"`) + +* `DeleteFulfillmentStatesConfiguration` (value: `"DeleteFulfillmentStatesConfiguration"`) + +* `ViewPayouts` (value: `"ViewPayouts"`) + +* `ViewChannels` (value: `"ViewChannels"`) + +* `ViewOnboarding` (value: `"ViewOnboarding"`) + +* `UpdateOnboarding` (value: `"UpdateOnboarding"`) + +* `ViewClientDevices` (value: `"ViewClientDevices"`) + +* `UpdateClientDevices` (value: `"UpdateClientDevices"`) + +* `EnrollClientDevices` (value: `"EnrollClientDevices"`) + +* `AssignClientDevices` (value: `"AssignClientDevices"`) + +* `ViewClientAuditLogs` (value: `"ViewClientAuditLogs"`) + +* `CreateAppStoreAppConfiguration` (value: `"CreateAppStoreAppConfiguration"`) + +* `ViewAppStoreAppConfiguration` (value: `"ViewAppStoreAppConfiguration"`) + +* `UpdateAppStoreAppConfiguration` (value: `"UpdateAppStoreAppConfiguration"`) + +* `DeleteAppStoreAppConfiguration` (value: `"DeleteAppStoreAppConfiguration"`) + +* `UpdateAppStoreAppConfigurationSettings` (value: `"UpdateAppStoreAppConfigurationSettings"`) + +* `CreateAppStoreSubscription` (value: `"CreateAppStoreSubscription"`) + +* `UpdateAppStoreSubscription` (value: `"UpdateAppStoreSubscription"`) + +* `DeleteAppStoreSubscription` (value: `"DeleteAppStoreSubscription"`) + +* `ViewSalesChannels` (value: `"ViewSalesChannels"`) + +* `EditSalesChannels` (value: `"EditSalesChannels"`) + +* `ViewPayGreenWhiteLabelConfiguration` (value: `"ViewPayGreenWhiteLabelConfiguration"`) + +* `CreatePayGreenWhiteLabelConfiguration` (value: `"CreatePayGreenWhiteLabelConfiguration"`) + +* `UpdatePayGreenWhiteLabelConfiguration` (value: `"UpdatePayGreenWhiteLabelConfiguration"`) + +* `UpdatePayGreenStoreConfiguration` (value: `"UpdatePayGreenStoreConfiguration"`) + +* `ViewSubscriptions` (value: `"ViewSubscriptions"`) + +* `ViewInvoices` (value: `"ViewInvoices"`) + +* `EditAccountsBills` (value: `"EditAccountsBills"`) + +* `ViewAccountsBills` (value: `"ViewAccountsBills"`) + +* `EditAccountsCategories` (value: `"EditAccountsCategories"`) + +* `ViewAccountsCategories` (value: `"ViewAccountsCategories"`) + +* `EditAccountsCreditAccounts` (value: `"EditAccountsCreditAccounts"`) + +* `ViewAccountsCreditAccounts` (value: `"ViewAccountsCreditAccounts"`) + +* `EditAccountsCreditBooks` (value: `"EditAccountsCreditBooks"`) + +* `ViewAccountsCreditBooks` (value: `"ViewAccountsCreditBooks"`) + +* `EditAccountsExpenses` (value: `"EditAccountsExpenses"`) + +* `ViewAccountsExpenses` (value: `"ViewAccountsExpenses"`) + +* `EditAccountsTransactionAccounts` (value: `"EditAccountsTransactionAccounts"`) + +* `ViewAccountsTransactionAccounts` (value: `"ViewAccountsTransactionAccounts"`) + +* `EditDocumentExplorer` (value: `"EditDocumentExplorer"`) + +* `ViewDocumentExplorer` (value: `"ViewDocumentExplorer"`) + +* `ViewInventoryReports` (value: `"ViewInventoryReports"`) + +* `EditInventoryPurchaseOrders` (value: `"EditInventoryPurchaseOrders"`) + +* `ViewInventoryPurchaseOrders` (value: `"ViewInventoryPurchaseOrders"`) + +* `EditInventoryStockItems` (value: `"EditInventoryStockItems"`) + +* `ViewInventoryStockItems` (value: `"ViewInventoryStockItems"`) + +* `EditInventorySupplier` (value: `"EditInventorySupplier"`) + +* `ViewInventorySupplier` (value: `"ViewInventorySupplier"`) + +* `EditInventoryTrackingProfiles` (value: `"EditInventoryTrackingProfiles"`) + +* `ViewInventoryTrackingProfiles` (value: `"ViewInventoryTrackingProfiles"`) + +* `ViewPayrollReports` (value: `"ViewPayrollReports"`) + +* `EditPayrollHoliday` (value: `"EditPayrollHoliday"`) + +* `ViewPayrollHoliday` (value: `"ViewPayrollHoliday"`) + +* `EditPayrollRota` (value: `"EditPayrollRota"`) + +* `ViewPayrollRota` (value: `"ViewPayrollRota"`) + +* `EditPayrollStaff` (value: `"EditPayrollStaff"`) + +* `ViewPayrollStaff` (value: `"ViewPayrollStaff"`) + +* `ViewSalesReports` (value: `"ViewSalesReports"`) + +* `ViewCostReports` (value: `"ViewCostReports"`) + +* `ViewMenuReports` (value: `"ViewMenuReports"`) + + + + + +## Enum: WebToAppRedirectEnum + + +* `NoRedirect` (value: `"NoRedirect"`) + +* `RedirectOnce` (value: `"RedirectOnce"`) + +* `RedirectAlways` (value: `"RedirectAlways"`) + +* `SuggestPwa` (value: `"SuggestPwa"`) + +* `ForcePwa` (value: `"ForcePwa"`) + + + + + +## Enum: ApplicationCategoryEnum + + +* `Restaurant` (value: `"Restaurant"`) + +* `Cafe` (value: `"Cafe"`) + +* `Convenience` (value: `"Convenience"`) + + + + diff --git a/docs/AppChannelAssignment.md b/docs/AppChannelAssignment.md new file mode 100644 index 00000000..b8663ca4 --- /dev/null +++ b/docs/AppChannelAssignment.md @@ -0,0 +1,10 @@ +# Flipdish.AppChannelAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelId** | **Number** | Id of the channel on the assignment | [optional] +**AppId** | **String** | AppId of the assignment | [optional] + + diff --git a/docs/AppCompliance.md b/docs/AppCompliance.md new file mode 100644 index 00000000..66bb52ca --- /dev/null +++ b/docs/AppCompliance.md @@ -0,0 +1,22 @@ +# Flipdish.AppCompliance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **String** | App ID | [optional] +**ComplianceType** | **String** | Type of compliance. This controls if the Flipdish websites and apps display cookie consent banners and adjust cookies to be inline with various regulations. You should set this correctly based on your region. | [optional] +**AllowDisablingOfGdpr** | **Boolean** | 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] + + + +## Enum: ComplianceTypeEnum + + +* `Default` (value: `"Default"`) + +* `GdprCompliance` (value: `"GdprCompliance"`) + + + + diff --git a/docs/AppConfigSalesChannel.md b/docs/AppConfigSalesChannel.md new file mode 100644 index 00000000..6aa30ed5 --- /dev/null +++ b/docs/AppConfigSalesChannel.md @@ -0,0 +1,55 @@ +# Flipdish.AppConfigSalesChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmailRequestMode** | **String** | Display a popup to users requesting their email address | [optional] +**WebToAppRedirect** | **String** | Sends users to their native apps or request them to install the pwa | [optional] +**AddressEntryType** | **String** | Address entry type - TextEntryManualDisallowed is the only supported configuration | [optional] +**DisplayDeliveryRestaurantListScreen** | **Boolean** | Display Pickup Restaurant List Screen | [optional] + + + +## Enum: EmailRequestModeEnum + + +* `DoNotRequest` (value: `"DoNotRequest"`) + +* `Request` (value: `"Request"`) + +* `Require` (value: `"Require"`) + + + + + +## Enum: WebToAppRedirectEnum + + +* `NoRedirect` (value: `"NoRedirect"`) + +* `RedirectOnce` (value: `"RedirectOnce"`) + +* `RedirectAlways` (value: `"RedirectAlways"`) + +* `SuggestPwa` (value: `"SuggestPwa"`) + +* `ForcePwa` (value: `"ForcePwa"`) + + + + + +## Enum: AddressEntryTypeEnum + + +* `MapFirst` (value: `"MapFirst"`) + +* `TextEntryManualAllowed` (value: `"TextEntryManualAllowed"`) + +* `TextEntryManualDisallowed` (value: `"TextEntryManualDisallowed"`) + + + + diff --git a/docs/AppConfigUpdateModel.md b/docs/AppConfigUpdateModel.md new file mode 100644 index 00000000..a808104d --- /dev/null +++ b/docs/AppConfigUpdateModel.md @@ -0,0 +1,31 @@ +# Flipdish.AppConfigUpdateModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. | [optional] +**HostName** | **String** | HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. | [optional] +**MainColor** | **String** | Main color of the web / Android / iOS applications | [optional] +**KioskPrimaryColour** | **String** | Primary colour used on the Kiosk | [optional] +**ApplicationCategory** | **String** | Application Category | [optional] +**IsPanaceaEnabled** | **Boolean** | 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** | **Boolean** | 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] + + + +## Enum: ApplicationCategoryEnum + + +* `Restaurant` (value: `"Restaurant"`) + +* `Cafe` (value: `"Cafe"`) + +* `Convenience` (value: `"Convenience"`) + + + + diff --git a/docs/AppCreatedEvent.md b/docs/AppCreatedEvent.md new file mode 100644 index 00000000..bbabb8a9 --- /dev/null +++ b/docs/AppCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.AppCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**AppName** | **String** | App Name | [optional] +**CountryId** | **String** | Country Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**AccountId** | **String** | Salesforce Account Id | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/AppInstall.md b/docs/AppInstall.md new file mode 100644 index 00000000..6c178886 --- /dev/null +++ b/docs/AppInstall.md @@ -0,0 +1,18 @@ +# Flipdish.AppInstall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name of the installed application. | [optional] +**FirstLogin** | **Date** | 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** | **Date** | 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** | **Number** | Number of Google push notification tokens associated with the app install. | [optional] +**AppleTokens** | **Number** | Number of Apple push notification tokens associated with the app install. | [optional] +**OrderCount** | **Number** | 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] + + diff --git a/docs/AppLookup.md b/docs/AppLookup.md new file mode 100644 index 00000000..b5e92e1d --- /dev/null +++ b/docs/AppLookup.md @@ -0,0 +1,9 @@ +# Flipdish.AppLookup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **String** | App id | [optional] + + diff --git a/docs/AppStoreApi.md b/docs/AppStoreApi.md new file mode 100644 index 00000000..33392250 --- /dev/null +++ b/docs/AppStoreApi.md @@ -0,0 +1,118 @@ +# Flipdish.AppStoreApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAppStoreApp**](AppStoreApi.md#getAppStoreApp) | **GET** /api/v1.0/appstore/apps/{appStoreAppId} | +[**getAppStoreApps**](AppStoreApi.md#getAppStoreApps) | **GET** /api/v1.0/appstore/apps | + + + +## getAppStoreApp + +> RestApiResultAppStoreApp getAppStoreApp(appStoreAppId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreApi(); +let appStoreAppId = "appStoreAppId_example"; // String | +let opts = { + 'appId': "appId_example" // String | +}; +apiInstance.getAppStoreApp(appStoreAppId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appStoreAppId** | **String**| | + **appId** | **String**| | [optional] + +### Return type + +[**RestApiResultAppStoreApp**](RestApiResultAppStoreApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getAppStoreApps + +> RestApiPaginationResultAppStoreAppSummary getAppStoreApps(search, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreApi(); +let search = "search_example"; // String | +let opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'excludeNotOwned': true, // Boolean | + 'showOnlyVerified': true // Boolean | +}; +apiInstance.getAppStoreApps(search, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **excludeNotOwned** | **Boolean**| | [optional] + **showOnlyVerified** | **Boolean**| | [optional] + +### Return type + +[**RestApiPaginationResultAppStoreAppSummary**](RestApiPaginationResultAppStoreAppSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/AppStoreApp.md b/docs/AppStoreApp.md new file mode 100644 index 00000000..4786ece4 --- /dev/null +++ b/docs/AppStoreApp.md @@ -0,0 +1,166 @@ +# Flipdish.AppStoreApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | | +**VerificationStatus** | **String** | | +**Logo** | **String** | | [optional] +**OAuthAppId** | **String** | | +**Internal** | **Boolean** | | +**Details** | **String** | | +**ConfigurationType** | **String** | | +**StoreSelectorType** | **String** | | +**FieldGroups** | [**[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** | **Boolean** | | [optional] +**Name** | **String** | | +**Description** | **String** | | +**IsEnabled** | **Boolean** | | [optional] +**Categories** | **[String]** | | +**Countries** | **[String]** | | +**DeveloperName** | **String** | | [optional] + + + +## Enum: VerificationStatusEnum + + +* `Draft` (value: `"Draft"`) + +* `Submitted` (value: `"Submitted"`) + +* `Verified` (value: `"Verified"`) + + + + + +## Enum: ConfigurationTypeEnum + + +* `ExternalLink` (value: `"ExternalLink"`) + +* `FlipdishHosted` (value: `"FlipdishHosted"`) + + + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + + +## Enum: TeammateAppAccessLevelEnum + + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + + +## Enum: PermissionsTypeEnum + + +* `Teammate` (value: `"Teammate"`) + + + + + +## Enum: [CategoriesEnum] + + +* `PointOfSale` (value: `"PointOfSale"`) + +* `DeliveryAndLogistics` (value: `"DeliveryAndLogistics"`) + +* `CRM` (value: `"CRM"`) + +* `GiftCard` (value: `"GiftCard"`) + +* `Accounting` (value: `"Accounting"`) + +* `LoyaltyAndMarketing` (value: `"LoyaltyAndMarketing"`) + +* `Other` (value: `"Other"`) + + + + + +## Enum: [CountriesEnum] + + +* `GB` (value: `"GB"`) + +* `IE` (value: `"IE"`) + +* `FR` (value: `"FR"`) + +* `ES` (value: `"ES"`) + +* `PT` (value: `"PT"`) + +* `IT` (value: `"IT"`) + +* `DE` (value: `"DE"`) + +* `PL` (value: `"PL"`) + +* `BE` (value: `"BE"`) + +* `LU` (value: `"LU"`) + +* `NL` (value: `"NL"`) + +* `US` (value: `"US"`) + +* `CA` (value: `"CA"`) + +* `BG` (value: `"BG"`) + +* `MX` (value: `"MX"`) + +* `AU` (value: `"AU"`) + +* `NZ` (value: `"NZ"`) + + + + diff --git a/docs/AppStoreAppConfiguration.md b/docs/AppStoreAppConfiguration.md new file mode 100644 index 00000000..84bf9ab6 --- /dev/null +++ b/docs/AppStoreAppConfiguration.md @@ -0,0 +1,170 @@ +# Flipdish.AppStoreAppConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | | +**AppId** | **String** | | +**AppStoreAppId** | **String** | | +**IsEnabled** | **Boolean** | | +**StoreIds** | **[Number]** | | [optional] +**Settings** | [**[Setting]**](Setting.md) | | [optional] +**VerificationStatus** | **String** | | +**Logo** | **String** | | [optional] +**OAuthAppId** | **String** | | +**Internal** | **Boolean** | | +**Details** | **String** | | +**ConfigurationType** | **String** | | +**StoreSelectorType** | **String** | | +**FieldGroups** | [**[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** | **Boolean** | | [optional] +**Name** | **String** | | +**Description** | **String** | | +**Categories** | **[String]** | | +**Countries** | **[String]** | | +**DeveloperName** | **String** | | [optional] + + + +## Enum: VerificationStatusEnum + + +* `Draft` (value: `"Draft"`) + +* `Submitted` (value: `"Submitted"`) + +* `Verified` (value: `"Verified"`) + + + + + +## Enum: ConfigurationTypeEnum + + +* `ExternalLink` (value: `"ExternalLink"`) + +* `FlipdishHosted` (value: `"FlipdishHosted"`) + + + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + + +## Enum: TeammateAppAccessLevelEnum + + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + + +## Enum: PermissionsTypeEnum + + +* `Teammate` (value: `"Teammate"`) + + + + + +## Enum: [CategoriesEnum] + + +* `PointOfSale` (value: `"PointOfSale"`) + +* `DeliveryAndLogistics` (value: `"DeliveryAndLogistics"`) + +* `CRM` (value: `"CRM"`) + +* `GiftCard` (value: `"GiftCard"`) + +* `Accounting` (value: `"Accounting"`) + +* `LoyaltyAndMarketing` (value: `"LoyaltyAndMarketing"`) + +* `Other` (value: `"Other"`) + + + + + +## Enum: [CountriesEnum] + + +* `GB` (value: `"GB"`) + +* `IE` (value: `"IE"`) + +* `FR` (value: `"FR"`) + +* `ES` (value: `"ES"`) + +* `PT` (value: `"PT"`) + +* `IT` (value: `"IT"`) + +* `DE` (value: `"DE"`) + +* `PL` (value: `"PL"`) + +* `BE` (value: `"BE"`) + +* `LU` (value: `"LU"`) + +* `NL` (value: `"NL"`) + +* `US` (value: `"US"`) + +* `CA` (value: `"CA"`) + +* `BG` (value: `"BG"`) + +* `MX` (value: `"MX"`) + +* `AU` (value: `"AU"`) + +* `NZ` (value: `"NZ"`) + + + + diff --git a/docs/AppStoreAppConfigurationSummary.md b/docs/AppStoreAppConfigurationSummary.md new file mode 100644 index 00000000..1fb6dfd7 --- /dev/null +++ b/docs/AppStoreAppConfigurationSummary.md @@ -0,0 +1,44 @@ +# Flipdish.AppStoreAppConfigurationSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | | +**AppId** | **String** | | +**IsEnabled** | **Boolean** | | +**Stores** | [**[ConfiguredStore]**](ConfiguredStore.md) | | +**ConfigurationType** | **String** | | +**StoreSelectorType** | **String** | | +**Internal** | **Boolean** | | +**AppStoreAppId** | **String** | | +**Name** | **String** | | +**Description** | **String** | | +**Logo** | **String** | | [optional] +**DeveloperName** | **String** | | [optional] + + + +## Enum: ConfigurationTypeEnum + + +* `ExternalLink` (value: `"ExternalLink"`) + +* `FlipdishHosted` (value: `"FlipdishHosted"`) + + + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + diff --git a/docs/AppStoreAppEntitlements.md b/docs/AppStoreAppEntitlements.md new file mode 100644 index 00000000..daea7f38 --- /dev/null +++ b/docs/AppStoreAppEntitlements.md @@ -0,0 +1,10 @@ +# Flipdish.AppStoreAppEntitlements + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntitlementQuantity** | **Number** | | [optional] +**CurrentUsage** | **Number** | | [optional] + + diff --git a/docs/AppStoreAppSummary.md b/docs/AppStoreAppSummary.md new file mode 100644 index 00000000..451ff458 --- /dev/null +++ b/docs/AppStoreAppSummary.md @@ -0,0 +1,93 @@ +# Flipdish.AppStoreAppSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | | +**VerificationStatus** | **String** | | +**Logo** | **String** | | [optional] +**Internal** | **Boolean** | | +**Name** | **String** | | +**Description** | **String** | | +**IsEnabled** | **Boolean** | | [optional] +**Categories** | **[String]** | | +**Countries** | **[String]** | | +**DeveloperName** | **String** | | [optional] + + + +## Enum: VerificationStatusEnum + + +* `Draft` (value: `"Draft"`) + +* `Submitted` (value: `"Submitted"`) + +* `Verified` (value: `"Verified"`) + + + + + +## Enum: [CategoriesEnum] + + +* `PointOfSale` (value: `"PointOfSale"`) + +* `DeliveryAndLogistics` (value: `"DeliveryAndLogistics"`) + +* `CRM` (value: `"CRM"`) + +* `GiftCard` (value: `"GiftCard"`) + +* `Accounting` (value: `"Accounting"`) + +* `LoyaltyAndMarketing` (value: `"LoyaltyAndMarketing"`) + +* `Other` (value: `"Other"`) + + + + + +## Enum: [CountriesEnum] + + +* `GB` (value: `"GB"`) + +* `IE` (value: `"IE"`) + +* `FR` (value: `"FR"`) + +* `ES` (value: `"ES"`) + +* `PT` (value: `"PT"`) + +* `IT` (value: `"IT"`) + +* `DE` (value: `"DE"`) + +* `PL` (value: `"PL"`) + +* `BE` (value: `"BE"`) + +* `LU` (value: `"LU"`) + +* `NL` (value: `"NL"`) + +* `US` (value: `"US"`) + +* `CA` (value: `"CA"`) + +* `BG` (value: `"BG"`) + +* `MX` (value: `"MX"`) + +* `AU` (value: `"AU"`) + +* `NZ` (value: `"NZ"`) + + + + diff --git a/docs/AppStoreAppSupportInfo.md b/docs/AppStoreAppSupportInfo.md new file mode 100644 index 00000000..c00d3452 --- /dev/null +++ b/docs/AppStoreAppSupportInfo.md @@ -0,0 +1,14 @@ +# Flipdish.AppStoreAppSupportInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivacyPolicy** | **String** | | [optional] +**TermsOfUse** | **String** | | [optional] +**CompanyWebsite** | **String** | | [optional] +**LearnMore** | **String** | | [optional] +**InstallationMessage** | **String** | | [optional] +**SupportEmail** | **String** | | [optional] + + diff --git a/docs/AppStoreConfigCreatedEvent.md b/docs/AppStoreConfigCreatedEvent.md new file mode 100644 index 00000000..aa73f566 --- /dev/null +++ b/docs/AppStoreConfigCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.AppStoreConfigCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**AppStoreAppId** | **String** | App Store App Id | [optional] +**AppStoreAppConfigurationId** | **String** | App Store Configuration Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/AppStoreConfigDeletedEvent.md b/docs/AppStoreConfigDeletedEvent.md new file mode 100644 index 00000000..9d621b88 --- /dev/null +++ b/docs/AppStoreConfigDeletedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.AppStoreConfigDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**AppStoreAppId** | **String** | App Store Id | [optional] +**AppStoreAppConfigurationId** | **String** | App Store Configuration Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/AppStoreConfigUpdatedEvent.md b/docs/AppStoreConfigUpdatedEvent.md new file mode 100644 index 00000000..bec8c73c --- /dev/null +++ b/docs/AppStoreConfigUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.AppStoreConfigUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**AppStoreAppId** | **String** | App Store Id | [optional] +**AppStoreAppConfiguration** | [**UpdateAppStoreAppConfigurationWebhookDTO**](UpdateAppStoreAppConfigurationWebhookDTO.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/AppStoreConfigurationsApi.md b/docs/AppStoreConfigurationsApi.md new file mode 100644 index 00000000..5dd19e47 --- /dev/null +++ b/docs/AppStoreConfigurationsApi.md @@ -0,0 +1,470 @@ +# Flipdish.AppStoreConfigurationsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**appStoreConfigurationsAppStoreHandleOauthResponseCode**](AppStoreConfigurationsApi.md#appStoreConfigurationsAppStoreHandleOauthResponseCode) | **GET** /api/v1.0/appstore/oauthresponse/{appStoreAppId}/responsecode | +[**createAppStoreConfig**](AppStoreConfigurationsApi.md#createAppStoreConfig) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config | +[**deleteAppStoreConfig**](AppStoreConfigurationsApi.md#deleteAppStoreConfig) | **DELETE** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +[**executeConfigurationAction**](AppStoreConfigurationsApi.md#executeConfigurationAction) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/action | +[**getAppStoreConfig**](AppStoreConfigurationsApi.md#getAppStoreConfig) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +[**getConfiguredAppSingleApp**](AppStoreConfigurationsApi.md#getConfiguredAppSingleApp) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId} | +[**getConfiguredApps**](AppStoreConfigurationsApi.md#getConfiguredApps) | **GET** /api/v1.0/{appId}/appstore/apps | +[**updateAppStoreConfig**](AppStoreConfigurationsApi.md#updateAppStoreConfig) | **PUT** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | +[**updateAppStoreConfigSettingValues**](AppStoreConfigurationsApi.md#updateAppStoreConfigSettingValues) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/updatesettings | + + + +## appStoreConfigurationsAppStoreHandleOauthResponseCode + +> Object appStoreConfigurationsAppStoreHandleOauthResponseCode(appStoreAppId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appStoreAppId = "appStoreAppId_example"; // String | +apiInstance.appStoreConfigurationsAppStoreHandleOauthResponseCode(appStoreAppId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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 + + +## createAppStoreConfig + +> RestApiResultAppStoreAppConfiguration createAppStoreConfig(appId, appStoreAppId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +apiInstance.createAppStoreConfig(appId, appStoreAppId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appStoreAppId** | **String**| | + +### Return type + +[**RestApiResultAppStoreAppConfiguration**](RestApiResultAppStoreAppConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## deleteAppStoreConfig + +> RestApiStringResult deleteAppStoreConfig(appId, appStoreAppId, configId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let configId = "configId_example"; // String | +apiInstance.deleteAppStoreConfig(appId, appStoreAppId, configId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appStoreAppId** | **String**| | + **configId** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## executeConfigurationAction + +> RestApiResultExecuteConfigurationActionResult executeConfigurationAction(appId, appStoreAppId, configId, executeConfigurationActionRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let configId = "configId_example"; // String | +let executeConfigurationActionRequest = new Flipdish.ExecuteConfigurationActionRequest(); // ExecuteConfigurationActionRequest | +apiInstance.executeConfigurationAction(appId, appStoreAppId, configId, executeConfigurationActionRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## getAppStoreConfig + +> RestApiResultAppStoreAppConfiguration getAppStoreConfig(appId, appStoreAppId, configId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let configId = "configId_example"; // String | +apiInstance.getAppStoreConfig(appId, appStoreAppId, configId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appStoreAppId** | **String**| | + **configId** | **String**| | + +### Return type + +[**RestApiResultAppStoreAppConfiguration**](RestApiResultAppStoreAppConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getConfiguredAppSingleApp + +> RestApiArrayResultAppStoreAppConfigurationSummary getConfiguredAppSingleApp(appId, appStoreAppId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +apiInstance.getConfiguredAppSingleApp(appId, appStoreAppId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appStoreAppId** | **String**| | + +### Return type + +[**RestApiArrayResultAppStoreAppConfigurationSummary**](RestApiArrayResultAppStoreAppConfigurationSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getConfiguredApps + +> RestApiArrayResultAppStoreAppSummary getConfiguredApps(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +apiInstance.getConfiguredApps(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultAppStoreAppSummary**](RestApiArrayResultAppStoreAppSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateAppStoreConfig + +> updateAppStoreConfig(appId, appStoreAppId, configId, updateAppStoreAppConfiguration) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let configId = "configId_example"; // String | +let updateAppStoreAppConfiguration = new Flipdish.UpdateAppStoreAppConfiguration(); // UpdateAppStoreAppConfiguration | +apiInstance.updateAppStoreConfig(appId, appStoreAppId, configId, updateAppStoreAppConfiguration, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appStoreAppId** | **String**| | + **configId** | **String**| | + **updateAppStoreAppConfiguration** | [**UpdateAppStoreAppConfiguration**](UpdateAppStoreAppConfiguration.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## updateAppStoreConfigSettingValues + +> updateAppStoreConfigSettingValues(appId, appStoreAppId, configId, updateAppStoreAppConfigurationValues) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreConfigurationsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let configId = "configId_example"; // String | +let updateAppStoreAppConfigurationValues = new Flipdish.UpdateAppStoreAppConfigurationValuesBatch(); // UpdateAppStoreAppConfigurationValuesBatch | +apiInstance.updateAppStoreConfigSettingValues(appId, appStoreAppId, configId, updateAppStoreAppConfigurationValues, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appStoreAppId** | **String**| | + **configId** | **String**| | + **updateAppStoreAppConfigurationValues** | [**UpdateAppStoreAppConfigurationValuesBatch**](UpdateAppStoreAppConfigurationValuesBatch.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + diff --git a/docs/AppStoreDeveloperApi.md b/docs/AppStoreDeveloperApi.md new file mode 100644 index 00000000..cb56098f --- /dev/null +++ b/docs/AppStoreDeveloperApi.md @@ -0,0 +1,416 @@ +# Flipdish.AppStoreDeveloperApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**appVerificationUpdate**](AppStoreDeveloperApi.md#appVerificationUpdate) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification | +[**createAppStoreApp**](AppStoreDeveloperApi.md#createAppStoreApp) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps | +[**deleteAppStoreApp**](AppStoreDeveloperApi.md#deleteAppStoreApp) | **DELETE** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +[**getAppExternalProduct**](AppStoreDeveloperApi.md#getAppExternalProduct) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +[**getExternalFunctionSigningKey**](AppStoreDeveloperApi.md#getExternalFunctionSigningKey) | **GET** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_function_signing_key | +[**updateAppStoreApp**](AppStoreDeveloperApi.md#updateAppStoreApp) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | +[**updateExternalProduct**](AppStoreDeveloperApi.md#updateExternalProduct) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product | +[**uploadAppStoreAppLogo**](AppStoreDeveloperApi.md#uploadAppStoreAppLogo) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo | + + + +## appVerificationUpdate + +> appVerificationUpdate(oauthAppId, appStoreAppId, verificationStatus) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let verificationStatus = "verificationStatus_example"; // String | +apiInstance.appVerificationUpdate(oauthAppId, appStoreAppId, verificationStatus, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appStoreAppId** | **String**| | + **verificationStatus** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Data, application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## createAppStoreApp + +> RestApiResultAppStoreApp createAppStoreApp(oauthAppId, createAppStoreApp) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let createAppStoreApp = new Flipdish.CreateAppStoreApp(); // CreateAppStoreApp | +apiInstance.createAppStoreApp(oauthAppId, createAppStoreApp, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **createAppStoreApp** | [**CreateAppStoreApp**](CreateAppStoreApp.md)| | + +### Return type + +[**RestApiResultAppStoreApp**](RestApiResultAppStoreApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## deleteAppStoreApp + +> RestApiStringResult deleteAppStoreApp(oauthAppId, appStoreAppId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +apiInstance.deleteAppStoreApp(oauthAppId, appStoreAppId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appStoreAppId** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getAppExternalProduct + +> getAppExternalProduct(oauthAppId, appStoreAppId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +apiInstance.getAppExternalProduct(oauthAppId, appStoreAppId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appStoreAppId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## getExternalFunctionSigningKey + +> RestApiStringResult getExternalFunctionSigningKey(oauthAppId, appStoreAppId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +apiInstance.getExternalFunctionSigningKey(oauthAppId, appStoreAppId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appStoreAppId** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## updateAppStoreApp + +> updateAppStoreApp(oauthAppId, appStoreAppId, appStoreApp) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let appStoreApp = new Flipdish.UpdateAppStoreApp(); // UpdateAppStoreApp | +apiInstance.updateAppStoreApp(oauthAppId, appStoreAppId, appStoreApp, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appStoreAppId** | **String**| | + **appStoreApp** | [**UpdateAppStoreApp**](UpdateAppStoreApp.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## updateExternalProduct + +> updateExternalProduct(oauthAppId, appStoreAppId, appStoreAppExternalProduct) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let appStoreAppExternalProduct = new Flipdish.UpdateAppStoreAppExternalProduct(); // UpdateAppStoreAppExternalProduct | +apiInstance.updateExternalProduct(oauthAppId, appStoreAppId, appStoreAppExternalProduct, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appStoreAppId** | **String**| | + **appStoreAppExternalProduct** | [**UpdateAppStoreAppExternalProduct**](UpdateAppStoreAppExternalProduct.md)| | + +### Return type + +null (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**: Data, application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## uploadAppStoreAppLogo + +> uploadAppStoreAppLogo(oauthAppId, appStoreAppId, Image) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreDeveloperApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +let Image = "/path/to/file"; // File | App Store App Logo +apiInstance.uploadAppStoreAppLogo(oauthAppId, appStoreAppId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appStoreAppId** | **String**| | + **Image** | **File**| App Store App Logo | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/AppStoreEntitlementsApi.md b/docs/AppStoreEntitlementsApi.md new file mode 100644 index 00000000..0b85f518 --- /dev/null +++ b/docs/AppStoreEntitlementsApi.md @@ -0,0 +1,58 @@ +# Flipdish.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(appId, appStoreAppId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppStoreEntitlementsApi(); +let appId = "appId_example"; // String | +let appStoreAppId = "appStoreAppId_example"; // String | +apiInstance.getAppStoreAppEntitlements(appId, appStoreAppId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/AppStoreSubscriptionChangeJobUpdatedEvent.md b/docs/AppStoreSubscriptionChangeJobUpdatedEvent.md new file mode 100644 index 00000000..a6150a7f --- /dev/null +++ b/docs/AppStoreSubscriptionChangeJobUpdatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**AppStoreAppId** | **String** | App Store Id | [optional] +**Status** | **String** | Status | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/AppUpdatedEvent.md b/docs/AppUpdatedEvent.md new file mode 100644 index 00000000..1578aaed --- /dev/null +++ b/docs/AppUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.AppUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**Changes** | **String** | A summary of changes made | [optional] +**AppName** | **String** | App Name | [optional] +**CountryId** | **String** | Country Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**App** | [**App**](App.md) | | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/AppsApi.md b/docs/AppsApi.md new file mode 100644 index 00000000..7d11b159 --- /dev/null +++ b/docs/AppsApi.md @@ -0,0 +1,950 @@ +# Flipdish.AppsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**appsSetPropertyId**](AppsApi.md#appsSetPropertyId) | **POST** /api/v1.0/apps/{appId}/orgId/{orgId} | +[**createApp**](AppsApi.md#createApp) | **POST** /api/v1.0/apps | +[**getApp**](AppsApi.md#getApp) | **GET** /api/v1.0/apps/{appId} | +[**getAppHostnameStatus**](AppsApi.md#getAppHostnameStatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | +[**getAppName**](AppsApi.md#getAppName) | **GET** /api/v1.0/apps/{appId}/name | +[**getApps**](AppsApi.md#getApps) | **GET** /api/v1.0/apps | +[**getCompliance**](AppsApi.md#getCompliance) | **GET** /api/v1.0/apps/{appId}/compliance | +[**getPanaceaVanityUrl**](AppsApi.md#getPanaceaVanityUrl) | **GET** /api/v1.0/apps/{appId}/panacea/url | +[**getSupportedCountries**](AppsApi.md#getSupportedCountries) | **GET** /api/v1.0/apps/supportedcountries | +[**isPanaceaVanityUrlAvailable**](AppsApi.md#isPanaceaVanityUrlAvailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | +[**lookupByWhitelabelId**](AppsApi.md#lookupByWhitelabelId) | **GET** /api/v1.0/apps/{whitelabelId}/lookup | +[**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 | +[**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(appId, orgId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let orgId = "orgId_example"; // String | +apiInstance.appsSetPropertyId(appId, orgId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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 + + +## createApp + +> RestApiStringResult createApp(parameters) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let parameters = new Flipdish.CreateAppParameters(); // CreateAppParameters | +apiInstance.createApp(parameters, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Message, ErrorCode, StackTrace + + +## getApp + +> RestApiResultApp getApp(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +apiInstance.getApp(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultApp**](RestApiResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getAppHostnameStatus + +> RestApiResultDnsRecordInformation getAppHostnameStatus(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +apiInstance.getAppHostnameStatus(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultDnsRecordInformation**](RestApiResultDnsRecordInformation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getAppName + +> RestApiStringResult getAppName(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +apiInstance.getAppName(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## getApps + +> RestApiPaginationResultApp getApps(opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let opts = { + 'nameFilter': "nameFilter_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getApps(opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nameFilter** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultApp**](RestApiPaginationResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getCompliance + +> RestApiResultAppCompliance getCompliance(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +apiInstance.getCompliance(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultAppCompliance**](RestApiResultAppCompliance.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPanaceaVanityUrl + +> RestApiStringResult getPanaceaVanityUrl(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +apiInstance.getPanaceaVanityUrl(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## getSupportedCountries + +> RestApiArrayResultSupportedCountry getSupportedCountries() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +apiInstance.getSupportedCountries((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiArrayResultSupportedCountry**](RestApiArrayResultSupportedCountry.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## isPanaceaVanityUrlAvailable + +> RestApiStringResult isPanaceaVanityUrlAvailable(vanityUrl, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let vanityUrl = "vanityUrl_example"; // String | +let appId = "appId_example"; // String | +apiInstance.isPanaceaVanityUrlAvailable(vanityUrl, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vanityUrl** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## lookupByWhitelabelId + +> AppLookup lookupByWhitelabelId(whitelabelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let whitelabelId = 56; // Number | +apiInstance.lookupByWhitelabelId(whitelabelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whitelabelId** | **Number**| | + +### 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 + + +## setAppConfig + +> RestApiResultApp setAppConfig(appId, appConfigUpdate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let appConfigUpdate = new Flipdish.AppConfigUpdateModel(); // AppConfigUpdateModel | +apiInstance.setAppConfig(appId, appConfigUpdate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appConfigUpdate** | [**AppConfigUpdateModel**](AppConfigUpdateModel.md)| | + +### Return type + +[**RestApiResultApp**](RestApiResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## setAppHostname + +> RestApiStringResult setAppHostname(appId, hostname, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let hostname = "hostname_example"; // String | +let opts = { + 'isEmbed': true // Boolean | +}; +apiInstance.setAppHostname(appId, hostname, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **hostname** | **String**| | + **isEmbed** | **Boolean**| | [optional] + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## setAppLanguages + +> RestApiResultApp setAppLanguages(appId, languages) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let languages = [new Flipdish.Language()]; // [Language] | +apiInstance.setAppLanguages(appId, languages, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **languages** | [**[Language]**](Language.md)| | + +### Return type + +[**RestApiResultApp**](RestApiResultApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## setAppStoreName + +> setAppStoreName(appId, appStoreName) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let appStoreName = "appStoreName_example"; // String | +apiInstance.setAppStoreName(appId, appStoreName, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appStoreName** | **String**| | + +### Return type + +null (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 + + +## setCompliance + +> RestApiResultAppCompliance setCompliance(appId, complianceType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let complianceType = "complianceType_example"; // String | +apiInstance.setCompliance(appId, complianceType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **complianceType** | **String**| | + +### Return type + +[**RestApiResultAppCompliance**](RestApiResultAppCompliance.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## setPanaceaVanityUrl + +> RestApiStringResult setPanaceaVanityUrl(appId, vanityUrl) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let vanityUrl = "vanityUrl_example"; // String | +apiInstance.setPanaceaVanityUrl(appId, vanityUrl, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **vanityUrl** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## toggleNextGenWeb + +> RestApiStringResult toggleNextGenWeb(appId, hostname, vanityUrl, isNextGenWeb) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let hostname = "hostname_example"; // String | +let vanityUrl = "vanityUrl_example"; // String | +let isNextGenWeb = true; // Boolean | +apiInstance.toggleNextGenWeb(appId, hostname, vanityUrl, isNextGenWeb, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **hostname** | **String**| | + **vanityUrl** | **String**| | + **isNextGenWeb** | **Boolean**| | + +### 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, Data + + +## uploadAppLogo + +> uploadAppLogo(appId, Image) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AppsApi(); +let appId = "appId_example"; // String | +let Image = "/path/to/file"; // File | App Logo +apiInstance.uploadAppLogo(appId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **Image** | **File**| App Logo | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/AssignedBankAccount.md b/docs/AssignedBankAccount.md new file mode 100644 index 00000000..f9937062 --- /dev/null +++ b/docs/AssignedBankAccount.md @@ -0,0 +1,10 @@ +# Flipdish.AssignedBankAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id of Bank Account | [optional] +**BankAccountName** | **String** | Name of Bank Account | [optional] + + diff --git a/docs/AuditLogFieldChangeInformation.md b/docs/AuditLogFieldChangeInformation.md new file mode 100644 index 00000000..22e81ccb --- /dev/null +++ b/docs/AuditLogFieldChangeInformation.md @@ -0,0 +1,13 @@ +# Flipdish.AuditLogFieldChangeInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **String** | Path (hierarchy) | [optional] +**Name** | **String** | Name of field | [optional] +**Key** | **String** | Key (code) of field | [optional] +**OldValue** | **String** | Old value | [optional] +**NewValue** | **String** | New value | [optional] + + diff --git a/docs/AuditLogsApi.md b/docs/AuditLogsApi.md new file mode 100644 index 00000000..ca89fc7c --- /dev/null +++ b/docs/AuditLogsApi.md @@ -0,0 +1,108 @@ +# Flipdish.AuditLogsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addOrderAuditLog**](AuditLogsApi.md#addOrderAuditLog) | **POST** /api/v1.0/auditlogs/orders/{orderId} | +[**addStoreAuditLogEvent**](AuditLogsApi.md#addStoreAuditLogEvent) | **POST** /api/v1.0/auditlogs/stores/{storeId} | + + + +## addOrderAuditLog + +> addOrderAuditLog(orderId, externalEventCreate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AuditLogsApi(); +let orderId = 56; // Number | +let externalEventCreate = [new Flipdish.ExternalStoreAuditLog()]; // [ExternalStoreAuditLog] | +apiInstance.addOrderAuditLog(orderId, externalEventCreate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + **externalEventCreate** | [**[ExternalStoreAuditLog]**](ExternalStoreAuditLog.md)| | + +### Return type + +null (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**: Message, ErrorCode, StackTrace, application/json, text/json, application/xml, text/xml + + +## addStoreAuditLogEvent + +> addStoreAuditLogEvent(storeId, externalEventCreate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AuditLogsApi(); +let storeId = 56; // Number | +let externalEventCreate = [new Flipdish.ExternalStoreAuditLog()]; // [ExternalStoreAuditLog] | +apiInstance.addStoreAuditLogEvent(storeId, externalEventCreate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **externalEventCreate** | [**[ExternalStoreAuditLog]**](ExternalStoreAuditLog.md)| | + +### Return type + +null (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 + diff --git a/docs/AuthorizationTokensApi.md b/docs/AuthorizationTokensApi.md new file mode 100644 index 00000000..f20214ea --- /dev/null +++ b/docs/AuthorizationTokensApi.md @@ -0,0 +1,114 @@ +# Flipdish.AuthorizationTokensApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAuthorizationTokens**](AuthorizationTokensApi.md#getAuthorizationTokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | +[**revokeToken**](AuthorizationTokensApi.md#revokeToken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | + + + +## getAuthorizationTokens + +> RestApiPaginationResultOAuthTokenModel getAuthorizationTokens(oauthAppId, appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AuthorizationTokensApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +let opts = { + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getAuthorizationTokens(oauthAppId, appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultOAuthTokenModel**](RestApiPaginationResultOAuthTokenModel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## revokeToken + +> revokeToken(key, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.AuthorizationTokensApi(); +let key = "key_example"; // String | +let appId = "appId_example"; // String | +apiInstance.revokeToken(key, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **key** | **String**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + diff --git a/docs/BalanceDetails.md b/docs/BalanceDetails.md new file mode 100644 index 00000000..e53c95ea --- /dev/null +++ b/docs/BalanceDetails.md @@ -0,0 +1,10 @@ +# Flipdish.BalanceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OpeningBalance** | **Number** | | [optional] +**ClosingBalance** | **Number** | | [optional] + + diff --git a/docs/BankAccount.md b/docs/BankAccount.md new file mode 100644 index 00000000..af8634a6 --- /dev/null +++ b/docs/BankAccount.md @@ -0,0 +1,37 @@ +# Flipdish.BankAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id of this account | [optional] +**AccountName** | **String** | Name of this account | [optional] +**Iban** | **String** | IBAN of this account | [optional] +**Swift** | **String** | SWIFT of this bank account | [optional] +**PopulatedAccountFields** | [**[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** | **[String]** | Store Names that are attached to this account | [optional] +**StoreIds** | **[Number]** | 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] + + + +## Enum: AccountStateEnum + + +* `Unverified` (value: `"Unverified"`) + +* `AwatingVerification` (value: `"AwatingVerification"`) + +* `Verified` (value: `"Verified"`) + +* `Grandfathered` (value: `"Grandfathered"`) + + + + diff --git a/docs/BankAccountApi.md b/docs/BankAccountApi.md new file mode 100644 index 00000000..f28e1038 --- /dev/null +++ b/docs/BankAccountApi.md @@ -0,0 +1,460 @@ +# Flipdish.BankAccountApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**attachBankAccountToStore**](BankAccountApi.md#attachBankAccountToStore) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId} | +[**createBankAccount**](BankAccountApi.md#createBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts | +[**deleteBankAccount**](BankAccountApi.md#deleteBankAccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +[**getBankAccountById**](BankAccountApi.md#getBankAccountById) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +[**getBankAccounts**](BankAccountApi.md#getBankAccounts) | **GET** /api/v1.0/{appId}/bankaccounts | +[**getCountriesWithFieldDefinitions**](BankAccountApi.md#getCountriesWithFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | +[**getFieldDefinitions**](BankAccountApi.md#getFieldDefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | +[**updateBankAccount**](BankAccountApi.md#updateBankAccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | +[**updateBankAccountState**](BankAccountApi.md#updateBankAccountState) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | + + + +## attachBankAccountToStore + +> attachBankAccountToStore(appId, bankAccountId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let storeId = 56; // Number | +apiInstance.attachBankAccountToStore(appId, bankAccountId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **storeId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## createBankAccount + +> RestApiResultBankAccountDetail createBankAccount(appId, account) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +let account = new Flipdish.BankAccountCreate(); // BankAccountCreate | +apiInstance.createBankAccount(appId, account, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteBankAccount + +> deleteBankAccount(appId, bankAccountId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +apiInstance.deleteBankAccount(appId, bankAccountId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getBankAccountById + +> RestApiResultBankAccountDetail getBankAccountById(bankAccountId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let bankAccountId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.getBankAccountById(bankAccountId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bankAccountId** | **Number**| | + **appId** | **String**| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getBankAccounts + +> RestApiArrayResultBankAccountSummary getBankAccounts(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +apiInstance.getBankAccounts(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultBankAccountSummary**](RestApiArrayResultBankAccountSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getCountriesWithFieldDefinitions + +> RestApiArrayResultCountryWithAccountFieldsDefinitions getCountriesWithFieldDefinitions(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +apiInstance.getCountriesWithFieldDefinitions(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultCountryWithAccountFieldsDefinitions**](RestApiArrayResultCountryWithAccountFieldsDefinitions.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getFieldDefinitions + +> RestApiResultAccountFieldsDefinitions getFieldDefinitions(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +apiInstance.getFieldDefinitions(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultAccountFieldsDefinitions**](RestApiResultAccountFieldsDefinitions.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateBankAccount + +> updateBankAccount(appId, bankAccountId, account) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let account = new Flipdish.BankAccountCreate(); // BankAccountCreate | +apiInstance.updateBankAccount(appId, bankAccountId, account, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | + +### Return type + +null (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 + + +## updateBankAccountState + +> updateBankAccountState(appId, bankAccountId, state, reason) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.BankAccountApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let state = "state_example"; // String | +let reason = "reason_example"; // String | +apiInstance.updateBankAccountState(appId, bankAccountId, state, reason, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **state** | **String**| | + **reason** | **String**| | + +### Return type + +null (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 + diff --git a/docs/BankAccountAssignedEvent.md b/docs/BankAccountAssignedEvent.md new file mode 100644 index 00000000..c02ea0fa --- /dev/null +++ b/docs/BankAccountAssignedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.BankAccountAssignedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **String** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | | [optional] +**Description** | **String** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/BankAccountCreate.md b/docs/BankAccountCreate.md new file mode 100644 index 00000000..17035a07 --- /dev/null +++ b/docs/BankAccountCreate.md @@ -0,0 +1,271 @@ +# Flipdish.BankAccountCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAddress** | **String** | Address lf the bank | [optional] +**BankCountryCode** | **String** | CountryCode of the Bank Account | [optional] +**AccountHolderAddress** | **String** | Account Holders Address | [optional] +**AccountHolderCountryCode** | **String** | Account Holders Country Code | [optional] +**VatNumber** | **String** | Account Holders Vat Number | [optional] +**CurrencyCode** | **String** | Currency of Account | [optional] +**StoreIds** | **[Number]** | List of stores to attach to Account | [optional] +**BankName** | **String** | Name of Bank | [optional] +**AccountName** | **String** | Name of this account | [optional] +**Iban** | **String** | IBAN of this account | [optional] +**Swift** | **String** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **String** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**[AccountFieldKeyValuePair]**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **String** | Reason for Rejection | [optional] +**BusinessType** | **String** | Business Type | [optional] + + + +## Enum: CurrencyCodeEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: BusinessTypeEnum + + +* `Individual` (value: `"Individual"`) + +* `Company` (value: `"Company"`) + +* `NonProfit` (value: `"NonProfit"`) + +* `GovernmentEntity` (value: `"GovernmentEntity"`) + + + + diff --git a/docs/BankAccountCreatedEvent.md b/docs/BankAccountCreatedEvent.md new file mode 100644 index 00000000..9314680c --- /dev/null +++ b/docs/BankAccountCreatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.BankAccountCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **String** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/BankAccountDeletedEvent.md b/docs/BankAccountDeletedEvent.md new file mode 100644 index 00000000..b0c98f9b --- /dev/null +++ b/docs/BankAccountDeletedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.BankAccountDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **String** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/BankAccountDetail.md b/docs/BankAccountDetail.md new file mode 100644 index 00000000..aeb71ac4 --- /dev/null +++ b/docs/BankAccountDetail.md @@ -0,0 +1,290 @@ +# Flipdish.BankAccountDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id of this account | [optional] +**StoreNames** | **[String]** | Store Names that are attached to this account | [optional] +**AccountState** | **String** | Status of Account | [optional] +**StripeConnectedAccountInfo** | [**StripeConnectedAccountInfo**](StripeConnectedAccountInfo.md) | | [optional] +**BankAddress** | **String** | Address lf the bank | [optional] +**BankCountryCode** | **String** | CountryCode of the Bank Account | [optional] +**AccountHolderAddress** | **String** | Account Holders Address | [optional] +**AccountHolderCountryCode** | **String** | Account Holders Country Code | [optional] +**VatNumber** | **String** | Account Holders Vat Number | [optional] +**CurrencyCode** | **String** | Currency of Account | [optional] +**StoreIds** | **[Number]** | List of stores to attach to Account | [optional] +**BankName** | **String** | Name of Bank | [optional] +**AccountName** | **String** | Name of this account | [optional] +**Iban** | **String** | IBAN of this account | [optional] +**Swift** | **String** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **String** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**[AccountFieldKeyValuePair]**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **String** | Reason for Rejection | [optional] +**BusinessType** | **String** | Business Type | [optional] + + + +## Enum: AccountStateEnum + + +* `Unverified` (value: `"Unverified"`) + +* `AwatingVerification` (value: `"AwatingVerification"`) + +* `Verified` (value: `"Verified"`) + +* `Grandfathered` (value: `"Grandfathered"`) + + + + + +## Enum: CurrencyCodeEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: BusinessTypeEnum + + +* `Individual` (value: `"Individual"`) + +* `Company` (value: `"Company"`) + +* `NonProfit` (value: `"NonProfit"`) + +* `GovernmentEntity` (value: `"GovernmentEntity"`) + + + + diff --git a/docs/BankAccountDetailsUpdateRequest.md b/docs/BankAccountDetailsUpdateRequest.md new file mode 100644 index 00000000..82bc8d7e --- /dev/null +++ b/docs/BankAccountDetailsUpdateRequest.md @@ -0,0 +1,35 @@ +# Flipdish.BankAccountDetailsUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAddress** | **String** | Address of the bank account | [optional] +**AccountHolderAddress** | **String** | Address of the payee | [optional] +**VatNumber** | **String** | Account Holders Vat Number | [optional] +**StoreIds** | **[Number]** | List of stores to attach to Account | [optional] +**BankName** | **String** | Name of Bank | [optional] +**AccountName** | **String** | Name of this account | [optional] +**Iban** | **String** | IBAN of this account | [optional] +**Swift** | **String** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **String** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**[AccountFieldKeyValuePair]**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **String** | Reason for Rejection | [optional] +**BusinessType** | **String** | Business Type | [optional] + + + +## Enum: BusinessTypeEnum + + +* `Individual` (value: `"Individual"`) + +* `Company` (value: `"Company"`) + +* `NonProfit` (value: `"NonProfit"`) + +* `GovernmentEntity` (value: `"GovernmentEntity"`) + + + + diff --git a/docs/BankAccountSummary.md b/docs/BankAccountSummary.md new file mode 100644 index 00000000..3901ff79 --- /dev/null +++ b/docs/BankAccountSummary.md @@ -0,0 +1,51 @@ +# Flipdish.BankAccountSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id of this account | [optional] +**StoreNames** | **[String]** | Store Names that are attached to this account | [optional] +**StoreIds** | **[Number]** | Store Ids that are attached to this account | [optional] +**AccountState** | **String** | Status of Account | [optional] +**CurrencyCode** | **String** | Currency of Account | [optional] +**StripeConnectedAccountInfo** | [**StripeConnectedAccountInfo**](StripeConnectedAccountInfo.md) | | [optional] +**AccountName** | **String** | Name of this account | [optional] +**Iban** | **String** | IBAN of this account | [optional] +**Swift** | **String** | SWIFT of this bank account | [optional] +**NationalClearingCode** | **String** | National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) | [optional] +**PopulatedAccountFields** | [**[AccountFieldKeyValuePair]**](AccountFieldKeyValuePair.md) | A list of one or more populated account fields (field key-value pairs). If this list contains at least one item, the Iban, Swift and NationalClearingCode fields will be ignored. | [optional] +**RejectionReason** | **String** | Reason for Rejection | [optional] +**BusinessType** | **String** | Business Type | [optional] + + + +## Enum: AccountStateEnum + + +* `Unverified` (value: `"Unverified"`) + +* `AwatingVerification` (value: `"AwatingVerification"`) + +* `Verified` (value: `"Verified"`) + +* `Grandfathered` (value: `"Grandfathered"`) + + + + + +## Enum: BusinessTypeEnum + + +* `Individual` (value: `"Individual"`) + +* `Company` (value: `"Company"`) + +* `NonProfit` (value: `"NonProfit"`) + +* `GovernmentEntity` (value: `"GovernmentEntity"`) + + + + diff --git a/docs/BankAccountUpdatedEvent.md b/docs/BankAccountUpdatedEvent.md new file mode 100644 index 00000000..42256fd3 --- /dev/null +++ b/docs/BankAccountUpdatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.BankAccountUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **String** | Organisation Id | [optional] +**BankAccount** | [**BankAccount**](BankAccount.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/BluetoothTerminalStatus.md b/docs/BluetoothTerminalStatus.md new file mode 100644 index 00000000..93cad529 --- /dev/null +++ b/docs/BluetoothTerminalStatus.md @@ -0,0 +1,49 @@ +# Flipdish.BluetoothTerminalStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | **String** | Serial Number | [optional] +**SoftwareVersion** | **String** | Software Version | [optional] +**DeviceType** | **String** | Device Type | [optional] +**Status** | **String** | Device Status | [optional] +**BatteryLevel** | **Number** | Indication of the battery level from 0 to 1 | [optional] +**UpdateTime** | **Date** | Last time the status was updated | [optional] +**ReaderId** | **String** | ReaderId for Stripe Terminal | [optional] + + + +## Enum: DeviceTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + + +## Enum: StatusEnum + + +* `Not_Connected` (value: `"Not_Connected"`) + +* `Connecting` (value: `"Connecting"`) + +* `Connected` (value: `"Connected"`) + +* `Online` (value: `"Online"`) + +* `Offline` (value: `"Offline"`) + + + + diff --git a/docs/BusinessHoursOverride.md b/docs/BusinessHoursOverride.md new file mode 100644 index 00000000..5ff8a894 --- /dev/null +++ b/docs/BusinessHoursOverride.md @@ -0,0 +1,37 @@ +# Flipdish.BusinessHoursOverride + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BusinessHoursOverrideId** | **Number** | Unique identifier | [optional] +**DeliveryType** | **String** | Delivery or Pickup | [optional] +**StartTime** | **Date** | Date and time in ISO 8601 format. | +**EndTime** | **Date** | Date and time in ISO 8601 format. | +**Type** | **String** | Open, Closed or ClosedAllowPreOrders | [optional] + + + +## Enum: DeliveryTypeEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + + + + +## Enum: TypeEnum + + +* `Open` (value: `"Open"`) + +* `Closed` (value: `"Closed"`) + +* `ClosedAllowPreOrders` (value: `"ClosedAllowPreOrders"`) + + + + diff --git a/docs/BusinessHoursOverrideBase.md b/docs/BusinessHoursOverrideBase.md new file mode 100644 index 00000000..ff73def9 --- /dev/null +++ b/docs/BusinessHoursOverrideBase.md @@ -0,0 +1,36 @@ +# Flipdish.BusinessHoursOverrideBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryType** | **String** | Delivery or Pickup | [optional] +**StartTime** | **Date** | Date and time in ISO 8601 format. | +**EndTime** | **Date** | Date and time in ISO 8601 format. | +**Type** | **String** | Open, Closed or ClosedAllowPreOrders | [optional] + + + +## Enum: DeliveryTypeEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + + + + +## Enum: TypeEnum + + +* `Open` (value: `"Open"`) + +* `Closed` (value: `"Closed"`) + +* `ClosedAllowPreOrders` (value: `"ClosedAllowPreOrders"`) + + + + diff --git a/docs/BusinessHoursPeriod.md b/docs/BusinessHoursPeriod.md new file mode 100644 index 00000000..c2dbd0ea --- /dev/null +++ b/docs/BusinessHoursPeriod.md @@ -0,0 +1,37 @@ +# Flipdish.BusinessHoursPeriod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Early** | [**Range**](Range.md) | | [optional] +**Late** | [**Range**](Range.md) | | [optional] +**Ranges** | [**[Range]**](Range.md) | Ranges | [optional] +**DayOfWeek** | **String** | Day of week | [optional] +**StartTime** | **String** | Start time | [optional] +**Period** | **String** | Period | [optional] +**StartTimeEarly** | **String** | Start time early | [optional] +**PeriodEarly** | **String** | Period early | [optional] + + + +## Enum: DayOfWeekEnum + + +* `Sunday` (value: `"Sunday"`) + +* `Monday` (value: `"Monday"`) + +* `Tuesday` (value: `"Tuesday"`) + +* `Wednesday` (value: `"Wednesday"`) + +* `Thursday` (value: `"Thursday"`) + +* `Friday` (value: `"Friday"`) + +* `Saturday` (value: `"Saturday"`) + + + + diff --git a/docs/BusinessHoursPeriodBase.md b/docs/BusinessHoursPeriodBase.md new file mode 100644 index 00000000..9d9610aa --- /dev/null +++ b/docs/BusinessHoursPeriodBase.md @@ -0,0 +1,34 @@ +# Flipdish.BusinessHoursPeriodBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DayOfWeek** | **String** | Day of week | [optional] +**StartTime** | **String** | Start time | [optional] +**Period** | **String** | Period | [optional] +**StartTimeEarly** | **String** | Start time early | [optional] +**PeriodEarly** | **String** | Period early | [optional] + + + +## Enum: DayOfWeekEnum + + +* `Sunday` (value: `"Sunday"`) + +* `Monday` (value: `"Monday"`) + +* `Tuesday` (value: `"Tuesday"`) + +* `Wednesday` (value: `"Wednesday"`) + +* `Thursday` (value: `"Thursday"`) + +* `Friday` (value: `"Friday"`) + +* `Saturday` (value: `"Saturday"`) + + + + diff --git a/docs/CampaignStatistics.md b/docs/CampaignStatistics.md new file mode 100644 index 00000000..702c152f --- /dev/null +++ b/docs/CampaignStatistics.md @@ -0,0 +1,13 @@ +# Flipdish.CampaignStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VouchersIssued** | **Number** | Deprecated. Number of issued vouchers. This field is always zero. | [optional] +**VouchersRedeemed** | **Number** | Deprecated. Number of redeemed vouchers. This field is always zero. This field is always zero. | [optional] +**Conversion** | **Number** | Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero. | [optional] +**SalesGenerated** | **Number** | Deprecated. Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). This field is always zero. | [optional] +**ReturnOfInvestment** | **Number** | Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero. | [optional] + + diff --git a/docs/CampaignsApi.md b/docs/CampaignsApi.md new file mode 100644 index 00000000..d2570d34 --- /dev/null +++ b/docs/CampaignsApi.md @@ -0,0 +1,510 @@ +# Flipdish.CampaignsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createLoyaltyCampaign**](CampaignsApi.md#createLoyaltyCampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty | +[**createRetentionCampaign**](CampaignsApi.md#createRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | +[**getLoyaltyCampaignsForApp**](CampaignsApi.md#getLoyaltyCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | +[**getLoyaltyCampaignsForStore**](CampaignsApi.md#getLoyaltyCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | +[**getRetentionCampaignsForApp**](CampaignsApi.md#getRetentionCampaignsForApp) | **GET** /api/v1.0/{appId}/campaigns/retention | +[**getRetentionCampaignsForStore**](CampaignsApi.md#getRetentionCampaignsForStore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | +[**getStoreList**](CampaignsApi.md#getStoreList) | **GET** /api/v1.0/{appId}/campaigns/stores | +[**removeCampaign**](CampaignsApi.md#removeCampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | +[**updateLoyaltyCampaign**](CampaignsApi.md#updateLoyaltyCampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | +[**updateRetentionCampaign**](CampaignsApi.md#updateRetentionCampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | + + + +## createLoyaltyCampaign + +> RestApiResultLoyaltyCampaign createLoyaltyCampaign(appId, campaign) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let campaign = new Flipdish.LoyaltyCampaignBase(); // LoyaltyCampaignBase | +apiInstance.createLoyaltyCampaign(appId, campaign, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| | + +### Return type + +[**RestApiResultLoyaltyCampaign**](RestApiResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## createRetentionCampaign + +> RestApiResultRetentionCampaign createRetentionCampaign(appId, campaign) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let campaign = new Flipdish.RetentionCampaignBase(); // RetentionCampaignBase | +apiInstance.createRetentionCampaign(appId, campaign, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| | + +### Return type + +[**RestApiResultRetentionCampaign**](RestApiResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getLoyaltyCampaignsForApp + +> RestApiArrayResultLoyaltyCampaign getLoyaltyCampaignsForApp(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +apiInstance.getLoyaltyCampaignsForApp(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultLoyaltyCampaign**](RestApiArrayResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getLoyaltyCampaignsForStore + +> RestApiArrayResultLoyaltyCampaign getLoyaltyCampaignsForStore(appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.getLoyaltyCampaignsForStore(appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiArrayResultLoyaltyCampaign**](RestApiArrayResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getRetentionCampaignsForApp + +> RestApiArrayResultRetentionCampaign getRetentionCampaignsForApp(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +apiInstance.getRetentionCampaignsForApp(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultRetentionCampaign**](RestApiArrayResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getRetentionCampaignsForStore + +> RestApiArrayResultRetentionCampaign getRetentionCampaignsForStore(appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.getRetentionCampaignsForStore(appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiArrayResultRetentionCampaign**](RestApiArrayResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getStoreList + +> RestApiArrayResultStoreListItem getStoreList(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let opts = { + 'onlyPublished': true // Boolean | +}; +apiInstance.getStoreList(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **onlyPublished** | **Boolean**| | [optional] + +### Return type + +[**RestApiArrayResultStoreListItem**](RestApiArrayResultStoreListItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## removeCampaign + +> removeCampaign(appId, campaignId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let campaignId = 56; // Number | +apiInstance.removeCampaign(appId, campaignId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **campaignId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## updateLoyaltyCampaign + +> RestApiResultLoyaltyCampaign updateLoyaltyCampaign(appId, campaignId, campaign) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let campaignId = 56; // Number | +let campaign = new Flipdish.LoyaltyCampaignBase(); // LoyaltyCampaignBase | +apiInstance.updateLoyaltyCampaign(appId, campaignId, campaign, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **campaignId** | **Number**| | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| | + +### Return type + +[**RestApiResultLoyaltyCampaign**](RestApiResultLoyaltyCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## updateRetentionCampaign + +> RestApiResultRetentionCampaign updateRetentionCampaign(appId, campaignId, campaign) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CampaignsApi(); +let appId = "appId_example"; // String | +let campaignId = 56; // Number | +let campaign = new Flipdish.RetentionCampaignBase(); // RetentionCampaignBase | +apiInstance.updateRetentionCampaign(appId, campaignId, campaign, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **campaignId** | **Number**| | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| | + +### Return type + +[**RestApiResultRetentionCampaign**](RestApiResultRetentionCampaign.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/CancellationToken.md b/docs/CancellationToken.md new file mode 100644 index 00000000..df62a8a7 --- /dev/null +++ b/docs/CancellationToken.md @@ -0,0 +1,11 @@ +# Flipdish.CancellationToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCancellationRequested** | **Boolean** | | [optional] [readonly] +**CanBeCanceled** | **Boolean** | | [optional] [readonly] +**WaitHandle** | [**WaitHandle**](WaitHandle.md) | | [optional] + + diff --git a/docs/CardReader.md b/docs/CardReader.md new file mode 100644 index 00000000..2b3b53c8 --- /dev/null +++ b/docs/CardReader.md @@ -0,0 +1,16 @@ +# Flipdish.CardReader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | Stripe reader id | [optional] +**DeviceSoftwareVersion** | **String** | Software version | [optional] +**SerialNumber** | **String** | Device serial number | [optional] +**Status** | **String** | Device status online or offline | [optional] +**RegistrationCode** | **String** | Registration code | [optional] +**DeviceType** | **String** | Device type | [optional] +**Deleted** | **Boolean** | Indicates that the reader is deleted or not | [optional] +**Action** | [**ReaderActionStateInfo**](ReaderActionStateInfo.md) | | [optional] + + diff --git a/docs/CardReaderRegistrationRequest.md b/docs/CardReaderRegistrationRequest.md new file mode 100644 index 00000000..c14b32ee --- /dev/null +++ b/docs/CardReaderRegistrationRequest.md @@ -0,0 +1,10 @@ +# Flipdish.CardReaderRegistrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RegistrationCode** | **String** | The reader registration code | +**KioskDeviceId** | **String** | The kiosk device id | [optional] + + diff --git a/docs/CardReadersApi.md b/docs/CardReadersApi.md new file mode 100644 index 00000000..8907093b --- /dev/null +++ b/docs/CardReadersApi.md @@ -0,0 +1,666 @@ +# Flipdish.CardReadersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancelCurrentlyInitiatedBluetoothDeviceUpdate**](CardReadersApi.md#cancelCurrentlyInitiatedBluetoothDeviceUpdate) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate | +[**cancelReaderAction**](CardReadersApi.md#cancelReaderAction) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action | +[**cardReadersGetReader**](CardReadersApi.md#cardReadersGetReader) | **GET** /api/v1.0/{appId}/payments/terminals/stripe/{readerId} | +[**generateStripeTerminalLocation**](CardReadersApi.md#generateStripeTerminalLocation) | **POST** /api/v1.0/{appId}/stripeterminal/location | +[**getBluetoothTerminalStatus**](CardReadersApi.md#getBluetoothTerminalStatus) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | +[**getStripeConnectionToken**](CardReadersApi.md#getStripeConnectionToken) | **GET** /api/v1.0/{appId}/stripeterminal/connectiontoken | +[**initiateBluetoothTerminalDeviceUpdateCheck**](CardReadersApi.md#initiateBluetoothTerminalDeviceUpdateCheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | +[**initiateKioskBluetoothPairingMode**](CardReadersApi.md#initiateKioskBluetoothPairingMode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | +[**initiateKioskBluetoothUpdateInstall**](CardReadersApi.md#initiateKioskBluetoothUpdateInstall) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | +[**initiateReaderProcessPaymentIntent**](CardReadersApi.md#initiateReaderProcessPaymentIntent) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent | +[**registerStripeTerminal**](CardReadersApi.md#registerStripeTerminal) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/register | +[**unRegisterTerminal**](CardReadersApi.md#unRegisterTerminal) | **DELETE** /api/v1.0/{appId}/payments/terminals/stripe/unregister | +[**unpairCurrentlyPairedBluetoothDevice**](CardReadersApi.md#unpairCurrentlyPairedBluetoothDevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | + + + +## cancelCurrentlyInitiatedBluetoothDeviceUpdate + +> cancelCurrentlyInitiatedBluetoothDeviceUpdate(appId, deviceId, terminalType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let terminalType = "terminalType_example"; // String | +apiInstance.cancelCurrentlyInitiatedBluetoothDeviceUpdate(appId, deviceId, terminalType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **terminalType** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## cancelReaderAction + +> RestApiResultCardReader cancelReaderAction(readerId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let readerId = "readerId_example"; // String | +let appId = "appId_example"; // String | +apiInstance.cancelReaderAction(readerId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **readerId** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## cardReadersGetReader + +> RestApiResultCardReader cardReadersGetReader(readerId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let readerId = "readerId_example"; // String | +let appId = "appId_example"; // String | +apiInstance.cardReadersGetReader(readerId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **readerId** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## generateStripeTerminalLocation + +> RestApiResultStripeTerminalLocation generateStripeTerminalLocation(appId, geoPointRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let geoPointRequest = new Flipdish.GeoPointRequest(); // GeoPointRequest | +apiInstance.generateStripeTerminalLocation(appId, geoPointRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **geoPointRequest** | [**GeoPointRequest**](GeoPointRequest.md)| | + +### Return type + +[**RestApiResultStripeTerminalLocation**](RestApiResultStripeTerminalLocation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getBluetoothTerminalStatus + +> RestApiResultBluetoothTerminalStatus getBluetoothTerminalStatus(appId, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +apiInstance.getBluetoothTerminalStatus(appId, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + +### Return type + +[**RestApiResultBluetoothTerminalStatus**](RestApiResultBluetoothTerminalStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStripeConnectionToken + +> RestApiResultStripeTerminalConnectionToken getStripeConnectionToken(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +apiInstance.getStripeConnectionToken(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultStripeTerminalConnectionToken**](RestApiResultStripeTerminalConnectionToken.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## initiateBluetoothTerminalDeviceUpdateCheck + +> initiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let terminalType = "terminalType_example"; // String | +apiInstance.initiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **terminalType** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## initiateKioskBluetoothPairingMode + +> initiateKioskBluetoothPairingMode(appId, deviceId, terminalType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let terminalType = "terminalType_example"; // String | +apiInstance.initiateKioskBluetoothPairingMode(appId, deviceId, terminalType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **terminalType** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## initiateKioskBluetoothUpdateInstall + +> initiateKioskBluetoothUpdateInstall(appId, deviceId, terminalType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let terminalType = "terminalType_example"; // String | +apiInstance.initiateKioskBluetoothUpdateInstall(appId, deviceId, terminalType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **terminalType** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## initiateReaderProcessPaymentIntent + +> RestApiResultCardReader initiateReaderProcessPaymentIntent(readerId, appId, request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let readerId = "readerId_example"; // String | +let appId = "appId_example"; // String | +let request = new Flipdish.ProcessPaymentIntentRequest(); // ProcessPaymentIntentRequest | +apiInstance.initiateReaderProcessPaymentIntent(readerId, appId, request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **readerId** | **String**| | + **appId** | **String**| | + **request** | [**ProcessPaymentIntentRequest**](ProcessPaymentIntentRequest.md)| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## registerStripeTerminal + +> RestApiResultCardReader registerStripeTerminal(appId, request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let request = new Flipdish.CardReaderRegistrationRequest(); // CardReaderRegistrationRequest | +apiInstance.registerStripeTerminal(appId, request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **request** | [**CardReaderRegistrationRequest**](CardReaderRegistrationRequest.md)| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## unRegisterTerminal + +> RestApiResultCardReader unRegisterTerminal(appId, request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let request = new Flipdish.UnRegisterCardReaderRequest(); // UnRegisterCardReaderRequest | +apiInstance.unRegisterTerminal(appId, request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **request** | [**UnRegisterCardReaderRequest**](UnRegisterCardReaderRequest.md)| | + +### Return type + +[**RestApiResultCardReader**](RestApiResultCardReader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## unpairCurrentlyPairedBluetoothDevice + +> unpairCurrentlyPairedBluetoothDevice(appId, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CardReadersApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +apiInstance.unpairCurrentlyPairedBluetoothDevice(appId, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/CatalogChangesApi.md b/docs/CatalogChangesApi.md new file mode 100644 index 00000000..006edd82 --- /dev/null +++ b/docs/CatalogChangesApi.md @@ -0,0 +1,168 @@ +# Flipdish.CatalogChangesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getPendingMenuChanges**](CatalogChangesApi.md#getPendingMenuChanges) | **GET** /api/v1.0/{appId}/menus/catalog-changes | Get menu pending changes from Catalog groups and items +[**getPendingMenuChangesSummaries**](CatalogChangesApi.md#getPendingMenuChangesSummaries) | **GET** /api/v1.0/{appId}/menus/catalog-changes/summaries | Get menu pending changes summaries by appId +[**publishPendingMenuChanges**](CatalogChangesApi.md#publishPendingMenuChanges) | **POST** /api/v1.0/{appId}/menus/catalog-changes/publish | Update menus with the pending changes from Catalog groups and items + + + +## getPendingMenuChanges + +> RestApiPaginationResultPendingMenuChanges getPendingMenuChanges(appId, opts) + +Get menu pending changes from Catalog groups and items + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogChangesApi(); +let appId = "appId_example"; // String | +let opts = { + 'menuId': 56, // Number | + 'catalogItemId': "catalogItemId_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getPendingMenuChanges(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **menuId** | **Number**| | [optional] + **catalogItemId** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultPendingMenuChanges**](RestApiPaginationResultPendingMenuChanges.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPendingMenuChangesSummaries + +> RestApiArrayResultPendingMenuChangesSummaries getPendingMenuChangesSummaries(appId) + +Get menu pending changes summaries by appId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogChangesApi(); +let appId = "appId_example"; // String | +apiInstance.getPendingMenuChangesSummaries(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultPendingMenuChangesSummaries**](RestApiArrayResultPendingMenuChangesSummaries.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## publishPendingMenuChanges + +> publishPendingMenuChanges(appId, publishMenuChanges) + +Update menus with the pending changes from Catalog groups and items + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogChangesApi(); +let appId = "appId_example"; // String | +let publishMenuChanges = new Flipdish.PublishMenuChanges(); // PublishMenuChanges | +apiInstance.publishPendingMenuChanges(appId, publishMenuChanges, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **publishMenuChanges** | [**PublishMenuChanges**](PublishMenuChanges.md)| | + +### Return type + +null (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 + diff --git a/docs/CatalogGroupArchivedEvent.md b/docs/CatalogGroupArchivedEvent.md new file mode 100644 index 00000000..fb470387 --- /dev/null +++ b/docs/CatalogGroupArchivedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.CatalogGroupArchivedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Group** | [**Group**](Group.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CatalogGroupCreatedEvent.md b/docs/CatalogGroupCreatedEvent.md new file mode 100644 index 00000000..738848aa --- /dev/null +++ b/docs/CatalogGroupCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.CatalogGroupCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Group** | [**Group**](Group.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CatalogGroupReference.md b/docs/CatalogGroupReference.md new file mode 100644 index 00000000..4174b228 --- /dev/null +++ b/docs/CatalogGroupReference.md @@ -0,0 +1,21 @@ +# Flipdish.CatalogGroupReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**Group**](Group.md) | | [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 | + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/CatalogGroupUpdatedEvent.md b/docs/CatalogGroupUpdatedEvent.md new file mode 100644 index 00000000..27170c47 --- /dev/null +++ b/docs/CatalogGroupUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.CatalogGroupUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Group** | [**Group**](Group.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CatalogGroupsApi.md b/docs/CatalogGroupsApi.md new file mode 100644 index 00000000..e63bd02e --- /dev/null +++ b/docs/CatalogGroupsApi.md @@ -0,0 +1,330 @@ +# Flipdish.CatalogGroupsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**archiveGroup**](CatalogGroupsApi.md#archiveGroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId}/archive | Archive Catalog Group +[**createGroup**](CatalogGroupsApi.md#createGroup) | **POST** /api/v1.0/{appId}/catalog/groups | Create a Catalog Group +[**duplicateGroup**](CatalogGroupsApi.md#duplicateGroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId}/duplicate | Duplicate Catalog Group +[**getGroupById**](CatalogGroupsApi.md#getGroupById) | **GET** /api/v1.0/{appId}/catalog/groups/{catalogItemId} | Get group by Id +[**getGroups**](CatalogGroupsApi.md#getGroups) | **GET** /api/v1.0/{appId}/catalog/groups | Get paginated groups by app name id filtered by types +[**updateGroup**](CatalogGroupsApi.md#updateGroup) | **POST** /api/v1.0/{appId}/catalog/groups/{catalogItemId} | Update Catalog Group + + + +## archiveGroup + +> archiveGroup(appId, catalogItemId) + +Archive Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogGroupsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.archiveGroup(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## createGroup + +> RestApiResultGroup createGroup(appId, createGroup) + +Create a Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogGroupsApi(); +let appId = "appId_example"; // String | +let createGroup = new Flipdish.CreateGroup(); // CreateGroup | +apiInstance.createGroup(appId, createGroup, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **createGroup** | [**CreateGroup**](CreateGroup.md)| | + +### Return type + +[**RestApiResultGroup**](RestApiResultGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, MinSelectCount, MaxSelectCount, Products, GroupType, Sku, Name, AutogenerateDisplayText, ImageFileName + + +## duplicateGroup + +> duplicateGroup(appId, catalogItemId) + +Duplicate Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogGroupsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.duplicateGroup(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getGroupById + +> Group getGroupById(appId, catalogItemId) + +Get group by Id + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogGroupsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.getGroupById(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +[**Group**](Group.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, CatalogGroupId, CatalogItemId, IsArchived, MinSelectCount, Products, GroupType, Sku, Name, AutogenerateDisplayText, ImageFileName + + +## getGroups + +> RestApiPaginationResultGroup getGroups(appId, groupTypes, opts) + +Get paginated groups by app name id filtered by types + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogGroupsApi(); +let appId = "appId_example"; // String | +let groupTypes = ["null"]; // [String] | +let opts = { + 'searchTerm': "searchTerm_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getGroups(appId, groupTypes, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **groupTypes** | [**[String]**](String.md)| | + **searchTerm** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultGroup**](RestApiPaginationResultGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateGroup + +> updateGroup(appId, catalogItemId, updateGroup) + +Update Catalog Group + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogGroupsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +let updateGroup = new Flipdish.UpdateGroup(); // UpdateGroup | +apiInstance.updateGroup(appId, catalogItemId, updateGroup, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + **updateGroup** | [**UpdateGroup**](UpdateGroup.md)| | + +### Return type + +null (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 + diff --git a/docs/CatalogImage.md b/docs/CatalogImage.md new file mode 100644 index 00000000..a5ad31a5 --- /dev/null +++ b/docs/CatalogImage.md @@ -0,0 +1,9 @@ +# Flipdish.CatalogImage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImageUri** | **String** | Unique catalog Item id | [optional] + + diff --git a/docs/CatalogImagesApi.md b/docs/CatalogImagesApi.md new file mode 100644 index 00000000..ff7fc521 --- /dev/null +++ b/docs/CatalogImagesApi.md @@ -0,0 +1,60 @@ +# Flipdish.CatalogImagesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**uploadCatalogImage**](CatalogImagesApi.md#uploadCatalogImage) | **POST** /api/v1.0/{appId}/catalog/images | Upload a Catalog Image + + + +## uploadCatalogImage + +> CatalogImage uploadCatalogImage(appId, Image) + +Upload a Catalog Image + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogImagesApi(); +let appId = "appId_example"; // String | +let Image = "/path/to/file"; // File | Catalog image +apiInstance.uploadCatalogImage(appId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **Image** | **File**| Catalog image | + +### Return type + +[**CatalogImage**](CatalogImage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, ImageUri + diff --git a/docs/CatalogItem.md b/docs/CatalogItem.md new file mode 100644 index 00000000..978ebbf6 --- /dev/null +++ b/docs/CatalogItem.md @@ -0,0 +1,30 @@ +# Flipdish.CatalogItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Unique catalog Item id | [optional] +**IsArchived** | **Boolean** | Returns true if the item is archived | [optional] +**Groups** | [**[CatalogGroupReference]**](CatalogGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] +**ItemType** | **String** | Type of item (Product, Modifier, etc) | +**Sku** | **String** | Stock Keeping Unit (SKU) | +**Name** | **String** | Item name | +**Description** | **String** | Item description | [optional] +**Price** | **Number** | Item price | +**ImageFileName** | **String** | Image File Name | [optional] +**Alcohol** | **Boolean** | item contains alcohol | [optional] + + + +## Enum: ItemTypeEnum + + +* `Product` (value: `"Product"`) + +* `Modifier` (value: `"Modifier"`) + + + + diff --git a/docs/CatalogItemArchivedEvent.md b/docs/CatalogItemArchivedEvent.md new file mode 100644 index 00000000..057b260d --- /dev/null +++ b/docs/CatalogItemArchivedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.CatalogItemArchivedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**CatalogItem** | [**CatalogItem**](CatalogItem.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CatalogItemCreatedEvent.md b/docs/CatalogItemCreatedEvent.md new file mode 100644 index 00000000..6efec4b3 --- /dev/null +++ b/docs/CatalogItemCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.CatalogItemCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**CatalogItem** | [**CatalogItem**](CatalogItem.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CatalogItemUpdatedEvent.md b/docs/CatalogItemUpdatedEvent.md new file mode 100644 index 00000000..6f6efb9b --- /dev/null +++ b/docs/CatalogItemUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.CatalogItemUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**CatalogItem** | [**CatalogItem**](CatalogItem.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CatalogItemsApi.md b/docs/CatalogItemsApi.md new file mode 100644 index 00000000..a266b7b2 --- /dev/null +++ b/docs/CatalogItemsApi.md @@ -0,0 +1,330 @@ +# Flipdish.CatalogItemsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**archiveCatalogItem**](CatalogItemsApi.md#archiveCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId}/archive | Archive Catalog Item +[**createCatalogItem**](CatalogItemsApi.md#createCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items | Create a Catalog Item +[**duplicateCatalogItem**](CatalogItemsApi.md#duplicateCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId}/duplicate | Duplicate Catalog Item +[**getCatalogItemById**](CatalogItemsApi.md#getCatalogItemById) | **GET** /api/v1.0/{appId}/catalog/items/{catalogItemId} | Get item by Id +[**getItems**](CatalogItemsApi.md#getItems) | **GET** /api/v1.0/{appId}/catalog/items | Get paginated items by app name id filtered by types +[**updateCatalogItem**](CatalogItemsApi.md#updateCatalogItem) | **POST** /api/v1.0/{appId}/catalog/items/{catalogItemId} | Update Catalog Item + + + +## archiveCatalogItem + +> archiveCatalogItem(appId, catalogItemId) + +Archive Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogItemsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.archiveCatalogItem(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## createCatalogItem + +> RestApiResultCatalogItem createCatalogItem(appId, createCatalogItem) + +Create a Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogItemsApi(); +let appId = "appId_example"; // String | +let createCatalogItem = new Flipdish.CreateCatalogItem(); // CreateCatalogItem | +apiInstance.createCatalogItem(appId, createCatalogItem, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **createCatalogItem** | [**CreateCatalogItem**](CreateCatalogItem.md)| | + +### Return type + +[**RestApiResultCatalogItem**](RestApiResultCatalogItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, CatalogItemId, IsArchived, Groups, ItemType, Sku, Name, Description, Price, ImageFileName, Alcohol + + +## duplicateCatalogItem + +> duplicateCatalogItem(appId, catalogItemId) + +Duplicate Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogItemsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.duplicateCatalogItem(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getCatalogItemById + +> CatalogItem getCatalogItemById(appId, catalogItemId) + +Get item by Id + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogItemsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.getCatalogItemById(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +[**CatalogItem**](CatalogItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, CatalogItemId, IsArchived, Groups, ItemType, Sku, Name, Description, Price, ImageFileName, Alcohol + + +## getItems + +> RestApiPaginationResultCatalogItem getItems(appId, itemTypes, opts) + +Get paginated items by app name id filtered by types + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogItemsApi(); +let appId = "appId_example"; // String | +let itemTypes = ["null"]; // [String] | +let opts = { + 'searchTerm': "searchTerm_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getItems(appId, itemTypes, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **itemTypes** | [**[String]**](String.md)| | + **searchTerm** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultCatalogItem**](RestApiPaginationResultCatalogItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateCatalogItem + +> updateCatalogItem(appId, catalogItemId, updateCatalogItem) + +Update Catalog Item + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogItemsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +let updateCatalogItem = new Flipdish.UpdateCatalogItem(); // UpdateCatalogItem | +apiInstance.updateCatalogItem(appId, catalogItemId, updateCatalogItem, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + **updateCatalogItem** | [**UpdateCatalogItem**](UpdateCatalogItem.md)| | + +### Return type + +null (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 + diff --git a/docs/CatalogProductsApi.md b/docs/CatalogProductsApi.md new file mode 100644 index 00000000..e5012f22 --- /dev/null +++ b/docs/CatalogProductsApi.md @@ -0,0 +1,330 @@ +# Flipdish.CatalogProductsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**archiveProduct**](CatalogProductsApi.md#archiveProduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId}/archive | Archive Product +[**createProduct**](CatalogProductsApi.md#createProduct) | **POST** /api/v1.0/{appId}/catalog/products | Create a Product +[**duplicateProduct**](CatalogProductsApi.md#duplicateProduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId}/duplicate | Duplicate Product +[**getProductById**](CatalogProductsApi.md#getProductById) | **GET** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Get Product by Id +[**getProducts**](CatalogProductsApi.md#getProducts) | **GET** /api/v1.0/{appId}/catalog/products | Get paginated products by app name id filtered by types +[**updateProduct**](CatalogProductsApi.md#updateProduct) | **POST** /api/v1.0/{appId}/catalog/products/{catalogItemId} | Update Product + + + +## archiveProduct + +> archiveProduct(appId, catalogItemId) + +Archive Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogProductsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.archiveProduct(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## createProduct + +> RestApiResultProduct createProduct(appId, createProduct) + +Create a Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogProductsApi(); +let appId = "appId_example"; // String | +let createProduct = new Flipdish.CreateProduct(); // CreateProduct | +apiInstance.createProduct(appId, createProduct, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **createProduct** | [**CreateProduct**](CreateProduct.md)| | + +### Return type + +[**RestApiResultProduct**](RestApiResultProduct.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, CatalogItemId, IsArchived, Groups, ProductType, Sku, Name, Description, Price, ImageFileName, Alcohol + + +## duplicateProduct + +> duplicateProduct(appId, catalogItemId) + +Duplicate Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogProductsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.duplicateProduct(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getProductById + +> Product getProductById(appId, catalogItemId) + +Get Product by Id + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogProductsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +apiInstance.getProductById(appId, catalogItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + +### Return type + +[**Product**](Product.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, CatalogItemId, IsArchived, Groups, ProductType, Sku, Name, Description, Price, ImageFileName, Alcohol + + +## getProducts + +> RestApiPaginationResultProduct getProducts(appId, productTypes, opts) + +Get paginated products by app name id filtered by types + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogProductsApi(); +let appId = "appId_example"; // String | +let productTypes = ["null"]; // [String] | +let opts = { + 'searchTerm': "searchTerm_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getProducts(appId, productTypes, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **productTypes** | [**[String]**](String.md)| | + **searchTerm** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultProduct**](RestApiPaginationResultProduct.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateProduct + +> updateProduct(appId, catalogItemId, updateProduct) + +Update Product + +[BETA - this endpoint is under development, do not use it in your production system] + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CatalogProductsApi(); +let appId = "appId_example"; // String | +let catalogItemId = "catalogItemId_example"; // String | +let updateProduct = new Flipdish.UpdateProduct(); // UpdateProduct | +apiInstance.updateProduct(appId, catalogItemId, updateProduct, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **catalogItemId** | **String**| | + **updateProduct** | [**UpdateProduct**](UpdateProduct.md)| | + +### Return type + +null (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 + diff --git a/docs/CertificateCreatedEvent.md b/docs/CertificateCreatedEvent.md new file mode 100644 index 00000000..4ff1dc61 --- /dev/null +++ b/docs/CertificateCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.CertificateCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **String** | Description | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CertificateRenewedEvent.md b/docs/CertificateRenewedEvent.md new file mode 100644 index 00000000..665ef724 --- /dev/null +++ b/docs/CertificateRenewedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.CertificateRenewedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **String** | Description | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/ChangePasswordModel.md b/docs/ChangePasswordModel.md new file mode 100644 index 00000000..39e8a539 --- /dev/null +++ b/docs/ChangePasswordModel.md @@ -0,0 +1,10 @@ +# Flipdish.ChangePasswordModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OldPassword** | **String** | Old password | +**NewPassword** | **String** | New password | + + diff --git a/docs/Channel.md b/docs/Channel.md new file mode 100644 index 00000000..b225f308 --- /dev/null +++ b/docs/Channel.md @@ -0,0 +1,25 @@ +# Flipdish.Channel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelId** | **Number** | Channel Id | [optional] +**TranslationKey** | **String** | Channel TranslationKey | [optional] +**Source** | **String** | Channel Source | [optional] +**LogoUri** | **String** | Channel Logo URl | [optional] +**Available** | **Boolean** | Channel is Available or not | [optional] +**MaintainedExternally** | **Boolean** | Channel is Maintained Externally or not | [optional] + + + +## Enum: SourceEnum + + +* `Internal` (value: `"Internal"`) + +* `External` (value: `"External"`) + + + + diff --git a/docs/ChannelStoresUpdatedEvent.md b/docs/ChannelStoresUpdatedEvent.md new file mode 100644 index 00000000..5b3e453e --- /dev/null +++ b/docs/ChannelStoresUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.ChannelStoresUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**ChannelId** | **Number** | ID of the channel | [optional] +**StoreIds** | **[Number]** | List of store ids | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/ChannelsApi.md b/docs/ChannelsApi.md new file mode 100644 index 00000000..62031729 --- /dev/null +++ b/docs/ChannelsApi.md @@ -0,0 +1,610 @@ +# Flipdish.ChannelsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignAppIdToSalesChannel**](ChannelsApi.md#assignAppIdToSalesChannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/assign-appId | +[**assignStoreToChannel**](ChannelsApi.md#assignStoreToChannel) | **POST** /api/v1.0/{appId}/channels/assign-store | +[**attachStoreToSalesChannel**](ChannelsApi.md#attachStoreToSalesChannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +[**detachAllStoresFromSalesChannel**](ChannelsApi.md#detachAllStoresFromSalesChannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores | +[**detachStoreFromSalesChannel**](ChannelsApi.md#detachStoreFromSalesChannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | +[**getAssignedChannels**](ChannelsApi.md#getAssignedChannels) | **GET** /api/v1.0/{appId}/channels/assigned-channels | +[**getAvailableChannels**](ChannelsApi.md#getAvailableChannels) | **GET** /api/v1.0/{appId}/channels/available-channels | +[**getChannel**](ChannelsApi.md#getChannel) | **GET** /api/v1.0/{appId}/channels/{id} | +[**getChannels**](ChannelsApi.md#getChannels) | **GET** /api/v1.0/{appId}/channels | +[**getStoresAssignedToChannel**](ChannelsApi.md#getStoresAssignedToChannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/assigned-stores | +[**getStoresBySalesChannel**](ChannelsApi.md#getStoresBySalesChannel) | **GET** /api/v1.0/{appId}/channels/{channelId}/stores | +[**unassignStoreFromChannel**](ChannelsApi.md#unassignStoreFromChannel) | **DELETE** /api/v1.0/{appId}/channels/unassign-store | + + + +## assignAppIdToSalesChannel + +> Object assignAppIdToSalesChannel(appId, channelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +let channelId = 56; // Number | +apiInstance.assignAppIdToSalesChannel(appId, channelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **channelId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## assignStoreToChannel + +> Object assignStoreToChannel(storeId, appId, channelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let storeId = 56; // Number | +let appId = "appId_example"; // String | +let channelId = 56; // Number | +apiInstance.assignStoreToChannel(storeId, appId, channelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **appId** | **String**| | + **channelId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## attachStoreToSalesChannel + +> Object attachStoreToSalesChannel(appId, channelId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +let channelId = 56; // Number | +let storeId = 56; // Number | +apiInstance.attachStoreToSalesChannel(appId, channelId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **channelId** | **Number**| | + **storeId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## detachAllStoresFromSalesChannel + +> Object detachAllStoresFromSalesChannel(appId, channelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +let channelId = 56; // Number | +apiInstance.detachAllStoresFromSalesChannel(appId, channelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **channelId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## detachStoreFromSalesChannel + +> Object detachStoreFromSalesChannel(appId, channelId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +let channelId = 56; // Number | +let storeId = 56; // Number | +apiInstance.detachStoreFromSalesChannel(appId, channelId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **channelId** | **Number**| | + **storeId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getAssignedChannels + +> RestApiArrayResultChannel getAssignedChannels(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +apiInstance.getAssignedChannels(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultChannel**](RestApiArrayResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getAvailableChannels + +> RestApiArrayResultChannel getAvailableChannels(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +apiInstance.getAvailableChannels(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultChannel**](RestApiArrayResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getChannel + +> RestApiResultChannel getChannel(id, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let id = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.getChannel(id, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + **appId** | **String**| | + +### Return type + +[**RestApiResultChannel**](RestApiResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getChannels + +> RestApiArrayResultChannel getChannels(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +apiInstance.getChannels(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultChannel**](RestApiArrayResultChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getStoresAssignedToChannel + +> RestApiArrayResultStoreChannelAssignment getStoresAssignedToChannel(appId, channelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +let channelId = 56; // Number | +apiInstance.getStoresAssignedToChannel(appId, channelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **channelId** | **Number**| | + +### Return type + +[**RestApiArrayResultStoreChannelAssignment**](RestApiArrayResultStoreChannelAssignment.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getStoresBySalesChannel + +> Response getStoresBySalesChannel(appId, channelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let appId = "appId_example"; // String | +let channelId = 56; // Number | +apiInstance.getStoresBySalesChannel(appId, channelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **channelId** | **Number**| | + +### Return type + +[**Response**](Response.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## unassignStoreFromChannel + +> Object unassignStoreFromChannel(storeId, appId, channelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ChannelsApi(); +let storeId = 56; // Number | +let appId = "appId_example"; // String | +let channelId = 56; // Number | +apiInstance.unassignStoreFromChannel(storeId, appId, channelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **appId** | **String**| | + **channelId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/ChargebackDetails.md b/docs/ChargebackDetails.md new file mode 100644 index 00000000..57f430c0 --- /dev/null +++ b/docs/ChargebackDetails.md @@ -0,0 +1,13 @@ +# Flipdish.ChargebackDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChargebackAmount** | **Number** | Chargeback amount | [optional] +**PosSalesChargebackAmount** | **Number** | POS Chargeback amount | [optional] +**ChargebackRefundedFees** | **Number** | Chargeback refunded feeds | [optional] +**ChargebacksCount** | **Number** | Number of chargebacks | [optional] +**TotalChargebackCost** | **Number** | Total amount | [optional] + + diff --git a/docs/ClientDevice.md b/docs/ClientDevice.md new file mode 100644 index 00000000..23384eed --- /dev/null +++ b/docs/ClientDevice.md @@ -0,0 +1,11 @@ +# Flipdish.ClientDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **String** | Device Model | [optional] +**DeviceId** | **String** | Device Id | [optional] +**DeviceName** | **String** | Device Name | [optional] + + diff --git a/docs/ClientDeviceAssignEnrolledDevice.md b/docs/ClientDeviceAssignEnrolledDevice.md new file mode 100644 index 00000000..1f17715b --- /dev/null +++ b/docs/ClientDeviceAssignEnrolledDevice.md @@ -0,0 +1,10 @@ +# Flipdish.ClientDeviceAssignEnrolledDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **String** | Device Model | [optional] +**PinCode** | **String** | Pin Code | [optional] + + diff --git a/docs/ClientDeviceEnroll.md b/docs/ClientDeviceEnroll.md new file mode 100644 index 00000000..dd79a47f --- /dev/null +++ b/docs/ClientDeviceEnroll.md @@ -0,0 +1,11 @@ +# Flipdish.ClientDeviceEnroll + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **String** | Device model | [optional] +**DeviceId** | **String** | Device Id | [optional] +**DeviceName** | **String** | Device Name | [optional] + + diff --git a/docs/ClientDeviceEnrollmentResult.md b/docs/ClientDeviceEnrollmentResult.md new file mode 100644 index 00000000..43aaf998 --- /dev/null +++ b/docs/ClientDeviceEnrollmentResult.md @@ -0,0 +1,9 @@ +# Flipdish.ClientDeviceEnrollmentResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PinCode** | **String** | PIN Code for assigning | [optional] + + diff --git a/docs/ClientDeviceSummary.md b/docs/ClientDeviceSummary.md new file mode 100644 index 00000000..e3b0ef6f --- /dev/null +++ b/docs/ClientDeviceSummary.md @@ -0,0 +1,11 @@ +# Flipdish.ClientDeviceSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceModel** | **String** | Device Model | [optional] +**DeviceId** | **String** | Device Id | [optional] +**DeviceName** | **String** | Device Name | [optional] + + diff --git a/docs/ClientsApi.md b/docs/ClientsApi.md new file mode 100644 index 00000000..8b255d34 --- /dev/null +++ b/docs/ClientsApi.md @@ -0,0 +1,156 @@ +# Flipdish.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 + +> getClient(clientId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ClientsApi(); +let clientId = 56; // Number | +apiInstance.getClient(clientId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## setSalesForceContactId + +> setSalesForceContactId(clientId, salesForceContactId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ClientsApi(); +let clientId = 56; // Number | +let salesForceContactId = "salesForceContactId_example"; // String | +apiInstance.setSalesForceContactId(clientId, salesForceContactId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientId** | **Number**| | + **salesForceContactId** | **String**| | + +### Return type + +null (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 + + +## setStripeCustomerId + +> setStripeCustomerId(clientId, stripeCustomerId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ClientsApi(); +let clientId = 56; // Number | +let stripeCustomerId = "stripeCustomerId_example"; // String | +apiInstance.setStripeCustomerId(clientId, stripeCustomerId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientId** | **Number**| | + **stripeCustomerId** | **String**| | + +### Return type + +null (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 + diff --git a/docs/ConfiguredStore.md b/docs/ConfiguredStore.md new file mode 100644 index 00000000..849c10c7 --- /dev/null +++ b/docs/ConfiguredStore.md @@ -0,0 +1,10 @@ +# Flipdish.ConfiguredStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | | [optional] +**Name** | **String** | | [optional] + + diff --git a/docs/ContentSecurityPolicyApi.md b/docs/ContentSecurityPolicyApi.md new file mode 100644 index 00000000..ddaed940 --- /dev/null +++ b/docs/ContentSecurityPolicyApi.md @@ -0,0 +1,56 @@ +# Flipdish.ContentSecurityPolicyApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**contentSecurityPolicyReport**](ContentSecurityPolicyApi.md#contentSecurityPolicyReport) | **POST** /api/v1.0/csp/report | + + + +## contentSecurityPolicyReport + +> Object contentSecurityPolicyReport(request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ContentSecurityPolicyApi(); +let request = new Flipdish.CspReportRequest(); // CspReportRequest | +apiInstance.contentSecurityPolicyReport(request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**CspReportRequest**](CspReportRequest.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/Coordinates.md b/docs/Coordinates.md new file mode 100644 index 00000000..cb5af042 --- /dev/null +++ b/docs/Coordinates.md @@ -0,0 +1,10 @@ +# Flipdish.Coordinates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **Number** | Latitude | [optional] +**Longitude** | **Number** | Longitude | [optional] + + diff --git a/docs/CountryFormResponse.md b/docs/CountryFormResponse.md new file mode 100644 index 00000000..d8c6b6ec --- /dev/null +++ b/docs/CountryFormResponse.md @@ -0,0 +1,10 @@ +# Flipdish.CountryFormResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | **String** | ISO two letter code. | [optional] +**Label** | **String** | Label | [optional] + + diff --git a/docs/CountryWithAccountFieldsDefinitions.md b/docs/CountryWithAccountFieldsDefinitions.md new file mode 100644 index 00000000..7051931e --- /dev/null +++ b/docs/CountryWithAccountFieldsDefinitions.md @@ -0,0 +1,12 @@ +# Flipdish.CountryWithAccountFieldsDefinitions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CountryCode** | **String** | Country 2-letter ISO code | [optional] +**DisplayName** | **String** | Display name of the country | [optional] +**SupportType** | **String** | Country support type (supported-by-stripe-cc, supported-by-flipdish,not-supported) | [optional] +**FieldDefinitions** | [**[AccountFieldDefinition]**](AccountFieldDefinition.md) | Bank Account field definitions | [optional] + + diff --git a/docs/CreateAccountModel.md b/docs/CreateAccountModel.md new file mode 100644 index 00000000..535968ea --- /dev/null +++ b/docs/CreateAccountModel.md @@ -0,0 +1,14 @@ +# Flipdish.CreateAccountModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | +**StoreName** | **String** | Store name | +**LanguageId** | **String** | LanguageId | [optional] +**Rid** | **Number** | Referral ID | [optional] +**Cid** | **String** | Campaign ID | [optional] +**RecaptchaToken** | **String** | Google Recaptcha Token | [optional] + + diff --git a/docs/CreateAppParameters.md b/docs/CreateAppParameters.md new file mode 100644 index 00000000..d803695e --- /dev/null +++ b/docs/CreateAppParameters.md @@ -0,0 +1,9 @@ +# Flipdish.CreateAppParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | The name of the brand that this app/white-label represents. | [optional] + + diff --git a/docs/CreateAppStoreApp.md b/docs/CreateAppStoreApp.md new file mode 100644 index 00000000..97769506 --- /dev/null +++ b/docs/CreateAppStoreApp.md @@ -0,0 +1,148 @@ +# Flipdish.CreateAppStoreApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | **String** | | +**ConfigurationType** | **String** | | +**StoreSelectorType** | **String** | | +**FieldGroups** | [**[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** | **Boolean** | | [optional] +**Name** | **String** | | +**Description** | **String** | | +**IsEnabled** | **Boolean** | | [optional] +**Categories** | **[String]** | | +**Countries** | **[String]** | | +**DeveloperName** | **String** | | [optional] + + + +## Enum: ConfigurationTypeEnum + + +* `ExternalLink` (value: `"ExternalLink"`) + +* `FlipdishHosted` (value: `"FlipdishHosted"`) + + + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + + +## Enum: TeammateAppAccessLevelEnum + + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + + +## Enum: PermissionsTypeEnum + + +* `Teammate` (value: `"Teammate"`) + + + + + +## Enum: [CategoriesEnum] + + +* `PointOfSale` (value: `"PointOfSale"`) + +* `DeliveryAndLogistics` (value: `"DeliveryAndLogistics"`) + +* `CRM` (value: `"CRM"`) + +* `GiftCard` (value: `"GiftCard"`) + +* `Accounting` (value: `"Accounting"`) + +* `LoyaltyAndMarketing` (value: `"LoyaltyAndMarketing"`) + +* `Other` (value: `"Other"`) + + + + + +## Enum: [CountriesEnum] + + +* `GB` (value: `"GB"`) + +* `IE` (value: `"IE"`) + +* `FR` (value: `"FR"`) + +* `ES` (value: `"ES"`) + +* `PT` (value: `"PT"`) + +* `IT` (value: `"IT"`) + +* `DE` (value: `"DE"`) + +* `PL` (value: `"PL"`) + +* `BE` (value: `"BE"`) + +* `LU` (value: `"LU"`) + +* `NL` (value: `"NL"`) + +* `US` (value: `"US"`) + +* `CA` (value: `"CA"`) + +* `BG` (value: `"BG"`) + +* `MX` (value: `"MX"`) + +* `AU` (value: `"AU"`) + +* `NZ` (value: `"NZ"`) + + + + diff --git a/docs/CreateBasicAccountModel.md b/docs/CreateBasicAccountModel.md new file mode 100644 index 00000000..90e5abd7 --- /dev/null +++ b/docs/CreateBasicAccountModel.md @@ -0,0 +1,10 @@ +# Flipdish.CreateBasicAccountModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreName** | **String** | Store name | +**LanguageId** | **String** | LanguageId | [optional] + + diff --git a/docs/CreateCatalogGroupReference.md b/docs/CreateCatalogGroupReference.md new file mode 100644 index 00000000..185efa0c --- /dev/null +++ b/docs/CreateCatalogGroupReference.md @@ -0,0 +1,20 @@ +# Flipdish.CreateCatalogGroupReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogGroupId** | **String** | Identifier of the ProductId to use as SubProduct | +**CatalogItemId** | **String** | Identifier of the ProductId to use as SubProduct | [optional] +**GroupType** | **String** | Type of the SupProduct | + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/CreateCatalogItem.md b/docs/CreateCatalogItem.md new file mode 100644 index 00000000..41b4b0c0 --- /dev/null +++ b/docs/CreateCatalogItem.md @@ -0,0 +1,28 @@ +# Flipdish.CreateCatalogItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Groups** | [**[CreateCatalogGroupReference]**](CreateCatalogGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] +**ItemType** | **String** | Type of item (Product, Modifier, etc) | +**Sku** | **String** | Stock Keeping Unit (SKU) | +**Name** | **String** | Item name | +**Description** | **String** | Item description | [optional] +**Price** | **Number** | Item price | +**ImageFileName** | **String** | Image File Name | [optional] +**Alcohol** | **Boolean** | item contains alcohol | [optional] + + + +## Enum: ItemTypeEnum + + +* `Product` (value: `"Product"`) + +* `Modifier` (value: `"Modifier"`) + + + + diff --git a/docs/CreateFulfillmentStatesConfiguration.md b/docs/CreateFulfillmentStatesConfiguration.md new file mode 100644 index 00000000..0b29950d --- /dev/null +++ b/docs/CreateFulfillmentStatesConfiguration.md @@ -0,0 +1,26 @@ +# Flipdish.CreateFulfillmentStatesConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreIds** | **[Number]** | Stores id's | [optional] +**StoreSelectorType** | **String** | Store Selector Type | [optional] +**States** | [**[FulfillmentStatusConfigurationItem]**](FulfillmentStatusConfigurationItem.md) | Settings | [optional] +**AutomaticTransitionsEnabled** | **Boolean** | Enable automatic transitions | [optional] +**Name** | **String** | Name | [optional] + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + diff --git a/docs/CreateFullMenu.md b/docs/CreateFullMenu.md new file mode 100644 index 00000000..afe0a658 --- /dev/null +++ b/docs/CreateFullMenu.md @@ -0,0 +1,38 @@ +# Flipdish.CreateFullMenu + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name of Menu, only shown in portal | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuSections** | [**[CreateFullMenuSection]**](CreateFullMenuSection.md) | Menu sections (starters, main etc) | [optional] +**TaxRates** | [**[CreateMenuTaxRate]**](CreateMenuTaxRate.md) | Menu tax rates | [optional] +**DisplaySectionLinks** | **Boolean** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **String** | Menu section behaviour | [optional] +**TaxType** | **String** | Tax type | [optional] +**IsIntegrated** | **Boolean** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + + + +## Enum: MenuSectionBehaviourEnum + + +* `ExpandSingle` (value: `"ExpandSingle"`) + +* `ExpandMultiple` (value: `"ExpandMultiple"`) + + + + + +## Enum: TaxTypeEnum + + +* `IncludedInBasePrice` (value: `"IncludedInBasePrice"`) + +* `ExcludedFromBasePrice` (value: `"ExcludedFromBasePrice"`) + + + + diff --git a/docs/CreateFullMenuItemOptionSet.md b/docs/CreateFullMenuItemOptionSet.md new file mode 100644 index 00000000..05d19a17 --- /dev/null +++ b/docs/CreateFullMenuItemOptionSet.md @@ -0,0 +1,32 @@ +# Flipdish.CreateFullMenuItemOptionSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetId** | **Number** | Menu item option set identifier | [optional] +**MenuItemOptionSetItems** | [**[CreateFullMenuItemOptionSetItem]**](CreateFullMenuItemOptionSetItem.md) | Option set items | [optional] +**Name** | **String** | Menu item option set name | [optional] +**IsMasterOptionSet** | **Boolean** | Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). | [optional] +**DisplayOrder** | **Number** | Display order. Displayed in ascending order. | [optional] +**MinSelectCount** | **Number** | Minimum items must be selected | [optional] +**MaxSelectCount** | **Number** | Maximum number of items can be selected | [optional] +**CellLayoutType** | **String** | Small | Medium | Large Affects the layout of the menu. | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/CreateFullMenuItemOptionSetItem.md b/docs/CreateFullMenuItemOptionSetItem.md new file mode 100644 index 00000000..1582bc92 --- /dev/null +++ b/docs/CreateFullMenuItemOptionSetItem.md @@ -0,0 +1,35 @@ +# Flipdish.CreateFullMenuItemOptionSetItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetItemId** | **Number** | Menu item option set item identifier | [optional] +**Metadata** | [**[CreateMetadata]**](CreateMetadata.md) | List of metadata | [optional] +**TaxRateName** | **String** | Tax rate name | [optional] +**NextMenuItemOptionSetId** | **Number** | if null, next option set is next. if -1, this is the final option set | [optional] +**Name** | **String** | Name | [optional] +**Price** | **Number** | Price | [optional] +**DepositReturnFee** | **Number** | An optional fee that can be added to the price of the item. | [optional] +**IsAvailable** | **Boolean** | Is available | [optional] +**DisplayOrder** | **Number** | 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** | **String** | Permanent reference to the item. | [optional] + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/CreateFullMenuSection.md b/docs/CreateFullMenuSection.md new file mode 100644 index 00000000..23665387 --- /dev/null +++ b/docs/CreateFullMenuSection.md @@ -0,0 +1,18 @@ +# Flipdish.CreateFullMenuSection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionAvailability** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | | [optional] +**MenuItems** | [**[CreateFullMenuSectionItem]**](CreateFullMenuSectionItem.md) | Menu items | [optional] +**Name** | **String** | Name | [optional] +**Description** | **String** | Description | [optional] +**DisplayOrder** | **Number** | Display order | [optional] +**IsAvailable** | **Boolean** | Is available | [optional] +**IsHiddenFromCustomers** | **Boolean** | Is hidden from customer. Perhaps when the item is out of stock. | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuSectionId** | **Number** | Menu Section Id | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] + + diff --git a/docs/CreateFullMenuSectionItem.md b/docs/CreateFullMenuSectionItem.md new file mode 100644 index 00000000..e9e7d2c2 --- /dev/null +++ b/docs/CreateFullMenuSectionItem.md @@ -0,0 +1,56 @@ +# Flipdish.CreateFullMenuSectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSets** | [**[CreateFullMenuItemOptionSet]**](CreateFullMenuItemOptionSet.md) | Menu item option sets | [optional] +**Metadata** | [**[CreateMetadata]**](CreateMetadata.md) | List of metadata | [optional] +**TaxRateName** | **String** | Tax rate name | [optional] +**Name** | **String** | Menu item name (like \"Korma\") | [optional] +**Description** | **String** | Description (like \"A lovely dish from the east\") | [optional] +**SpicinessRating** | **String** | Spiciness rating | [optional] +**Price** | **Number** | 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** | **Number** | An optional fee that can be added to the price of the item. | [optional] +**DisplayOrder** | **Number** | Display order | [optional] +**Alcohol** | **Boolean** | To be set true if the item or an option of the item contains an alcoholic drink. | [optional] +**IsAvailable** | **Boolean** | True if we accept orders for this item still | [optional] +**CellLayoutType** | **String** | Small | Medium | Large Affects the layout of the menu. | [optional] +**DisableVouchers** | **Boolean** | If true, then vouchers won't be applied for this item | [optional] +**ImageName** | **String** | Image url | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuItemId** | **Number** | Menu Item Id | [optional] +**ExcludeFromVoucherDiscounting** | **Boolean** | If true, the item is excluded from voucher discount calculations | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] + + + +## Enum: SpicinessRatingEnum + + +* `NotRated` (value: `"NotRated"`) + +* `Mild` (value: `"Mild"`) + +* `Medium` (value: `"Medium"`) + +* `Hot` (value: `"Hot"`) + + + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/CreateGroup.md b/docs/CreateGroup.md new file mode 100644 index 00000000..0583076e --- /dev/null +++ b/docs/CreateGroup.md @@ -0,0 +1,26 @@ +# Flipdish.CreateGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MinSelectCount** | **Number** | Minimum number of items that the user has to select | [optional] +**MaxSelectCount** | **Number** | Maximum number of items that the user has to select | [optional] +**Products** | [**[CreateProductReference]**](CreateProductReference.md) | Collection of items associated with this group | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] +**GroupType** | **String** | Type of group (ModifierGroup, etc) | +**Sku** | **String** | Stock Keeping Unit (SKU) | +**Name** | **String** | Group name | +**AutogenerateDisplayText** | **Boolean** | Autogenerate display text in ordering applications | [optional] +**ImageFileName** | **String** | Image File Name | [optional] + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/CreateGroupReference.md b/docs/CreateGroupReference.md new file mode 100644 index 00000000..f24328d2 --- /dev/null +++ b/docs/CreateGroupReference.md @@ -0,0 +1,19 @@ +# Flipdish.CreateGroupReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Identifier of the ProductId to use as SubProduct | +**GroupType** | **String** | Type of the SupProduct | + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/CreateLocation.md b/docs/CreateLocation.md new file mode 100644 index 00000000..65a5003f --- /dev/null +++ b/docs/CreateLocation.md @@ -0,0 +1,12 @@ +# Flipdish.CreateLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **Number** | Location Id | [optional] +**LocationName** | **String** | Descriptive LocationArea name | [optional] +**DisplayOrder** | **Number** | The order that the Location should be displayed on the screen | [optional] +**ExternalLocationId** | **String** | Id of the Location on an external system | [optional] + + diff --git a/docs/CreateLocationArea.md b/docs/CreateLocationArea.md new file mode 100644 index 00000000..8ce6a391 --- /dev/null +++ b/docs/CreateLocationArea.md @@ -0,0 +1,9 @@ +# Flipdish.CreateLocationArea + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaName** | **String** | Descriptive LocationArea name | + + diff --git a/docs/CreateMenuSectionItemFromCatalogItems.md b/docs/CreateMenuSectionItemFromCatalogItems.md new file mode 100644 index 00000000..2ab74855 --- /dev/null +++ b/docs/CreateMenuSectionItemFromCatalogItems.md @@ -0,0 +1,9 @@ +# Flipdish.CreateMenuSectionItemFromCatalogItems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuCatalogItems** | [**[MenuCatalogItem]**](MenuCatalogItem.md) | List of CatalogItems to add to the section | + + diff --git a/docs/CreateMenuTaxRate.md b/docs/CreateMenuTaxRate.md new file mode 100644 index 00000000..0b706053 --- /dev/null +++ b/docs/CreateMenuTaxRate.md @@ -0,0 +1,10 @@ +# Flipdish.CreateMenuTaxRate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name of Tax Rate | [optional] +**Rate** | **Number** | In Percentage | [optional] + + diff --git a/docs/CreateMetadata.md b/docs/CreateMetadata.md new file mode 100644 index 00000000..a2192eb9 --- /dev/null +++ b/docs/CreateMetadata.md @@ -0,0 +1,11 @@ +# Flipdish.CreateMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**Key** | **String** | Metadata key (Unique identifier) | [optional] +**Value** | **String** | Metadata value | [optional] + + diff --git a/docs/CreateMetafieldDefinition.md b/docs/CreateMetafieldDefinition.md new file mode 100644 index 00000000..0bb3316c --- /dev/null +++ b/docs/CreateMetafieldDefinition.md @@ -0,0 +1,55 @@ +# Flipdish.CreateMetafieldDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsReadOnly** | **Boolean** | Indicates if a definition can be edited or not | [optional] +**OwnerEntity** | **String** | The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} | [optional] +**Key** | **String** | Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore | +**ValueType** | **String** | The excepted type for the Value field | [optional] +**Name** | **String** | Field Name | +**Description** | **String** | Field Description | [optional] +**Behaviors** | **[String]** | Enable Metafield Behaviors | [optional] +**MetafieldDefinitionRecommendationId** | **Number** | Metafield Recommendation Id | [optional] + + + +## Enum: OwnerEntityEnum + + +* `CatalogItem` (value: `"CatalogItem"`) + +* `CatalogGroup` (value: `"CatalogGroup"`) + +* `Menu` (value: `"Menu"`) + + + + + +## Enum: ValueTypeEnum + + +* `Boolean` (value: `"Boolean"`) + +* `Json` (value: `"Json"`) + +* `SingleLineString` (value: `"SingleLineString"`) + +* `MultiLineString` (value: `"MultiLineString"`) + + + + + +## Enum: [BehaviorsEnum] + + +* `SendToOrder` (value: `"SendToOrder"`) + +* `SendToMenu` (value: `"SendToMenu"`) + + + + diff --git a/docs/CreatePayGreenConfigurationRequest.md b/docs/CreatePayGreenConfigurationRequest.md new file mode 100644 index 00000000..27ae7eaa --- /dev/null +++ b/docs/CreatePayGreenConfigurationRequest.md @@ -0,0 +1,12 @@ +# Flipdish.CreatePayGreenConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**PayGreenId** | **String** | | [optional] +**PayGreenPrivateKey** | **String** | | [optional] +**AssignedStores** | **[Number]** | | [optional] + + diff --git a/docs/CreateProduct.md b/docs/CreateProduct.md new file mode 100644 index 00000000..fd6d0932 --- /dev/null +++ b/docs/CreateProduct.md @@ -0,0 +1,28 @@ +# Flipdish.CreateProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Groups** | [**[CreateGroupReference]**](CreateGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] +**ProductType** | **String** | Type of item (Product, Modifier, etc) | +**Sku** | **String** | Stock Keeping Unit (SKU) | +**Name** | **String** | Product name | +**Description** | **String** | Product description | [optional] +**Price** | **Number** | Product price | +**ImageFileName** | **String** | Image File Name | [optional] +**Alcohol** | **Boolean** | Product contains alcohol | [optional] + + + +## Enum: ProductTypeEnum + + +* `Product` (value: `"Product"`) + +* `Modifier` (value: `"Modifier"`) + + + + diff --git a/docs/CreateProductReference.md b/docs/CreateProductReference.md new file mode 100644 index 00000000..6d6074d5 --- /dev/null +++ b/docs/CreateProductReference.md @@ -0,0 +1,22 @@ +# Flipdish.CreateProductReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Identifier of the CatalogItemId to use as SubProduct | +**ProductType** | **String** | Type of the SupProduct | +**PreselectedQuantity** | **Number** | Quantity of the modifier that will be set when the parent product is placed in the basket | [optional] + + + +## Enum: ProductTypeEnum + + +* `Product` (value: `"Product"`) + +* `Modifier` (value: `"Modifier"`) + + + + diff --git a/docs/CreatePromotion.md b/docs/CreatePromotion.md new file mode 100644 index 00000000..5bea33a8 --- /dev/null +++ b/docs/CreatePromotion.md @@ -0,0 +1,10 @@ +# Flipdish.CreatePromotion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Promotion Name | [optional] +**MenuItemPublicIds** | **[String]** | Promotion Menu Item Awards | [optional] + + diff --git a/docs/CreateTeammate.md b/docs/CreateTeammate.md new file mode 100644 index 00000000..faebaa94 --- /dev/null +++ b/docs/CreateTeammate.md @@ -0,0 +1,46 @@ +# Flipdish.CreateTeammate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | [optional] +**AppAccessLevel** | **String** | App access level | [optional] +**HasAccessToAllStores** | **Boolean** | The user has access to all stores for the app (including new stores that added later) | [optional] +**StoreIds** | **[Number]** | Store IDs the user has access to (if HasAccessToAllStores is false) | [optional] +**PropertyIds** | **[String]** | Property Ids the user has access to (if HasAccessToAllStores is false) | [optional] + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + +* `Onboarding` (value: `"Onboarding"`) + +* `Support` (value: `"Support"`) + + + + diff --git a/docs/CreateVoucher.md b/docs/CreateVoucher.md new file mode 100644 index 00000000..47e43a4c --- /dev/null +++ b/docs/CreateVoucher.md @@ -0,0 +1,94 @@ +# Flipdish.CreateVoucher + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherType** | **String** | Voucher Type | [optional] +**Promotion** | [**CreatePromotion**](CreatePromotion.md) | | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | | [optional] +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**Stores** | **[Number]** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **Number** | Valid on orders on or above | [optional] +**TakesPriority** | **Boolean** | Takes priority | [optional] +**IsEnabled** | **Boolean** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **Boolean** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **Boolean** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **Boolean** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **Boolean** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **Boolean** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **Boolean** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **Boolean** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **Boolean** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **Boolean** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **Boolean** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**ForceDiscount** | **Boolean** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **[String]** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**[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** | **Number** | Customer UserID | [optional] +**MaxRedemptions** | **Number** | Maximum number of times the voucher can be redeemed (used) | [optional] + + + +## Enum: VoucherTypeEnum + + +* `PercentageDiscount` (value: `"PercentageDiscount"`) + +* `LumpDiscount` (value: `"LumpDiscount"`) + +* `AddItem` (value: `"AddItem"`) + +* `CreditNote` (value: `"CreditNote"`) + +* `FreeDelivery` (value: `"FreeDelivery"`) + + + + + +## Enum: [ChannelRestrictionsEnum] + + +* `Ios` (value: `"Ios"`) + +* `Android` (value: `"Android"`) + +* `Web` (value: `"Web"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `Google` (value: `"Google"`) + + + + + +## Enum: VoucherSubTypeEnum + + +* `None` (value: `"None"`) + +* `SignUp` (value: `"SignUp"`) + +* `Loyalty` (value: `"Loyalty"`) + +* `Loyalty25` (value: `"Loyalty25"`) + +* `Retention` (value: `"Retention"`) + +* `SecondaryRetention` (value: `"SecondaryRetention"`) + +* `Custom` (value: `"Custom"`) + + + + diff --git a/docs/CreatedMenuSectionItems.md b/docs/CreatedMenuSectionItems.md new file mode 100644 index 00000000..caafe9ce --- /dev/null +++ b/docs/CreatedMenuSectionItems.md @@ -0,0 +1,9 @@ +# Flipdish.CreatedMenuSectionItems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionItems** | [**[MenuSectionItem]**](MenuSectionItem.md) | Created Menu Section Items | [optional] + + diff --git a/docs/CreditNoteDetails.md b/docs/CreditNoteDetails.md new file mode 100644 index 00000000..40bc8d7c --- /dev/null +++ b/docs/CreditNoteDetails.md @@ -0,0 +1,9 @@ +# Flipdish.CreditNoteDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RemainingCredit** | **Number** | Remaining credit | [optional] + + diff --git a/docs/CrossSellApi.md b/docs/CrossSellApi.md new file mode 100644 index 00000000..4f0ba663 --- /dev/null +++ b/docs/CrossSellApi.md @@ -0,0 +1,64 @@ +# Flipdish.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(menuId, menuItemId, limit, totalValue, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CrossSellApi(); +let menuId = 56; // Number | +let menuItemId = [null]; // [Number] | +let limit = 56; // Number | +let totalValue = 3.4; // Number | +let appId = "appId_example"; // String | +apiInstance.getCrossSellMenuItems(menuId, menuItemId, limit, totalValue, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| | + **menuItemId** | [**[Number]**](Number.md)| | + **limit** | **Number**| | + **totalValue** | **Number**| | + **appId** | **String**| | + +### 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, Data + diff --git a/docs/CrossSellMenuItems.md b/docs/CrossSellMenuItems.md new file mode 100644 index 00000000..b3e155d6 --- /dev/null +++ b/docs/CrossSellMenuItems.md @@ -0,0 +1,9 @@ +# Flipdish.CrossSellMenuItems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemIds** | **[Number]** | Menu Item Id's | [optional] + + diff --git a/docs/CspReport.md b/docs/CspReport.md new file mode 100644 index 00000000..b4e1fd5d --- /dev/null +++ b/docs/CspReport.md @@ -0,0 +1,15 @@ +# Flipdish.CspReport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Document_uri** | **String** | | [optional] +**Referrer** | **String** | | [optional] +**Violated_directive** | **String** | | [optional] +**Effective_directive** | **String** | | [optional] +**Original_policy** | **String** | | [optional] +**Blocked_uri** | **String** | | [optional] +**Status_code** | **Number** | | [optional] + + diff --git a/docs/CspReportRequest.md b/docs/CspReportRequest.md new file mode 100644 index 00000000..52ed473d --- /dev/null +++ b/docs/CspReportRequest.md @@ -0,0 +1,9 @@ +# Flipdish.CspReportRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Csp_report** | [**CspReport**](CspReport.md) | | [optional] + + diff --git a/docs/CurrencyData.md b/docs/CurrencyData.md new file mode 100644 index 00000000..fccd1148 --- /dev/null +++ b/docs/CurrencyData.md @@ -0,0 +1,243 @@ +# Flipdish.CurrencyData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **String** | Currency | [optional] +**Value** | **Number** | Value | [optional] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/Customer.md b/docs/Customer.md new file mode 100644 index 00000000..0d01510c --- /dev/null +++ b/docs/Customer.md @@ -0,0 +1,15 @@ +# Flipdish.Customer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerId** | **Number** | Id of the customer | [optional] +**Name** | **String** | Customer name | [optional] +**RegistrationDate** | **Date** | Customer registration date | [optional] +**PhoneNumber** | **String** | Phone Number in international format | [optional] +**CashOrdersEnabled** | **Boolean** | Customer can place cash orders | [optional] +**CardOrdersEnabled** | **Boolean** | Customer can place card orders | [optional] +**MarketingEnabled** | **Boolean** | Customer can receive marketing | [optional] + + diff --git a/docs/CustomerConsentUpdatedEvent.md b/docs/CustomerConsentUpdatedEvent.md new file mode 100644 index 00000000..7ecf94fd --- /dev/null +++ b/docs/CustomerConsentUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.CustomerConsentUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**Enabled** | **Boolean** | Enabled | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CustomerCreateModel.md b/docs/CustomerCreateModel.md new file mode 100644 index 00000000..c88d89e3 --- /dev/null +++ b/docs/CustomerCreateModel.md @@ -0,0 +1,40 @@ +# Flipdish.CustomerCreateModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **String** | Customer Phone Number | [optional] +**AppType** | **String** | Customer AppType | [optional] +**Name** | **String** | Customer Name | [optional] + + + +## Enum: AppTypeEnum + + +* `Unknown` (value: `"Unknown"`) + +* `Ios` (value: `"Ios"`) + +* `Android` (value: `"Android"`) + +* `Web` (value: `"Web"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `TelephoneCall` (value: `"TelephoneCall"`) + +* `Sms` (value: `"Sms"`) + +* `PwaAndroid` (value: `"PwaAndroid"`) + +* `PwaIos` (value: `"PwaIos"`) + +* `Google` (value: `"Google"`) + + + + diff --git a/docs/CustomerCreatedEvent.md b/docs/CustomerCreatedEvent.md new file mode 100644 index 00000000..13bfa029 --- /dev/null +++ b/docs/CustomerCreatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.CustomerCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/CustomerDeliveryTrackingOrder.md b/docs/CustomerDeliveryTrackingOrder.md new file mode 100644 index 00000000..738a0356 --- /dev/null +++ b/docs/CustomerDeliveryTrackingOrder.md @@ -0,0 +1,260 @@ +# Flipdish.CustomerDeliveryTrackingOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | Order Id | [optional] +**Address** | **String** | Pretified address string in country format | [optional] +**DeliveryNotes** | **String** | Delivery Notes | [optional] +**StorePhoneNumber** | **String** | Phone number of the store | [optional] +**AppIconUrl** | **String** | App Icon of the store | [optional] +**OrderTrackingCode** | **String** | Order Tracking Code | [optional] +**PaymentMethodDescription** | **String** | Payment method description i.e Cash/Card/iDeal/Paypal | [optional] +**LastFourDigits** | **String** | Last 4 digits of the card if applicable otherwise null | [optional] +**OrderLines** | [**[CustomerDeliveryTrackingOrderLine]**](CustomerDeliveryTrackingOrderLine.md) | Order lines of the order | [optional] +**TotalAmount** | **Number** | Total amount for the order including tax | [optional] +**Currency** | **String** | Currency | [optional] +**Latitude** | **Number** | Customer Location Latitude | [optional] +**Longitude** | **Number** | Customer Location Longitude | [optional] +**Placed** | **Date** | Order placed time | [optional] +**RequestedFor** | **Date** | Order requested for | [optional] +**DriverId** | **Number** | Driver Id | [optional] +**DriverName** | **String** | Driver Name | [optional] +**DriverImage** | **String** | Driver Image | [optional] +**EstimatedMinutesForDelivery** | **Number** | | [optional] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/CustomerDeliveryTrackingOrderLine.md b/docs/CustomerDeliveryTrackingOrderLine.md new file mode 100644 index 00000000..ec3d7faa --- /dev/null +++ b/docs/CustomerDeliveryTrackingOrderLine.md @@ -0,0 +1,10 @@ +# Flipdish.CustomerDeliveryTrackingOrderLine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ItemName** | **String** | Item name from the order | [optional] +**SelectedOptions** | **[String]** | Selected option names | [optional] + + diff --git a/docs/CustomerMessages.md b/docs/CustomerMessages.md new file mode 100644 index 00000000..919ded97 --- /dev/null +++ b/docs/CustomerMessages.md @@ -0,0 +1,10 @@ +# Flipdish.CustomerMessages + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryMenuMessage** | **String** | Delivery menu message | [optional] +**PickupMenuMessage** | **String** | Pickup menu message | [optional] + + diff --git a/docs/CustomerSummary.md b/docs/CustomerSummary.md new file mode 100644 index 00000000..d2451093 --- /dev/null +++ b/docs/CustomerSummary.md @@ -0,0 +1,14 @@ +# Flipdish.CustomerSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Customer identifier | [optional] +**Name** | **String** | Customer name | [optional] +**EmailAddress** | **String** | Customer email address | [optional] +**PhoneNumberLocalFormat** | **String** | Customer local phone number | [optional] +**PhoneNumber** | **String** | Customer phone number | [optional] +**LanguagePreference** | **String** | Preferred language of the consumer | [optional] + + diff --git a/docs/CustomerUpdateModel.md b/docs/CustomerUpdateModel.md new file mode 100644 index 00000000..4eb2994a --- /dev/null +++ b/docs/CustomerUpdateModel.md @@ -0,0 +1,11 @@ +# Flipdish.CustomerUpdateModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CashOrdersEnabled** | **Boolean** | Customer can place cash orders | [optional] +**CardOrdersEnabled** | **Boolean** | Customer can place card orders | [optional] +**MarketingEnabled** | **Boolean** | Customer can receive marketing | [optional] + + diff --git a/docs/CustomerUpdatedEvent.md b/docs/CustomerUpdatedEvent.md new file mode 100644 index 00000000..b7e47db3 --- /dev/null +++ b/docs/CustomerUpdatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.CustomerUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/Customers.md b/docs/Customers.md new file mode 100644 index 00000000..018b8e3c --- /dev/null +++ b/docs/Customers.md @@ -0,0 +1,9 @@ +# Flipdish.Customers + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[Customer]**](Customer.md) | List of customers | [optional] + + diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md new file mode 100644 index 00000000..cff2a6e9 --- /dev/null +++ b/docs/CustomersApi.md @@ -0,0 +1,210 @@ +# Flipdish.CustomersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createCustomer**](CustomersApi.md#createCustomer) | **POST** /api/v1.0/{appId}/customers | +[**getCustomerById**](CustomersApi.md#getCustomerById) | **GET** /api/v1.0/{appId}/customers/{customerId} | +[**getCustomers**](CustomersApi.md#getCustomers) | **GET** /api/v1.0/{appId}/customers | +[**updateCustomerById**](CustomersApi.md#updateCustomerById) | **POST** /api/v1.0/{appId}/customers/{customerId} | + + + +## createCustomer + +> RestApiResultCustomer createCustomer(appId, customerCreateModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CustomersApi(); +let appId = "appId_example"; // String | +let customerCreateModel = new Flipdish.CustomerCreateModel(); // CustomerCreateModel | +apiInstance.createCustomer(appId, customerCreateModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## getCustomerById + +> RestApiResultCustomer getCustomerById(appId, customerId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CustomersApi(); +let appId = "appId_example"; // String | +let customerId = 56; // Number | +apiInstance.getCustomerById(appId, customerId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **customerId** | **Number**| | + +### Return type + +[**RestApiResultCustomer**](RestApiResultCustomer.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getCustomers + +> RestApiResultCustomers getCustomers(appId, phoneNumber) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CustomersApi(); +let appId = "appId_example"; // String | +let phoneNumber = "phoneNumber_example"; // String | +apiInstance.getCustomers(appId, phoneNumber, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## updateCustomerById + +> RestApiResultCustomer updateCustomerById(appId, customerId, updateCustomer) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.CustomersApi(); +let appId = "appId_example"; // String | +let customerId = 56; // Number | +let updateCustomer = new Flipdish.CustomerUpdateModel(); // CustomerUpdateModel | +apiInstance.updateCustomerById(appId, customerId, updateCustomer, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **customerId** | **Number**| | + **updateCustomer** | [**CustomerUpdateModel**](CustomerUpdateModel.md)| | + +### Return type + +[**RestApiResultCustomer**](RestApiResultCustomer.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/DashboardEmbed.md b/docs/DashboardEmbed.md new file mode 100644 index 00000000..e674c7c1 --- /dev/null +++ b/docs/DashboardEmbed.md @@ -0,0 +1,9 @@ +# Flipdish.DashboardEmbed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmbedUrl** | **String** | SSO URL generated by Flipdish to embed Looker dashboard | [optional] + + diff --git a/docs/DeliveryLocation.md b/docs/DeliveryLocation.md new file mode 100644 index 00000000..2666245e --- /dev/null +++ b/docs/DeliveryLocation.md @@ -0,0 +1,15 @@ +# Flipdish.DeliveryLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Coordinates** | [**Coordinates**](Coordinates.md) | | [optional] +**Building** | **String** | Building | [optional] +**Street** | **String** | Street | [optional] +**Town** | **String** | Town | [optional] +**PostCode** | **String** | Post code | [optional] +**DeliveryInstructions** | **String** | Delivery instructions | [optional] +**PrettyAddressString** | **String** | Formatted, pretty address string | [optional] + + diff --git a/docs/DeliveryZone.md b/docs/DeliveryZone.md new file mode 100644 index 00000000..ce5facea --- /dev/null +++ b/docs/DeliveryZone.md @@ -0,0 +1,14 @@ +# Flipdish.DeliveryZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Delivery Fee Area Id | [optional] +**FeeChargedToStore** | **Number** | Delivery Fee charged to store | [optional] +**DeliveryFee** | **Number** | Delivery fee (will not be set below 0) | [optional] +**MinimumDeliveryOrderAmount** | **Number** | Minimum delivery order amount (will not be set below 0) | [optional] +**WellKnownText** | **String** | Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) | [optional] +**IsEnabled** | **Boolean** | Is delivery zone enabled | [optional] + + diff --git a/docs/DeliveryZoneApi.md b/docs/DeliveryZoneApi.md new file mode 100644 index 00000000..36c6bd66 --- /dev/null +++ b/docs/DeliveryZoneApi.md @@ -0,0 +1,208 @@ +# Flipdish.DeliveryZoneApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addDeliveryZone**](DeliveryZoneApi.md#addDeliveryZone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones | +[**getDeliveryZones**](DeliveryZoneApi.md#getDeliveryZones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | +[**removeDeliveryZone**](DeliveryZoneApi.md#removeDeliveryZone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | +[**updateDeliveryZone**](DeliveryZoneApi.md#updateDeliveryZone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | + + + +## addDeliveryZone + +> RestApiResultDeliveryZone addDeliveryZone(storeId, deliveryZoneBase) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeliveryZoneApi(); +let storeId = 56; // Number | +let deliveryZoneBase = new Flipdish.DeliveryZoneBase(); // DeliveryZoneBase | +apiInstance.addDeliveryZone(storeId, deliveryZoneBase, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryZoneBase** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| | + +### Return type + +[**RestApiResultDeliveryZone**](RestApiResultDeliveryZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getDeliveryZones + +> RestApiArrayResultDeliveryZone getDeliveryZones(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeliveryZoneApi(); +let storeId = 56; // Number | +apiInstance.getDeliveryZones(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**RestApiArrayResultDeliveryZone**](RestApiArrayResultDeliveryZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## removeDeliveryZone + +> removeDeliveryZone(storeId, deliveryZoneId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeliveryZoneApi(); +let storeId = 56; // Number | +let deliveryZoneId = 56; // Number | +apiInstance.removeDeliveryZone(storeId, deliveryZoneId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryZoneId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateDeliveryZone + +> RestApiResultDeliveryZone updateDeliveryZone(storeId, deliveryZoneId, deliveryZone) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeliveryZoneApi(); +let storeId = 56; // Number | +let deliveryZoneId = 56; // Number | +let deliveryZone = new Flipdish.DeliveryZoneBase(); // DeliveryZoneBase | +apiInstance.updateDeliveryZone(storeId, deliveryZoneId, deliveryZone, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryZoneId** | **Number**| | + **deliveryZone** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| | + +### Return type + +[**RestApiResultDeliveryZone**](RestApiResultDeliveryZone.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/DeliveryZoneBase.md b/docs/DeliveryZoneBase.md new file mode 100644 index 00000000..3c86fda0 --- /dev/null +++ b/docs/DeliveryZoneBase.md @@ -0,0 +1,12 @@ +# Flipdish.DeliveryZoneBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryFee** | **Number** | Delivery fee (will not be set below 0) | [optional] +**MinimumDeliveryOrderAmount** | **Number** | Minimum delivery order amount (will not be set below 0) | [optional] +**WellKnownText** | **String** | Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) | [optional] +**IsEnabled** | **Boolean** | Is delivery zone enabled | [optional] + + diff --git a/docs/DeliveryZoneCreatedEvent.md b/docs/DeliveryZoneCreatedEvent.md new file mode 100644 index 00000000..f544af35 --- /dev/null +++ b/docs/DeliveryZoneCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.DeliveryZoneCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/DeliveryZoneDeletedEvent.md b/docs/DeliveryZoneDeletedEvent.md new file mode 100644 index 00000000..a15afa06 --- /dev/null +++ b/docs/DeliveryZoneDeletedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.DeliveryZoneDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/DeliveryZoneUpdatedEvent.md b/docs/DeliveryZoneUpdatedEvent.md new file mode 100644 index 00000000..23f52fe8 --- /dev/null +++ b/docs/DeliveryZoneUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.DeliveryZoneUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**DeliveryZone** | [**DeliveryZone**](DeliveryZone.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/DepositReturnFeesSummary.md b/docs/DepositReturnFeesSummary.md new file mode 100644 index 00000000..96cb635a --- /dev/null +++ b/docs/DepositReturnFeesSummary.md @@ -0,0 +1,11 @@ +# Flipdish.DepositReturnFeesSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **Number** | | [optional] +**Fee** | **Number** | | [optional] +**Total** | **Number** | | [optional] + + diff --git a/docs/DeviceApi.md b/docs/DeviceApi.md new file mode 100644 index 00000000..adec41b0 --- /dev/null +++ b/docs/DeviceApi.md @@ -0,0 +1,214 @@ +# Flipdish.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(appId, assignDeviceRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeviceApi(); +let appId = "appId_example"; // String | +let assignDeviceRequest = new Flipdish.ClientDeviceAssignEnrolledDevice(); // ClientDeviceAssignEnrolledDevice | +apiInstance.assignDevice(appId, assignDeviceRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## enrollDevice + +> RestApiResultClientDeviceEnrollmentResult enrollDevice(appId, deviceEnrollmentRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeviceApi(); +let appId = "appId_example"; // String | +let deviceEnrollmentRequest = new Flipdish.ClientDeviceEnroll(); // ClientDeviceEnroll | +apiInstance.enrollDevice(appId, deviceEnrollmentRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## getDeviceDetails + +> RestApiResultClientDevice getDeviceDetails(appId, deviceModel, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeviceApi(); +let appId = "appId_example"; // String | +let deviceModel = "deviceModel_example"; // String | +let deviceId = "deviceId_example"; // String | +apiInstance.getDeviceDetails(appId, deviceModel, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## searchDevices + +> RestApiArrayResultClientDeviceSummary searchDevices(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DeviceApi(); +let appId = "appId_example"; // String | +let opts = { + 'storeId': 56, // Number | + 'deviceModel': "deviceModel_example" // String | +}; +apiInstance.searchDevices(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | [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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/DeviceSettings.md b/docs/DeviceSettings.md new file mode 100644 index 00000000..3e07142e --- /dev/null +++ b/docs/DeviceSettings.md @@ -0,0 +1,11 @@ +# Flipdish.DeviceSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Volume** | **Number** | Gets or sets the device volume | +**FontSize** | **Number** | Gets or sets the font size used on the device | +**Brightness** | **Number** | Gets or sets the display brightness on the device | + + diff --git a/docs/DnsRecordInformation.md b/docs/DnsRecordInformation.md new file mode 100644 index 00000000..0d29e601 --- /dev/null +++ b/docs/DnsRecordInformation.md @@ -0,0 +1,11 @@ +# Flipdish.DnsRecordInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCNameReady** | **Boolean** | indicates whether the CNAME record is ready or not. | [optional] +**IsAReady** | **Boolean** | indicates whether the A record is ready or not. | [optional] +**IsApiCNameReady** | **Boolean** | indicates whether the API CNAME record is ready or not. | [optional] + + diff --git a/docs/DnsVerifiedEvent.md b/docs/DnsVerifiedEvent.md new file mode 100644 index 00000000..9a36682a --- /dev/null +++ b/docs/DnsVerifiedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.DnsVerifiedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **String** | Description | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/DriverLoginModel.md b/docs/DriverLoginModel.md new file mode 100644 index 00000000..51cc3142 --- /dev/null +++ b/docs/DriverLoginModel.md @@ -0,0 +1,10 @@ +# Flipdish.DriverLoginModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **String** | Phone number | +**Code** | **String** | Code | + + diff --git a/docs/DriverRequestLoginPinModel.md b/docs/DriverRequestLoginPinModel.md new file mode 100644 index 00000000..5f0e3809 --- /dev/null +++ b/docs/DriverRequestLoginPinModel.md @@ -0,0 +1,9 @@ +# Flipdish.DriverRequestLoginPinModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **String** | Email address | + + diff --git a/docs/DriversApi.md b/docs/DriversApi.md new file mode 100644 index 00000000..2b73fd41 --- /dev/null +++ b/docs/DriversApi.md @@ -0,0 +1,524 @@ +# Flipdish.DriversApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**driversAddDriverNotificationToken**](DriversApi.md#driversAddDriverNotificationToken) | **POST** /api/v1.0/drivers/token | +[**driversDeleteDriverProfileImage**](DriversApi.md#driversDeleteDriverProfileImage) | **DELETE** /api/v1.0/drivers/profile/image | +[**driversDriverLogin**](DriversApi.md#driversDriverLogin) | **POST** /api/v1.0/drivers/login | +[**driversDriverRequestLoginCodeSms**](DriversApi.md#driversDriverRequestLoginCodeSms) | **POST** /api/v1.0/drivers/pin | +[**driversGetDriverProfile**](DriversApi.md#driversGetDriverProfile) | **GET** /api/v1.0/drivers/profile | +[**driversGetStoresForDriver**](DriversApi.md#driversGetStoresForDriver) | **GET** /api/v1.0/drivers/assignedstores | +[**driversRemoveDriverNotificationToken**](DriversApi.md#driversRemoveDriverNotificationToken) | **DELETE** /api/v1.0/drivers/token | +[**driversSetDriverPresenceForStore**](DriversApi.md#driversSetDriverPresenceForStore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | +[**driversSetDriverProfileImage**](DriversApi.md#driversSetDriverProfileImage) | **POST** /api/v1.0/drivers/profile/image | +[**driversUpdateDeliveryTrackingStatus**](DriversApi.md#driversUpdateDeliveryTrackingStatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | +[**driversUpdateDriverProfile**](DriversApi.md#driversUpdateDriverProfile) | **POST** /api/v1.0/drivers/profile | + + + +## driversAddDriverNotificationToken + +> Object driversAddDriverNotificationToken(updateDriverToken) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +let updateDriverToken = new Flipdish.UpdateDriverNotificationToken(); // UpdateDriverNotificationToken | +apiInstance.driversAddDriverNotificationToken(updateDriverToken, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateDriverToken** | [**UpdateDriverNotificationToken**](UpdateDriverNotificationToken.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversDeleteDriverProfileImage + +> Object driversDeleteDriverProfileImage() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +apiInstance.driversDeleteDriverProfileImage((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversDriverLogin + +> Object driversDriverLogin(driverLoginModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +let driverLoginModel = new Flipdish.DriverLoginModel(); // DriverLoginModel | +apiInstance.driversDriverLogin(driverLoginModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **driverLoginModel** | [**DriverLoginModel**](DriverLoginModel.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversDriverRequestLoginCodeSms + +> Object driversDriverRequestLoginCodeSms(driverRequestLoginPinModel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +let driverRequestLoginPinModel = new Flipdish.DriverRequestLoginPinModel(); // DriverRequestLoginPinModel | +apiInstance.driversDriverRequestLoginCodeSms(driverRequestLoginPinModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **driverRequestLoginPinModel** | [**DriverRequestLoginPinModel**](DriverRequestLoginPinModel.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversGetDriverProfile + +> Object driversGetDriverProfile() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +apiInstance.driversGetDriverProfile((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversGetStoresForDriver + +> Object driversGetStoresForDriver() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +apiInstance.driversGetStoresForDriver((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversRemoveDriverNotificationToken + +> Object driversRemoveDriverNotificationToken(removeDriverToken) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +let removeDriverToken = new Flipdish.UpdateDriverNotificationToken(); // UpdateDriverNotificationToken | +apiInstance.driversRemoveDriverNotificationToken(removeDriverToken, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **removeDriverToken** | [**UpdateDriverNotificationToken**](UpdateDriverNotificationToken.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversSetDriverPresenceForStore + +> Object driversSetDriverPresenceForStore(storeId, presence) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +let storeId = 56; // Number | +let presence = "presence_example"; // String | +apiInstance.driversSetDriverPresenceForStore(storeId, presence, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **presence** | **String**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversSetDriverProfileImage + +> Object driversSetDriverProfileImage() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +apiInstance.driversSetDriverProfileImage((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversUpdateDeliveryTrackingStatus + +> Object driversUpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +let orderId = 56; // Number | +let deliveryTrackingStatus = "deliveryTrackingStatus_example"; // String | +apiInstance.driversUpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + **deliveryTrackingStatus** | **String**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## driversUpdateDriverProfile + +> Object driversUpdateDriverProfile(updateDriverProfile) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.DriversApi(); +let updateDriverProfile = new Flipdish.UpdateDriverProfileModel(); // UpdateDriverProfileModel | +apiInstance.driversUpdateDriverProfile(updateDriverProfile, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateDriverProfile** | [**UpdateDriverProfileModel**](UpdateDriverProfileModel.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/DynamicFormField.md b/docs/DynamicFormField.md new file mode 100644 index 00000000..0aa8c4af --- /dev/null +++ b/docs/DynamicFormField.md @@ -0,0 +1,16 @@ +# Flipdish.DynamicFormField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **String** | | [optional] +**Label** | **String** | | [optional] +**Placeholder** | **String** | | [optional] +**Rules** | [**DynamicFormRules**](DynamicFormRules.md) | | [optional] +**Mapping** | **{String: String}** | | [optional] +**Modifiers** | **[String]** | | [optional] +**Value** | **Object** | | [optional] +**Scopes** | **String** | | [optional] + + diff --git a/docs/DynamicFormFieldOption.md b/docs/DynamicFormFieldOption.md new file mode 100644 index 00000000..227f50e5 --- /dev/null +++ b/docs/DynamicFormFieldOption.md @@ -0,0 +1,10 @@ +# Flipdish.DynamicFormFieldOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Display** | **String** | | [optional] +**Value** | **String** | | [optional] + + diff --git a/docs/DynamicFormRule.md b/docs/DynamicFormRule.md new file mode 100644 index 00000000..97dca676 --- /dev/null +++ b/docs/DynamicFormRule.md @@ -0,0 +1,11 @@ +# Flipdish.DynamicFormRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | **Object** | | [optional] +**Message** | **String** | | [optional] +**Scopes** | **String** | | [optional] + + diff --git a/docs/DynamicFormRules.md b/docs/DynamicFormRules.md new file mode 100644 index 00000000..ef5cf12f --- /dev/null +++ b/docs/DynamicFormRules.md @@ -0,0 +1,13 @@ +# Flipdish.DynamicFormRules + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxLength** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**MinLength** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**Required** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**Pattern** | [**DynamicFormRule**](DynamicFormRule.md) | | [optional] +**Predefined** | [**[DynamicFormFieldOption]**](DynamicFormFieldOption.md) | | [optional] + + diff --git a/docs/EmvNotificationEvent.md b/docs/EmvNotificationEvent.md new file mode 100644 index 00000000..cee08830 --- /dev/null +++ b/docs/EmvNotificationEvent.md @@ -0,0 +1,25 @@ +# Flipdish.EmvNotificationEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Notification** | **String** | Notification Sent | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**TerminalId** | **String** | TerminalId | [optional] +**Description** | **String** | Description | [optional] +**ExpDate** | **String** | Expirey Date | [optional] +**CardType** | **String** | Card Type | [optional] +**PaymentMethod** | **String** | Payment Method | [optional] +**AccountNumber** | **String** | Masked Account Number | [optional] +**AuthCode** | **String** | Auth Code | [optional] +**ProviderMessage** | **String** | Payment Provider Message | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/EmvTerminal.md b/docs/EmvTerminal.md new file mode 100644 index 00000000..f31ea867 --- /dev/null +++ b/docs/EmvTerminal.md @@ -0,0 +1,14 @@ +# Flipdish.EmvTerminal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmvTerminalId** | **Number** | Flipdish Identifier of Terminal | [optional] +**TerminalId** | **String** | External Identifier of Terminal | [optional] +**Url** | **String** | URL at which terminal can be accessed | [optional] +**Token** | **String** | TOKEN required to access terminal | [optional] +**SoftwareHouseId** | **String** | Identifies us to Provider | [optional] +**InstallerId** | **String** | Identifies installer of terminal | [optional] + + diff --git a/docs/EmvTerminalWithAssignments.md b/docs/EmvTerminalWithAssignments.md new file mode 100644 index 00000000..d5c45581 --- /dev/null +++ b/docs/EmvTerminalWithAssignments.md @@ -0,0 +1,14 @@ +# Flipdish.EmvTerminalWithAssignments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EmvTerminalId** | **String** | Flipdish Internal identifier of the Terminal | [optional] +**TerminalId** | **String** | External Identifier of the Terminal | [optional] +**IsAssignedToHydraDevice** | **Boolean** | true if the terminal is assigned to a hydra device (e.g. a kiosk) | [optional] +**HydraConfigId** | **Number** | hydra device id (null if the terminal is not assigned to any hydra device) | [optional] +**HydraDeviceId** | **String** | external hydra device id (null if the terminal is not assigned to any hydra device) | [optional] +**HydraName** | **String** | hydra device name (null if the terminal is not assigned to any hydra device) | [optional] + + diff --git a/docs/EventSearchResult.md b/docs/EventSearchResult.md new file mode 100644 index 00000000..19e48f8b --- /dev/null +++ b/docs/EventSearchResult.md @@ -0,0 +1,149 @@ +# Flipdish.EventSearchResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppCreatedEvent** | [**[AppCreatedEvent]**](AppCreatedEvent.md) | App Created Event | [optional] +**AppUpdatedEvent** | [**[AppUpdatedEvent]**](AppUpdatedEvent.md) | App Updated Event | [optional] +**AnalyticsClientEvent** | [**[AnalyticsClientEvent]**](AnalyticsClientEvent.md) | Client Analytics events | [optional] +**OrderAcceptedEvent** | [**[OrderAcceptedEvent]**](OrderAcceptedEvent.md) | Order accepted events | [optional] +**OrderDispatchedEvent** | [**[OrderDispatchedEvent]**](OrderDispatchedEvent.md) | Order dispatched events | [optional] +**OrderCustomerTrackingCreatedEvent** | [**[OrderCustomerTrackingCreatedEvent]**](OrderCustomerTrackingCreatedEvent.md) | Order delivery tracking created events | [optional] +**OrderDeliveryTrackingStatusUpdatedEvent** | [**[OrderDeliveryTrackingStatusUpdatedEvent]**](OrderDeliveryTrackingStatusUpdatedEvent.md) | Order delivery tracking updated events | [optional] +**OrderBatchPublishedEvent** | [**[OrderBatchPublishedEvent]**](OrderBatchPublishedEvent.md) | Order Batch published event | [optional] +**OrderCreatedEvent** | [**[OrderCreatedEvent]**](OrderCreatedEvent.md) | Order created events | [optional] +**OrderRatingUpdatedEvent** | [**[OrderRatingUpdatedEvent]**](OrderRatingUpdatedEvent.md) | Order rating updated events | [optional] +**OrderRefundedEvent** | [**[OrderRefundedEvent]**](OrderRefundedEvent.md) | Order refunded events | [optional] +**OrderRejectedEvent** | [**[OrderRejectedEvent]**](OrderRejectedEvent.md) | Order rejected events | [optional] +**OrderTipUpdatedEvent** | [**[OrderTipUpdatedEvent]**](OrderTipUpdatedEvent.md) | Order tip updated events | [optional] +**OrderTerminalNotifications** | [**[EmvNotificationEvent]**](EmvNotificationEvent.md) | Order Terminal Notification events | [optional] +**StoreCreatedEvent** | [**[StoreCreatedEvent]**](StoreCreatedEvent.md) | Store created events | [optional] +**StoreDeletedEvent** | [**[StoreDeletedEvent]**](StoreDeletedEvent.md) | Store deleted events | [optional] +**StoreAddressUpdatedEvent** | [**[StoreAddressUpdatedEvent]**](StoreAddressUpdatedEvent.md) | Store address updated events | [optional] +**StoreKioskSettingUpdatedEvent** | [**[StoreKioskSettingUpdatedEvent]**](StoreKioskSettingUpdatedEvent.md) | Store kiosk setting updated events | [optional] +**DeliveryZoneCreatedEvent** | [**[DeliveryZoneCreatedEvent]**](DeliveryZoneCreatedEvent.md) | Store delivery zone created events | [optional] +**DeliveryZoneUpdatedEvent** | [**[DeliveryZoneUpdatedEvent]**](DeliveryZoneUpdatedEvent.md) | Store delivery zone updated events | [optional] +**DeliveryZoneDeletedEvent** | [**[DeliveryZoneDeletedEvent]**](DeliveryZoneDeletedEvent.md) | Store delivery zone deleted events | [optional] +**StoreOpeningHoursUpdatedEvent** | [**[StoreOpeningHoursUpdatedEvent]**](StoreOpeningHoursUpdatedEvent.md) | Store opening hours updated events | [optional] +**StoreMenuAssignedEvent** | [**[StoreMenuAssignedEvent]**](StoreMenuAssignedEvent.md) | Store opening hours updated events | [optional] +**StoreBusinessHoursOverrideCreatedEvent** | [**[StoreBusinessHoursOverrideCreatedEvent]**](StoreBusinessHoursOverrideCreatedEvent.md) | Store business hours override created events | [optional] +**StoreBusinessHoursOverrideDeletedEvent** | [**[StoreBusinessHoursOverrideDeletedEvent]**](StoreBusinessHoursOverrideDeletedEvent.md) | Store business hours override deleted events | [optional] +**StoreArchivedEvent** | [**[StoreArchivedEvent]**](StoreArchivedEvent.md) | Store archived events | [optional] +**StoreUnarchivedEvent** | [**[StoreUnarchivedEvent]**](StoreUnarchivedEvent.md) | Store unarchived events | [optional] +**StorePublishedEvent** | [**[StorePublishedEvent]**](StorePublishedEvent.md) | Store published events | [optional] +**StoreUnpublishedEvent** | [**[StoreUnpublishedEvent]**](StoreUnpublishedEvent.md) | Store unpublished events | [optional] +**StoreUpdatedEvent** | [**[StoreUpdatedEvent]**](StoreUpdatedEvent.md) | Store updated events | [optional] +**StorePreOrderConfigUpdatedEvent** | [**[StorePreOrderConfigUpdatedEvent]**](StorePreOrderConfigUpdatedEvent.md) | Store updated events | [optional] +**StoreLogoCreatedEvent** | [**[StoreLogoCreatedEvent]**](StoreLogoCreatedEvent.md) | Store logo created events | [optional] +**StoreLogoUpdatedEvent** | [**[StoreLogoUpdatedEvent]**](StoreLogoUpdatedEvent.md) | Store logo updated events | [optional] +**StoreLogoDeletedEvent** | [**[StoreLogoDeletedEvent]**](StoreLogoDeletedEvent.md) | Store logo deleted events | [optional] +**MenuCreatedEvent** | [**[MenuCreatedEvent]**](MenuCreatedEvent.md) | Menu created events | [optional] +**MenuAsyncCreationCompletedEvent** | [**[MenuAsyncCreationCompletedEvent]**](MenuAsyncCreationCompletedEvent.md) | Menu async creation completed events | [optional] +**MenuUpdatedEvent** | [**[MenuUpdatedEvent]**](MenuUpdatedEvent.md) | Menu updated events | [optional] +**MenuUploadedEvent** | [**[MenuUploadedEvent]**](MenuUploadedEvent.md) | Menu uploaded events | [optional] +**MenuBulkEditEvent** | [**[MenuBulkEditEvent]**](MenuBulkEditEvent.md) | Menu bulk events | [optional] +**MenuSectionCreatedEvent** | [**[MenuSectionCreatedEvent]**](MenuSectionCreatedEvent.md) | Menu section created events | [optional] +**MenuSectionUpdatedEvent** | [**[MenuSectionUpdatedEvent]**](MenuSectionUpdatedEvent.md) | Menu section updated events | [optional] +**MenuSectionDeletedEvent** | [**[MenuSectionDeletedEvent]**](MenuSectionDeletedEvent.md) | Menu section deleted events | [optional] +**MenuSectionItemCreatedEvent** | [**[MenuSectionItemCreatedEvent]**](MenuSectionItemCreatedEvent.md) | Menu section item created events | [optional] +**MenuSectionItemUpdatedEvent** | [**[MenuSectionItemUpdatedEvent]**](MenuSectionItemUpdatedEvent.md) | Menu section item updated events | [optional] +**MenuSectionItemDeletedEvent** | [**[MenuSectionItemDeletedEvent]**](MenuSectionItemDeletedEvent.md) | Menu section item deleted events | [optional] +**MenuItemOptionSetCreatedEvent** | [**[MenuItemOptionSetCreatedEvent]**](MenuItemOptionSetCreatedEvent.md) | Menu item option set created events | [optional] +**MenuItemOptionSetUpdatedEvent** | [**[MenuItemOptionSetUpdatedEvent]**](MenuItemOptionSetUpdatedEvent.md) | Menu item option set updated events | [optional] +**MenuItemOptionSetDeletedEvent** | [**[MenuItemOptionSetDeletedEvent]**](MenuItemOptionSetDeletedEvent.md) | Menu item option set deleted events | [optional] +**MenuItemOptionSetItemCreatedEvent** | [**[MenuItemOptionSetItemCreatedEvent]**](MenuItemOptionSetItemCreatedEvent.md) | Menu item option set item created events | [optional] +**MenuItemOptionSetItemUpdatedEvent** | [**[MenuItemOptionSetItemUpdatedEvent]**](MenuItemOptionSetItemUpdatedEvent.md) | Menu item option set item updated events | [optional] +**MenuItemOptionSetItemDeletedEvent** | [**[MenuItemOptionSetItemDeletedEvent]**](MenuItemOptionSetItemDeletedEvent.md) | Menu item option set item deleted events | [optional] +**MenuCheckpointCreatedEvent** | [**[MenuCheckpointCreatedEvent]**](MenuCheckpointCreatedEvent.md) | Menu checkpoint created event | [optional] +**StoreGroupCreatedEvent** | [**[StoreGroupCreatedEvent]**](StoreGroupCreatedEvent.md) | Store group created events | [optional] +**StoreGroupUpdatedEvent** | [**[StoreGroupUpdatedEvent]**](StoreGroupUpdatedEvent.md) | Store group updated events | [optional] +**StoreGroupDeletedEvent** | [**[StoreGroupDeletedEvent]**](StoreGroupDeletedEvent.md) | Store group deleted events | [optional] +**CustomerCreatedEvent** | [**[CustomerCreatedEvent]**](CustomerCreatedEvent.md) | Customer created events | [optional] +**CustomerUpdatedEvent** | [**[CustomerUpdatedEvent]**](CustomerUpdatedEvent.md) | Customer updated events | [optional] +**CustomerConsentUpdatedEvent** | [**[CustomerConsentUpdatedEvent]**](CustomerConsentUpdatedEvent.md) | Customer consent updated events | [optional] +**WebhookSubscriptionCreatedEvent** | [**[WebhookSubscriptionCreatedEvent]**](WebhookSubscriptionCreatedEvent.md) | Webhook subscription created events | [optional] +**WebhookSubscriptionUpdatedEvent** | [**[WebhookSubscriptionUpdatedEvent]**](WebhookSubscriptionUpdatedEvent.md) | Webhook subscription updated events | [optional] +**WebhookSubscriptionDeletedEvent** | [**[WebhookSubscriptionDeletedEvent]**](WebhookSubscriptionDeletedEvent.md) | Webhook subscription deleted events | [optional] +**PrinterTurnedOnEvent** | [**[PrinterTurnedOnEvent]**](PrinterTurnedOnEvent.md) | Printer turned ON event | [optional] +**PrinterTurnedOffEvent** | [**[PrinterTurnedOffEvent]**](PrinterTurnedOffEvent.md) | Printer turned OFF event | [optional] +**PrinterAssignedToStoreEvent** | [**[PrinterAssignedToStoreEvent]**](PrinterAssignedToStoreEvent.md) | Printer assigned to store event | [optional] +**PrinterUnassignedFromStoreEvent** | [**[PrinterUnassignedFromStoreEvent]**](PrinterUnassignedFromStoreEvent.md) | Printer unassigned from store event | [optional] +**PhoneCallStartedEvent** | [**[PhoneCallStartedEvent]**](PhoneCallStartedEvent.md) | Phone call started event | [optional] +**PhoneCallEndedEvent** | [**[PhoneCallEndedEvent]**](PhoneCallEndedEvent.md) | Phone call ended event | [optional] +**TelephonyConfigUpdatedEvent** | [**[TelephonyConfigUpdatedEvent]**](TelephonyConfigUpdatedEvent.md) | Telephony config updated event | [optional] +**ChannelStoresUpdatedEvent** | [**[ChannelStoresUpdatedEvent]**](ChannelStoresUpdatedEvent.md) | Channel stores updated event | [optional] +**LoyaltyCampaignCreatedEvent** | [**[LoyaltyCampaignCreatedEvent]**](LoyaltyCampaignCreatedEvent.md) | Loyalty campaign created event | [optional] +**LoyaltyCampaignDeletedEvent** | [**[LoyaltyCampaignDeletedEvent]**](LoyaltyCampaignDeletedEvent.md) | Loyalty campaign deleted event | [optional] +**LoyaltyCampaignUpdatedEvent** | [**[LoyaltyCampaignUpdatedEvent]**](LoyaltyCampaignUpdatedEvent.md) | Loyalty campaign updated event | [optional] +**RetentionCampaignCreatedEvent** | [**[RetentionCampaignCreatedEvent]**](RetentionCampaignCreatedEvent.md) | Retention campaign created event | [optional] +**RetentionCampaignDeletedEvent** | [**[RetentionCampaignDeletedEvent]**](RetentionCampaignDeletedEvent.md) | Retention campaign deleted event | [optional] +**RetentionCampaignUpdatedEvent** | [**[RetentionCampaignUpdatedEvent]**](RetentionCampaignUpdatedEvent.md) | Retention campaign updated event | [optional] +**SmsReceivedEvent** | [**[SmsReceivedEvent]**](SmsReceivedEvent.md) | Sms received event | [optional] +**UserLoginEvent** | [**[UserLoginEvent]**](UserLoginEvent.md) | User login event | [optional] +**UserCreatedEvent** | [**[UserCreatedEvent]**](UserCreatedEvent.md) | User created event | [optional] +**UserUpdatedEvent** | [**[UserUpdatedEvent]**](UserUpdatedEvent.md) | User updated event | [optional] +**UserDeletedEvent** | [**[UserDeletedEvent]**](UserDeletedEvent.md) | User deleted event | [optional] +**UserCreatedPasswordEvent** | [**[UserPasswordCreatedEvent]**](UserPasswordCreatedEvent.md) | User password created event | [optional] +**UserAnsweredSignupQuestionsEvent** | [**[UserAnsweredSignupQuestionsEvent]**](UserAnsweredSignupQuestionsEvent.md) | User answered signup questions event | [optional] +**VoucherCreatedEvent** | [**[VoucherCreatedEvent]**](VoucherCreatedEvent.md) | Voucher created event | [optional] +**VoucherUpdatedEvent** | [**[VoucherUpdatedEvent]**](VoucherUpdatedEvent.md) | Voucher updated event | [optional] +**VoucherDeletedEvent** | [**[VoucherDeletedEvent]**](VoucherDeletedEvent.md) | Voucher deleted event | [optional] +**VoucherAppliedEvent** | [**[VoucherAppliedEvent]**](VoucherAppliedEvent.md) | Voucher applied event | [optional] +**TeammateInviteSentEvent** | [**[TeammateInviteSentEvent]**](TeammateInviteSentEvent.md) | Teammate invite sent event | [optional] +**TeammateInviteAcceptedEvent** | [**[TeammateInviteAcceptedEvent]**](TeammateInviteAcceptedEvent.md) | Teammate invite accepted event | [optional] +**TeammateUpdatedEvent** | [**[TeammateUpdatedEvent]**](TeammateUpdatedEvent.md) | Teammate updated event | [optional] +**TeammateDeletedEvent** | [**[TeammateDeletedEvent]**](TeammateDeletedEvent.md) | Teammate deleted event | [optional] +**BankAccountCreatedEvent** | [**[BankAccountCreatedEvent]**](BankAccountCreatedEvent.md) | Bank account created event | [optional] +**BankAccountUpdatedEvent** | [**[BankAccountUpdatedEvent]**](BankAccountUpdatedEvent.md) | Bank account updated event | [optional] +**BankAccountDeletedEvent** | [**[BankAccountDeletedEvent]**](BankAccountDeletedEvent.md) | Bank account updated event | [optional] +**BankAccountAssignedEvent** | [**[BankAccountAssignedEvent]**](BankAccountAssignedEvent.md) | Bank account assigned event | [optional] +**HydraAssignedEvent** | [**[HydraAssignedEvent]**](HydraAssignedEvent.md) | Hydra assigned event | [optional] +**HydraRequestResetEvent** | [**[HydraRequestResetEvent]**](HydraRequestResetEvent.md) | Hydra reset requested event | [optional] +**HydraStoreAssignedEvent** | [**[HydraStoreAssignedEvent]**](HydraStoreAssignedEvent.md) | Hydra store assigned event | [optional] +**HydraStoreUnassignedEvent** | [**[HydraStoreUnassignedEvent]**](HydraStoreUnassignedEvent.md) | Hydra store unassigned | [optional] +**HydraSettingChangedEvent** | [**[HydraSettingChangedEvent]**](HydraSettingChangedEvent.md) | Hydra settings changed event | [optional] +**HydraUnAssignedEvent** | [**[HydraUnAssignedEvent]**](HydraUnAssignedEvent.md) | Hydra un-assigned event | [optional] +**HydraConnectionStatusChangedEvent** | [**[HydraConnectionStatusChangedEvent]**](HydraConnectionStatusChangedEvent.md) | Hydra connection state change | [optional] +**KioskBluetoothPairingModeEvent** | [**[KioskBluetoothPairingModeEvent]**](KioskBluetoothPairingModeEvent.md) | Bluetooth Pairing Mode initiated | [optional] +**KioskBluetoothUnpairingModeEvent** | [**[KioskBluetoothUnpairingModeEvent]**](KioskBluetoothUnpairingModeEvent.md) | Bluetooth Unpairing Mode initiated | [optional] +**KioskBluetoothTerminalUnpairedEvent** | [**[KioskBluetoothTerminalUnpairedEvent]**](KioskBluetoothTerminalUnpairedEvent.md) | Bluetooth Terminal Unpaired with Kiosk | [optional] +**KioskTerminalActionStateChangedEvent** | [**[KioskTerminalActionStateChangedEvent]**](KioskTerminalActionStateChangedEvent.md) | Terminal actionstate change | [optional] +**KioskBluetoothTerminalUpdatedEvent** | [**[KioskBluetoothTerminalUpdatedEvent]**](KioskBluetoothTerminalUpdatedEvent.md) | Bluetooth Terminal Updated | [optional] +**KioskBluetoothTerminalInitiateUpdateCheckEvent** | [**[KioskBluetoothTerminalInitiateUpdateCheckEvent]**](KioskBluetoothTerminalInitiateUpdateCheckEvent.md) | Trigger bluetooth payment terminal update checker | [optional] +**KioskBluetoothInstallUpdateInitiateEvent** | [**[KioskBluetoothInstallUpdateInitiateEvent]**](KioskBluetoothInstallUpdateInitiateEvent.md) | Bluetooth Terminal Initiate Update | [optional] +**KioskBluetoothTerminalCancelUpdateEvent** | [**[KioskBluetoothTerminalCancelUpdateEvent]**](KioskBluetoothTerminalCancelUpdateEvent.md) | Bluetooth Terminal Cancel Update Install | [optional] +**KioskBluetoothTerminalFirmwareVersionStatusEvent** | [**[KioskBluetoothTerminalFirmwareVersionStatusEvent]**](KioskBluetoothTerminalFirmwareVersionStatusEvent.md) | Bluetooth Payment Terminal Firmware Version Status Info | [optional] +**KioskBluetoothTerminalInstallationStatusEvent** | [**[KioskBluetoothTerminalInstallationStatusEvent]**](KioskBluetoothTerminalInstallationStatusEvent.md) | Bluetooth Terminal Update Installation Status | [optional] +**PushNotificationScheduledEvent** | [**[PushNotificationScheduledEvent]**](PushNotificationScheduledEvent.md) | Push notification scheduled event | [optional] +**PushNotificationSentEvent** | [**[PushNotificationSentEvent]**](PushNotificationSentEvent.md) | Push notification sent event | [optional] +**PushNotificationDeletedEvent** | [**[PushNotificationDeletedEvent]**](PushNotificationDeletedEvent.md) | Push notification deleted event | [optional] +**DnsVerifiedEvent** | [**[DnsVerifiedEvent]**](DnsVerifiedEvent.md) | DNS Verified | [optional] +**CertificateCreatedEvent** | [**[CertificateCreatedEvent]**](CertificateCreatedEvent.md) | Certificate created | [optional] +**CertificateRenewedEvent** | [**[CertificateRenewedEvent]**](CertificateRenewedEvent.md) | Certificate renewed | [optional] +**WebsiteVanityUrlUpdatedEvent** | [**[WebsiteVanityUrlUpdatedEvent]**](WebsiteVanityUrlUpdatedEvent.md) | Panacea vanity url updated | [optional] +**WebsiteUpdatedEvent** | [**[WebsiteUpdatedEvent]**](WebsiteUpdatedEvent.md) | Website updated | [optional] +**OrderCapacityUpdatedEvent** | [**[OrderCapacityConfigUpdatedEvent]**](OrderCapacityConfigUpdatedEvent.md) | Order capacity config updated | [optional] +**ExternalStoreEvent** | [**[ExternalStoreEvent]**](ExternalStoreEvent.md) | External event | [optional] +**OrderFulfillmentStatusUpdatedEvent** | [**[OrderFulfillmentStatusUpdatedEvent]**](OrderFulfillmentStatusUpdatedEvent.md) | Fulfillment status updated event | [optional] +**AppStoreConfigCreatedEvent** | [**[AppStoreConfigCreatedEvent]**](AppStoreConfigCreatedEvent.md) | App Store Config Created | [optional] +**AppStoreConfigUpdatedEvent** | [**[AppStoreConfigUpdatedEvent]**](AppStoreConfigUpdatedEvent.md) | App Store Config Updated | [optional] +**AppStoreConfigDeletedEvent** | [**[AppStoreConfigDeletedEvent]**](AppStoreConfigDeletedEvent.md) | App Store Config Deleted | [optional] +**AppStoreSubscriptionChangeJobUpdatedEvent** | [**[AppStoreSubscriptionChangeJobUpdatedEvent]**](AppStoreSubscriptionChangeJobUpdatedEvent.md) | App Store Subscription Change Job Updated | [optional] +**CatalogItemCreatedEvent** | [**[CatalogItemCreatedEvent]**](CatalogItemCreatedEvent.md) | Catalog Item Created | [optional] +**CatalogItemUpdatedEvent** | [**[CatalogItemUpdatedEvent]**](CatalogItemUpdatedEvent.md) | Catalog Item Updated | [optional] +**CatalogItemArchivedEvent** | [**[CatalogItemArchivedEvent]**](CatalogItemArchivedEvent.md) | Catalog Item Archived | [optional] +**CatalogGroupCreatedEvent** | [**[CatalogGroupCreatedEvent]**](CatalogGroupCreatedEvent.md) | Catalog Group Created | [optional] +**CatalogGroupUpdatedEvent** | [**[CatalogGroupUpdatedEvent]**](CatalogGroupUpdatedEvent.md) | Catalog Group Updated | [optional] +**CatalogGroupArchivedEvent** | [**[CatalogGroupArchivedEvent]**](CatalogGroupArchivedEvent.md) | Catalog Group Archived | [optional] +**StoreTipUpdatedEvent** | [**[StoreTipUpdatedEvent]**](StoreTipUpdatedEvent.md) | Store Tip Updated Event | [optional] +**LocationAreaCreatedEvent** | [**[LocationAreaCreatedEvent]**](LocationAreaCreatedEvent.md) | LocationArea created event | [optional] +**LocationAreaUpdatedEvent** | [**[LocationAreaUpdatedEvent]**](LocationAreaUpdatedEvent.md) | LocationArea updated event | [optional] +**LocationCreatedEvent** | [**[LocationCreatedEvent]**](LocationCreatedEvent.md) | Location created event | [optional] +**LocationDeletedEvent** | [**[LocationDeletedEvent]**](LocationDeletedEvent.md) | Location deleted event | [optional] +**StoreServiceChargeUpdatedEvent** | [**[StoreServiceChargeUpdatedEvent]**](StoreServiceChargeUpdatedEvent.md) | Service Charge Updated Event | [optional] +**MobileAppsSubmissionStatusUpdatedEvent** | [**[MobileAppsSubmissionStatusUpdatedEvent]**](MobileAppsSubmissionStatusUpdatedEvent.md) | Mobile Submission Status Updated Event | [optional] +**MobileAppsSubmissionUpdatedEvent** | [**[MobileAppsSubmissionUpdatedEvent]**](MobileAppsSubmissionUpdatedEvent.md) | Mobile Submission Updated Event | [optional] +**StoreFeeConfigUpdatedEvent** | [**[StoreFeeConfigUpdatedEvent]**](StoreFeeConfigUpdatedEvent.md) | Store Fee Config Updated Event | [optional] + + diff --git a/docs/EventsApi.md b/docs/EventsApi.md new file mode 100644 index 00000000..5218656e --- /dev/null +++ b/docs/EventsApi.md @@ -0,0 +1,732 @@ +# Flipdish.EventsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getCustomerEvents**](EventsApi.md#getCustomerEvents) | **GET** /api/v1.0/{appId}/events/customer/{customerId} | +[**getEvents**](EventsApi.md#getEvents) | **GET** /api/v1.0/{appId}/events | +[**getEventsById**](EventsApi.md#getEventsById) | **GET** /api/v1.0/{appId}/events/{eventId} | +[**getMenuEvents**](EventsApi.md#getMenuEvents) | **GET** /api/v1.0/{appId}/events/menu/{menuId} | +[**getOrderEvents**](EventsApi.md#getOrderEvents) | **GET** /api/v1.0/{appId}/events/order/{orderId} | +[**getOrderEventsByCustomer**](EventsApi.md#getOrderEventsByCustomer) | **GET** /api/v1.0/{appId}/events/order | +[**getStoreEvents**](EventsApi.md#getStoreEvents) | **GET** /api/v1.0/{appId}/events/store/{storeId} | +[**getUserEvents**](EventsApi.md#getUserEvents) | **GET** /api/v1.0/{appId}/events/user/{userId} | +[**getWhiteLabelEvents**](EventsApi.md#getWhiteLabelEvents) | **GET** /api/v1.0/{appId}/events/whitelabel/{whitelabelId} | + + + +## getCustomerEvents + +> RestApiEventSearchPaginationResult getCustomerEvents(appId, customerId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let customerId = 56; // Number | +let opts = { + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User Id + 'menuId': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getCustomerEvents(appId, customerId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **customerId** | **Number**| | + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User Id | [optional] + **menuId** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + + +## getEvents + +> RestApiEventSearchPaginationResult getEvents(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let opts = { + 'whiteLabelId': 56, // Number | + 'customerId': 56, // Number | + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User Id + 'menuId': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getEvents(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **whiteLabelId** | **Number**| | [optional] + **customerId** | **Number**| | [optional] + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User Id | [optional] + **menuId** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + + +## getEventsById + +> EventSearchResult getEventsById(eventId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let eventId = null; // String | +let appId = "appId_example"; // String | +apiInstance.getEventsById(eventId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **eventId** | [**String**](.md)| | + **appId** | **String**| | + +### Return type + +[**EventSearchResult**](EventSearchResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, AnalyticsClientEvent, OrderAcceptedEvent, OrderCustomerTrackingCreatedEvent, OrderDeliveryTrackingStatusUpdatedEvent, OrderBatchPublishedEvent, OrderCreatedEvent, OrderRatingUpdatedEvent, OrderRefundedEvent, OrderRejectedEvent, OrderTipUpdatedEvent, StoreCreatedEvent, StoreDeletedEvent, StoreAddressUpdatedEvent, StoreKioskSettingUpdatedEvent, DeliveryZoneCreatedEvent, DeliveryZoneUpdatedEvent, DeliveryZoneDeletedEvent, StoreOpeningHoursUpdatedEvent, StoreMenuAssignedEvent, StoreBusinessHoursOverrideCreatedEvent, StoreBusinessHoursOverrideDeletedEvent, StoreArchivedEvent, StoreUnarchivedEvent, StorePublishedEvent, StoreUnpublishedEvent, StoreUpdatedEvent, StorePreOrderConfigUpdatedEvent, StoreLogoCreatedEvent, StoreLogoUpdatedEvent, StoreLogoDeletedEvent, MenuCreatedEvent, MenuAsyncCreationCompletedEvent, MenuUpdatedEvent, MenuUploadedEvent, MenuBulkEditEvent, MenuCheckpointCreatedEvent, CustomerCreatedEvent, CustomerUpdatedEvent, CustomerConsentUpdatedEvent, WebhookSubscriptionCreatedEvent, WebhookSubscriptionUpdatedEvent, WebhookSubscriptionDeletedEvent, PrinterTurnedOnEvent, PrinterTurnedOffEvent, PrinterAssignedToStoreEvent, PrinterUnassignedFromStoreEvent, PhoneCallStartedEvent, PhoneCallEndedEvent, TelephonyConfigUpdatedEvent, LoyaltyCampaignCreatedEvent, LoyaltyCampaignDeletedEvent, LoyaltyCampaignUpdatedEvent, RetentionCampaignCreatedEvent, RetentionCampaignDeletedEvent, RetentionCampaignUpdatedEvent, SmsReceivedEvent, UserLoginEvent, UserCreatedEvent, UserUpdatedEvent, UserDeletedEvent, UserCreatedPasswordEvent, UserAnsweredSignupQuestionsEvent, VoucherCreatedEvent, VoucherUpdatedEvent, VoucherDeletedEvent, VoucherAppliedEvent, TeammateInviteSentEvent, TeammateInviteAcceptedEvent, TeammateUpdatedEvent, TeammateDeletedEvent, BankAccountCreatedEvent, BankAccountUpdatedEvent, BankAccountDeletedEvent, BankAccountAssignedEvent, HydraAssignedEvent, HydraRequestResetEvent, HydraSettingChangedEvent, HydraUnAssignedEvent, KioskBluetoothPairingModeEvent, KioskBluetoothUnpairingModeEvent, KioskBluetoothTerminalUnpairedEvent, KioskTerminalActionStateChangedEvent, KioskBluetoothTerminalUpdatedEvent, KioskBluetoothTerminalInitiateUpdateCheckEvent, KioskBluetoothInstallUpdateInitiateEvent, KioskBluetoothTerminalCancelUpdateEvent, KioskBluetoothTerminalFirmwareVersionStatusEvent, KioskBluetoothTerminalInstallationStatusEvent, PushNotificationScheduledEvent, PushNotificationSentEvent, PushNotificationDeletedEvent, DnsVerifiedEvent, CertificateCreatedEvent, CertificateRenewedEvent, WebsiteVanityUrlUpdatedEvent, WebsiteUpdatedEvent, OrderCapacityUpdatedEvent, ExternalStoreEvent, AppStoreConfigCreatedEvent, AppStoreConfigUpdatedEvent, AppStoreConfigDeletedEvent, AppStoreSubscriptionChangeJobUpdatedEvent, CatalogItemCreatedEvent, CatalogItemUpdatedEvent, CatalogItemArchivedEvent, CatalogGroupCreatedEvent, CatalogGroupUpdatedEvent, CatalogGroupArchivedEvent, StoreTipUpdatedEvent, LocationAreaCreatedEvent, LocationAreaUpdatedEvent, LocationCreatedEvent, LocationDeletedEvent, StoreServiceChargeUpdatedEvent, MobileAppsSubmissionStatusUpdatedEvent, MobileAppsSubmissionUpdatedEvent, StoreFeeConfigUpdatedEvent + + +## getMenuEvents + +> RestApiEventSearchPaginationResult getMenuEvents(appId, menuId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let menuId = 56; // Number | +let opts = { + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User Id + 'menuId2': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getMenuEvents(appId, menuId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **menuId** | **Number**| | + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User Id | [optional] + **menuId2** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + + +## getOrderEvents + +> RestApiEventSearchPaginationResult getOrderEvents(appId, orderId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let orderId = 56; // Number | +let opts = { + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId2': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User Id + 'menuId': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getOrderEvents(appId, orderId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **orderId** | **Number**| | + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId2** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User Id | [optional] + **menuId** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + + +## getOrderEventsByCustomer + +> RestApiEventSearchPaginationResult getOrderEventsByCustomer(appId, customerId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let customerId = 56; // Number | +let opts = { + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User Id + 'menuId': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getOrderEventsByCustomer(appId, customerId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **customerId** | **Number**| | + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User Id | [optional] + **menuId** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + + +## getStoreEvents + +> RestApiEventSearchPaginationResult getStoreEvents(appId, storeId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let opts = { + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId': 56, // Number | Events that have Order Id + 'storeId2': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User Id + 'menuId': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getStoreEvents(appId, storeId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId2** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User Id | [optional] + **menuId** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + + +## getUserEvents + +> RestApiEventSearchPaginationResult getUserEvents(appId, userId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let userId = 56; // Number | +let opts = { + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId2': 56, // Number | Events that have User Id + 'menuId': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getUserEvents(appId, userId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **userId** | **Number**| | + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId2** | **Number**| Events that have User Id | [optional] + **menuId** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + + +## getWhiteLabelEvents + +> RestApiEventSearchPaginationResult getWhiteLabelEvents(appId, whitelabelId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.EventsApi(); +let appId = "appId_example"; // String | +let whitelabelId = 56; // Number | +let opts = { + 'limit': 56, // Number | The maximum elements to return + 'page': 56, // Number | The index of the page to return, starting by 1 + 'start': new Date("2013-10-20T19:20:30+01:00"), // Date | Start date + 'end': new Date("2013-10-20T19:20:30+01:00"), // Date | End date + 'orderId': 56, // Number | Events that have Order Id + 'storeId': 56, // Number | Events that have Store Id + 'storeIdList': [null], // [Number] | Events that have Store Id List + 'storeGroupId': 56, // Number | Events that have Store Group Id + 'userId': 56, // Number | Events that have User Id + 'menuId': 56, // Number | Events that have Menu Id + 'campaignId': 56, // Number | Events that have Campaign Id + 'userEmail': "userEmail_example", // String | Events that have User Email + 'userName': "userName_example", // String | Events that have User Name + 'voucherCode': "voucherCode_example", // String | Events that have voucher code + 'eventType': ["null"], // [String] | Events that have event type\\s + 'flipdishEventId': "flipdishEventId_example" // String | Unique Identifier of Event, if this is specified, all other criteria are ignored. +}; +apiInstance.getWhiteLabelEvents(appId, whitelabelId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **whitelabelId** | **Number**| | + **limit** | **Number**| The maximum elements to return | [optional] + **page** | **Number**| The index of the page to return, starting by 1 | [optional] + **start** | **Date**| Start date | [optional] + **end** | **Date**| End date | [optional] + **orderId** | **Number**| Events that have Order Id | [optional] + **storeId** | **Number**| Events that have Store Id | [optional] + **storeIdList** | [**[Number]**](Number.md)| Events that have Store Id List | [optional] + **storeGroupId** | **Number**| Events that have Store Group Id | [optional] + **userId** | **Number**| Events that have User Id | [optional] + **menuId** | **Number**| Events that have Menu Id | [optional] + **campaignId** | **Number**| Events that have Campaign Id | [optional] + **userEmail** | **String**| Events that have User Email | [optional] + **userName** | **String**| Events that have User Name | [optional] + **voucherCode** | **String**| Events that have voucher code | [optional] + **eventType** | [**[String]**](String.md)| Events that have event type\\s | [optional] + **flipdishEventId** | **String**| Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + +### Return type + +[**RestApiEventSearchPaginationResult**](RestApiEventSearchPaginationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Page, Limit, TotalRecordCount + diff --git a/docs/ExecuteConfigurationActionRequest.md b/docs/ExecuteConfigurationActionRequest.md new file mode 100644 index 00000000..86d0d47b --- /dev/null +++ b/docs/ExecuteConfigurationActionRequest.md @@ -0,0 +1,10 @@ +# Flipdish.ExecuteConfigurationActionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **String** | | [optional] +**Action** | **String** | | [optional] + + diff --git a/docs/ExecuteConfigurationActionResult.md b/docs/ExecuteConfigurationActionResult.md new file mode 100644 index 00000000..2fb8b125 --- /dev/null +++ b/docs/ExecuteConfigurationActionResult.md @@ -0,0 +1,25 @@ +# Flipdish.ExecuteConfigurationActionResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorMessage** | **String** | | [optional] +**InfoMessage** | **String** | | [optional] +**RedirectUrl** | **String** | | [optional] +**RedirectTarget** | **String** | | [optional] + + + +## Enum: RedirectTargetEnum + + +* `Default` (value: `"Default"`) + +* `NewWindow` (value: `"NewWindow"`) + +* `Popup` (value: `"Popup"`) + + + + diff --git a/docs/ExternalStoreAuditLog.md b/docs/ExternalStoreAuditLog.md new file mode 100644 index 00000000..126be5d5 --- /dev/null +++ b/docs/ExternalStoreAuditLog.md @@ -0,0 +1,23 @@ +# Flipdish.ExternalStoreAuditLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalCreateTime** | **Date** | The time of creation of the event | [optional] +**StoreId** | **Number** | Store Id | [optional] +**Description** | **String** | Description | [optional] +**Source** | **String** | Identifies the source of the log | [optional] +**Version** | **String** | Identifies the version of the {Flipdish.PublicModels.V1.AuditLogs.ExternalStoreAuditLog.Source} | [optional] +**DescriptionFormat** | **String** | Description with format placeholders | [optional] +**DescriptionFields** | **String** | Description with format placeholders | [optional] +**DescriptionId** | **String** | Description | [optional] +**Ref1** | **String** | Ref (reference field) | [optional] +**Ref2** | **String** | Ref2 (reference field) | [optional] +**Ref3** | **String** | Ref3 (reference field) | [optional] +**Ref4** | **String** | Ref4 (reference field) | [optional] +**OrderId** | **Number** | Order Id | [optional] +**Tags** | **[String]** | Tags | [optional] +**FieldChanges** | [**[AuditLogFieldChangeInformation]**](AuditLogFieldChangeInformation.md) | Field changes list | [optional] + + diff --git a/docs/ExternalStoreEvent.md b/docs/ExternalStoreEvent.md new file mode 100644 index 00000000..7f0542fe --- /dev/null +++ b/docs/ExternalStoreEvent.md @@ -0,0 +1,28 @@ +# Flipdish.ExternalStoreEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**DescriptionFormat** | **String** | Description with format placeholders | [optional] +**DescriptionFields** | **String** | Description with format placeholders | [optional] +**DescriptionId** | **String** | Description | [optional] +**Ref1** | **String** | Ref (reference field) | [optional] +**Ref2** | **String** | Ref2 (reference field) | [optional] +**Ref3** | **String** | Ref3 (reference field) | [optional] +**Ref4** | **String** | Ref4 (reference field) | [optional] +**OrderId** | **Number** | Order Id | [optional] +**Tags** | **[String]** | Tags | [optional] +**FieldChanges** | [**[FieldChangeInformation]**](FieldChangeInformation.md) | Field changes list | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/FeaturesApi.md b/docs/FeaturesApi.md new file mode 100644 index 00000000..9b044b71 --- /dev/null +++ b/docs/FeaturesApi.md @@ -0,0 +1,108 @@ +# Flipdish.FeaturesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**disableFeatures**](FeaturesApi.md#disableFeatures) | **POST** /api/v1.0/{appId}/features/disable | +[**enableFeatures**](FeaturesApi.md#enableFeatures) | **POST** /api/v1.0/{appId}/features/enable | + + + +## disableFeatures + +> RestApiStringArrayResult disableFeatures(appId, features) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FeaturesApi(); +let appId = "appId_example"; // String | +let features = ["null"]; // [String] | +apiInstance.disableFeatures(appId, features, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **features** | [**[String]**](String.md)| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## enableFeatures + +> RestApiStringArrayResult enableFeatures(appId, features) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FeaturesApi(); +let appId = "appId_example"; // String | +let features = ["null"]; // [String] | +apiInstance.enableFeatures(appId, features, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **features** | [**[String]**](String.md)| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/FeeSummary.md b/docs/FeeSummary.md new file mode 100644 index 00000000..40416209 --- /dev/null +++ b/docs/FeeSummary.md @@ -0,0 +1,11 @@ +# Flipdish.FeeSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FeeAmount** | **Number** | Fee amount | [optional] +**PercentageRate** | **Number** | Percentage rate | [optional] +**PerTransactionFee** | **Number** | Per transaction fee | [optional] + + diff --git a/docs/Field.md b/docs/Field.md new file mode 100644 index 00000000..9e20c46e --- /dev/null +++ b/docs/Field.md @@ -0,0 +1,45 @@ +# Flipdish.Field + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | +**Description** | **String** | | +**Key** | **String** | | +**Tooltip** | **String** | | [optional] +**Position** | **Number** | | +**DefaultValue** | **String** | | [optional] +**ValidValues** | [**[ValidValue]**](ValidValue.md) | | [optional] +**ValidationRegex** | **String** | | [optional] +**FieldType** | **String** | | +**IsFlipdishRestricted** | **Boolean** | | [optional] + + + +## Enum: FieldTypeEnum + + +* `Text` (value: `"Text"`) + +* `TextArea` (value: `"TextArea"`) + +* `Integer` (value: `"Integer"`) + +* `Decimal` (value: `"Decimal"`) + +* `Date` (value: `"Date"`) + +* `DateTime` (value: `"DateTime"`) + +* `Time` (value: `"Time"`) + +* `Select` (value: `"Select"`) + +* `Boolean` (value: `"Boolean"`) + +* `ActionButton` (value: `"ActionButton"`) + + + + diff --git a/docs/FieldChangeInformation.md b/docs/FieldChangeInformation.md new file mode 100644 index 00000000..89660ba0 --- /dev/null +++ b/docs/FieldChangeInformation.md @@ -0,0 +1,13 @@ +# Flipdish.FieldChangeInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **String** | Path (hierarchy) | [optional] +**Name** | **String** | Name of field | [optional] +**Key** | **String** | Key (code) of field | [optional] +**OldValue** | **String** | Old value | [optional] +**NewValue** | **String** | New value | [optional] + + diff --git a/docs/FieldGroup.md b/docs/FieldGroup.md new file mode 100644 index 00000000..7744ca78 --- /dev/null +++ b/docs/FieldGroup.md @@ -0,0 +1,13 @@ +# Flipdish.FieldGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | +**Description** | **String** | | [optional] +**Tooltip** | **String** | | [optional] +**Position** | **Number** | | +**Fields** | [**[Field]**](Field.md) | | [optional] + + diff --git a/docs/FileCreationResult.md b/docs/FileCreationResult.md new file mode 100644 index 00000000..711a1456 --- /dev/null +++ b/docs/FileCreationResult.md @@ -0,0 +1,10 @@ +# Flipdish.FileCreationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileId** | **String** | | [optional] +**Location** | **String** | | [optional] + + diff --git a/docs/FileDownloadResult.md b/docs/FileDownloadResult.md new file mode 100644 index 00000000..bafc1db9 --- /dev/null +++ b/docs/FileDownloadResult.md @@ -0,0 +1,9 @@ +# Flipdish.FileDownloadResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileUrl** | **String** | URL of the file | [optional] + + diff --git a/docs/FilesApi.md b/docs/FilesApi.md new file mode 100644 index 00000000..3e9906b8 --- /dev/null +++ b/docs/FilesApi.md @@ -0,0 +1,58 @@ +# Flipdish.FilesApi + +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} | + + + +## downloadFile + +> RestApiResultFileDownloadResult downloadFile(appId, fileId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FilesApi(); +let appId = "appId_example"; // String | +let fileId = "fileId_example"; // String | +apiInstance.downloadFile(appId, fileId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **fileId** | **String**| | + +### Return type + +[**RestApiResultFileDownloadResult**](RestApiResultFileDownloadResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/FirebaseApp.md b/docs/FirebaseApp.md new file mode 100644 index 00000000..73230d47 --- /dev/null +++ b/docs/FirebaseApp.md @@ -0,0 +1,12 @@ +# Flipdish.FirebaseApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhitelabelId** | **Number** | | [optional] +**PackageId** | **String** | | [optional] +**FirebaseAppId** | **String** | | [optional] +**FirebaseProjectId** | **String** | | [optional] + + diff --git a/docs/FirebaseAppsApi.md b/docs/FirebaseAppsApi.md new file mode 100644 index 00000000..3bd47022 --- /dev/null +++ b/docs/FirebaseAppsApi.md @@ -0,0 +1,152 @@ +# Flipdish.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) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FirebaseAppsApi(); +let firebaseApp = new Flipdish.FirebaseApp(); // FirebaseApp | +apiInstance.firebaseAppsAddFirebaseApp(firebaseApp, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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 + + +## firebaseAppsDeleteFirebaseApp + +> Object firebaseAppsDeleteFirebaseApp(whiteLabelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FirebaseAppsApi(); +let whiteLabelId = 56; // Number | +apiInstance.firebaseAppsDeleteFirebaseApp(whiteLabelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whiteLabelId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## firebaseAppsGetFirebaseApp + +> Object firebaseAppsGetFirebaseApp(whitelabelId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FirebaseAppsApi(); +let whitelabelId = 56; // Number | +apiInstance.firebaseAppsGetFirebaseApp(whitelabelId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whitelabelId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/FlipdishEventBase.md b/docs/FlipdishEventBase.md new file mode 100644 index 00000000..674bbc73 --- /dev/null +++ b/docs/FlipdishEventBase.md @@ -0,0 +1,15 @@ +# Flipdish.FlipdishEventBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/FlipdishFeesDetails.md b/docs/FlipdishFeesDetails.md new file mode 100644 index 00000000..d3d2c9cb --- /dev/null +++ b/docs/FlipdishFeesDetails.md @@ -0,0 +1,17 @@ +# Flipdish.FlipdishFeesDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesFees** | **Number** | Fees on online sales | [optional] +**CashSalesFees** | **Number** | Fees on cash sales | [optional] +**PosSalesFees** | **Number** | Fees of POS sales | [optional] +**TotalSalesFees** | **Number** | Total online and cash sales | [optional] +**OnlineSalesRefundedFees** | **Number** | Fees on refunds for online sales | [optional] +**CashSalesRefundedFees** | **Number** | Fees on refunds for cash sales | [optional] +**PosSalesRefundedFees** | **Number** | Fees on refunds for POS sales | [optional] +**SalesFeesVat** | **Number** | VAT on sales fees | [optional] +**TotalFees** | **Number** | Total fees | [optional] + + diff --git a/docs/FpmApi.md b/docs/FpmApi.md new file mode 100644 index 00000000..625efae7 --- /dev/null +++ b/docs/FpmApi.md @@ -0,0 +1,156 @@ +# Flipdish.FpmApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createFpmForStore**](FpmApi.md#createFpmForStore) | **POST** /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(storeId, phoneNumber) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FpmApi(); +let storeId = 56; // Number | +let phoneNumber = "phoneNumber_example"; // String | +apiInstance.createFpmForStore(storeId, phoneNumber, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **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, TelephonyConfigId, ApmEnabled, Type, ConsentEnabled, SendAppLinkSms, UseCustomAppLinkSmsMessage, UseCustomVoiceMessage, ResendApmMessageAfterDays + + +## editFpmForStore + +> editFpmForStore(storeId, telephonyConfig) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FpmApi(); +let storeId = 56; // Number | +let telephonyConfig = new Flipdish.TelephonyConfig(); // TelephonyConfig | +apiInstance.editFpmForStore(storeId, telephonyConfig, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **telephonyConfig** | [**TelephonyConfig**](TelephonyConfig.md)| | + +### Return type + +null (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 + + +## getFpmForStore + +> TelephonyConfig getFpmForStore(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FpmApi(); +let storeId = 56; // Number | +apiInstance.getFpmForStore(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### 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, TelephonyConfigId, ApmEnabled, Type, ConsentEnabled, SendAppLinkSms, UseCustomAppLinkSmsMessage, UseCustomVoiceMessage, ResendApmMessageAfterDays + diff --git a/docs/FulfillentStatusActionItem.md b/docs/FulfillentStatusActionItem.md new file mode 100644 index 00000000..68bb5d58 --- /dev/null +++ b/docs/FulfillentStatusActionItem.md @@ -0,0 +1,10 @@ +# Flipdish.FulfillentStatusActionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | Status Id | [optional] +**Name** | **String** | Status Name | [optional] + + diff --git a/docs/FulfillmentStateConfigurationApi.md b/docs/FulfillmentStateConfigurationApi.md new file mode 100644 index 00000000..0111792f --- /dev/null +++ b/docs/FulfillmentStateConfigurationApi.md @@ -0,0 +1,306 @@ +# Flipdish.FulfillmentStateConfigurationApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#createFulfillmentStatesConfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states | +[**deleteFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#deleteFulfillmentStatesConfig) | **DELETE** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +[**getFulfillmentStatesConfiguration**](FulfillmentStateConfigurationApi.md#getFulfillmentStatesConfiguration) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | +[**getFulfillmentStatesConfigurationTemplate**](FulfillmentStateConfigurationApi.md#getFulfillmentStatesConfigurationTemplate) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states_template | +[**searchFulfillmentStatesConfigurations**](FulfillmentStateConfigurationApi.md#searchFulfillmentStatesConfigurations) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states | +[**updateFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#updateFulfillmentStatesConfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | + + + +## createFulfillmentStatesConfig + +> RestApiResultFulfillmentStatesConfiguration createFulfillmentStatesConfig(appId, fulfillmentStateConfiguration) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FulfillmentStateConfigurationApi(); +let appId = "appId_example"; // String | +let fulfillmentStateConfiguration = new Flipdish.CreateFulfillmentStatesConfiguration(); // CreateFulfillmentStatesConfiguration | +apiInstance.createFulfillmentStatesConfig(appId, fulfillmentStateConfiguration, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **fulfillmentStateConfiguration** | [**CreateFulfillmentStatesConfiguration**](CreateFulfillmentStatesConfiguration.md)| | + +### Return type + +[**RestApiResultFulfillmentStatesConfiguration**](RestApiResultFulfillmentStatesConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## deleteFulfillmentStatesConfig + +> RestApiStringResult deleteFulfillmentStatesConfig(appId, configId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FulfillmentStateConfigurationApi(); +let appId = "appId_example"; // String | +let configId = "configId_example"; // String | +apiInstance.deleteFulfillmentStatesConfig(appId, configId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **configId** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getFulfillmentStatesConfiguration + +> FulfillmentStatesConfiguration getFulfillmentStatesConfiguration(appId, configId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FulfillmentStateConfigurationApi(); +let appId = "appId_example"; // String | +let configId = "configId_example"; // String | +apiInstance.getFulfillmentStatesConfiguration(appId, configId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **configId** | **String**| | + +### Return type + +[**FulfillmentStatesConfiguration**](FulfillmentStatesConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, States, StoreSelectorType, StoreIds, Name, Message, ErrorCode, StackTrace + + +## getFulfillmentStatesConfigurationTemplate + +> FulfillmentStatesConfiguration getFulfillmentStatesConfigurationTemplate(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FulfillmentStateConfigurationApi(); +let appId = "appId_example"; // String | +apiInstance.getFulfillmentStatesConfigurationTemplate(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**FulfillmentStatesConfiguration**](FulfillmentStatesConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, States, StoreSelectorType, StoreIds, Name, Message, ErrorCode, StackTrace + + +## searchFulfillmentStatesConfigurations + +> RestApiArrayResultFulfillmentStatesConfigurationSummary searchFulfillmentStatesConfigurations(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FulfillmentStateConfigurationApi(); +let appId = "appId_example"; // String | +apiInstance.searchFulfillmentStatesConfigurations(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultFulfillmentStatesConfigurationSummary**](RestApiArrayResultFulfillmentStatesConfigurationSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateFulfillmentStatesConfig + +> updateFulfillmentStatesConfig(appId, configId, updateFulfillmentStatesConfiguration) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.FulfillmentStateConfigurationApi(); +let appId = "appId_example"; // String | +let configId = "configId_example"; // String | +let updateFulfillmentStatesConfiguration = new Flipdish.UpdateFulfillmentStatesConfiguration(); // UpdateFulfillmentStatesConfiguration | +apiInstance.updateFulfillmentStatesConfig(appId, configId, updateFulfillmentStatesConfiguration, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **configId** | **String**| | + **updateFulfillmentStatesConfiguration** | [**UpdateFulfillmentStatesConfiguration**](UpdateFulfillmentStatesConfiguration.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + diff --git a/docs/FulfillmentStatesConfiguration.md b/docs/FulfillmentStatesConfiguration.md new file mode 100644 index 00000000..8113521d --- /dev/null +++ b/docs/FulfillmentStatesConfiguration.md @@ -0,0 +1,28 @@ +# Flipdish.FulfillmentStatesConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**States** | [**[FulfillmentStatusConfigurationItem]**](FulfillmentStatusConfigurationItem.md) | States | [optional] +**AutomaticTransitionsEnabled** | **Boolean** | Enable automatic transitions | [optional] +**AppId** | **String** | AppId | [optional] +**ConfigurationUid** | **String** | Configuration Uid | [optional] +**StoreSelectorType** | **String** | Store Selector Type | [optional] +**StoreIds** | **[Number]** | Store Ids | [optional] +**Name** | **String** | Name | [optional] + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + diff --git a/docs/FulfillmentStatesConfigurationSummary.md b/docs/FulfillmentStatesConfigurationSummary.md new file mode 100644 index 00000000..27c9afa0 --- /dev/null +++ b/docs/FulfillmentStatesConfigurationSummary.md @@ -0,0 +1,26 @@ +# Flipdish.FulfillmentStatesConfigurationSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **String** | AppId | +**ConfigurationUid** | **String** | Configuration Uid | [optional] +**Name** | **String** | Name | [optional] +**StoreSelectorType** | **String** | Store selector type | [optional] +**Stores** | [**[FulfillmentStatesConfiguredStore]**](FulfillmentStatesConfiguredStore.md) | Stores | [optional] + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + diff --git a/docs/FulfillmentStatesConfiguredStore.md b/docs/FulfillmentStatesConfiguredStore.md new file mode 100644 index 00000000..bac06423 --- /dev/null +++ b/docs/FulfillmentStatesConfiguredStore.md @@ -0,0 +1,10 @@ +# Flipdish.FulfillmentStatesConfiguredStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store id | [optional] +**Name** | **String** | Name of store | [optional] + + diff --git a/docs/FulfillmentStatusConfigurationItem.md b/docs/FulfillmentStatusConfigurationItem.md new file mode 100644 index 00000000..a0b386d4 --- /dev/null +++ b/docs/FulfillmentStatusConfigurationItem.md @@ -0,0 +1,51 @@ +# Flipdish.FulfillmentStatusConfigurationItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusId** | **String** | Status Id (no whitespaces) | [optional] +**StatusName** | **String** | Status name | [optional] +**Enabled** | **Boolean** | Is status enabled | [optional] +**DisplayName** | **String** | The short status string that is displayed to users in apps, portal. If empty then Order Status Name is displayed instead | [optional] +**Icon** | **String** | Icon/Image that represents that status visual | [optional] +**PublicDescription** | **String** | A string which could be used in notification templates with a placeholder (SMS, email, push, web page with status) | [optional] +**Internal** | **Boolean** | Is internal state (internal states not shown to customers) | [optional] +**NextStatuses** | **[String]** | list of statuses that this status can move to (can be back or forth) | [optional] +**DefaultNextStatus** | [**[NextStatusWithOrderType]**](NextStatusWithOrderType.md) | The default next status (on a dropdown or quick button on terminal or portal) | [optional] +**ChangeType** | **String** | How will state change (manually or automated, including timed) | [optional] +**IncludeInReports** | **Boolean** | Include in reports | [optional] +**IsCustom** | **Boolean** | Is custom state. If not, then it's a system state | [optional] +**OrderTypes** | **[String]** | If empty then applies to all ordertypes, otherwise a list of order types this state applies to | [optional] +**Communication** | **Boolean** | Whether state should fire off a notification to the customer | [optional] +**Image** | **String** | Image (image filename, relative, not absolute URL) | [optional] + + + +## Enum: ChangeTypeEnum + + +* `Manual` (value: `"Manual"`) + +* `Automated` (value: `"Automated"`) + +* `Integrated` (value: `"Integrated"`) + + + + + +## Enum: [OrderTypesEnum] + + +* `All` (value: `"All"`) + +* `Delivery` (value: `"Delivery"`) + +* `Collection` (value: `"Collection"`) + +* `DineIn` (value: `"DineIn"`) + + + + diff --git a/docs/GeoPointRequest.md b/docs/GeoPointRequest.md new file mode 100644 index 00000000..af5a3969 --- /dev/null +++ b/docs/GeoPointRequest.md @@ -0,0 +1,10 @@ +# Flipdish.GeoPointRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **Number** | Kiosk device latitude | [optional] +**Longitude** | **Number** | Kiosk device longitude | [optional] + + diff --git a/docs/GetReceiptByOrderIdQueryResponse.md b/docs/GetReceiptByOrderIdQueryResponse.md new file mode 100644 index 00000000..2630a97e --- /dev/null +++ b/docs/GetReceiptByOrderIdQueryResponse.md @@ -0,0 +1,16 @@ +# Flipdish.GetReceiptByOrderIdQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreviousOrder** | [**PreviousOrder**](PreviousOrder.md) | | [optional] +**DepositReturnFeesSummary** | [**[DepositReturnFeesSummary]**](DepositReturnFeesSummary.md) | | [optional] +**TsRequestedForLocal** | **Date** | | [optional] +**TsOrderPlacedLocal** | **Date** | | [optional] +**LogoUrl** | **String** | | [optional] +**Address** | **String** | | [optional] +**VatNumber** | **String** | | [optional] +**PaymentMethodDescription** | **String** | | [optional] + + diff --git a/docs/GoogleAddress.md b/docs/GoogleAddress.md new file mode 100644 index 00000000..e8105145 --- /dev/null +++ b/docs/GoogleAddress.md @@ -0,0 +1,11 @@ +# Flipdish.GoogleAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**[GoogleAddressResult]**](GoogleAddressResult.md) | | [optional] +**Result** | [**GoogleAddressResult**](GoogleAddressResult.md) | | [optional] +**Status** | **String** | | [optional] + + diff --git a/docs/GoogleAddressComponent.md b/docs/GoogleAddressComponent.md new file mode 100644 index 00000000..d3d1ce79 --- /dev/null +++ b/docs/GoogleAddressComponent.md @@ -0,0 +1,11 @@ +# Flipdish.GoogleAddressComponent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Long_name** | **String** | | [optional] +**Short_name** | **String** | | [optional] +**Types** | **[String]** | | [optional] + + diff --git a/docs/GoogleAddressResult.md b/docs/GoogleAddressResult.md new file mode 100644 index 00000000..7c311298 --- /dev/null +++ b/docs/GoogleAddressResult.md @@ -0,0 +1,13 @@ +# Flipdish.GoogleAddressResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address_components** | [**[GoogleAddressComponent]**](GoogleAddressComponent.md) | | [optional] +**Formatted_address** | **String** | | [optional] +**Geometry** | [**GoogleGeometry**](GoogleGeometry.md) | | [optional] +**Place_id** | **String** | | [optional] +**Types** | **[String]** | | [optional] + + diff --git a/docs/GoogleCoordinates.md b/docs/GoogleCoordinates.md new file mode 100644 index 00000000..f358a6da --- /dev/null +++ b/docs/GoogleCoordinates.md @@ -0,0 +1,10 @@ +# Flipdish.GoogleCoordinates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lat** | **Number** | | [optional] +**Lng** | **Number** | | [optional] + + diff --git a/docs/GoogleGeometry.md b/docs/GoogleGeometry.md new file mode 100644 index 00000000..766b2562 --- /dev/null +++ b/docs/GoogleGeometry.md @@ -0,0 +1,11 @@ +# Flipdish.GoogleGeometry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | [**GoogleLocation**](GoogleLocation.md) | | [optional] +**Location_type** | **String** | | [optional] +**Viewport** | [**GoogleViewport**](GoogleViewport.md) | | [optional] + + diff --git a/docs/GoogleLocation.md b/docs/GoogleLocation.md new file mode 100644 index 00000000..0e1ac109 --- /dev/null +++ b/docs/GoogleLocation.md @@ -0,0 +1,10 @@ +# Flipdish.GoogleLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lat** | **Number** | | [optional] +**Lng** | **Number** | | [optional] + + diff --git a/docs/GoogleViewport.md b/docs/GoogleViewport.md new file mode 100644 index 00000000..a79b8412 --- /dev/null +++ b/docs/GoogleViewport.md @@ -0,0 +1,10 @@ +# Flipdish.GoogleViewport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Northeast** | [**GoogleCoordinates**](GoogleCoordinates.md) | | [optional] +**Southwest** | [**GoogleCoordinates**](GoogleCoordinates.md) | | [optional] + + diff --git a/docs/Group.md b/docs/Group.md new file mode 100644 index 00000000..41863e60 --- /dev/null +++ b/docs/Group.md @@ -0,0 +1,29 @@ +# Flipdish.Group + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogGroupId** | **String** | Unique catalog group id | [optional] +**CatalogItemId** | **String** | Unique catalog item id | [optional] +**IsArchived** | **Boolean** | Returns true if the group is archived | [optional] +**MinSelectCount** | **Number** | Minimum number of items that the user has to select | [optional] +**MaxSelectCount** | **Number** | Maximum number of items that the user has to select | [optional] +**Products** | [**[ProductReference]**](ProductReference.md) | Collection of items associated with this product | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] +**GroupType** | **String** | Type of group (ModifierGroup, etc) | +**Sku** | **String** | Stock Keeping Unit (SKU) | +**Name** | **String** | Group name | +**AutogenerateDisplayText** | **Boolean** | Autogenerate display text in ordering applications | [optional] +**ImageFileName** | **String** | Image File Name | [optional] + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/GroupReference.md b/docs/GroupReference.md new file mode 100644 index 00000000..8d15cb1a --- /dev/null +++ b/docs/GroupReference.md @@ -0,0 +1,20 @@ +# Flipdish.GroupReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**Group**](Group.md) | | [optional] +**CatalogItemId** | **String** | Identifier of the ProductId to use as SubProduct | +**GroupType** | **String** | Type of the SupProduct | + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/GroupedCoordinates.md b/docs/GroupedCoordinates.md new file mode 100644 index 00000000..de8b4391 --- /dev/null +++ b/docs/GroupedCoordinates.md @@ -0,0 +1,11 @@ +# Flipdish.GroupedCoordinates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **Number** | Latitude of this coordinate | [optional] +**Longitude** | **Number** | Longitude of this coordinate | [optional] +**Count** | **Number** | Count of members in the group | [optional] + + diff --git a/docs/HasPaymentMethodResponse.md b/docs/HasPaymentMethodResponse.md new file mode 100644 index 00000000..b748c7a4 --- /dev/null +++ b/docs/HasPaymentMethodResponse.md @@ -0,0 +1,9 @@ +# Flipdish.HasPaymentMethodResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HasPaymentMethod** | **Boolean** | Has Payment Method | + + diff --git a/docs/HeartbeatApi.md b/docs/HeartbeatApi.md new file mode 100644 index 00000000..5f55b319 --- /dev/null +++ b/docs/HeartbeatApi.md @@ -0,0 +1,184 @@ +# Flipdish.HeartbeatApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**headHostname**](HeartbeatApi.md#headHostname) | **HEAD** /api/v1.0/heartbeat/Hostname | +[**headPing**](HeartbeatApi.md#headPing) | **HEAD** /api/v1.0/heartbeat | +[**hostname**](HeartbeatApi.md#hostname) | **GET** /api/v1.0/heartbeat/Hostname | +[**ping**](HeartbeatApi.md#ping) | **GET** /api/v1.0/heartbeat | + + + +## headHostname + +> Object headHostname() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HeartbeatApi(); +apiInstance.headHostname((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## headPing + +> RestApiStringResult headPing() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HeartbeatApi(); +apiInstance.headPing((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## hostname + +> Object hostname() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HeartbeatApi(); +apiInstance.hostname((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## ping + +> RestApiStringResult ping() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HeartbeatApi(); +apiInstance.ping((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/HomeAction.md b/docs/HomeAction.md new file mode 100644 index 00000000..8119af9d --- /dev/null +++ b/docs/HomeAction.md @@ -0,0 +1,27 @@ +# Flipdish.HomeAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HomeActionId** | **Number** | | [optional] +**HomeActionType** | **String** | Type of Action | [optional] +**Order** | **Number** | | [optional] +**TitleKey** | **String** | | [optional] +**ActionKey** | **String** | | [optional] +**DescriptionKey** | **String** | | [optional] +**Action** | **String** | | [optional] +**Dismissible** | **Boolean** | | [optional] + + + +## Enum: HomeActionTypeEnum + + +* `Portal` (value: `"Portal"`) + +* `External` (value: `"External"`) + + + + diff --git a/docs/HomeApi.md b/docs/HomeApi.md new file mode 100644 index 00000000..1bc71604 --- /dev/null +++ b/docs/HomeApi.md @@ -0,0 +1,200 @@ +# Flipdish.HomeApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**completeHomeAction**](HomeApi.md#completeHomeAction) | **POST** /api/v1.0/{appId}/home/{homeActionId} | +[**getHomeActions**](HomeApi.md#getHomeActions) | **GET** /api/v1.0/{appId}/home | +[**getHomeStatistics**](HomeApi.md#getHomeStatistics) | **GET** /api/v1.0/{appId}/home/stats | +[**getOktaPortalFeatureFlag**](HomeApi.md#getOktaPortalFeatureFlag) | **GET** /api/v1.0/home/okta-portal | + + + +## completeHomeAction + +> Object completeHomeAction(appId, homeActionId, isDismissed) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HomeApi(); +let appId = "appId_example"; // String | +let homeActionId = 56; // Number | +let isDismissed = true; // Boolean | +apiInstance.completeHomeAction(appId, homeActionId, isDismissed, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **homeActionId** | **Number**| | + **isDismissed** | **Boolean**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## getHomeActions + +> RestApiArrayResultHomeAction getHomeActions(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HomeApi(); +let appId = "appId_example"; // String | +apiInstance.getHomeActions(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultHomeAction**](RestApiArrayResultHomeAction.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getHomeStatistics + +> RestApiResultHomeStatistics getHomeStatistics(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HomeApi(); +let appId = "appId_example"; // String | +apiInstance.getHomeStatistics(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultHomeStatistics**](RestApiResultHomeStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getOktaPortalFeatureFlag + +> RestApiResultOktaPortalFeatureFlag getOktaPortalFeatureFlag() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HomeApi(); +apiInstance.getOktaPortalFeatureFlag((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultOktaPortalFeatureFlag**](RestApiResultOktaPortalFeatureFlag.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/HomeStatistics.md b/docs/HomeStatistics.md new file mode 100644 index 00000000..9f942d25 --- /dev/null +++ b/docs/HomeStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.HomeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalMoneySaved** | [**[CurrencyData]**](CurrencyData.md) | Money saved | [optional] + + diff --git a/docs/HttpPostedFileBase.md b/docs/HttpPostedFileBase.md new file mode 100644 index 00000000..256ddfdd --- /dev/null +++ b/docs/HttpPostedFileBase.md @@ -0,0 +1,12 @@ +# Flipdish.HttpPostedFileBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentLength** | **Number** | | [optional] [readonly] +**ContentType** | **String** | | [optional] [readonly] +**FileName** | **String** | | [optional] [readonly] +**InputStream** | [**Stream**](Stream.md) | | [optional] + + diff --git a/docs/HydraApi.md b/docs/HydraApi.md new file mode 100644 index 00000000..67816d0e --- /dev/null +++ b/docs/HydraApi.md @@ -0,0 +1,1218 @@ +# Flipdish.HydraApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignEmv**](HydraApi.md#assignEmv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId} | +[**attachStoreToKiosk**](HydraApi.md#attachStoreToKiosk) | **POST** /api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId} | +[**attachStoreToTerminal**](HydraApi.md#attachStoreToTerminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | +[**cancelEmvPayment**](HydraApi.md#cancelEmvPayment) | **POST** /api/v1.0/{appId}/hydra/cancelemvpayment/{orderId} | +[**detachStoreFromTerminal**](HydraApi.md#detachStoreFromTerminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId} | +[**getAblyToken**](HydraApi.md#getAblyToken) | **GET** /api/v1.0/hydra/ably_token | +[**getAttachedDevice**](HydraApi.md#getAttachedDevice) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/{deviceId} | +[**getAttachedDevices**](HydraApi.md#getAttachedDevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | +[**getEMVTerminalDetails**](HydraApi.md#getEMVTerminalDetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | +[**getEmvOrderState**](HydraApi.md#getEmvOrderState) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | +[**getKioskCashPaymentSettings**](HydraApi.md#getKioskCashPaymentSettings) | **GET** /api/v1.0/{appId}/kioskcashsettings/{deviceId} | +[**getKioskSettings**](HydraApi.md#getKioskSettings) | **GET** /api/v1.0/{appId}/kiosksettings/{deviceId} | +[**getRegistration**](HydraApi.md#getRegistration) | **GET** /api/v1.0/hydra/registration | +[**getSettings**](HydraApi.md#getSettings) | **GET** /api/v1.0/hydra/settings | +[**hydraCreateEmv**](HydraApi.md#hydraCreateEmv) | **POST** /api/v1.0/{appId}/emvterminals | +[**hydraDeleteEmv**](HydraApi.md#hydraDeleteEmv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | +[**hydraDetachStoreFromKiosk**](HydraApi.md#hydraDetachStoreFromKiosk) | **DELETE** /api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId} | +[**hydraGetEmvsForAppId**](HydraApi.md#hydraGetEmvsForAppId) | **GET** /api/v1.0/{appId}/emvterminals | +[**loginWithDeviceId**](HydraApi.md#loginWithDeviceId) | **POST** /api/v1.0/hydra/{deviceId}/login | +[**register**](HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | +[**unAssign**](HydraApi.md#unAssign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | +[**unassignEmv**](HydraApi.md#unassignEmv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | +[**updateKioskCashVisibilitySettings**](HydraApi.md#updateKioskCashVisibilitySettings) | **POST** /api/v1.0/{appId}/kioskupdatecashsettings | +[**updateKioskSettings**](HydraApi.md#updateKioskSettings) | **POST** /api/v1.0/{appId}/kiosksettings/{deviceId} | + + + +## assignEmv + +> assignEmv(appId, hydraConfigId, emvTerminalId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let hydraConfigId = 56; // Number | +let emvTerminalId = 56; // Number | +apiInstance.assignEmv(appId, hydraConfigId, emvTerminalId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **hydraConfigId** | **Number**| | + **emvTerminalId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## attachStoreToKiosk + +> RestApiResultHydraStatus attachStoreToKiosk(appId, storeId, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let deviceId = "deviceId_example"; // String | +apiInstance.attachStoreToKiosk(appId, storeId, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **deviceId** | **String**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## attachStoreToTerminal + +> RestApiResultHydraStatus attachStoreToTerminal(appId, deviceId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let storeId = 56; // Number | +apiInstance.attachStoreToTerminal(appId, deviceId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## cancelEmvPayment + +> cancelEmvPayment(orderId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let orderId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.cancelEmvPayment(orderId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## detachStoreFromTerminal + +> RestApiResultHydraStatus detachStoreFromTerminal(appId, deviceId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let storeId = 56; // Number | +apiInstance.detachStoreFromTerminal(appId, deviceId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getAblyToken + +> getAblyToken() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +apiInstance.getAblyToken((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getAttachedDevice + +> RestApiResultHydraDeviceDetails getAttachedDevice(appId, deviceType, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceType = "deviceType_example"; // String | +let deviceId = "deviceId_example"; // String | +apiInstance.getAttachedDevice(appId, deviceType, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceType** | **String**| | + **deviceId** | **String**| | + +### Return type + +[**RestApiResultHydraDeviceDetails**](RestApiResultHydraDeviceDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getAttachedDevices + +> RestApiPaginationResultHydraDeviceDetails getAttachedDevices(appId, deviceType, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceType = "deviceType_example"; // String | +let opts = { + 'pageIndex': 56, // Number | + 'pageSize': 56, // Number | + 'storeId': 56, // Number | + 'deviceName': "deviceName_example", // String | + 'deviceSerial': "deviceSerial_example" // String | +}; +apiInstance.getAttachedDevices(appId, deviceType, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceType** | **String**| | + **pageIndex** | **Number**| | [optional] + **pageSize** | **Number**| | [optional] + **storeId** | **Number**| | [optional] + **deviceName** | **String**| | [optional] + **deviceSerial** | **String**| | [optional] + +### Return type + +[**RestApiPaginationResultHydraDeviceDetails**](RestApiPaginationResultHydraDeviceDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getEMVTerminalDetails + +> RestApiResultPaymentTerminalDetails getEMVTerminalDetails(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +apiInstance.getEMVTerminalDetails(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultPaymentTerminalDetails**](RestApiResultPaymentTerminalDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getEmvOrderState + +> RestApiResultPaymentTerminalTransactionDetails getEmvOrderState(orderId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let orderId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.getEmvOrderState(orderId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + **appId** | **String**| | + +### Return type + +[**RestApiResultPaymentTerminalTransactionDetails**](RestApiResultPaymentTerminalTransactionDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getKioskCashPaymentSettings + +> RestApiArrayResultKioskCashPaymentSettings getKioskCashPaymentSettings(appId, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +apiInstance.getKioskCashPaymentSettings(appId, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + +### Return type + +[**RestApiArrayResultKioskCashPaymentSettings**](RestApiArrayResultKioskCashPaymentSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getKioskSettings + +> RestApiResultKioskSettings getKioskSettings(appId, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +apiInstance.getKioskSettings(appId, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## getRegistration + +> RestApiResultHydraStatus getRegistration() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +apiInstance.getRegistration((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getSettings + +> RestApiResultHydraConfig getSettings() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +apiInstance.getSettings((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultHydraConfig**](RestApiResultHydraConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## hydraCreateEmv + +> Object hydraCreateEmv(appId, emv) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let emv = new Flipdish.EmvTerminal(); // EmvTerminal | +apiInstance.hydraCreateEmv(appId, emv, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **emv** | [**EmvTerminal**](EmvTerminal.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## hydraDeleteEmv + +> Object hydraDeleteEmv(appId, id) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let id = 56; // Number | +apiInstance.hydraDeleteEmv(appId, id, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **id** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## hydraDetachStoreFromKiosk + +> RestApiResultHydraStatus hydraDetachStoreFromKiosk(appId, storeId, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let deviceId = "deviceId_example"; // String | +apiInstance.hydraDetachStoreFromKiosk(appId, storeId, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **deviceId** | **String**| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## hydraGetEmvsForAppId + +> RestApiArrayResultEmvTerminalWithAssignments hydraGetEmvsForAppId(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +apiInstance.hydraGetEmvsForAppId(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultEmvTerminalWithAssignments**](RestApiArrayResultEmvTerminalWithAssignments.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## loginWithDeviceId + +> loginWithDeviceId(deviceId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let deviceId = "deviceId_example"; // String | +let opts = { + 'hydraUserType': "hydraUserType_example", // String | + 'serialNumber': "serialNumber_example" // String | +}; +apiInstance.loginWithDeviceId(deviceId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deviceId** | **String**| | + **hydraUserType** | **String**| | [optional] + **serialNumber** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## register + +> RestApiResultHydraStatus register(appId, hydraRegistration) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let hydraRegistration = new Flipdish.HydraRegistrationRequest(); // HydraRegistrationRequest | +apiInstance.register(appId, hydraRegistration, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **hydraRegistration** | [**HydraRegistrationRequest**](HydraRegistrationRequest.md)| | + +### Return type + +[**RestApiResultHydraStatus**](RestApiResultHydraStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## unAssign + +> unAssign(appId, deviceId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +apiInstance.unAssign(appId, deviceId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## unassignEmv + +> unassignEmv(appId, hydraConfigId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let hydraConfigId = 56; // Number | +apiInstance.unassignEmv(appId, hydraConfigId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **hydraConfigId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateKioskCashVisibilitySettings + +> updateKioskCashVisibilitySettings(appId, deviceId, isCashEnabled) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let isCashEnabled = true; // Boolean | +apiInstance.updateKioskCashVisibilitySettings(appId, deviceId, isCashEnabled, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **isCashEnabled** | **Boolean**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateKioskSettings + +> updateKioskSettings(appId, deviceId, settings) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.HydraApi(); +let appId = "appId_example"; // String | +let deviceId = "deviceId_example"; // String | +let settings = new Flipdish.KioskSettings(); // KioskSettings | +apiInstance.updateKioskSettings(appId, deviceId, settings, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **deviceId** | **String**| | + **settings** | [**KioskSettings**](KioskSettings.md)| | + +### Return type + +null (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 + diff --git a/docs/HydraAssignedEvent.md b/docs/HydraAssignedEvent.md new file mode 100644 index 00000000..1dffc309 --- /dev/null +++ b/docs/HydraAssignedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.HydraAssignedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**HydraStatus** | [**HydraStatus**](HydraStatus.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/HydraConfig.md b/docs/HydraConfig.md new file mode 100644 index 00000000..d65f87d8 --- /dev/null +++ b/docs/HydraConfig.md @@ -0,0 +1,28 @@ +# Flipdish.HydraConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MinimumVersion** | **String** | Minimum version | +**PaymentOptions** | **[String]** | Payment options | +**DeviceSettings** | [**DeviceSettings**](DeviceSettings.md) | | +**Version** | **String** | Version of the device | [optional] +**BuildNumber** | **String** | Build number of the device | [optional] +**GitSha** | **String** | SHA of the commit | [optional] +**GitBranch** | **String** | Build branch | [optional] + + + +## Enum: [PaymentOptionsEnum] + + +* `Online` (value: `"Online"`) + +* `Emv` (value: `"Emv"`) + +* `Counter` (value: `"Counter"`) + + + + diff --git a/docs/HydraConnectionStatusChangedEvent.md b/docs/HydraConnectionStatusChangedEvent.md new file mode 100644 index 00000000..1db76537 --- /dev/null +++ b/docs/HydraConnectionStatusChangedEvent.md @@ -0,0 +1,31 @@ +# Flipdish.HydraConnectionStatusChangedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Hydra Device Id | [optional] +**HydraDeviceStatus** | **String** | Hydra Device Status | [optional] +**PollTime** | **Date** | Hydra Last Poll Time | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: HydraDeviceStatusEnum + + +* `Online` (value: `"Online"`) + +* `PossiblyOffline` (value: `"PossiblyOffline"`) + +* `Offline` (value: `"Offline"`) + + + + diff --git a/docs/HydraDeviceDetails.md b/docs/HydraDeviceDetails.md new file mode 100644 index 00000000..0467700b --- /dev/null +++ b/docs/HydraDeviceDetails.md @@ -0,0 +1,46 @@ +# Flipdish.HydraDeviceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HydraConfigId** | **Number** | Flipdish internal device identifier | [optional] +**DeviceId** | **String** | Device Id | [optional] +**SerialNumber** | **String** | Serial Number | [optional] +**DeviceType** | **String** | Type of the device | [optional] +**Status** | **String** | Status of the device | [optional] +**DeviceName** | **String** | Device Name | [optional] +**StoreNames** | [**[HydraStoreData]**](HydraStoreData.md) | Store Names | [optional] +**LastPollUtc** | **Date** | Last poll time in UTC | [optional] +**Version** | **String** | Version of the device | [optional] +**BuildNumber** | **String** | Build number of the device | [optional] +**GitSha** | **String** | SHA of the commit | [optional] +**GitBranch** | **String** | Build branch | [optional] + + + +## Enum: DeviceTypeEnum + + +* `Kiosk` (value: `"Kiosk"`) + +* `Terminal` (value: `"Terminal"`) + +* `LegacyPrinter` (value: `"LegacyPrinter"`) + + + + + +## Enum: StatusEnum + + +* `Online` (value: `"Online"`) + +* `PossiblyOffline` (value: `"PossiblyOffline"`) + +* `Offline` (value: `"Offline"`) + + + + diff --git a/docs/HydraRegistrationRequest.md b/docs/HydraRegistrationRequest.md new file mode 100644 index 00000000..38dfab6c --- /dev/null +++ b/docs/HydraRegistrationRequest.md @@ -0,0 +1,11 @@ +# Flipdish.HydraRegistrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreIds** | **[Number]** | Stores to assign the hydra | +**DeviceName** | **String** | Hydra device name | +**PinCode** | **Number** | 6 digit PIN code (not starting with zero). | [optional] + + diff --git a/docs/HydraRequestResetEvent.md b/docs/HydraRequestResetEvent.md new file mode 100644 index 00000000..c00d6ce5 --- /dev/null +++ b/docs/HydraRequestResetEvent.md @@ -0,0 +1,16 @@ +# Flipdish.HydraRequestResetEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/HydraSettingChangedEvent.md b/docs/HydraSettingChangedEvent.md new file mode 100644 index 00000000..baf74888 --- /dev/null +++ b/docs/HydraSettingChangedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.HydraSettingChangedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**HydraConfig** | [**HydraConfig**](HydraConfig.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/HydraStatus.md b/docs/HydraStatus.md new file mode 100644 index 00000000..6d81b5ad --- /dev/null +++ b/docs/HydraStatus.md @@ -0,0 +1,27 @@ +# Flipdish.HydraStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **String** | | +**StoreIds** | **[Number]** | Store to assign the hydra | [optional] +**IsRegistered** | **Boolean** | The device has been already registered | +**PinCode** | **Number** | 6 digit PIN code (not starting with zero). | [optional] +**Images** | **[String]** | Hydra images (covers) | [optional] +**UserType** | **String** | Hydra User Type | [optional] + + + +## Enum: UserTypeEnum + + +* `Kiosk` (value: `"Kiosk"`) + +* `Terminal` (value: `"Terminal"`) + +* `LegacyPrinter` (value: `"LegacyPrinter"`) + + + + diff --git a/docs/HydraStoreAssignedEvent.md b/docs/HydraStoreAssignedEvent.md new file mode 100644 index 00000000..c10a6b1d --- /dev/null +++ b/docs/HydraStoreAssignedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.HydraStoreAssignedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**StoreIds** | **[Number]** | Store\\s to assign hydra to | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/HydraStoreData.md b/docs/HydraStoreData.md new file mode 100644 index 00000000..5d80dd86 --- /dev/null +++ b/docs/HydraStoreData.md @@ -0,0 +1,10 @@ +# Flipdish.HydraStoreData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Id of the store | [optional] +**StoreName** | **String** | Name of the store | [optional] + + diff --git a/docs/HydraStoreUnassignedEvent.md b/docs/HydraStoreUnassignedEvent.md new file mode 100644 index 00000000..5da6df92 --- /dev/null +++ b/docs/HydraStoreUnassignedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.HydraStoreUnassignedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**StoreIds** | **[Number]** | Store\\s to unassign hydra from | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/HydraUnAssignedEvent.md b/docs/HydraUnAssignedEvent.md new file mode 100644 index 00000000..f7c918cf --- /dev/null +++ b/docs/HydraUnAssignedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.HydraUnAssignedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**HydraStatus** | [**HydraStatus**](HydraStatus.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/IndexPage.md b/docs/IndexPage.md new file mode 100644 index 00000000..97bcd02b --- /dev/null +++ b/docs/IndexPage.md @@ -0,0 +1,24 @@ +# Flipdish.IndexPage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Testimonials** | [**[WebsiteTestimonial]**](WebsiteTestimonial.md) | Testimonials | [optional] +**Images** | [**[WebsiteImage]**](WebsiteImage.md) | Images | [optional] +**AboutSectionEnabled** | **Boolean** | About section enabled | [optional] +**AboutSectionTitle** | **String** | About section title | [optional] +**AboutSectionSubtitle** | **String** | About section sub-title | [optional] +**AboutSectionLeftTitle** | **String** | About section title left | [optional] +**AboutSectionLeftBody** | **String** | About section text left | [optional] +**AboutSectionRightTitle** | **String** | About section title right | [optional] +**AboutSectionRightBody** | **String** | About section text right | [optional] +**OpeningHoursEnabled** | **Boolean** | Opening hours section Enabled | [optional] +**MenuPreviewEnabled** | **Boolean** | Menu Preview section Enabled | [optional] +**GalleryEnabled** | **Boolean** | Gallery section enabled | [optional] +**TestimonialsEnabled** | **Boolean** | Testimonials section Enabled | [optional] +**ContactFormEnabled** | **Boolean** | Contact Form section Enabled | [optional] +**ContactFormEmail** | **String** | Contact Form Email | [optional] +**MapEnabled** | **Boolean** | Map section Enabled | [optional] + + diff --git a/docs/IndexPageBase.md b/docs/IndexPageBase.md new file mode 100644 index 00000000..f5bb467d --- /dev/null +++ b/docs/IndexPageBase.md @@ -0,0 +1,22 @@ +# Flipdish.IndexPageBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AboutSectionEnabled** | **Boolean** | About section enabled | [optional] +**AboutSectionTitle** | **String** | About section title | [optional] +**AboutSectionSubtitle** | **String** | About section sub-title | [optional] +**AboutSectionLeftTitle** | **String** | About section title left | [optional] +**AboutSectionLeftBody** | **String** | About section text left | [optional] +**AboutSectionRightTitle** | **String** | About section title right | [optional] +**AboutSectionRightBody** | **String** | About section text right | [optional] +**OpeningHoursEnabled** | **Boolean** | Opening hours section Enabled | [optional] +**MenuPreviewEnabled** | **Boolean** | Menu Preview section Enabled | [optional] +**GalleryEnabled** | **Boolean** | Gallery section enabled | [optional] +**TestimonialsEnabled** | **Boolean** | Testimonials section Enabled | [optional] +**ContactFormEnabled** | **Boolean** | Contact Form section Enabled | [optional] +**ContactFormEmail** | **String** | Contact Form Email | [optional] +**MapEnabled** | **Boolean** | Map section Enabled | [optional] + + diff --git a/docs/IntercomApi.md b/docs/IntercomApi.md new file mode 100644 index 00000000..950ad534 --- /dev/null +++ b/docs/IntercomApi.md @@ -0,0 +1,52 @@ +# Flipdish.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 + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.IntercomApi(); +apiInstance.userHash((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/IntercomUserHash.md b/docs/IntercomUserHash.md new file mode 100644 index 00000000..396942d3 --- /dev/null +++ b/docs/IntercomUserHash.md @@ -0,0 +1,9 @@ +# Flipdish.IntercomUserHash + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserHash** | **String** | User hash | [optional] + + diff --git a/docs/Invoice.md b/docs/Invoice.md new file mode 100644 index 00000000..5f109e49 --- /dev/null +++ b/docs/Invoice.md @@ -0,0 +1,11 @@ +# Flipdish.Invoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InvoiceNumber** | **String** | Invoice Number | [optional] +**StartDay** | **Date** | The start day of the invoice period. | [optional] +**EndDay** | **Date** | The end day of the invoice period. | [optional] + + diff --git a/docs/InvoiceDiscount.md b/docs/InvoiceDiscount.md new file mode 100644 index 00000000..0d340a68 --- /dev/null +++ b/docs/InvoiceDiscount.md @@ -0,0 +1,10 @@ +# Flipdish.InvoiceDiscount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name | +**Amount** | **Number** | Amount | + + diff --git a/docs/InvoiceItem.md b/docs/InvoiceItem.md new file mode 100644 index 00000000..7ee4171c --- /dev/null +++ b/docs/InvoiceItem.md @@ -0,0 +1,14 @@ +# Flipdish.InvoiceItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **String** | Description | +**Quantity** | **Number** | Quantity | +**UnitAmountExcludingTax** | **Number** | Unit Amount Excluding Tax | +**Tax** | **Number** | Tax | +**Amount** | **Number** | Amount | +**Period** | [**InvoicePeriod**](InvoicePeriod.md) | | + + diff --git a/docs/InvoicePeriod.md b/docs/InvoicePeriod.md new file mode 100644 index 00000000..924342b6 --- /dev/null +++ b/docs/InvoicePeriod.md @@ -0,0 +1,10 @@ +# Flipdish.InvoicePeriod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Start** | **Date** | Start | [optional] +**End** | **Date** | End | [optional] + + diff --git a/docs/InvoicesApi.md b/docs/InvoicesApi.md new file mode 100644 index 00000000..a6950997 --- /dev/null +++ b/docs/InvoicesApi.md @@ -0,0 +1,246 @@ +# Flipdish.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(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.InvoicesApi(); +let appId = "appId_example"; // String | +let opts = { + 'subscriptionId': "subscriptionId_example", // String | + 'limit': 56, // Number | + 'pageId': "pageId_example", // String | + 'excludeNotOwnedInvoices': true, // Boolean | + 'dateFrom': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'dateTo': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'invoiceNumber': "invoiceNumber_example", // String | + 'storeId': [null] // [Number] | +}; +apiInstance.getInvoices(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **subscriptionId** | **String**| | [optional] + **limit** | **Number**| | [optional] + **pageId** | **String**| | [optional] + **excludeNotOwnedInvoices** | **Boolean**| | [optional] + **dateFrom** | **Date**| | [optional] + **dateTo** | **Date**| | [optional] + **invoiceNumber** | **String**| | [optional] + **storeId** | [**[Number]**](Number.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, Data, Message, ErrorCode, StackTrace + + +## invoicePdf + +> invoicePdf(invoiceNumber, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.InvoicesApi(); +let invoiceNumber = "invoiceNumber_example"; // String | +let appId = "appId_example"; // String | +apiInstance.invoicePdf(invoiceNumber, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invoiceNumber** | **String**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## listInvoices + +> RestApiFinanceSearchPaginationResultInvoice listInvoices(storeId, appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.InvoicesApi(); +let storeId = 56; // Number | +let appId = "appId_example"; // String | +let opts = { + 'limit': 56, // Number | + 'page': 56 // Number | +}; +apiInstance.listInvoices(storeId, appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **appId** | **String**| | + **limit** | **Number**| | [optional] + **page** | **Number**| | [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, Data + + +## listSubscriptionInvoices + +> RestApiFinanceSearchPaginationResultSubscriptionInvoice listSubscriptionInvoices(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.InvoicesApi(); +let appId = "appId_example"; // String | +let opts = { + 'subscriptionId': "subscriptionId_example", // String | + 'limit': 56, // Number | + 'pageId': "pageId_example", // String | + 'excludeNotOwnedInvoices': true, // Boolean | + 'dateFrom': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'dateTo': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'invoiceNumber': "invoiceNumber_example", // String | + 'storeId': [null] // [Number] | +}; +apiInstance.listSubscriptionInvoices(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **subscriptionId** | **String**| | [optional] + **limit** | **Number**| | [optional] + **pageId** | **String**| | [optional] + **excludeNotOwnedInvoices** | **Boolean**| | [optional] + **dateFrom** | **Date**| | [optional] + **dateTo** | **Date**| | [optional] + **invoiceNumber** | **String**| | [optional] + **storeId** | [**[Number]**](Number.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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/ItemNutritionInfoAddUpdateModel.md b/docs/ItemNutritionInfoAddUpdateModel.md new file mode 100644 index 00000000..e0f0bf4b --- /dev/null +++ b/docs/ItemNutritionInfoAddUpdateModel.md @@ -0,0 +1,9 @@ +# Flipdish.ItemNutritionInfoAddUpdateModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Labels** | [**[NutritionInfoItemAddUpdateLabelModel]**](NutritionInfoItemAddUpdateLabelModel.md) | | [optional] + + diff --git a/docs/ItemNutritionInfoV2AddUpdateModel.md b/docs/ItemNutritionInfoV2AddUpdateModel.md new file mode 100644 index 00000000..34b41f2c --- /dev/null +++ b/docs/ItemNutritionInfoV2AddUpdateModel.md @@ -0,0 +1,9 @@ +# Flipdish.ItemNutritionInfoV2AddUpdateModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllergenIds** | **[String]** | | [optional] + + diff --git a/docs/JobAddress.md b/docs/JobAddress.md new file mode 100644 index 00000000..a60a0ba7 --- /dev/null +++ b/docs/JobAddress.md @@ -0,0 +1,14 @@ +# Flipdish.JobAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Street** | **String** | Street | [optional] +**Postcode** | **String** | Postcode | [optional] +**City** | **String** | City | [optional] +**Country** | **String** | Country | [optional] +**Zone** | **String** | Zone | [optional] +**FormattedAddress** | **String** | Formatted Address | [optional] + + diff --git a/docs/JobCancellation.md b/docs/JobCancellation.md new file mode 100644 index 00000000..9f165efd --- /dev/null +++ b/docs/JobCancellation.md @@ -0,0 +1,11 @@ +# Flipdish.JobCancellation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanceledBy** | **String** | Canceled By | [optional] +**ReasonKey** | **String** | Reason Key | [optional] +**Comment** | **String** | Comment | [optional] + + diff --git a/docs/JobContact.md b/docs/JobContact.md new file mode 100644 index 00000000..3469b0dd --- /dev/null +++ b/docs/JobContact.md @@ -0,0 +1,14 @@ +# Flipdish.JobContact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Firstname** | **String** | Firstname | [optional] +**Lastname** | **String** | Lastname | [optional] +**Phone** | **String** | Phone | [optional] +**Email** | **String** | Email | [optional] +**Company** | **String** | Company | [optional] +**CompanyName** | **String** | Company Name | [optional] + + diff --git a/docs/JobDelivery.md b/docs/JobDelivery.md new file mode 100644 index 00000000..a8098f69 --- /dev/null +++ b/docs/JobDelivery.md @@ -0,0 +1,21 @@ +# Flipdish.JobDelivery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id | [optional] +**Status** | **String** | Status | [optional] +**PickedAt** | **String** | Picked At | [optional] +**DeliveredAt** | **String** | Delivered At | [optional] +**TrackingUrl** | **String** | Tracking Url | [optional] +**ClientReference** | **String** | Client Reference | [optional] +**PackageDescription** | **String** | Package Description | [optional] +**PackageType** | **String** | Package Type | [optional] +**Pickup** | [**JobDeliveryDetail**](JobDeliveryDetail.md) | | [optional] +**Dropoff** | [**JobDeliveryDetail**](JobDeliveryDetail.md) | | [optional] +**Eta** | [**JobEta**](JobEta.md) | | [optional] +**Cancellation** | [**JobCancellation**](JobCancellation.md) | | [optional] +**Proof** | [**JobProof**](JobProof.md) | | [optional] + + diff --git a/docs/JobDeliveryDetail.md b/docs/JobDeliveryDetail.md new file mode 100644 index 00000000..60691e54 --- /dev/null +++ b/docs/JobDeliveryDetail.md @@ -0,0 +1,14 @@ +# Flipdish.JobDeliveryDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id | [optional] +**Latitude** | **Number** | Latitude | [optional] +**Longitude** | **Number** | Longitude | [optional] +**Comment** | **String** | Comment | [optional] +**Address** | [**JobAddress**](JobAddress.md) | | [optional] +**Contact** | [**JobContact**](JobContact.md) | | [optional] + + diff --git a/docs/JobDriver.md b/docs/JobDriver.md new file mode 100644 index 00000000..d843bf76 --- /dev/null +++ b/docs/JobDriver.md @@ -0,0 +1,15 @@ +# Flipdish.JobDriver + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id | [optional] +**DisplayName** | **String** | Display Name | [optional] +**Phone** | **String** | Phone | [optional] +**PictureUrl** | **String** | Picture Url | [optional] +**TransportType** | **String** | Transport Type | [optional] +**Latitude** | **Number** | Latitude | [optional] +**Longitude** | **Number** | Longitude | [optional] + + diff --git a/docs/JobEta.md b/docs/JobEta.md new file mode 100644 index 00000000..72aaad3f --- /dev/null +++ b/docs/JobEta.md @@ -0,0 +1,10 @@ +# Flipdish.JobEta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pickup** | **String** | Pickup | [optional] +**Dropoff** | **String** | Dropoff | [optional] + + diff --git a/docs/JobPricing.md b/docs/JobPricing.md new file mode 100644 index 00000000..d30dda14 --- /dev/null +++ b/docs/JobPricing.md @@ -0,0 +1,14 @@ +# Flipdish.JobPricing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **String** | Currency | [optional] +**TaxPercentage** | **Number** | Tax Percentage | [optional] +**PriceTaxIncluded** | **Number** | Price Tax Included | [optional] +**PriceTaxExcluded** | **Number** | Price Tax Excluded | [optional] +**TaxAmount** | **Number** | Tax Amount | [optional] +**InvoiceUrl** | **String** | Invoice Url | [optional] + + diff --git a/docs/JobProof.md b/docs/JobProof.md new file mode 100644 index 00000000..3198bcc8 --- /dev/null +++ b/docs/JobProof.md @@ -0,0 +1,9 @@ +# Flipdish.JobProof + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignatureUrl** | **String** | Signature Url | [optional] + + diff --git a/docs/JobResponse.md b/docs/JobResponse.md new file mode 100644 index 00000000..b12d34c6 --- /dev/null +++ b/docs/JobResponse.md @@ -0,0 +1,22 @@ +# Flipdish.JobResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Id | [optional] +**CreatedAt** | **Date** | Created At | [optional] +**Status** | **String** | Status | [optional] +**PackageType** | **String** | Package Type | [optional] +**TransportType** | **String** | Transport Type | [optional] +**AssignmentCode** | **String** | Assignment Code | [optional] +**PickupAt** | **String** | Pickup At | [optional] +**DropoffAt** | **String** | Dropoff At | [optional] +**Comment** | **String** | Comment | [optional] +**Distance** | **Number** | Distance | [optional] +**Duration** | **Number** | Duration | [optional] +**Deliveries** | [**[JobDelivery]**](JobDelivery.md) | Deliveries | [optional] +**Pricing** | [**JobPricing**](JobPricing.md) | | [optional] +**Driver** | [**JobDriver**](JobDriver.md) | | [optional] + + diff --git a/docs/KioskBluetoothInstallUpdateInitiateEvent.md b/docs/KioskBluetoothInstallUpdateInitiateEvent.md new file mode 100644 index 00000000..1d122a24 --- /dev/null +++ b/docs/KioskBluetoothInstallUpdateInitiateEvent.md @@ -0,0 +1,35 @@ +# Flipdish.KioskBluetoothInstallUpdateInitiateEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/KioskBluetoothPairingModeEvent.md b/docs/KioskBluetoothPairingModeEvent.md new file mode 100644 index 00000000..bcac7af5 --- /dev/null +++ b/docs/KioskBluetoothPairingModeEvent.md @@ -0,0 +1,35 @@ +# Flipdish.KioskBluetoothPairingModeEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/KioskBluetoothTerminalCancelUpdateEvent.md b/docs/KioskBluetoothTerminalCancelUpdateEvent.md new file mode 100644 index 00000000..8a567587 --- /dev/null +++ b/docs/KioskBluetoothTerminalCancelUpdateEvent.md @@ -0,0 +1,35 @@ +# Flipdish.KioskBluetoothTerminalCancelUpdateEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md b/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md new file mode 100644 index 00000000..699298fd --- /dev/null +++ b/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md @@ -0,0 +1,37 @@ +# Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**SerialNumber** | **String** | Serial Number of the device | [optional] +**HasFirmwareUpdate** | **Boolean** | Indicates if Payment Terminal has Firmware Update | [optional] +**HasConfigUpdate** | **Boolean** | Indicates if Payment Terminal has Config Update | [optional] +**HasKeyUpdate** | **Boolean** | Indicates if Payment Terminal has Key Update | [optional] +**UpdateTimeEstimate** | **String** | ETA to install the update | [optional] +**UserEventInfo** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: UpdateTimeEstimateEnum + + +* `LessThanOneMinute` (value: `"LessThanOneMinute"`) + +* `OneToTwoMinutes` (value: `"OneToTwoMinutes"`) + +* `TwoToFiveMinutes` (value: `"TwoToFiveMinutes"`) + +* `FiveToFifteenMinutes` (value: `"FiveToFifteenMinutes"`) + + + + diff --git a/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md b/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md new file mode 100644 index 00000000..1eb99696 --- /dev/null +++ b/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md @@ -0,0 +1,17 @@ +# Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/KioskBluetoothTerminalInstallationStatusEvent.md b/docs/KioskBluetoothTerminalInstallationStatusEvent.md new file mode 100644 index 00000000..6832c5bd --- /dev/null +++ b/docs/KioskBluetoothTerminalInstallationStatusEvent.md @@ -0,0 +1,37 @@ +# Flipdish.KioskBluetoothTerminalInstallationStatusEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**BluetoothTerminalSerialNumber** | **String** | Serial number of the terminal | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Progress** | **Number** | Update Install Progress for Card Reader | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/KioskBluetoothTerminalUnpairedEvent.md b/docs/KioskBluetoothTerminalUnpairedEvent.md new file mode 100644 index 00000000..2866d208 --- /dev/null +++ b/docs/KioskBluetoothTerminalUnpairedEvent.md @@ -0,0 +1,35 @@ +# Flipdish.KioskBluetoothTerminalUnpairedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/KioskBluetoothTerminalUpdatedEvent.md b/docs/KioskBluetoothTerminalUpdatedEvent.md new file mode 100644 index 00000000..2fc0dde5 --- /dev/null +++ b/docs/KioskBluetoothTerminalUpdatedEvent.md @@ -0,0 +1,37 @@ +# Flipdish.KioskBluetoothTerminalUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**BluetoothTerminalSerialNumber** | **String** | Serial number of the terminal | [optional] +**BluetoothTerminalStatus** | [**BluetoothTerminalStatus**](BluetoothTerminalStatus.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/KioskBluetoothUnpairingModeEvent.md b/docs/KioskBluetoothUnpairingModeEvent.md new file mode 100644 index 00000000..8dc9b0ea --- /dev/null +++ b/docs/KioskBluetoothUnpairingModeEvent.md @@ -0,0 +1,35 @@ +# Flipdish.KioskBluetoothUnpairingModeEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | **String** | Device Id of the Kiosk | [optional] +**BluetoothTerminalType** | **String** | Terminal Type | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/KioskCashPaymentSettings.md b/docs/KioskCashPaymentSettings.md new file mode 100644 index 00000000..0e6de337 --- /dev/null +++ b/docs/KioskCashPaymentSettings.md @@ -0,0 +1,10 @@ +# Flipdish.KioskCashPaymentSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCashVisibleToCustomer** | **Boolean** | false :disable cash on kiosk true :enable cash on kiosk | [optional] +**UserId** | **Number** | HydraUser ID of the Device | [optional] + + diff --git a/docs/KioskEntitlementsApi.md b/docs/KioskEntitlementsApi.md new file mode 100644 index 00000000..a40ac01e --- /dev/null +++ b/docs/KioskEntitlementsApi.md @@ -0,0 +1,56 @@ +# Flipdish.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(orgId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.KioskEntitlementsApi(); +let orgId = "orgId_example"; // String | +apiInstance.queryKioskEntitlementsByOrgId(orgId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/KioskEntitlementsResult.md b/docs/KioskEntitlementsResult.md new file mode 100644 index 00000000..9c567f24 --- /dev/null +++ b/docs/KioskEntitlementsResult.md @@ -0,0 +1,10 @@ +# Flipdish.KioskEntitlementsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntitledQuantity** | **Number** | Number of kiosk devices entitled | [optional] +**UsedQuantity** | **Number** | The quantity of entitlements that have been used | [optional] + + diff --git a/docs/KioskIotApi.md b/docs/KioskIotApi.md new file mode 100644 index 00000000..dd982217 --- /dev/null +++ b/docs/KioskIotApi.md @@ -0,0 +1,102 @@ +# Flipdish.KioskIotApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getKioskIotConnection**](KioskIotApi.md#getKioskIotConnection) | **POST** /api/v1.0/kioskiot/connect | +[**queryTelemetrySeries**](KioskIotApi.md#queryTelemetrySeries) | **POST** /api/v1.0/{appId}/kioskiot/timeseries/query | + + + +## getKioskIotConnection + +> RestApiResultKioskIotConnectionParameters getKioskIotConnection() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.KioskIotApi(); +apiInstance.getKioskIotConnection((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultKioskIotConnectionParameters**](RestApiResultKioskIotConnectionParameters.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## queryTelemetrySeries + +> RestApiResultTelemetrySeriesResult queryTelemetrySeries(appId, queryParams) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.KioskIotApi(); +let appId = "appId_example"; // String | +let queryParams = new Flipdish.TelemetrySeriesQueryParameters(); // TelemetrySeriesQueryParameters | +apiInstance.queryTelemetrySeries(appId, queryParams, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **queryParams** | [**TelemetrySeriesQueryParameters**](TelemetrySeriesQueryParameters.md)| | + +### Return type + +[**RestApiResultTelemetrySeriesResult**](RestApiResultTelemetrySeriesResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/KioskIotConnectionParameters.md b/docs/KioskIotConnectionParameters.md new file mode 100644 index 00000000..9ba9fc9f --- /dev/null +++ b/docs/KioskIotConnectionParameters.md @@ -0,0 +1,9 @@ +# Flipdish.KioskIotConnectionParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectionString** | **String** | The device connection string to the IoT server | [optional] + + diff --git a/docs/KioskSettings.md b/docs/KioskSettings.md new file mode 100644 index 00000000..b3ba8c27 --- /dev/null +++ b/docs/KioskSettings.md @@ -0,0 +1,10 @@ +# Flipdish.KioskSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HideLogoFromFrontPage** | **Boolean** | Hide logo from front page | [optional] +**TwoColumnMenuLayout** | **Boolean** | 2 Column Menu Layout | [optional] + + diff --git a/docs/KioskTerminalActionStateChangedEvent.md b/docs/KioskTerminalActionStateChangedEvent.md new file mode 100644 index 00000000..23a8cd9b --- /dev/null +++ b/docs/KioskTerminalActionStateChangedEvent.md @@ -0,0 +1,36 @@ +# Flipdish.KioskTerminalActionStateChangedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReaderId** | **String** | Card reader id | [optional] +**BluetoothTerminalType** | **String** | Terminal type | [optional] +**ActionState** | **String** | Action state. success or fail | [optional] +**FailureCode** | **String** | Failure code if processing is failed | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: BluetoothTerminalTypeEnum + + +* `CHIPPER_2X` (value: `"CHIPPER_2X"`) + +* `COTS_DEVICE` (value: `"COTS_DEVICE"`) + +* `VERIFONE_P400` (value: `"VERIFONE_P400"`) + +* `WISEPAD_3` (value: `"WISEPAD_3"`) + +* `WISEPOS_E` (value: `"WISEPOS_E"`) + + + + diff --git a/docs/Language.md b/docs/Language.md new file mode 100644 index 00000000..6377ce98 --- /dev/null +++ b/docs/Language.md @@ -0,0 +1,12 @@ +# Flipdish.Language + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LanguageId** | **String** | ISO 639-1 Language Code | [optional] +**DisplayOrder** | **Number** | Display Order | [optional] +**Name** | **String** | Language Name | [optional] +**Enabled** | **Boolean** | Is the language enabled for use. | [optional] + + diff --git a/docs/LastPaymentError.md b/docs/LastPaymentError.md new file mode 100644 index 00000000..f9fbbd87 --- /dev/null +++ b/docs/LastPaymentError.md @@ -0,0 +1,11 @@ +# Flipdish.LastPaymentError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **String** | For some errors that could be handled programmatically, a short string indicating the error code reported. | [optional] +**DeclineCode** | **String** | For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one. | [optional] +**Message** | **String** | A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. | [optional] + + diff --git a/docs/LeadTime.md b/docs/LeadTime.md new file mode 100644 index 00000000..925f1527 --- /dev/null +++ b/docs/LeadTime.md @@ -0,0 +1,10 @@ +# Flipdish.LeadTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DispatchType** | **String** | There are two valid values for this field - `collection` and `delivery`. | +**LeadTimeMinutes** | **Number** | This must be a positive integer. | + + diff --git a/docs/LightspeedApi.md b/docs/LightspeedApi.md new file mode 100644 index 00000000..5593f6ee --- /dev/null +++ b/docs/LightspeedApi.md @@ -0,0 +1,154 @@ +# Flipdish.LightspeedApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**lightspeedGenerateMenu**](LightspeedApi.md#lightspeedGenerateMenu) | **POST** /api/v1.0/lightspeed/{storeId}/menu/generate | +[**lightspeedGetStoreSettings**](LightspeedApi.md#lightspeedGetStoreSettings) | **GET** /api/v1.0/lightspeed/{storeId}/settings | +[**lightspeedSaveStoreSettings**](LightspeedApi.md#lightspeedSaveStoreSettings) | **POST** /api/v1.0/lightspeed/{storeId}/settings | + + + +## lightspeedGenerateMenu + +> Object lightspeedGenerateMenu(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LightspeedApi(); +let storeId = 56; // Number | +apiInstance.lightspeedGenerateMenu(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## lightspeedGetStoreSettings + +> RestApiResultLightspeedSettings lightspeedGetStoreSettings(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LightspeedApi(); +let storeId = 56; // Number | +apiInstance.lightspeedGetStoreSettings(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**RestApiResultLightspeedSettings**](RestApiResultLightspeedSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## lightspeedSaveStoreSettings + +> RestApiResultLightspeedSettings lightspeedSaveStoreSettings(storeId, lightspeedSettings) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LightspeedApi(); +let storeId = 56; // Number | +let lightspeedSettings = new Flipdish.LightspeedSettings(); // LightspeedSettings | +apiInstance.lightspeedSaveStoreSettings(storeId, lightspeedSettings, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **lightspeedSettings** | [**LightspeedSettings**](LightspeedSettings.md)| | + +### Return type + +[**RestApiResultLightspeedSettings**](RestApiResultLightspeedSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/LightspeedSettings.md b/docs/LightspeedSettings.md new file mode 100644 index 00000000..d67e745f --- /dev/null +++ b/docs/LightspeedSettings.md @@ -0,0 +1,44 @@ +# Flipdish.LightspeedSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CompanyId** | **String** | Company Id | [optional] +**UseOAuth** | **Boolean** | Use OAuth for authentication | [optional] +**Enabled** | **Boolean** | Enabled | [optional] +**EstimatedMinutesForDelivery** | **Number** | Estimated minutes for delivery | [optional] +**EstimatedMinutesForCollection** | **Number** | Estimated minutes for collection | [optional] +**GeographicLocation** | **String** | Geographic location (euc1, nae1, euw2, ....)) | [optional] +**Establishment** | **Boolean** | Is the CompanyId an establishment (kind of the store of a group of store) | [optional] +**VoucherId** | **String** | The Lightspeed voucher identifier to map with our | [optional] +**DeliveryFeeId** | **String** | The Lightspeed delivery fee identifier to map with our | [optional] +**ProcessingFeeId** | **String** | The Lightspeed processing fee identifier to map with our | [optional] +**PriceType** | **String** | Which price to choose from Lightspeed menu | [optional] +**MenuId** | **Number** | The menu id of the store | [optional] +**CollectionTableId** | **Number** | Collection Table ID to send orders | [optional] +**DeliveryTableId** | **Number** | Delivery Table ID to send orders | [optional] +**CollectionTableIds** | **{String: String}** | Collection Table IDs to send orders to | [optional] +**DeliveryTableIds** | **{String: String}** | Delivery Table IDs to send orders to | [optional] +**UseTaxInclusivePrices** | **Boolean** | Exclude tax | [optional] +**SkipStatusCheckAndAcceptOrderAfterSending** | **Boolean** | WARNING: only use this option if the Liteserver is not synchronizing within max 5 minutes with Lightspeed cloud! | [optional] +**SendTableNumberToTableId** | **Boolean** | Send Table Number to Table Id | [optional] +**AddChefNoteToProduct** | **Boolean** | Add ChefNote To Product | [optional] +**ChefNoteItemId** | **String** | The Lightspeed Chef Note Item Id to map | [optional] +**ChefNoteModifierId** | **String** | The Lightspeed Chef Note Modifier Id to map | [optional] +**ServiceChargeId** | **String** | The Lightspeed Service Charge Id to map | [optional] + + + +## Enum: PriceTypeEnum + + +* `Default` (value: `"Default"`) + +* `Takeaway` (value: `"Takeaway"`) + +* `Delivery` (value: `"Delivery"`) + + + + diff --git a/docs/LocalisedTimeZone.md b/docs/LocalisedTimeZone.md new file mode 100644 index 00000000..365ccd70 --- /dev/null +++ b/docs/LocalisedTimeZone.md @@ -0,0 +1,11 @@ +# Flipdish.LocalisedTimeZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TimeZoneId** | **String** | Microsoft Time Zone Id | [optional] +**IanaTimeZoneId** | **String** | Iana Time Zone Id | [optional] +**DisplayName** | **String** | Display name in users language | [optional] + + diff --git a/docs/LocationApi.md b/docs/LocationApi.md new file mode 100644 index 00000000..188c31fc --- /dev/null +++ b/docs/LocationApi.md @@ -0,0 +1,286 @@ +# Flipdish.LocationApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createLocation**](LocationApi.md#createLocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location | +[**deleteLocation**](LocationApi.md#deleteLocation) | **DELETE** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete | +[**mapLocationToExternalId**](LocationApi.md#mapLocationToExternalId) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external | +[**moveLocation**](LocationApi.md#moveLocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move | +[**updateLocation**](LocationApi.md#updateLocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update | + + + +## createLocation + +> Object createLocation(locationAreaId, appId, storeId, createLocationInput) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationApi(); +let locationAreaId = 56; // Number | +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let createLocationInput = [new Flipdish.CreateLocation()]; // [CreateLocation] | +apiInstance.createLocation(locationAreaId, appId, storeId, createLocationInput, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationAreaId** | **Number**| | + **appId** | **String**| | + **storeId** | **Number**| | + **createLocationInput** | [**[CreateLocation]**](CreateLocation.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 + + +## deleteLocation + +> Object deleteLocation(locationId, locationAreaId, appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationApi(); +let locationId = 56; // Number | +let locationAreaId = 56; // Number | +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.deleteLocation(locationId, locationAreaId, appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationId** | **Number**| | + **locationAreaId** | **Number**| | + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## mapLocationToExternalId + +> RestApiResultMappedLocation mapLocationToExternalId(locationId, locationAreaId, appId, storeId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationApi(); +let locationId = 56; // Number | +let locationAreaId = 56; // Number | +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let opts = { + 'externalLocationId': "externalLocationId_example" // String | +}; +apiInstance.mapLocationToExternalId(locationId, locationAreaId, appId, storeId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationId** | **Number**| | + **locationAreaId** | **Number**| | + **appId** | **String**| | + **storeId** | **Number**| | + **externalLocationId** | **String**| | [optional] + +### Return type + +[**RestApiResultMappedLocation**](RestApiResultMappedLocation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## moveLocation + +> Object moveLocation(locationId, locationAreaId, newLocationAreaId, appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationApi(); +let locationId = 56; // Number | +let locationAreaId = 56; // Number | +let newLocationAreaId = 56; // Number | +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.moveLocation(locationId, locationAreaId, newLocationAreaId, appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationId** | **Number**| | + **locationAreaId** | **Number**| | + **newLocationAreaId** | **Number**| | + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateLocation + +> RestApiResultLocationAreaLocation updateLocation(locationAreaId, locationId, appId, storeId, updateLocationInput) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationApi(); +let locationAreaId = 56; // Number | +let locationId = 56; // Number | +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let updateLocationInput = new Flipdish.CreateLocation(); // CreateLocation | +apiInstance.updateLocation(locationAreaId, locationId, appId, storeId, updateLocationInput, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationAreaId** | **Number**| | + **locationId** | **Number**| | + **appId** | **String**| | + **storeId** | **Number**| | + **updateLocationInput** | [**CreateLocation**](CreateLocation.md)| | + +### Return type + +[**RestApiResultLocationAreaLocation**](RestApiResultLocationAreaLocation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/LocationArea.md b/docs/LocationArea.md new file mode 100644 index 00000000..8d97058c --- /dev/null +++ b/docs/LocationArea.md @@ -0,0 +1,11 @@ +# Flipdish.LocationArea + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **Number** | Id of the LocationArea | [optional] +**StoreId** | **Number** | Id of the Store that this LocationArea belongs to | [optional] +**LocationAreaName** | **String** | Descriptive LocationArea name | [optional] + + diff --git a/docs/LocationAreaCreatedEvent.md b/docs/LocationAreaCreatedEvent.md new file mode 100644 index 00000000..42f41650 --- /dev/null +++ b/docs/LocationAreaCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.LocationAreaCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **String** | LocationArea Id | [optional] +**LocationAreaName** | **String** | LocationArea name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/LocationAreaLocation.md b/docs/LocationAreaLocation.md new file mode 100644 index 00000000..e3c8b941 --- /dev/null +++ b/docs/LocationAreaLocation.md @@ -0,0 +1,13 @@ +# Flipdish.LocationAreaLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **Number** | Id of the Location | +**LocationName** | **String** | Name of the Location | +**DisplayOrder** | **Number** | The order that the Location should be displayed on the screen | +**ExternalLocationId** | **String** | Id of the Location on an external system | [optional] +**IsDeleted** | **Boolean** | Shows if the Location is deleted or not | [optional] + + diff --git a/docs/LocationAreaUpdatedEvent.md b/docs/LocationAreaUpdatedEvent.md new file mode 100644 index 00000000..b22cc0f0 --- /dev/null +++ b/docs/LocationAreaUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.LocationAreaUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **String** | LocationArea Id | [optional] +**LocationAreaName** | **String** | LocationArea Name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/LocationAreaWithLocations.md b/docs/LocationAreaWithLocations.md new file mode 100644 index 00000000..220c4c8f --- /dev/null +++ b/docs/LocationAreaWithLocations.md @@ -0,0 +1,13 @@ +# Flipdish.LocationAreaWithLocations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **Number** | Id of the LocationArea | +**StoreId** | **Number** | Id of the Store that this LocationArea belongs to | +**LocationAreaName** | **String** | Descriptive LocationArea name | +**Locations** | [**[LocationAreaLocation]**](LocationAreaLocation.md) | List of Locations that belongs to this Location Area | [optional] +**IsDeleted** | **Boolean** | Returns if the LocationArea is deleted or not | [optional] + + diff --git a/docs/LocationAreasApi.md b/docs/LocationAreasApi.md new file mode 100644 index 00000000..d287eebd --- /dev/null +++ b/docs/LocationAreasApi.md @@ -0,0 +1,216 @@ +# Flipdish.LocationAreasApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createLocationArea**](LocationAreasApi.md#createLocationArea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas | +[**getLocationArea**](LocationAreasApi.md#getLocationArea) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId} | +[**getLocationAreasForStore**](LocationAreasApi.md#getLocationAreasForStore) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas | +[**updateLocationArea**](LocationAreasApi.md#updateLocationArea) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update | + + + +## createLocationArea + +> Object createLocationArea(appId, storeId, locationAreaInput) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationAreasApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let locationAreaInput = new Flipdish.CreateLocationArea(); // CreateLocationArea | +apiInstance.createLocationArea(appId, storeId, locationAreaInput, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **locationAreaInput** | [**CreateLocationArea**](CreateLocationArea.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 + + +## getLocationArea + +> RestApiResultLocationAreaWithLocations getLocationArea(locationAreaId, appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationAreasApi(); +let locationAreaId = 56; // Number | +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.getLocationArea(locationAreaId, appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locationAreaId** | **Number**| | + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiResultLocationAreaWithLocations**](RestApiResultLocationAreaWithLocations.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getLocationAreasForStore + +> RestApiArrayResultLocationAreaWithLocations getLocationAreasForStore(appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationAreasApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.getLocationAreasForStore(appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiArrayResultLocationAreaWithLocations**](RestApiArrayResultLocationAreaWithLocations.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateLocationArea + +> RestApiResultLocationArea updateLocationArea(appId, storeId, locationAreaId, locationAreaInput) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LocationAreasApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let locationAreaId = "locationAreaId_example"; // String | +let locationAreaInput = new Flipdish.UpdateLocationArea(); // UpdateLocationArea | +apiInstance.updateLocationArea(appId, storeId, locationAreaId, locationAreaInput, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **locationAreaId** | **String**| | + **locationAreaInput** | [**UpdateLocationArea**](UpdateLocationArea.md)| | + +### Return type + +[**RestApiResultLocationArea**](RestApiResultLocationArea.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/LocationCreatedEvent.md b/docs/LocationCreatedEvent.md new file mode 100644 index 00000000..c456baeb --- /dev/null +++ b/docs/LocationCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.LocationCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **Number** | Location Location Id | [optional] +**LocationName** | **String** | Location LocationName | [optional] +**DisplayOrder** | **Number** | Location DisplayOrder | [optional] +**ExternalLocationId** | **String** | Location ExternalLocationId | [optional] +**LocationAreaId** | **Number** | Location LocationAreaId | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/LocationDeletedEvent.md b/docs/LocationDeletedEvent.md new file mode 100644 index 00000000..f3b623d8 --- /dev/null +++ b/docs/LocationDeletedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.LocationDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **Number** | Location Id | [optional] +**LocationName** | **String** | Location Name | [optional] +**DisplayOrder** | **Number** | Location DisplayOrder | [optional] +**ExternalLocationId** | **String** | Location ExternalLocationId | [optional] +**LocationAreaId** | **Number** | LocationAreaId | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/LoginModel.md b/docs/LoginModel.md new file mode 100644 index 00000000..dee4c5a5 --- /dev/null +++ b/docs/LoginModel.md @@ -0,0 +1,10 @@ +# Flipdish.LoginModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | +**Password** | **String** | Password | + + diff --git a/docs/LoginWithPinModel.md b/docs/LoginWithPinModel.md new file mode 100644 index 00000000..8ad3088a --- /dev/null +++ b/docs/LoginWithPinModel.md @@ -0,0 +1,10 @@ +# Flipdish.LoginWithPinModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email addres | +**Pin** | **Number** | PIN code (received via email) | + + diff --git a/docs/LookerDashboardApi.md b/docs/LookerDashboardApi.md new file mode 100644 index 00000000..b59ba664 --- /dev/null +++ b/docs/LookerDashboardApi.md @@ -0,0 +1,56 @@ +# Flipdish.LookerDashboardApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**lookerDashboardGetAll**](LookerDashboardApi.md#lookerDashboardGetAll) | **GET** /api/v1.0/{appId}/looker/dashboards | + + + +## lookerDashboardGetAll + +> lookerDashboardGetAll(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LookerDashboardApi(); +let appId = "appId_example"; // String | +apiInstance.lookerDashboardGetAll(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/LookerSingleSignOnApi.md b/docs/LookerSingleSignOnApi.md new file mode 100644 index 00000000..701a7ede --- /dev/null +++ b/docs/LookerSingleSignOnApi.md @@ -0,0 +1,62 @@ +# Flipdish.LookerSingleSignOnApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getSSOEndpoint**](LookerSingleSignOnApi.md#getSSOEndpoint) | **GET** /api/v1.0/{appId}/looker/sso | + + + +## getSSOEndpoint + +> DashboardEmbed getSSOEndpoint(appId, embedPath, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.LookerSingleSignOnApi(); +let appId = "appId_example"; // String | +let embedPath = "embedPath_example"; // String | +let opts = { + 'filters': "filters_example" // String | +}; +apiInstance.getSSOEndpoint(appId, embedPath, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **embedPath** | **String**| | + **filters** | **String**| | [optional] + +### Return type + +[**DashboardEmbed**](DashboardEmbed.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, EmbedUrl + diff --git a/docs/LoyaltyCampaign.md b/docs/LoyaltyCampaign.md new file mode 100644 index 00000000..4146bdbd --- /dev/null +++ b/docs/LoyaltyCampaign.md @@ -0,0 +1,25 @@ +# Flipdish.LoyaltyCampaign + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CampaignId** | **Number** | Id of campaign | [optional] +**Statistics** | [**CampaignStatistics**](CampaignStatistics.md) | | [optional] +**Stores** | [**[StoreCampaignStartTime]**](StoreCampaignStartTime.md) | Stores this campaign applies to with campaign start time in Utc | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] +**OrdersBeforeReceivingVoucher** | **Number** | Number of orders customer needs to make, before receiving voucher | [optional] +**PercentDiscountAmount** | **Number** | Discount amount in percents | [optional] +**MaxDiscount** | **Number** | Maximum discount for percentage discounts | [optional] +**RoundingStrategy** | **Number** | Controls how the loyalty voucher's amount is rounded | [optional] +**ShouldIncludeOrdersWithLoyaltyVoucher** | **Boolean** | Controls whether we should include orders with loyalty vouchers in the campaign calculation | [optional] +**VoucherValidPeriodDays** | **Number** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **Boolean** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **Boolean** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **Boolean** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **Boolean** | Is campaign enabled | [optional] +**StoreIds** | **[Number]** | Ids of stores this campaign applies to | [optional] +**AppId** | **String** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **Boolean** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + + diff --git a/docs/LoyaltyCampaignBase.md b/docs/LoyaltyCampaignBase.md new file mode 100644 index 00000000..a6781751 --- /dev/null +++ b/docs/LoyaltyCampaignBase.md @@ -0,0 +1,21 @@ +# Flipdish.LoyaltyCampaignBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrdersBeforeReceivingVoucher** | **Number** | Number of orders customer needs to make, before receiving voucher | [optional] +**PercentDiscountAmount** | **Number** | Discount amount in percents | [optional] +**MaxDiscount** | **Number** | Maximum discount for percentage discounts | [optional] +**RoundingStrategy** | **Number** | Controls how the loyalty voucher's amount is rounded | [optional] +**ShouldIncludeOrdersWithLoyaltyVoucher** | **Boolean** | Controls whether we should include orders with loyalty vouchers in the campaign calculation | [optional] +**VoucherValidPeriodDays** | **Number** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **Boolean** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **Boolean** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **Boolean** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **Boolean** | Is campaign enabled | [optional] +**StoreIds** | **[Number]** | Ids of stores this campaign applies to | [optional] +**AppId** | **String** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **Boolean** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + + diff --git a/docs/LoyaltyCampaignCreatedEvent.md b/docs/LoyaltyCampaignCreatedEvent.md new file mode 100644 index 00000000..e4e54eb0 --- /dev/null +++ b/docs/LoyaltyCampaignCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.LoyaltyCampaignCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/LoyaltyCampaignDeletedEvent.md b/docs/LoyaltyCampaignDeletedEvent.md new file mode 100644 index 00000000..f6f47674 --- /dev/null +++ b/docs/LoyaltyCampaignDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.LoyaltyCampaignDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/LoyaltyCampaignUpdatedEvent.md b/docs/LoyaltyCampaignUpdatedEvent.md new file mode 100644 index 00000000..117bdec6 --- /dev/null +++ b/docs/LoyaltyCampaignUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.LoyaltyCampaignUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**LoyaltyCampaign** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/LumpDiscountDetails.md b/docs/LumpDiscountDetails.md new file mode 100644 index 00000000..459bf9e0 --- /dev/null +++ b/docs/LumpDiscountDetails.md @@ -0,0 +1,9 @@ +# Flipdish.LumpDiscountDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DiscountAmount** | **Number** | Discount amount | [optional] + + diff --git a/docs/MappedLocation.md b/docs/MappedLocation.md new file mode 100644 index 00000000..1224eda9 --- /dev/null +++ b/docs/MappedLocation.md @@ -0,0 +1,10 @@ +# Flipdish.MappedLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationId** | **Number** | Id of the Location | +**ExternalLocationId** | **String** | Id of the Location on an external system | + + diff --git a/docs/MaskedPhoneNumber.md b/docs/MaskedPhoneNumber.md new file mode 100644 index 00000000..41b6af4c --- /dev/null +++ b/docs/MaskedPhoneNumber.md @@ -0,0 +1,11 @@ +# Flipdish.MaskedPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **Boolean** | Defines if the feature is enabled | [optional] +**PhoneNumber** | **String** | Defines the phone number to call | [optional] +**Code** | **String** | Defines the code to enter | [optional] + + diff --git a/docs/Menu.md b/docs/Menu.md new file mode 100644 index 00000000..4e8acba4 --- /dev/null +++ b/docs/Menu.md @@ -0,0 +1,44 @@ +# Flipdish.Menu + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**ModifiedTime** | **Date** | Last modified time | [optional] +**VersionNumber** | **Number** | Menu version | [optional] +**ImageName** | **String** | Image Name | [optional] +**ImageUrl** | **String** | Image url | [optional] +**Name** | **String** | Name of Menu, only shown in portal | [optional] +**Locked** | **Boolean** | Locked: is menu locked against modifcation | [optional] +**MenuSections** | [**[MenuSection]**](MenuSection.md) | Menu sections (startes, main etc) | [optional] +**TaxRates** | [**[MenuTaxRate]**](MenuTaxRate.md) | Menu tax rates | [optional] +**AppId** | **String** | Identifier of App the menu is attached to | [optional] +**DisplaySectionLinks** | **Boolean** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **String** | Menu section behaviour | [optional] +**TaxType** | **String** | Tax type | [optional] +**IsIntegrated** | **Boolean** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + + + +## Enum: MenuSectionBehaviourEnum + + +* `ExpandSingle` (value: `"ExpandSingle"`) + +* `ExpandMultiple` (value: `"ExpandMultiple"`) + + + + + +## Enum: TaxTypeEnum + + +* `IncludedInBasePrice` (value: `"IncludedInBasePrice"`) + +* `ExcludedFromBasePrice` (value: `"ExcludedFromBasePrice"`) + + + + diff --git a/docs/MenuAsyncCreationCompletedEvent.md b/docs/MenuAsyncCreationCompletedEvent.md new file mode 100644 index 00000000..31c24dca --- /dev/null +++ b/docs/MenuAsyncCreationCompletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuAsyncCreationCompletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Menu** | [**Menu**](Menu.md) | | [optional] +**Success** | **Boolean** | Flag indicating if the menu creation was successful | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuBase.md b/docs/MenuBase.md new file mode 100644 index 00000000..dcaead0a --- /dev/null +++ b/docs/MenuBase.md @@ -0,0 +1,34 @@ +# Flipdish.MenuBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplaySectionLinks** | **Boolean** | Display menu section link on UI | [optional] +**MenuSectionBehaviour** | **String** | Menu section behaviour | [optional] +**TaxType** | **String** | Tax type | [optional] +**IsIntegrated** | **Boolean** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + + + +## Enum: MenuSectionBehaviourEnum + + +* `ExpandSingle` (value: `"ExpandSingle"`) + +* `ExpandMultiple` (value: `"ExpandMultiple"`) + + + + + +## Enum: TaxTypeEnum + + +* `IncludedInBasePrice` (value: `"IncludedInBasePrice"`) + +* `ExcludedFromBasePrice` (value: `"ExcludedFromBasePrice"`) + + + + diff --git a/docs/MenuBulkEditEvent.md b/docs/MenuBulkEditEvent.md new file mode 100644 index 00000000..b3e47447 --- /dev/null +++ b/docs/MenuBulkEditEvent.md @@ -0,0 +1,22 @@ +# Flipdish.MenuBulkEditEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**MenuName** | **String** | Menu Name | [optional] +**Description** | **String** | Description | [optional] +**Item** | **String** | Product | [optional] +**InstanceCount** | **Number** | Quantity of product | [optional] +**IsAvailable** | **Boolean** | Visibility of the item | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuId** | **Number** | The menu Id | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuCatalogItem.md b/docs/MenuCatalogItem.md new file mode 100644 index 00000000..be042856 --- /dev/null +++ b/docs/MenuCatalogItem.md @@ -0,0 +1,25 @@ +# Flipdish.MenuCatalogItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Product Id to the product to add as Menu Item | +**CellLayoutType** | **String** | Small | Medium | Large | HiddenImage Affects the layout of the menu. | [optional] + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/MenuCheckpoint.md b/docs/MenuCheckpoint.md new file mode 100644 index 00000000..82868bbb --- /dev/null +++ b/docs/MenuCheckpoint.md @@ -0,0 +1,12 @@ +# Flipdish.MenuCheckpoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuCheckpointId** | **Number** | Identifier of Menu Checkpoint | [optional] +**Time** | **Date** | Time of creation of checkpoint | [optional] +**Name** | **String** | Name of checkpoint | [optional] +**Url** | **String** | Url that points to Serialized Checkpoint | [optional] + + diff --git a/docs/MenuCheckpointCreatedEvent.md b/docs/MenuCheckpointCreatedEvent.md new file mode 100644 index 00000000..54e1ff41 --- /dev/null +++ b/docs/MenuCheckpointCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuCheckpointCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Menu** | [**Menu**](Menu.md) | | [optional] +**MenuId** | **Number** | Menu Id | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuCreatedEvent.md b/docs/MenuCreatedEvent.md new file mode 100644 index 00000000..ae9b9f63 --- /dev/null +++ b/docs/MenuCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.MenuCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Menu** | [**Menu**](Menu.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuElementEditResponse.md b/docs/MenuElementEditResponse.md new file mode 100644 index 00000000..c7496441 --- /dev/null +++ b/docs/MenuElementEditResponse.md @@ -0,0 +1,43 @@ +# Flipdish.MenuElementEditResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SectionName** | **String** | Section name | [optional] +**ItemName** | **String** | Item name | [optional] +**OptionSetName** | **String** | Option Set name | [optional] +**OptionSetItemName** | **String** | Element name | [optional] +**MenuElementId** | **Number** | Holds the information for the A and CNAME Records of a domain. | [optional] +**MenuElementType** | **String** | Type of menu element | [optional] +**ValidationCode** | **String** | Validation message for menu element issue | [optional] + + + +## Enum: MenuElementTypeEnum + + +* `Item` (value: `"Item"`) + +* `OptionSetItem` (value: `"OptionSetItem"`) + + + + + +## Enum: ValidationCodeEnum + + +* `Success` (value: `"Success"`) + +* `MinimumCountViolation` (value: `"MinimumCountViolation"`) + +* `MasterOptionSetViolation` (value: `"MasterOptionSetViolation"`) + +* `IncorrectElementTypeInMenu` (value: `"IncorrectElementTypeInMenu"`) + +* `DBFailed` (value: `"DBFailed"`) + + + + diff --git a/docs/MenuElementHide.md b/docs/MenuElementHide.md new file mode 100644 index 00000000..e47334c8 --- /dev/null +++ b/docs/MenuElementHide.md @@ -0,0 +1,21 @@ +# Flipdish.MenuElementHide + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuElementId** | **Number** | id of the menu item or menu option set item | [optional] +**MenuElementType** | **String** | Type of menu element | [optional] + + + +## Enum: MenuElementTypeEnum + + +* `Item` (value: `"Item"`) + +* `OptionSetItem` (value: `"OptionSetItem"`) + + + + diff --git a/docs/MenuElementListItemResponse.md b/docs/MenuElementListItemResponse.md new file mode 100644 index 00000000..18cbbd90 --- /dev/null +++ b/docs/MenuElementListItemResponse.md @@ -0,0 +1,21 @@ +# Flipdish.MenuElementListItemResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuElementId** | **Number** | Holds the information for the A and CNAME Records of a domain. | [optional] +**MenuElementType** | **String** | Type of menu element | [optional] + + + +## Enum: MenuElementTypeEnum + + +* `Item` (value: `"Item"`) + +* `OptionSetItem` (value: `"OptionSetItem"`) + + + + diff --git a/docs/MenuElementListResponse.md b/docs/MenuElementListResponse.md new file mode 100644 index 00000000..0a63b008 --- /dev/null +++ b/docs/MenuElementListResponse.md @@ -0,0 +1,13 @@ +# Flipdish.MenuElementListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuName** | **String** | Menu Name | [optional] +**MenuElementName** | **String** | Menu Item Name | [optional] +**InstanceCount** | **Number** | Menu Item Count | [optional] +**IsAvailable** | **Boolean** | Menu Item is hide or unhide | [optional] +**Items** | [**[MenuElementListItemResponse]**](MenuElementListItemResponse.md) | List of Items | [optional] + + diff --git a/docs/MenuItemOptionSet.md b/docs/MenuItemOptionSet.md new file mode 100644 index 00000000..10319fff --- /dev/null +++ b/docs/MenuItemOptionSet.md @@ -0,0 +1,35 @@ +# Flipdish.MenuItemOptionSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetId** | **Number** | Menu item option set identifier | [optional] +**ImageName** | **String** | Image Name | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuItemOptionSetItems** | [**[MenuItemOptionSetItem]**](MenuItemOptionSetItem.md) | Option set items | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] +**CatalogItemId** | **String** | Catalog item Id when the OptionSet is associated to a Product | [optional] +**Name** | **String** | Menu item option set name | [optional] +**IsMasterOptionSet** | **Boolean** | Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). | [optional] +**DisplayOrder** | **Number** | Display order. Displayed in ascending order. | [optional] +**MinSelectCount** | **Number** | Minimum items must be selected | [optional] +**MaxSelectCount** | **Number** | Maximum number of items can be selected | [optional] +**CellLayoutType** | **String** | Small | Medium | Large Affects the layout of the menu. | [optional] + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/MenuItemOptionSetBase.md b/docs/MenuItemOptionSetBase.md new file mode 100644 index 00000000..847fcb6f --- /dev/null +++ b/docs/MenuItemOptionSetBase.md @@ -0,0 +1,30 @@ +# Flipdish.MenuItemOptionSetBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Menu item option set name | [optional] +**IsMasterOptionSet** | **Boolean** | Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). | [optional] +**DisplayOrder** | **Number** | Display order. Displayed in ascending order. | [optional] +**MinSelectCount** | **Number** | Minimum items must be selected | [optional] +**MaxSelectCount** | **Number** | Maximum number of items can be selected | [optional] +**CellLayoutType** | **String** | Small | Medium | Large Affects the layout of the menu. | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/MenuItemOptionSetCreatedEvent.md b/docs/MenuItemOptionSetCreatedEvent.md new file mode 100644 index 00000000..773ff816 --- /dev/null +++ b/docs/MenuItemOptionSetCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuItemOptionSetCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuItemOptionSetDeletedEvent.md b/docs/MenuItemOptionSetDeletedEvent.md new file mode 100644 index 00000000..1a70e95f --- /dev/null +++ b/docs/MenuItemOptionSetDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuItemOptionSetDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuItemOptionSetItem.md b/docs/MenuItemOptionSetItem.md new file mode 100644 index 00000000..ff5898bd --- /dev/null +++ b/docs/MenuItemOptionSetItem.md @@ -0,0 +1,38 @@ +# Flipdish.MenuItemOptionSetItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItemOptionSetItemId** | **Number** | Menu item option set item identifier | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] +**Metadata** | [**[CreateMetadata]**](CreateMetadata.md) | List of metadata | [optional] +**NextMenuItemOptionSetId** | **Number** | 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** | **Number** | | [optional] +**TaxValue** | **Number** | | [optional] +**Name** | **String** | Name | [optional] +**Price** | **Number** | Price | [optional] +**DepositReturnFee** | **Number** | An optional fee that can be added to the price of the item. | [optional] +**IsAvailable** | **Boolean** | Is available | [optional] +**DisplayOrder** | **Number** | Display order. Displayed in ascending order. | [optional] +**CellLayoutType** | **String** | Small | Medium | Large Affects the layout of the menu. | [optional] +**ImageUrl** | **String** | Image url | [optional] + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/MenuItemOptionSetItemBase.md b/docs/MenuItemOptionSetItemBase.md new file mode 100644 index 00000000..deefcd6e --- /dev/null +++ b/docs/MenuItemOptionSetItemBase.md @@ -0,0 +1,31 @@ +# Flipdish.MenuItemOptionSetItemBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name | [optional] +**Price** | **Number** | Price | [optional] +**DepositReturnFee** | **Number** | An optional fee that can be added to the price of the item. | [optional] +**IsAvailable** | **Boolean** | Is available | [optional] +**DisplayOrder** | **Number** | 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** | **String** | Permanent reference to the item. | [optional] + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/MenuItemOptionSetItemCreatedEvent.md b/docs/MenuItemOptionSetItemCreatedEvent.md new file mode 100644 index 00000000..c53fb030 --- /dev/null +++ b/docs/MenuItemOptionSetItemCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuItemOptionSetItemCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuItemOptionSetItemDeletedEvent.md b/docs/MenuItemOptionSetItemDeletedEvent.md new file mode 100644 index 00000000..d9f7c09b --- /dev/null +++ b/docs/MenuItemOptionSetItemDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuItemOptionSetItemDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuItemOptionSetItemUpdatedEvent.md b/docs/MenuItemOptionSetItemUpdatedEvent.md new file mode 100644 index 00000000..7d690ae0 --- /dev/null +++ b/docs/MenuItemOptionSetItemUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuItemOptionSetItemUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuItemOptionSetItem** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuItemOptionSetUpdatedEvent.md b/docs/MenuItemOptionSetUpdatedEvent.md new file mode 100644 index 00000000..af38b18d --- /dev/null +++ b/docs/MenuItemOptionSetUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuItemOptionSetUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuItemOptionSet** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuNutritionInfoHeader.md b/docs/MenuNutritionInfoHeader.md new file mode 100644 index 00000000..c09664fa --- /dev/null +++ b/docs/MenuNutritionInfoHeader.md @@ -0,0 +1,11 @@ +# Flipdish.MenuNutritionInfoHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu Id | [optional] +**NutritionInfoVersionGuid** | **String** | Nutrition information version guid (generated every time the nutrition information is updated) | [optional] +**AbsoluteUrl** | **String** | Absolute URL of the nutrition information json file | [optional] + + diff --git a/docs/MenuObjectDisplayOrders.md b/docs/MenuObjectDisplayOrders.md new file mode 100644 index 00000000..aa3661d6 --- /dev/null +++ b/docs/MenuObjectDisplayOrders.md @@ -0,0 +1,9 @@ +# Flipdish.MenuObjectDisplayOrders + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayOrders** | [**[ObjectDisplayOrder]**](ObjectDisplayOrder.md) | List of Objects and their new Display Orders | [optional] + + diff --git a/docs/MenuOptionSetItemsApi.md b/docs/MenuOptionSetItemsApi.md new file mode 100644 index 00000000..24d7706f --- /dev/null +++ b/docs/MenuOptionSetItemsApi.md @@ -0,0 +1,464 @@ +# Flipdish.MenuOptionSetItemsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addMenuItemOptionSetItem**](MenuOptionSetItemsApi.md#addMenuItemOptionSetItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems | Create menu item option set item +[**deleteOptionSetItemImage**](MenuOptionSetItemsApi.md#deleteOptionSetItemImage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image | Delete menu item option set item image +[**getMenuItemOptionSetItemById**](MenuOptionSetItemsApi.md#getMenuItemOptionSetItemById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Get menu item option set item by identifier +[**getMenuItemOptionSetItems**](MenuOptionSetItemsApi.md#getMenuItemOptionSetItems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems | Get menu item option set items +[**removeMenuItemOptionSetItem**](MenuOptionSetItemsApi.md#removeMenuItemOptionSetItem) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Delete menu item option set item +[**setOptionSetItemTax**](MenuOptionSetItemsApi.md#setOptionSetItemTax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId} | Set Tax Rate on OptionSetItem +[**updateMenuItemOptionSetItem**](MenuOptionSetItemsApi.md#updateMenuItemOptionSetItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId} | Update menu item option set item +[**uploadOptionSetItemImage**](MenuOptionSetItemsApi.md#uploadOptionSetItemImage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image | Upload menu item option set item image + + + +## addMenuItemOptionSetItem + +> Object addMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItem) + +Create menu item option set item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let menuItemOptionSetItem = new Flipdish.MenuItemOptionSetItemBase(); // MenuItemOptionSetItemBase | Option set item +apiInstance.addMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItem, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **menuItemOptionSetItem** | [**MenuItemOptionSetItemBase**](MenuItemOptionSetItemBase.md)| Option set item | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteOptionSetItemImage + +> deleteOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId) + +Delete menu item option set item image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let menuItemOptionSetItemId = 56; // Number | Option set item identifier +apiInstance.deleteOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **menuItemOptionSetItemId** | **Number**| Option set item identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getMenuItemOptionSetItemById + +> RestApiResultMenuItemOptionSetItem getMenuItemOptionSetItemById(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId) + +Get menu item option set item by identifier + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let menuItemOptionSetItemId = 56; // Number | Option set item identifier +apiInstance.getMenuItemOptionSetItemById(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **menuItemOptionSetItemId** | **Number**| Option set item identifier | + +### Return type + +[**RestApiResultMenuItemOptionSetItem**](RestApiResultMenuItemOptionSetItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenuItemOptionSetItems + +> RestApiArrayResultMenuItemOptionSetItem getMenuItemOptionSetItems(menuId, menuSectionId, menuSectionItemId, optionSetId) + +Get menu item option set items + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +apiInstance.getMenuItemOptionSetItems(menuId, menuSectionId, menuSectionItemId, optionSetId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + +### Return type + +[**RestApiArrayResultMenuItemOptionSetItem**](RestApiArrayResultMenuItemOptionSetItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## removeMenuItemOptionSetItem + +> removeMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId) + +Delete menu item option set item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let menuItemOptionSetItemId = 56; // Number | Option set item identifier +apiInstance.removeMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **menuItemOptionSetItemId** | **Number**| Option set item identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## setOptionSetItemTax + +> setOptionSetItemTax(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId) + +Set Tax Rate on OptionSetItem + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | +let menuSectionItemId = 56; // Number | +let optionSetId = 56; // Number | +let menuItemOptionSetItemId = 56; // Number | Option set item identifier +let taxRateId = 56; // Number | Tax Rate to use +apiInstance.setOptionSetItemTax(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| | + **menuSectionItemId** | **Number**| | + **optionSetId** | **Number**| | + **menuItemOptionSetItemId** | **Number**| Option set item identifier | + **taxRateId** | **Number**| Tax Rate to use | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateMenuItemOptionSetItem + +> updateMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, menuItemOptionSetItem, opts) + +Update menu item option set item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let menuItemOptionSetItemId = 56; // Number | Option set item identifier +let menuItemOptionSetItem = new Flipdish.MenuItemOptionSetItemBase(); // MenuItemOptionSetItemBase | Option set item (delta) +let opts = { + 'undoAfter': 3.4 // Number | An optional time period, in hours, after which the hide-section operation will be undone. +}; +apiInstance.updateMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, menuItemOptionSetItem, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **menuItemOptionSetItemId** | **Number**| Option set item identifier | + **menuItemOptionSetItem** | [**MenuItemOptionSetItemBase**](MenuItemOptionSetItemBase.md)| Option set item (delta) | + **undoAfter** | **Number**| An optional time period, in hours, after which the hide-section operation will be undone. | [optional] + +### Return type + +null (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 + + +## uploadOptionSetItemImage + +> RestApiStringResult uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, Image) + +Upload menu item option set item image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let menuItemOptionSetItemId = 56; // Number | Option set item identifier +let Image = "/path/to/file"; // File | Option set item image +apiInstance.uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **menuItemOptionSetItemId** | **Number**| Option set item identifier | + **Image** | **File**| Option set item image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/MenuOptionSetsApi.md b/docs/MenuOptionSetsApi.md new file mode 100644 index 00000000..8bdf20c0 --- /dev/null +++ b/docs/MenuOptionSetsApi.md @@ -0,0 +1,388 @@ +# Flipdish.MenuOptionSetsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createMenuItemOptionSet**](MenuOptionSetsApi.md#createMenuItemOptionSet) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets | Create menu item option set +[**deleteMenuItemOptionSet**](MenuOptionSetsApi.md#deleteMenuItemOptionSet) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Delete menu item option set +[**deleteOptionSetImage**](MenuOptionSetsApi.md#deleteOptionSetImage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image | Delete option set image +[**getMenuItemOptionSetById**](MenuOptionSetsApi.md#getMenuItemOptionSetById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Get menu item option set by identifier +[**getMenuItemOptionSets**](MenuOptionSetsApi.md#getMenuItemOptionSets) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets | Get menu item option sets +[**updateMenuItemOptionSet**](MenuOptionSetsApi.md#updateMenuItemOptionSet) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId} | Update menu item option set +[**uploadOptionSetImage**](MenuOptionSetsApi.md#uploadOptionSetImage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image | Upload menu item option set image + + + +## createMenuItemOptionSet + +> Object createMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, menuItemOptionSet) + +Create menu item option set + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let menuItemOptionSet = new Flipdish.MenuItemOptionSetBase(); // MenuItemOptionSetBase | Menu item option set +apiInstance.createMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, menuItemOptionSet, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **menuItemOptionSet** | [**MenuItemOptionSetBase**](MenuItemOptionSetBase.md)| Menu item option set | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteMenuItemOptionSet + +> deleteMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, optionSetId) + +Delete menu item option set + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let menuSectionId = 56; // Number | Menu section identifier +let optionSetId = 56; // Number | Option set identifier +apiInstance.deleteMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, optionSetId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **menuSectionId** | **Number**| Menu section identifier | + **optionSetId** | **Number**| Option set identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## deleteOptionSetImage + +> deleteOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId) + +Delete option set image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +apiInstance.deleteOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getMenuItemOptionSetById + +> RestApiResultMenuItemOptionSet getMenuItemOptionSetById(menuId, menuSectionId, menuSectionItemId, optionSetId) + +Get menu item option set by identifier + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Menu item option set identifier +apiInstance.getMenuItemOptionSetById(menuId, menuSectionId, menuSectionItemId, optionSetId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Menu item option set identifier | + +### Return type + +[**RestApiResultMenuItemOptionSet**](RestApiResultMenuItemOptionSet.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenuItemOptionSets + +> RestApiArrayResultMenuItemOptionSet getMenuItemOptionSets(menuId, menuSectionId, menuSectionItemId) + +Get menu item option sets + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +apiInstance.getMenuItemOptionSets(menuId, menuSectionId, menuSectionItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + +### Return type + +[**RestApiArrayResultMenuItemOptionSet**](RestApiArrayResultMenuItemOptionSet.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateMenuItemOptionSet + +> updateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet) + +Update menu item option set + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let menuItemOptionSet = new Flipdish.MenuItemOptionSetBase(); // MenuItemOptionSetBase | Menu item option set (delta) +apiInstance.updateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **menuItemOptionSet** | [**MenuItemOptionSetBase**](MenuItemOptionSetBase.md)| Menu item option set (delta) | + +### Return type + +null (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 + + +## uploadOptionSetImage + +> RestApiStringResult uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, Image) + +Upload menu item option set image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuOptionSetsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let optionSetId = 56; // Number | Option set identifier +let Image = "/path/to/file"; // File | Option set image +apiInstance.uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **optionSetId** | **Number**| Option set identifier | + **Image** | **File**| Option set image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/MenuSection.md b/docs/MenuSection.md new file mode 100644 index 00000000..c44b8bb9 --- /dev/null +++ b/docs/MenuSection.md @@ -0,0 +1,19 @@ +# Flipdish.MenuSection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionId** | **Number** | Menu section identifier | [optional] +**MenuItems** | [**[MenuSectionItem]**](MenuSectionItem.md) | Menu items | [optional] +**MenuSectionAvailability** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] +**ImageName** | **String** | Image Name | [optional] +**Name** | **String** | Name | [optional] +**Description** | **String** | Description | [optional] +**DisplayOrder** | **Number** | Display order | [optional] +**IsAvailable** | **Boolean** | Is available | [optional] +**IsHiddenFromCustomers** | **Boolean** | Is hidden from customer. Perhaps when the item is out of stock. | [optional] +**ImageUrl** | **String** | Image url | [optional] + + diff --git a/docs/MenuSectionAvailability.md b/docs/MenuSectionAvailability.md new file mode 100644 index 00000000..e42aadcb --- /dev/null +++ b/docs/MenuSectionAvailability.md @@ -0,0 +1,25 @@ +# Flipdish.MenuSectionAvailability + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableTimes** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Available times | [optional] +**AvailabilityMode** | **String** | Availability mode | [optional] + + + +## Enum: AvailabilityModeEnum + + +* `DisplayAlways` (value: `"DisplayAlways"`) + +* `DisplayBasedOnTimes` (value: `"DisplayBasedOnTimes"`) + +* `DisplayAlwaysStartCollapsed` (value: `"DisplayAlwaysStartCollapsed"`) + +* `DisplayAlwaysStartCollapsedBasedOnTimes` (value: `"DisplayAlwaysStartCollapsedBasedOnTimes"`) + + + + diff --git a/docs/MenuSectionAvailabilityBase.md b/docs/MenuSectionAvailabilityBase.md new file mode 100644 index 00000000..b13fb66e --- /dev/null +++ b/docs/MenuSectionAvailabilityBase.md @@ -0,0 +1,24 @@ +# Flipdish.MenuSectionAvailabilityBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityMode** | **String** | Availability mode | [optional] + + + +## Enum: AvailabilityModeEnum + + +* `DisplayAlways` (value: `"DisplayAlways"`) + +* `DisplayBasedOnTimes` (value: `"DisplayBasedOnTimes"`) + +* `DisplayAlwaysStartCollapsed` (value: `"DisplayAlwaysStartCollapsed"`) + +* `DisplayAlwaysStartCollapsedBasedOnTimes` (value: `"DisplayAlwaysStartCollapsedBasedOnTimes"`) + + + + diff --git a/docs/MenuSectionBase.md b/docs/MenuSectionBase.md new file mode 100644 index 00000000..e66761ce --- /dev/null +++ b/docs/MenuSectionBase.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSectionBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name | [optional] +**Description** | **String** | Description | [optional] +**DisplayOrder** | **Number** | Display order | [optional] +**IsAvailable** | **Boolean** | Is available | [optional] +**IsHiddenFromCustomers** | **Boolean** | Is hidden from customer. Perhaps when the item is out of stock. | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuSectionId** | **Number** | Menu Section Id | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] + + diff --git a/docs/MenuSectionCreatedEvent.md b/docs/MenuSectionCreatedEvent.md new file mode 100644 index 00000000..719436f0 --- /dev/null +++ b/docs/MenuSectionCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuSectionCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuSectionDeletedEvent.md b/docs/MenuSectionDeletedEvent.md new file mode 100644 index 00000000..0e500b66 --- /dev/null +++ b/docs/MenuSectionDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuSectionDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuSectionItem.md b/docs/MenuSectionItem.md new file mode 100644 index 00000000..f42aa500 --- /dev/null +++ b/docs/MenuSectionItem.md @@ -0,0 +1,61 @@ +# Flipdish.MenuSectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActualPrice** | **Number** | Actual price - the minimum price possible when all required option set items prices are included. | [optional] +**MenuItemOptionSets** | [**[MenuItemOptionSet]**](MenuItemOptionSet.md) | Menu item option sets | [optional] +**DailySpecialHours** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Daily special hours | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] +**TaxRateName** | **String** | Tax rate name | [optional] +**TaxRateId** | **Number** | TaxRate | [optional] +**TaxValue** | **Number** | TaxValue - the tax associated with this item, based on TaxRate / TaxType and Currency (currency determines decimal point precision) | [optional] +**ExcludeFromVoucherDiscounting** | **Boolean** | If true, the item is excluded from voucher discount calculations | [optional] +**Metadata** | [**[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** | **Number** | 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** | **Number** | An optional fee that can be added to the price of the item. | [optional] +**DisplayOrder** | **Number** | Display order | [optional] +**Alcohol** | **Boolean** | To be set true if the item or an option of the item contains an alcoholic drink. | [optional] +**IsAvailable** | **Boolean** | True if we accept orders for this item still | [optional] +**CellLayoutType** | **String** | Small | Medium | Large Affects the layout of the menu. | [optional] +**DisableVouchers** | **Boolean** | If true, then vouchers won't be applied for this item | [optional] +**ImageName** | **String** | Image url | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuItemId** | **Number** | Menu Item Id | [optional] + + + +## Enum: SpicinessRatingEnum + + +* `NotRated` (value: `"NotRated"`) + +* `Mild` (value: `"Mild"`) + +* `Medium` (value: `"Medium"`) + +* `Hot` (value: `"Hot"`) + + + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/MenuSectionItemBase.md b/docs/MenuSectionItemBase.md new file mode 100644 index 00000000..e99652ae --- /dev/null +++ b/docs/MenuSectionItemBase.md @@ -0,0 +1,53 @@ +# Flipdish.MenuSectionItemBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Menu item name (like \"Korma\") | [optional] +**Description** | **String** | Description (like \"A lovely dish from the east\") | [optional] +**SpicinessRating** | **String** | Spiciness rating | [optional] +**Price** | **Number** | 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** | **Number** | An optional fee that can be added to the price of the item. | [optional] +**DisplayOrder** | **Number** | Display order | [optional] +**Alcohol** | **Boolean** | To be set true if the item or an option of the item contains an alcoholic drink. | [optional] +**IsAvailable** | **Boolean** | True if we accept orders for this item still | [optional] +**CellLayoutType** | **String** | Small | Medium | Large Affects the layout of the menu. | [optional] +**DisableVouchers** | **Boolean** | If true, then vouchers won't be applied for this item | [optional] +**ImageName** | **String** | Image url | [optional] +**ImageUrl** | **String** | Image url | [optional] +**MenuItemId** | **Number** | Menu Item Id | [optional] +**ExcludeFromVoucherDiscounting** | **Boolean** | If true, the item is excluded from voucher discount calculations | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] + + + +## Enum: SpicinessRatingEnum + + +* `NotRated` (value: `"NotRated"`) + +* `Mild` (value: `"Mild"`) + +* `Medium` (value: `"Medium"`) + +* `Hot` (value: `"Hot"`) + + + + + +## Enum: CellLayoutTypeEnum + + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `HiddenImage` (value: `"HiddenImage"`) + + + + diff --git a/docs/MenuSectionItemCreatedEvent.md b/docs/MenuSectionItemCreatedEvent.md new file mode 100644 index 00000000..1294ff64 --- /dev/null +++ b/docs/MenuSectionItemCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuSectionItemCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuSectionItemDeletedEvent.md b/docs/MenuSectionItemDeletedEvent.md new file mode 100644 index 00000000..db9ef5e4 --- /dev/null +++ b/docs/MenuSectionItemDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuSectionItemDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuSectionItemUpdatedEvent.md b/docs/MenuSectionItemUpdatedEvent.md new file mode 100644 index 00000000..e76b788d --- /dev/null +++ b/docs/MenuSectionItemUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuSectionItemUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuSectionItem** | [**MenuSectionItem**](MenuSectionItem.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuSectionItemsApi.md b/docs/MenuSectionItemsApi.md new file mode 100644 index 00000000..b7082cf6 --- /dev/null +++ b/docs/MenuSectionItemsApi.md @@ -0,0 +1,592 @@ +# Flipdish.MenuSectionItemsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloneMenuSectionItem**](MenuSectionItemsApi.md#cloneMenuSectionItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/clone | Clone menu section item +[**createMenuSectionItem**](MenuSectionItemsApi.md#createMenuSectionItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems | Create menu section item +[**createMenuSectionItemFromCatalogItems**](MenuSectionItemsApi.md#createMenuSectionItemFromCatalogItems) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/add-catalogitems | Create menu section items from a list of Catalog Items +[**deleteMenuSectionItem**](MenuSectionItemsApi.md#deleteMenuSectionItem) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Delete menu section item +[**deleteMenuSectionItemImage**](MenuSectionItemsApi.md#deleteMenuSectionItemImage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Delete menu section item image +[**getMenuItemById**](MenuSectionItemsApi.md#getMenuItemById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Get menu item by identifier +[**getMenuItems**](MenuSectionItemsApi.md#getMenuItems) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems | Get menu items +[**moveMenuItem**](MenuSectionItemsApi.md#moveMenuItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder} | Move an Item within a menu +[**setSectionItemTax**](MenuSectionItemsApi.md#setSectionItemTax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId} | Set tax rate for menu item +[**updateMenuSectionItem**](MenuSectionItemsApi.md#updateMenuSectionItem) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId} | Update menu section item +[**uploadMenuSectionItemImage**](MenuSectionItemsApi.md#uploadMenuSectionItemImage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image | Upload menu section item image + + + +## cloneMenuSectionItem + +> RestApiResultMenuSectionItem cloneMenuSectionItem(menuId, menuSectionId, menuSectionItemId) + +Clone menu section item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +apiInstance.cloneMenuSectionItem(menuId, menuSectionId, menuSectionItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + +### Return type + +[**RestApiResultMenuSectionItem**](RestApiResultMenuSectionItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## createMenuSectionItem + +> Object createMenuSectionItem(menuId, menuSectionId, menuSectionItem) + +Create menu section item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItem = new Flipdish.MenuSectionItemBase(); // MenuSectionItemBase | Menu section item +apiInstance.createMenuSectionItem(menuId, menuSectionId, menuSectionItem, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItem** | [**MenuSectionItemBase**](MenuSectionItemBase.md)| Menu section item | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## createMenuSectionItemFromCatalogItems + +> Object createMenuSectionItemFromCatalogItems(menuId, menuSectionId, createFromCatalogItems) + +Create menu section items from a list of Catalog Items + +BETA - this endpoint is under development, do not use it in your production system + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let createFromCatalogItems = new Flipdish.CreateMenuSectionItemFromCatalogItems(); // CreateMenuSectionItemFromCatalogItems | Information to create the new MenuSectionItems +apiInstance.createMenuSectionItemFromCatalogItems(menuId, menuSectionId, createFromCatalogItems, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **createFromCatalogItems** | [**CreateMenuSectionItemFromCatalogItems**](CreateMenuSectionItemFromCatalogItems.md)| Information to create the new MenuSectionItems | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteMenuSectionItem + +> deleteMenuSectionItem(menuId, menuSectionId, menuSectionItemId) + +Delete menu section item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +apiInstance.deleteMenuSectionItem(menuId, menuSectionId, menuSectionItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## deleteMenuSectionItemImage + +> deleteMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId) + +Delete menu section item image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +apiInstance.deleteMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getMenuItemById + +> RestApiResultMenuSectionItem getMenuItemById(menuId, menuSectionId, menuSectionItemId) + +Get menu item by identifier + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu item identifier +apiInstance.getMenuItemById(menuId, menuSectionId, menuSectionItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu item identifier | + +### Return type + +[**RestApiResultMenuSectionItem**](RestApiResultMenuSectionItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenuItems + +> RestApiArrayResultMenuSectionItem getMenuItems(menuId, menuSectionId) + +Get menu items + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +apiInstance.getMenuItems(menuId, menuSectionId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + +### Return type + +[**RestApiArrayResultMenuSectionItem**](RestApiArrayResultMenuSectionItem.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## moveMenuItem + +> moveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder) + +Move an Item within a menu + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Section to put item in (will usually be original section) +let menuSectionItemId = 56; // Number | ID of Item to be moved +let destinationDisplayOrder = 56; // Number | New Display Order of item +apiInstance.moveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Section to put item in (will usually be original section) | + **menuSectionItemId** | **Number**| ID of Item to be moved | + **destinationDisplayOrder** | **Number**| New Display Order of item | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## setSectionItemTax + +> setSectionItemTax(menuId, menuSectionId, menuSectionItemId, taxRateId) + +Set tax rate for menu item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Section to put item in (will usually be original section) +let menuSectionItemId = 56; // Number | ID of Item to be moved +let taxRateId = 56; // Number | tax rate to be set against item +apiInstance.setSectionItemTax(menuId, menuSectionId, menuSectionItemId, taxRateId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Section to put item in (will usually be original section) | + **menuSectionItemId** | **Number**| ID of Item to be moved | + **taxRateId** | **Number**| tax rate to be set against item | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateMenuSectionItem + +> updateMenuSectionItem(menuId, menuSectionId, menuSectionItemId, menuSectionItem, opts) + +Update menu section item + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let menuSectionItem = new Flipdish.MenuSectionItemBase(); // MenuSectionItemBase | Menu section item (delta) +let opts = { + 'undoAfter': 3.4 // Number | An optional time period, in hours, after which the hide-section operation will be undone +}; +apiInstance.updateMenuSectionItem(menuId, menuSectionId, menuSectionItemId, menuSectionItem, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **menuSectionItem** | [**MenuSectionItemBase**](MenuSectionItemBase.md)| Menu section item (delta) | + **undoAfter** | **Number**| An optional time period, in hours, after which the hide-section operation will be undone | [optional] + +### Return type + +null (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 + + +## uploadMenuSectionItemImage + +> RestApiStringResult uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, Image) + +Upload menu section item image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionItemsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionItemId = 56; // Number | Menu section item identifier +let Image = "/path/to/file"; // File | Menu section item image +apiInstance.uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionItemId** | **Number**| Menu section item identifier | + **Image** | **File**| Menu section item image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/MenuSectionUpdatedEvent.md b/docs/MenuSectionUpdatedEvent.md new file mode 100644 index 00000000..c2c25a0f --- /dev/null +++ b/docs/MenuSectionUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuSectionUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**Description** | **String** | Event description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MenuSection** | [**MenuSection**](MenuSection.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuSectionsApi.md b/docs/MenuSectionsApi.md new file mode 100644 index 00000000..eadd644c --- /dev/null +++ b/docs/MenuSectionsApi.md @@ -0,0 +1,572 @@ +# Flipdish.MenuSectionsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cloneMenuSection**](MenuSectionsApi.md#cloneMenuSection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone | Clone menu section +[**createMenuAvailabilityForDay**](MenuSectionsApi.md#createMenuAvailabilityForDay) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek} | Set/update menu section availability hours. +[**createMenuSection**](MenuSectionsApi.md#createMenuSection) | **POST** /api/v1.0/menus/{menuId}/sections | Create menu section +[**createMenuSectionAvailability**](MenuSectionsApi.md#createMenuSectionAvailability) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability | Create menu availability type +[**deleteMenuSection**](MenuSectionsApi.md#deleteMenuSection) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Delete menu section +[**deleteMenuSectionImage**](MenuSectionsApi.md#deleteMenuSectionImage) | **DELETE** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Delete menu section image +[**getMenuSectionById**](MenuSectionsApi.md#getMenuSectionById) | **GET** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Get menu section by identifier +[**getMenuSections**](MenuSectionsApi.md#getMenuSections) | **GET** /api/v1.0/menus/{menuId}/sections | Get menu sections +[**menuSectionsSetItemDisplayOrders**](MenuSectionsApi.md#menuSectionsSetItemDisplayOrders) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders | Re-arrange Items within a Section +[**updateMenuSection**](MenuSectionsApi.md#updateMenuSection) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Update menu section +[**uploadMenuSectionImage**](MenuSectionsApi.md#uploadMenuSectionImage) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Upload menu section image + + + +## cloneMenuSection + +> RestApiResultMenuSection cloneMenuSection(menuId, menuSectionId) + +Clone menu section + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +apiInstance.cloneMenuSection(menuId, menuSectionId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + +### Return type + +[**RestApiResultMenuSection**](RestApiResultMenuSection.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## createMenuAvailabilityForDay + +> Object createMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod) + +Set/update menu section availability hours. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let dayOfWeek = "dayOfWeek_example"; // String | Day of the week +let businessHoursPeriod = new Flipdish.BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. +apiInstance.createMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **dayOfWeek** | **String**| Day of the week | + **businessHoursPeriod** | [**BusinessHoursPeriodBase**](BusinessHoursPeriodBase.md)| Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## createMenuSection + +> Object createMenuSection(menuId, menuSection) + +Create menu section + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSection = new Flipdish.MenuSectionBase(); // MenuSectionBase | Menu section +apiInstance.createMenuSection(menuId, menuSection, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSection** | [**MenuSectionBase**](MenuSectionBase.md)| Menu section | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## createMenuSectionAvailability + +> Object createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability) + +Create menu availability type + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSectionAvailability = new Flipdish.MenuSectionAvailabilityBase(); // MenuSectionAvailabilityBase | DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes +apiInstance.createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSectionAvailability** | [**MenuSectionAvailabilityBase**](MenuSectionAvailabilityBase.md)| DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteMenuSection + +> deleteMenuSection(menuId, menuSectionId) + +Delete menu section + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +apiInstance.deleteMenuSection(menuId, menuSectionId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## deleteMenuSectionImage + +> deleteMenuSectionImage(menuId, menuSectionId) + +Delete menu section image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +apiInstance.deleteMenuSectionImage(menuId, menuSectionId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getMenuSectionById + +> RestApiResultMenuSection getMenuSectionById(menuId, menuSectionId) + +Get menu section by identifier + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +apiInstance.getMenuSectionById(menuId, menuSectionId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + +### Return type + +[**RestApiResultMenuSection**](RestApiResultMenuSection.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenuSections + +> RestApiArrayResultMenuSection getMenuSections(menuId) + +Get menu sections + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.getMenuSections(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuSection**](RestApiArrayResultMenuSection.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## menuSectionsSetItemDisplayOrders + +> menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders) + +Re-arrange Items within a Section + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let displayOrders = new Flipdish.MenuObjectDisplayOrders(); // MenuObjectDisplayOrders | Item Ids and their new display order +apiInstance.menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **displayOrders** | [**MenuObjectDisplayOrders**](MenuObjectDisplayOrders.md)| Item Ids and their new display order | + +### Return type + +null (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 + + +## updateMenuSection + +> updateMenuSection(menuId, menuSectionId, menuSection, opts) + +Update menu section + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let menuSection = new Flipdish.MenuSectionBase(); // MenuSectionBase | Menu section changes (delta) +let opts = { + 'undoAfter': 3.4 // Number | An optional time period, in hours, after which the hide-section operation will be undone. +}; +apiInstance.updateMenuSection(menuId, menuSectionId, menuSection, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **menuSection** | [**MenuSectionBase**](MenuSectionBase.md)| Menu section changes (delta) | + **undoAfter** | **Number**| An optional time period, in hours, after which the hide-section operation will be undone. | [optional] + +### Return type + +null (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 + + +## uploadMenuSectionImage + +> RestApiStringResult uploadMenuSectionImage(menuId, menuSectionId, Image) + +Upload menu section image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuSectionsApi(); +let menuId = 56; // Number | Menu identifier +let menuSectionId = 56; // Number | Menu section identifier +let Image = "/path/to/file"; // File | Menu section image +apiInstance.uploadMenuSectionImage(menuId, menuSectionId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menuSectionId** | **Number**| Menu section identifier | + **Image** | **File**| Menu section image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/MenuStoreNames.md b/docs/MenuStoreNames.md new file mode 100644 index 00000000..92d4daaa --- /dev/null +++ b/docs/MenuStoreNames.md @@ -0,0 +1,9 @@ +# Flipdish.MenuStoreNames + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreNames** | **[String]** | Names of stores associated with menu | [optional] + + diff --git a/docs/MenuSummary.md b/docs/MenuSummary.md new file mode 100644 index 00000000..ccc42bba --- /dev/null +++ b/docs/MenuSummary.md @@ -0,0 +1,16 @@ +# Flipdish.MenuSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu identifier | [optional] +**ModifiedTime** | **Date** | Last modified time | [optional] +**VersionNumber** | **Number** | Menu version | [optional] +**MenuUrl** | **String** | Menu Url | [optional] +**Name** | **String** | Name of Menu, only shown in portal | [optional] +**Locked** | **Boolean** | Locked: is menu locked against modifcation | [optional] +**StoreNames** | **[String]** | List of stores names which are associated with this menu | [optional] +**IsIntegrated** | **Boolean** | Flag to indicate if the menu is integrated (contains metadata) | [optional] + + diff --git a/docs/MenuTaxDetails.md b/docs/MenuTaxDetails.md new file mode 100644 index 00000000..0b8613c5 --- /dev/null +++ b/docs/MenuTaxDetails.md @@ -0,0 +1,24 @@ +# Flipdish.MenuTaxDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaxRates** | [**[MenuTaxRate]**](MenuTaxRate.md) | Tax Rates | [optional] +**DisplayTax** | **Boolean** | Display tax for Menu | [optional] +**TaxType** | **String** | TaxType | [optional] +**ItemTaxes** | **{String: Number}** | ItemIds and TaxIds | [optional] +**SetItemTaxes** | **{String: Number}** | SetItemIds and TaxIds | [optional] + + + +## Enum: TaxTypeEnum + + +* `IncludedInBasePrice` (value: `"IncludedInBasePrice"`) + +* `ExcludedFromBasePrice` (value: `"ExcludedFromBasePrice"`) + + + + diff --git a/docs/MenuTaxRate.md b/docs/MenuTaxRate.md new file mode 100644 index 00000000..f4f6e1fd --- /dev/null +++ b/docs/MenuTaxRate.md @@ -0,0 +1,11 @@ +# Flipdish.MenuTaxRate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaxRateId** | **Number** | Id of Tax Rate | [optional] +**Name** | **String** | Name of Tax Rate | [optional] +**Rate** | **Number** | In Percentage | [optional] + + diff --git a/docs/MenuUpdatedEvent.md b/docs/MenuUpdatedEvent.md new file mode 100644 index 00000000..8a3a0d74 --- /dev/null +++ b/docs/MenuUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.MenuUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Menu** | [**Menu**](Menu.md) | | [optional] +**MenuId** | **Number** | Menu Id | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuUploadedEvent.md b/docs/MenuUploadedEvent.md new file mode 100644 index 00000000..1447bb88 --- /dev/null +++ b/docs/MenuUploadedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.MenuUploadedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Menu** | [**Menu**](Menu.md) | | [optional] +**InstanceEventCount** | **String** | Quantity of events | [optional] +**MenuId** | **Number** | The menu Id | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MenuZone.md b/docs/MenuZone.md new file mode 100644 index 00000000..a6793db3 --- /dev/null +++ b/docs/MenuZone.md @@ -0,0 +1,15 @@ +# Flipdish.MenuZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuZoneId** | **Number** | | [optional] +**MenuId** | **Number** | | [optional] +**Name** | **String** | | [optional] +**Description** | **String** | | [optional] +**ImageName** | **String** | | [optional] +**DisplayOrder** | **Number** | | [optional] +**ImageUrl** | **String** | | [optional] + + diff --git a/docs/MenuZonesApi.md b/docs/MenuZonesApi.md new file mode 100644 index 00000000..10c18e20 --- /dev/null +++ b/docs/MenuZonesApi.md @@ -0,0 +1,568 @@ +# Flipdish.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(menuId, menuZone) + +Adds a new menu zone to a menu. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuId = 56; // Number | The menu id. +let menuZone = new Flipdish.MenuZone(); // MenuZone | The object containing the new zone. This is optional and not supplying it will generate an empty default zone. +apiInstance.addMenuZone(menuId, menuZone, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| 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, Data + + +## deleteMenuZone + +> deleteMenuZone(menuZoneId, menuId) + +Deletes a menu zone. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuZoneId = 56; // Number | The menu zone id. +let menuId = "menuId_example"; // String | +apiInstance.deleteMenuZone(menuZoneId, menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuZoneId** | **Number**| The menu zone id. | + **menuId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## deleteMenuZoneImage + +> deleteMenuZoneImage(menuZoneId, menuId) + +Deletes a menu zone image. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuZoneId = 56; // Number | The zone Id/ +let menuId = "menuId_example"; // String | +apiInstance.deleteMenuZoneImage(menuZoneId, menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuZoneId** | **Number**| The zone Id/ | + **menuId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## flipMenuZones + +> flipMenuZones(menuZoneId, menuZoneI2, menuId) + +Flips the order of two menu zones. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuZoneId = 56; // Number | Source. +let menuZoneI2 = 56; // Number | Destination. +let menuId = "menuId_example"; // String | +apiInstance.flipMenuZones(menuZoneId, menuZoneI2, menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuZoneId** | **Number**| Source. | + **menuZoneI2** | **Number**| Destination. | + **menuId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getMenuZone + +> RestApiResultMenuZone getMenuZone(menuId, menuZoneId) + +Gets a specific menu zone for a given zone id + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuId = 56; // Number | The menu id. +let menuZoneId = 56; // Number | The menu zone id. +apiInstance.getMenuZone(menuId, menuZoneId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| The menu id. | + **menuZoneId** | **Number**| 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, Data + + +## getMenuZonesForMenuId + +> RestApiArrayResultMenuZone getMenuZonesForMenuId(menuId) + +Gets all the menu zones for a menu + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuId = 56; // Number | The menu id to load zones for +apiInstance.getMenuZonesForMenuId(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| 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, Data + + +## setMenuSectionMenuZone + +> setMenuSectionMenuZone(menuZoneId, menuSectionId, menuId) + +Assigns a zone to a menu section. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuZoneId = 56; // Number | The menu id. +let menuSectionId = 56; // Number | The menu section id. +let menuId = "menuId_example"; // String | +apiInstance.setMenuSectionMenuZone(menuZoneId, menuSectionId, menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuZoneId** | **Number**| The menu id. | + **menuSectionId** | **Number**| The menu section id. | + **menuId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## setMenuZoneDescription + +> setMenuZoneDescription(menuZoneId, menuId, description) + +Sets the description of a menu zone. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuZoneId = 56; // Number | The zone id. +let menuId = "menuId_example"; // String | +let description = "description_example"; // String | The new description. Add as a raw string in the request, without any JSON wrapper. +apiInstance.setMenuZoneDescription(menuZoneId, menuId, description, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuZoneId** | **Number**| The zone id. | + **menuId** | **String**| | + **description** | **String**| The new description. Add as a raw string in the request, without any JSON wrapper. | + +### Return type + +null (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 + + +## setMenuZoneName + +> setMenuZoneName(menuZoneId, menuZoneName, menuId) + +Sets the name of a menu zone. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuZoneId = 56; // Number | The menu zone id. +let menuZoneName = "menuZoneName_example"; // String | The new name. +let menuId = "menuId_example"; // String | +apiInstance.setMenuZoneName(menuZoneId, menuZoneName, menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuZoneId** | **Number**| The menu zone id. | + **menuZoneName** | **String**| The new name. | + **menuId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateMenuZone + +> updateMenuZone(menuId, menuZoneId, menuZone) + +Updates a menu zone. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuId = 56; // Number | The menu id. +let menuZoneId = 56; // Number | The menu zone id. +let menuZone = new Flipdish.MenuZone(); // MenuZone | The object containing the updated values. +apiInstance.updateMenuZone(menuId, menuZoneId, menuZone, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| The menu id. | + **menuZoneId** | **Number**| The menu zone id. | + **menuZone** | [**MenuZone**](MenuZone.md)| The object containing the updated values. | + +### Return type + +null (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 + + +## uploadMenuZoneImage + +> uploadMenuZoneImage(menuZoneId, menuId, file) + +Uploads an image for a menu zone. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenuZonesApi(); +let menuZoneId = 56; // Number | The zone id. +let menuId = "menuId_example"; // String | +let file = [new Flipdish.HttpPostedFileBase()]; // [HttpPostedFileBase] | The file to upload. +apiInstance.uploadMenuZoneImage(menuZoneId, menuId, file, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuZoneId** | **Number**| The zone id. | + **menuId** | **String**| | + **file** | [**[HttpPostedFileBase]**](HttpPostedFileBase.md)| The file to upload. | + +### Return type + +null (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 + diff --git a/docs/MenusApi.md b/docs/MenusApi.md new file mode 100644 index 00000000..10fe4bd4 --- /dev/null +++ b/docs/MenusApi.md @@ -0,0 +1,1724 @@ +# Flipdish.MenusApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDraftMenuFromExistingMenu**](MenusApi.md#createDraftMenuFromExistingMenu) | **POST** /api/v1.0/menus/{menuId}/clone/{newName} | Clone a menu, (without attaching stores) +[**createNewMenuAsync**](MenusApi.md#createNewMenuAsync) | **POST** /api/v1.0/{appId}/menus/async | Create a new menu asynchronously +[**createNewMenuForApp**](MenusApi.md#createNewMenuForApp) | **POST** /api/v1.0/{appId}/menus | Create a new menu +[**deleteMenu**](MenusApi.md#deleteMenu) | **DELETE** /api/v1.0/menus/{menuId} | Mark a Menu as Deleted +[**deleteMenuImage**](MenusApi.md#deleteMenuImage) | **DELETE** /api/v1.0/menus/{menuId}/image | Delete menu image +[**deleteMenuItemMetadata**](MenusApi.md#deleteMenuItemMetadata) | **DELETE** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Delete menu item metadata +[**getAllMenuMetadataByMenuIdAndStoreId**](MenusApi.md#getAllMenuMetadataByMenuIdAndStoreId) | **GET** /api/v1.0/menus/{menuId}/metadata/store/{storeId} | Get all menu metadata by menu ID and store ID +[**getMenuById**](MenusApi.md#getMenuById) | **GET** /api/v1.0/menus/{menuId} | Get menu by identifier +[**getMenuItemMetadata**](MenusApi.md#getMenuItemMetadata) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Get menu item metadata +[**getMenuItemMetadataByKey**](MenusApi.md#getMenuItemMetadataByKey) | **GET** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId} | Get menu item metadata by key +[**getMenuItemOptionSetItemMetadata**](MenusApi.md#getMenuItemOptionSetItemMetadata) | **GET** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Get menu item option set item metadata by key +[**getMenuName**](MenusApi.md#getMenuName) | **GET** /api/v1.0/menus/{menuId}/name | Get Menus Name +[**getMenuStoreNames**](MenusApi.md#getMenuStoreNames) | **GET** /api/v1.0/menus/{menuId}/stores | Get menus store names +[**getMenuTaxDetails**](MenusApi.md#getMenuTaxDetails) | **GET** /api/v1.0/menus/{menuId}/tax | Get menus tax details +[**getMenusByAppId**](MenusApi.md#getMenusByAppId) | **GET** /api/v1.0/{appId}/menus | Get menus by appId +[**getMenusCheckpoints**](MenusApi.md#getMenusCheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | Get a Menus Checkpoints +[**menusDeleteTaxRate**](MenusApi.md#menusDeleteTaxRate) | **DELETE** /api/v1.0/menus/{menuId}/tax/{taxId} | Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached +[**menusGetMenuBulkShowHide**](MenusApi.md#menusGetMenuBulkShowHide) | **GET** /api/v1.0/menus/{menuId}/bulkshowhide/list | Get bulk show/hide menu items and option set items +[**menusIsWhiteLabelMigratedToRms**](MenusApi.md#menusIsWhiteLabelMigratedToRms) | **GET** /api/v1.0/menus/isWhiteLabelMigratedToRms | PRIVATE API, TEMPORARY ENDPOINT RMS can check if a white label is migrated to RMS +[**menusMarkWhiteLabelAsMigratedToRms**](MenusApi.md#menusMarkWhiteLabelAsMigratedToRms) | **POST** /api/v1.0/menus/markWhiteLabelAsMigratedToRms | PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as migrated to RMS, which will block all Menu editing operations via Zeus +[**menusMarkWhiteLabelAsNotMigratedToRms**](MenusApi.md#menusMarkWhiteLabelAsNotMigratedToRms) | **POST** /api/v1.0/menus/markWhiteLabelAsNotMigratedToRms | PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as NOT migrated to RMS, which will unblock all Menu editing operations via Zeus +[**menusSetDisplayOnMenuTax**](MenusApi.md#menusSetDisplayOnMenuTax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | Set if tax shows for a Menu +[**menusSetItemDisplayOrders**](MenusApi.md#menusSetItemDisplayOrders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | Re-arrange Sections within a Menu +[**menusShowHideBulkItems**](MenusApi.md#menusShowHideBulkItems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | Bulk show/hide menu items or option set items +[**menusUpdateTaxType**](MenusApi.md#menusUpdateTaxType) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | Set the type of Tax on a Menu +[**menusUpsertTaxRate**](MenusApi.md#menusUpsertTaxRate) | **POST** /api/v1.0/menus/{menuId}/taxrate | Add/Update a Tax Rate +[**restoreAMenuCheckpoint**](MenusApi.md#restoreAMenuCheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | Restore a Menu to a checkpoint +[**setMenuItemMetadata**](MenusApi.md#setMenuItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId} | Update menu item metadata +[**setMenuItemOptionSetItemMetadata**](MenusApi.md#setMenuItemOptionSetItemMetadata) | **PUT** /api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId} | Update menu item option set item metadata +[**setMenuLock**](MenusApi.md#setMenuLock) | **POST** /api/v1.0/menus/{menuId}/lock | Lock/Unlock a Menu for Editing +[**setMenuName**](MenusApi.md#setMenuName) | **POST** /api/v1.0/menus/{menuId}/name | Set Menus Name +[**updateMenu**](MenusApi.md#updateMenu) | **POST** /api/v1.0/menus/{menuId} | Update menu +[**uploadMenuImage**](MenusApi.md#uploadMenuImage) | **POST** /api/v1.0/menus/{menuId}/image | Upload menu image +[**uploadNewMenuForApp**](MenusApi.md#uploadNewMenuForApp) | **POST** /api/v1.0/{appId}/menus/xlsx | Create a new menu from xlsx file. + + + +## createDraftMenuFromExistingMenu + +> RestApiResultMenu createDraftMenuFromExistingMenu(menuId, newName) + +Clone a menu, (without attaching stores) + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let newName = "newName_example"; // String | Name of the new Menu +apiInstance.createDraftMenuFromExistingMenu(menuId, newName, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **newName** | **String**| Name of the new Menu | + +### Return type + +[**RestApiResultMenu**](RestApiResultMenu.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## createNewMenuAsync + +> Object createNewMenuAsync(appId, menu) + +Create a new menu asynchronously + +You must listen to the webhook menu.async_creation.completed to know when the menu is ready + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let appId = "appId_example"; // String | App id +let menu = new Flipdish.CreateFullMenu(); // CreateFullMenu | Menu +apiInstance.createNewMenuAsync(appId, menu, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App id | + **menu** | [**CreateFullMenu**](CreateFullMenu.md)| Menu | + +### 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 + + +## createNewMenuForApp + +> Number createNewMenuForApp(appId, menu) + +Create a new menu + +[DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let appId = "appId_example"; // String | App identifier +let menu = new Flipdish.CreateFullMenu(); // CreateFullMenu | Menu. If empty the system will create a menu with default items +apiInstance.createNewMenuForApp(appId, menu, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App identifier | + **menu** | [**CreateFullMenu**](CreateFullMenu.md)| Menu. If empty the system will create a menu with default items | + +### Return type + +**Number** + +### 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 + + +## deleteMenu + +> deleteMenu(menuId) + +Mark a Menu as Deleted + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu Identifier +apiInstance.deleteMenu(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu Identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## deleteMenuImage + +> deleteMenuImage(menuId) + +Delete menu image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.deleteMenuImage(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message + + +## deleteMenuItemMetadata + +> deleteMenuItemMetadata(menuId, storeId, menuItemId, key) + +Delete menu item metadata + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let storeId = 56; // Number | Store identifier +let menuItemId = 56; // Number | Menu item identifier +let key = "key_example"; // String | Metadata key +apiInstance.deleteMenuItemMetadata(menuId, storeId, menuItemId, key, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **storeId** | **Number**| Store identifier | + **menuItemId** | **Number**| Menu item identifier | + **key** | **String**| Metadata key | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getAllMenuMetadataByMenuIdAndStoreId + +> RestApiArrayResultAllMetadataResult getAllMenuMetadataByMenuIdAndStoreId(menuId, storeId) + +Get all menu metadata by menu ID and store ID + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let storeId = 56; // Number | Store identifier +apiInstance.getAllMenuMetadataByMenuIdAndStoreId(menuId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **storeId** | **Number**| Store identifier | + +### Return type + +[**RestApiArrayResultAllMetadataResult**](RestApiArrayResultAllMetadataResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenuById + +> RestApiResultMenu getMenuById(menuId) + +Get menu by identifier + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.getMenuById(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + +### Return type + +[**RestApiResultMenu**](RestApiResultMenu.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getMenuItemMetadata + +> RestApiArrayResultMetadata getMenuItemMetadata(menuId, storeId, menuItemId) + +Get menu item metadata + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let storeId = 56; // Number | Store identifier +let menuItemId = 56; // Number | Menu item identifier +apiInstance.getMenuItemMetadata(menuId, storeId, menuItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **storeId** | **Number**| Store identifier | + **menuItemId** | **Number**| Menu item identifier | + +### Return type + +[**RestApiArrayResultMetadata**](RestApiArrayResultMetadata.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenuItemMetadataByKey + +> RestApiResultMetadata getMenuItemMetadataByKey(menuId, storeId, menuItemId, key) + +Get menu item metadata by key + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let storeId = 56; // Number | Store identifier +let menuItemId = 56; // Number | Menu item identifier +let key = "key_example"; // String | Metadata key +apiInstance.getMenuItemMetadataByKey(menuId, storeId, menuItemId, key, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **storeId** | **Number**| Store identifier | + **menuItemId** | **Number**| Menu item identifier | + **key** | **String**| Metadata key | + +### Return type + +[**RestApiResultMetadata**](RestApiResultMetadata.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getMenuItemOptionSetItemMetadata + +> RestApiResultMetadata getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId) + +Get menu item option set item metadata by key + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let storeId = 56; // Number | Store identifier +let optionSetItemId = 56; // Number | Menu item option set item identifier +apiInstance.getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **storeId** | **Number**| Store identifier | + **optionSetItemId** | **Number**| Menu item option set item identifier | + +### Return type + +[**RestApiResultMetadata**](RestApiResultMetadata.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenuName + +> String getMenuName(menuId) + +Get Menus Name + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.getMenuName(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + +### Return type + +**String** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getMenuStoreNames + +> RestApiArrayResultMenuStoreNames getMenuStoreNames(menuId) + +Get menus store names + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.getMenuStoreNames(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuStoreNames**](RestApiArrayResultMenuStoreNames.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getMenuTaxDetails + +> RestApiArrayResultMenuTaxDetails getMenuTaxDetails(menuId) + +Get menus tax details + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.getMenuTaxDetails(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuTaxDetails**](RestApiArrayResultMenuTaxDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getMenusByAppId + +> RestApiArrayResultMenuSummary getMenusByAppId(appId) + +Get menus by appId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let appId = "appId_example"; // String | Get Menus for this appId +apiInstance.getMenusByAppId(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| Get Menus for this appId | + +### Return type + +[**RestApiArrayResultMenuSummary**](RestApiArrayResultMenuSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getMenusCheckpoints + +> RestApiArrayResultMenuCheckpoint getMenusCheckpoints(menuId) + +Get a Menus Checkpoints + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.getMenusCheckpoints(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + +### Return type + +[**RestApiArrayResultMenuCheckpoint**](RestApiArrayResultMenuCheckpoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## menusDeleteTaxRate + +> menusDeleteTaxRate(menuId, taxId) + +Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let taxId = 56; // Number | Id of Menu Tax to be removed +apiInstance.menusDeleteTaxRate(menuId, taxId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **taxId** | **Number**| Id of Menu Tax to be removed | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## menusGetMenuBulkShowHide + +> RestApiArrayResultMenuElementListResponse menusGetMenuBulkShowHide(menuId, isAvailable) + +Get bulk show/hide menu items and option set items + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu id +let isAvailable = true; // Boolean | Is available flag +apiInstance.menusGetMenuBulkShowHide(menuId, isAvailable, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu id | + **isAvailable** | **Boolean**| Is available flag | + +### Return type + +[**RestApiArrayResultMenuElementListResponse**](RestApiArrayResultMenuElementListResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## menusIsWhiteLabelMigratedToRms + +> Object menusIsWhiteLabelMigratedToRms(opts) + +PRIVATE API, TEMPORARY ENDPOINT RMS can check if a white label is migrated to RMS + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let opts = { + 'whiteLabelId': 56, // Number | white label id (integer) + 'appId': "appId_example" // String | appId (string) +}; +apiInstance.menusIsWhiteLabelMigratedToRms(opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whiteLabelId** | **Number**| white label id (integer) | [optional] + **appId** | **String**| appId (string) | [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 + + +## menusMarkWhiteLabelAsMigratedToRms + +> Object menusMarkWhiteLabelAsMigratedToRms(opts) + +PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as migrated to RMS, which will block all Menu editing operations via Zeus + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let opts = { + 'whiteLabelId': 56, // Number | white label id (integer) + 'appId': "appId_example" // String | appId (string) +}; +apiInstance.menusMarkWhiteLabelAsMigratedToRms(opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whiteLabelId** | **Number**| white label id (integer) | [optional] + **appId** | **String**| appId (string) | [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 + + +## menusMarkWhiteLabelAsNotMigratedToRms + +> Object menusMarkWhiteLabelAsNotMigratedToRms(opts) + +PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as NOT migrated to RMS, which will unblock all Menu editing operations via Zeus + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let opts = { + 'whiteLabelId': 56, // Number | white label id (integer) + 'appId': "appId_example" // String | appId (string) +}; +apiInstance.menusMarkWhiteLabelAsNotMigratedToRms(opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **whiteLabelId** | **Number**| white label id (integer) | [optional] + **appId** | **String**| appId (string) | [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 + + +## menusSetDisplayOnMenuTax + +> menusSetDisplayOnMenuTax(menuId, show) + +Set if tax shows for a Menu + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let show = true; // Boolean | Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) +apiInstance.menusSetDisplayOnMenuTax(menuId, show, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **show** | **Boolean**| Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## menusSetItemDisplayOrders + +> menusSetItemDisplayOrders(menuId, displayOrders) + +Re-arrange Sections within a Menu + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let displayOrders = new Flipdish.MenuObjectDisplayOrders(); // MenuObjectDisplayOrders | Section Ids and their new display order +apiInstance.menusSetItemDisplayOrders(menuId, displayOrders, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **displayOrders** | [**MenuObjectDisplayOrders**](MenuObjectDisplayOrders.md)| Section Ids and their new display order | + +### Return type + +null (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 + + +## menusShowHideBulkItems + +> RestApiArrayResultMenuElementEditResponse menusShowHideBulkItems(menuId, isAvailable, menuElements) + +Bulk show/hide menu items or option set items + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu id +let isAvailable = true; // Boolean | Is available flag +let menuElements = [new Flipdish.MenuElementHide()]; // [MenuElementHide] | Elements to be show/hide +apiInstance.menusShowHideBulkItems(menuId, isAvailable, menuElements, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu id | + **isAvailable** | **Boolean**| Is available flag | + **menuElements** | [**[MenuElementHide]**](MenuElementHide.md)| Elements to be show/hide | + +### Return type + +[**RestApiArrayResultMenuElementEditResponse**](RestApiArrayResultMenuElementEditResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## menusUpdateTaxType + +> menusUpdateTaxType(menuId, type) + +Set the type of Tax on a Menu + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let type = "type_example"; // String | Type of Tax +apiInstance.menusUpdateTaxType(menuId, type, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **type** | **String**| Type of Tax | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## menusUpsertTaxRate + +> MenuTaxRate menusUpsertTaxRate(menuId, taxRate) + +Add/Update a Tax Rate + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let taxRate = new Flipdish.MenuTaxRate(); // MenuTaxRate | Tax rate to add/update +apiInstance.menusUpsertTaxRate(menuId, taxRate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **taxRate** | [**MenuTaxRate**](MenuTaxRate.md)| Tax rate to add/update | + +### Return type + +[**MenuTaxRate**](MenuTaxRate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## restoreAMenuCheckpoint + +> restoreAMenuCheckpoint(menuId, checkpointId) + +Restore a Menu to a checkpoint + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let checkpointId = 56; // Number | Checkpoint to restore menu to +apiInstance.restoreAMenuCheckpoint(menuId, checkpointId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **checkpointId** | **Number**| Checkpoint to restore menu to | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## setMenuItemMetadata + +> setMenuItemMetadata(menuId, storeId, menuItemId, metadata) + +Update menu item metadata + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let storeId = 56; // Number | Store identifier +let menuItemId = 56; // Number | Menu item identifier +let metadata = new Flipdish.Metadata(); // Metadata | Metadata object +apiInstance.setMenuItemMetadata(menuId, storeId, menuItemId, metadata, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **storeId** | **Number**| Store identifier | + **menuItemId** | **Number**| Menu item identifier | + **metadata** | [**Metadata**](Metadata.md)| Metadata object | + +### Return type + +null (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 + + +## setMenuItemOptionSetItemMetadata + +> setMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, metadata) + +Update menu item option set item metadata + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let storeId = 56; // Number | Store identifier +let optionSetItemId = 56; // Number | Menu item option set item identifier +let metadata = new Flipdish.Metadata(); // Metadata | Metadata object +apiInstance.setMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, metadata, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **storeId** | **Number**| Store identifier | + **optionSetItemId** | **Number**| Menu item option set item identifier | + **metadata** | [**Metadata**](Metadata.md)| Metadata object | + +### Return type + +null (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 + + +## setMenuLock + +> setMenuLock(menuId, locked) + +Lock/Unlock a Menu for Editing + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let locked = true; // Boolean | True: Locks menu for editing, False: Unlocks for editing +apiInstance.setMenuLock(menuId, locked, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **locked** | **Boolean**| True: Locks menu for editing, False: Unlocks for editing | + +### Return type + +null (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 + + +## setMenuName + +> setMenuName(menuId, name) + +Set Menus Name + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let name = "name_example"; // String | Name to set for this Menu +apiInstance.setMenuName(menuId, name, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **name** | **String**| Name to set for this Menu | + +### Return type + +null (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 + + +## updateMenu + +> updateMenu(menuId, menu) + +Update menu + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let menu = new Flipdish.MenuBase(); // MenuBase | Full menu data +apiInstance.updateMenu(menuId, menu, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **menu** | [**MenuBase**](MenuBase.md)| Full menu data | + +### Return type + +null (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 + + +## uploadMenuImage + +> RestApiStringResult uploadMenuImage(menuId, Image) + +Upload menu image + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let menuId = 56; // Number | Menu identifier +let Image = "/path/to/file"; // File | Menu image +apiInstance.uploadMenuImage(menuId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **Image** | **File**| Menu image | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## uploadNewMenuForApp + +> Number uploadNewMenuForApp(appId, Menu) + +Create a new menu from xlsx file. + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusApi(); +let appId = "appId_example"; // String | App identifier +let Menu = "/path/to/file"; // File | Uploaded xlsx menu +apiInstance.uploadNewMenuForApp(appId, Menu, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| App identifier | + **Menu** | **File**| Uploaded xlsx menu | + +### Return type + +**Number** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/MenusNutritionInfoApi.md b/docs/MenusNutritionInfoApi.md new file mode 100644 index 00000000..38a458b9 --- /dev/null +++ b/docs/MenusNutritionInfoApi.md @@ -0,0 +1,308 @@ +# Flipdish.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(menuId, publicId, addOrUpdateModel) + +Add or update menuitem nutrition info by menu item's publicId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoApi(); +let menuId = 56; // Number | Menu identifier +let publicId = "publicId_example"; // String | Menu item's publicId +let addOrUpdateModel = new Flipdish.ItemNutritionInfoAddUpdateModel(); // ItemNutritionInfoAddUpdateModel | +apiInstance.addOrUpdateMenuItemNutritionInfo(menuId, publicId, addOrUpdateModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| 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, Data, Message, ErrorCode, StackTrace + + +## addOrUpdateMenuItemOptionSetItemNutritionInfo + +> RestApiResultMenuNutritionInfoHeader addOrUpdateMenuItemOptionSetItemNutritionInfo(menuId, publicId, addOrUpdateModel) + +Add or update menuitem optionsetitem nutrition info its publicId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoApi(); +let menuId = 56; // Number | Menu identifier +let publicId = null; // String | Menu item's publicId +let addOrUpdateModel = new Flipdish.ItemNutritionInfoAddUpdateModel(); // ItemNutritionInfoAddUpdateModel | +apiInstance.addOrUpdateMenuItemOptionSetItemNutritionInfo(menuId, publicId, addOrUpdateModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **publicId** | [**String**](.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, Data, Message, ErrorCode, StackTrace + + +## addOrUpdateMenuNutritionInfoByMenuId + +> RestApiResultMenuNutritionInfoHeader addOrUpdateMenuNutritionInfoByMenuId(menuId) + +Add or update menu nutrition by identifier + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.addOrUpdateMenuNutritionInfoByMenuId(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| 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, Data, Message, ErrorCode, StackTrace + + +## deleteMenuNutritionInfoByMenuId + +> Object deleteMenuNutritionInfoByMenuId(menuId) + +Delete menu nutrition information by menuId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.deleteMenuNutritionInfoByMenuId(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| 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, Message, ErrorCode, StackTrace + + +## getAllergens + +> RestApiArrayResultAllergen getAllergens(appId, opts) + +Get allergens + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoApi(); +let appId = "appId_example"; // String | +let opts = { + 'languageId': "languageId_example" // String | +}; +apiInstance.getAllergens(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## getMenuNutritionInfoByMenuId + +> RestApiResultNutritionInfo getMenuNutritionInfoByMenuId(menuId) + +Get menu nutrition by menuId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoApi(); +let menuId = 56; // Number | Menu identifier +apiInstance.getMenuNutritionInfoByMenuId(menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| 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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/MenusNutritionInfoV2Api.md b/docs/MenusNutritionInfoV2Api.md new file mode 100644 index 00000000..13c925d8 --- /dev/null +++ b/docs/MenusNutritionInfoV2Api.md @@ -0,0 +1,222 @@ +# Flipdish.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(menuId, publicId, appId, addOrUpdateModel) + +Add or update menuitem nutrition info by menu item's publicId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoV2Api(); +let menuId = 56; // Number | Menu identifier +let publicId = "publicId_example"; // String | Menu item's publicId +let appId = "appId_example"; // String | +let addOrUpdateModel = new Flipdish.ItemNutritionInfoV2AddUpdateModel(); // ItemNutritionInfoV2AddUpdateModel | Allergen ids +apiInstance.addOrUpdateMenuItemNutritionInfoV2(menuId, publicId, appId, addOrUpdateModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **publicId** | **String**| Menu item's publicId | + **appId** | **String**| | + **addOrUpdateModel** | [**ItemNutritionInfoV2AddUpdateModel**](ItemNutritionInfoV2AddUpdateModel.md)| Allergen ids | + +### 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 + + +## addOrUpdateMenuItemOptionSetItemNutritionInfoV2 + +> Object addOrUpdateMenuItemOptionSetItemNutritionInfoV2(menuId, publicId, appId, addOrUpdateModel) + +Add or update menuitem option set item's nutrition info by its publicId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoV2Api(); +let menuId = 56; // Number | Menu identifier +let publicId = "publicId_example"; // String | Menu item option set item's publicId +let appId = "appId_example"; // String | +let addOrUpdateModel = new Flipdish.ItemNutritionInfoV2AddUpdateModel(); // ItemNutritionInfoV2AddUpdateModel | Allergen ids +apiInstance.addOrUpdateMenuItemOptionSetItemNutritionInfoV2(menuId, publicId, appId, addOrUpdateModel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **menuId** | **Number**| Menu identifier | + **publicId** | **String**| Menu item option set item's publicId | + **appId** | **String**| | + **addOrUpdateModel** | [**ItemNutritionInfoV2AddUpdateModel**](ItemNutritionInfoV2AddUpdateModel.md)| Allergen ids | + +### 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 + + +## getAllergensV2 + +> RestApiArrayResultAllergen getAllergensV2(appId, opts) + +Get allergens + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoV2Api(); +let appId = "appId_example"; // String | +let opts = { + 'languageId': "languageId_example" // String | +}; +apiInstance.getAllergensV2(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## getMenuNutritionInfoV2ByMenuId + +> RestApiResultNutritionInfoV2 getMenuNutritionInfoV2ByMenuId(appId, menuId, opts) + +Get menu nutrition by menuId + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MenusNutritionInfoV2Api(); +let appId = "appId_example"; // String | +let menuId = 56; // Number | Menu identifier +let opts = { + 'languageId': "languageId_example" // String | +}; +apiInstance.getMenuNutritionInfoV2ByMenuId(appId, menuId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **menuId** | **Number**| 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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/Metadata.md b/docs/Metadata.md new file mode 100644 index 00000000..e9109aab --- /dev/null +++ b/docs/Metadata.md @@ -0,0 +1,11 @@ +# Flipdish.Metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuEntityId** | **Number** | Menu entity identifier (eg: MenuItemId, MenuItemOptionSetItemId) | [optional] +**Key** | **String** | Metadata key (Unique identifier) | [optional] +**Value** | **String** | Metadata value | [optional] + + diff --git a/docs/Metafield.md b/docs/Metafield.md new file mode 100644 index 00000000..456a8053 --- /dev/null +++ b/docs/Metafield.md @@ -0,0 +1,10 @@ +# Flipdish.Metafield + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **String** | Key of the metafield. Allowed characters: lowercase letters, numbers, hyphen, underscore and dot | +**Value** | **String** | Value of the metafield. | + + diff --git a/docs/MetafieldDefinition.md b/docs/MetafieldDefinition.md new file mode 100644 index 00000000..29ecb139 --- /dev/null +++ b/docs/MetafieldDefinition.md @@ -0,0 +1,55 @@ +# Flipdish.MetafieldDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsReadOnly** | **Boolean** | Indicates if a definition can be edited or not | [optional] +**OwnerEntity** | **String** | The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} | [optional] +**Key** | **String** | Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore | +**ValueType** | **String** | The excepted type for the Value field | [optional] +**Name** | **String** | Field Name | +**Description** | **String** | Field Description | [optional] +**Behaviors** | **[String]** | Enable Metafield Behaviors | [optional] +**MetafieldDefinitionRecommendationId** | **Number** | Metafield Recommendation Id | [optional] + + + +## Enum: OwnerEntityEnum + + +* `CatalogItem` (value: `"CatalogItem"`) + +* `CatalogGroup` (value: `"CatalogGroup"`) + +* `Menu` (value: `"Menu"`) + + + + + +## Enum: ValueTypeEnum + + +* `Boolean` (value: `"Boolean"`) + +* `Json` (value: `"Json"`) + +* `SingleLineString` (value: `"SingleLineString"`) + +* `MultiLineString` (value: `"MultiLineString"`) + + + + + +## Enum: [BehaviorsEnum] + + +* `SendToOrder` (value: `"SendToOrder"`) + +* `SendToMenu` (value: `"SendToMenu"`) + + + + diff --git a/docs/MetafieldDefinitionRecommendation.md b/docs/MetafieldDefinitionRecommendation.md new file mode 100644 index 00000000..ae3c2d20 --- /dev/null +++ b/docs/MetafieldDefinitionRecommendation.md @@ -0,0 +1,54 @@ +# Flipdish.MetafieldDefinitionRecommendation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerEntity** | **String** | The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} | [optional] +**Key** | **String** | Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore | +**ValueType** | **String** | The excepted type for the Value field | [optional] +**Name** | **String** | Field Name | +**Description** | **String** | Field Description | [optional] +**Behaviors** | **[String]** | Enable Metafield Behaviors | [optional] +**MetafieldDefinitionRecommendationId** | **Number** | Metafield Recommendation Id | [optional] + + + +## Enum: OwnerEntityEnum + + +* `CatalogItem` (value: `"CatalogItem"`) + +* `CatalogGroup` (value: `"CatalogGroup"`) + +* `Menu` (value: `"Menu"`) + + + + + +## Enum: ValueTypeEnum + + +* `Boolean` (value: `"Boolean"`) + +* `Json` (value: `"Json"`) + +* `SingleLineString` (value: `"SingleLineString"`) + +* `MultiLineString` (value: `"MultiLineString"`) + + + + + +## Enum: [BehaviorsEnum] + + +* `SendToOrder` (value: `"SendToOrder"`) + +* `SendToMenu` (value: `"SendToMenu"`) + + + + diff --git a/docs/MetafieldDefinitionsApi.md b/docs/MetafieldDefinitionsApi.md new file mode 100644 index 00000000..98bb10c0 --- /dev/null +++ b/docs/MetafieldDefinitionsApi.md @@ -0,0 +1,330 @@ +# Flipdish.MetafieldDefinitionsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createMetafieldDefinition**](MetafieldDefinitionsApi.md#createMetafieldDefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +[**getMetafieldDefinitionByKey**](MetafieldDefinitionsApi.md#getMetafieldDefinitionByKey) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | +[**getMetafieldDefinitions**](MetafieldDefinitionsApi.md#getMetafieldDefinitions) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | +[**getOwnerEntityConfigurations**](MetafieldDefinitionsApi.md#getOwnerEntityConfigurations) | **GET** /api/v1.0/{appId}/metafields/definitions | +[**getOwnerEntityRecommendations**](MetafieldDefinitionsApi.md#getOwnerEntityRecommendations) | **GET** /api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity} | +[**updateMetafieldDefinition**](MetafieldDefinitionsApi.md#updateMetafieldDefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | + + + +## createMetafieldDefinition + +> RestApiResultMetafieldDefinition createMetafieldDefinition(appId, ownerEntity, createMetafieldDefinition) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MetafieldDefinitionsApi(); +let appId = "appId_example"; // String | +let ownerEntity = "ownerEntity_example"; // String | +let createMetafieldDefinition = new Flipdish.CreateMetafieldDefinition(); // CreateMetafieldDefinition | +apiInstance.createMetafieldDefinition(appId, ownerEntity, createMetafieldDefinition, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **ownerEntity** | **String**| | + **createMetafieldDefinition** | [**CreateMetafieldDefinition**](CreateMetafieldDefinition.md)| | + +### Return type + +[**RestApiResultMetafieldDefinition**](RestApiResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, IsReadOnly, OwnerEntity, Key, ValueType, Name, Description, Behaviors + + +## getMetafieldDefinitionByKey + +> RestApiResultMetafieldDefinition getMetafieldDefinitionByKey(appId, ownerEntity, key) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MetafieldDefinitionsApi(); +let appId = "appId_example"; // String | +let ownerEntity = "ownerEntity_example"; // String | +let key = "key_example"; // String | +apiInstance.getMetafieldDefinitionByKey(appId, ownerEntity, key, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **ownerEntity** | **String**| | + **key** | **String**| | + +### Return type + +[**RestApiResultMetafieldDefinition**](RestApiResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, IsReadOnly, OwnerEntity, Key, ValueType, Name, Description, Behaviors + + +## getMetafieldDefinitions + +> RestApiPaginationResultMetafieldDefinition getMetafieldDefinitions(appId, ownerEntity, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MetafieldDefinitionsApi(); +let appId = "appId_example"; // String | +let ownerEntity = "ownerEntity_example"; // String | +let opts = { + 'searchTerm': "searchTerm_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getMetafieldDefinitions(appId, ownerEntity, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **ownerEntity** | **String**| | + **searchTerm** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultMetafieldDefinition**](RestApiPaginationResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getOwnerEntityConfigurations + +> OwnerEntityConfigurations getOwnerEntityConfigurations(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MetafieldDefinitionsApi(); +let appId = "appId_example"; // String | +apiInstance.getOwnerEntityConfigurations(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**OwnerEntityConfigurations**](OwnerEntityConfigurations.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Configurations + + +## getOwnerEntityRecommendations + +> RestApiPaginationResultMetafieldDefinitionRecommendation getOwnerEntityRecommendations(appId, ownerEntity, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MetafieldDefinitionsApi(); +let appId = "appId_example"; // String | +let ownerEntity = "ownerEntity_example"; // String | +let opts = { + 'searchTerm': "searchTerm_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getOwnerEntityRecommendations(appId, ownerEntity, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **ownerEntity** | **String**| | + **searchTerm** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultMetafieldDefinitionRecommendation**](RestApiPaginationResultMetafieldDefinitionRecommendation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateMetafieldDefinition + +> RestApiResultMetafieldDefinition updateMetafieldDefinition(appId, ownerEntity, key, updateMetafieldDefinition) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MetafieldDefinitionsApi(); +let appId = "appId_example"; // String | +let ownerEntity = "ownerEntity_example"; // String | +let key = "key_example"; // String | +let updateMetafieldDefinition = new Flipdish.UpdateMetafieldDefinition(); // UpdateMetafieldDefinition | +apiInstance.updateMetafieldDefinition(appId, ownerEntity, key, updateMetafieldDefinition, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **ownerEntity** | **String**| | + **key** | **String**| | + **updateMetafieldDefinition** | [**UpdateMetafieldDefinition**](UpdateMetafieldDefinition.md)| | + +### Return type + +[**RestApiResultMetafieldDefinition**](RestApiResultMetafieldDefinition.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, IsReadOnly, OwnerEntity, Key, ValueType, Name, Description, Behaviors + diff --git a/docs/MobileAppsApi.md b/docs/MobileAppsApi.md new file mode 100644 index 00000000..75e22151 --- /dev/null +++ b/docs/MobileAppsApi.md @@ -0,0 +1,564 @@ +# Flipdish.MobileAppsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAppConfigSalesChannel**](MobileAppsApi.md#getAppConfigSalesChannel) | **GET** /api/v1.0/mobileapps/{appId}/saleschannel/details | +[**getStatistics**](MobileAppsApi.md#getStatistics) | **GET** /api/v1.0/mobileapps/{appId}/statistics | +[**getSubmissionDetails**](MobileAppsApi.md#getSubmissionDetails) | **GET** /api/v1.0/mobileapps/{appId}/submission/details | +[**getSubmissionStatus**](MobileAppsApi.md#getSubmissionStatus) | **GET** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +[**publish**](MobileAppsApi.md#publish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/publish | +[**resubmission**](MobileAppsApi.md#resubmission) | **POST** /api/v1.0/mobileapps/{appId}/resubmission | +[**submission**](MobileAppsApi.md#submission) | **POST** /api/v1.0/mobileapps/{appId}/submission | +[**unpublish**](MobileAppsApi.md#unpublish) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/unpublish | +[**updateAppConfigSalesChannel**](MobileAppsApi.md#updateAppConfigSalesChannel) | **POST** /api/v1.0/mobileapps/{appId}/saleschannel | +[**updateSubmissionStatus**](MobileAppsApi.md#updateSubmissionStatus) | **POST** /api/v1.0/mobileapps/{appId}/submission/{submissionId}/status | +[**uploadImage**](MobileAppsApi.md#uploadImage) | **POST** /api/v1.0/mobileapps/{appId}/submission/image | + + + +## getAppConfigSalesChannel + +> RestApiResultAppConfigSalesChannel getAppConfigSalesChannel(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +apiInstance.getAppConfigSalesChannel(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultAppConfigSalesChannel**](RestApiResultAppConfigSalesChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStatistics + +> RestApiArrayResultMobileAppsStatistics getStatistics(appId, platformTypes) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let platformTypes = ["null"]; // [String] | +apiInstance.getStatistics(appId, platformTypes, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **platformTypes** | [**[String]**](String.md)| | + +### Return type + +[**RestApiArrayResultMobileAppsStatistics**](RestApiArrayResultMobileAppsStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getSubmissionDetails + +> RestApiResultMobileAppsSubmissionDetails getSubmissionDetails(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +apiInstance.getSubmissionDetails(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultMobileAppsSubmissionDetails**](RestApiResultMobileAppsSubmissionDetails.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getSubmissionStatus + +> RestApiResultMobileAppsSubmissionStatus getSubmissionStatus(appId, submissionId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let submissionId = 56; // Number | +apiInstance.getSubmissionStatus(appId, submissionId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **submissionId** | **Number**| | + +### Return type + +[**RestApiResultMobileAppsSubmissionStatus**](RestApiResultMobileAppsSubmissionStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## publish + +> RestApiResultRestApiIntegerResult publish(appId, submissionId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let submissionId = 56; // Number | +let opts = { + 'platformType': "platformType_example" // String | +}; +apiInstance.publish(appId, submissionId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **submissionId** | **Number**| | + **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, Data + + +## resubmission + +> RestApiResultMobileAppsSubmission resubmission(appId, mobileAppsSubmission) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let mobileAppsSubmission = new Flipdish.MobileAppsSubmission(); // MobileAppsSubmission | +apiInstance.resubmission(appId, mobileAppsSubmission, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## submission + +> RestApiResultMobileAppsSubmission submission(appId, mobileAppsSubmission) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let mobileAppsSubmission = new Flipdish.MobileAppsSubmission(); // MobileAppsSubmission | +apiInstance.submission(appId, mobileAppsSubmission, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## unpublish + +> RestApiIntegerResult unpublish(appId, submissionId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let submissionId = 56; // Number | +let opts = { + 'platformType': "platformType_example" // String | +}; +apiInstance.unpublish(appId, submissionId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **submissionId** | **Number**| | + **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, Data + + +## updateAppConfigSalesChannel + +> RestApiResultAppConfigSalesChannel updateAppConfigSalesChannel(appId, appConfigSalesChannel) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let appConfigSalesChannel = new Flipdish.AppConfigSalesChannel(); // AppConfigSalesChannel | +apiInstance.updateAppConfigSalesChannel(appId, appConfigSalesChannel, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **appConfigSalesChannel** | [**AppConfigSalesChannel**](AppConfigSalesChannel.md)| | + +### Return type + +[**RestApiResultAppConfigSalesChannel**](RestApiResultAppConfigSalesChannel.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateSubmissionStatus + +> RestApiResultUpdateMobileAppsSubmissionStatus updateSubmissionStatus(appId, submissionId, updateSubmissionStatus) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let submissionId = 56; // Number | +let updateSubmissionStatus = new Flipdish.UpdateMobileAppsSubmissionStatus(); // UpdateMobileAppsSubmissionStatus | +apiInstance.updateSubmissionStatus(appId, submissionId, updateSubmissionStatus, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **submissionId** | **Number**| | + **updateSubmissionStatus** | [**UpdateMobileAppsSubmissionStatus**](UpdateMobileAppsSubmissionStatus.md)| | + +### Return type + +[**RestApiResultUpdateMobileAppsSubmissionStatus**](RestApiResultUpdateMobileAppsSubmissionStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## uploadImage + +> RestApiResultMobileAppsImage uploadImage(appId, Image) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.MobileAppsApi(); +let appId = "appId_example"; // String | +let Image = "/path/to/file"; // File | Mobile Apps image +apiInstance.uploadImage(appId, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **Image** | **File**| Mobile Apps image | + +### Return type + +[**RestApiResultMobileAppsImage**](RestApiResultMobileAppsImage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/MobileAppsImage.md b/docs/MobileAppsImage.md new file mode 100644 index 00000000..5cb9a6cb --- /dev/null +++ b/docs/MobileAppsImage.md @@ -0,0 +1,9 @@ +# Flipdish.MobileAppsImage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImageUri** | **String** | Unique catalog Item id | [optional] + + diff --git a/docs/MobileAppsStatistics.md b/docs/MobileAppsStatistics.md new file mode 100644 index 00000000..acd390d4 --- /dev/null +++ b/docs/MobileAppsStatistics.md @@ -0,0 +1,30 @@ +# Flipdish.MobileAppsStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NumberDownload** | **Number** | Number Download | [optional] +**CurrentRate** | **Number** | Current Rate | [optional] +**CurrentVersion** | **String** | Current Version | [optional] +**PlayStoreLink** | **String** | Play Store Link | [optional] +**AppBundleId** | **String** | App Bundle Id | [optional] +**LastUpdated** | **Date** | Last Updated | [optional] +**Notes** | **String** | Last Updated | [optional] +**Published** | **Boolean** | Published | [optional] +**PlatformType** | **String** | Platform Type | [optional] + + + +## Enum: PlatformTypeEnum + + +* `None` (value: `"None"`) + +* `Android` (value: `"Android"`) + +* `IOS` (value: `"IOS"`) + + + + diff --git a/docs/MobileAppsSubmission.md b/docs/MobileAppsSubmission.md new file mode 100644 index 00000000..355d99de --- /dev/null +++ b/docs/MobileAppsSubmission.md @@ -0,0 +1,14 @@ +# Flipdish.MobileAppsSubmission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubmissionId** | **Number** | Mobile Apps Submission Id | [optional] +**AppName** | **String** | App Name | +**AppDescription** | **String** | App Description | +**AppShortDescription** | **String** | App Description | +**Keywords** | **[String]** | Keywords | [optional] +**AutoPublish** | **Boolean** | Publish automatically | [optional] + + diff --git a/docs/MobileAppsSubmissionDetails.md b/docs/MobileAppsSubmissionDetails.md new file mode 100644 index 00000000..7be03914 --- /dev/null +++ b/docs/MobileAppsSubmissionDetails.md @@ -0,0 +1,16 @@ +# Flipdish.MobileAppsSubmissionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MobileAppsSubmissionId** | **Number** | Mobile Apps Submission Id | [optional] +**AppName** | **String** | App Name | [optional] +**AppDescription** | **String** | App Description | [optional] +**AppShortDescription** | **String** | App Description | [optional] +**Keywords** | **[String]** | Keywords | [optional] +**AppLogoUrl** | **String** | Logo URL | [optional] +**AutoPublish** | **Boolean** | Publish automatically | [optional] +**Status** | [**[MobileAppsSubmissionStatus]**](MobileAppsSubmissionStatus.md) | Mobile App Status | [optional] + + diff --git a/docs/MobileAppsSubmissionStatus.md b/docs/MobileAppsSubmissionStatus.md new file mode 100644 index 00000000..5c686bdb --- /dev/null +++ b/docs/MobileAppsSubmissionStatus.md @@ -0,0 +1,62 @@ +# Flipdish.MobileAppsSubmissionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MobileAppsSubmissionStatusId** | **Number** | Mobile Apps Submission Status Id | [optional] +**MobileAppsSubmissionId** | **Number** | Mobile Apps Submission Id | [optional] +**Type** | **String** | Mobile Type | [optional] +**AppStatus** | **String** | Mobile App Status | [optional] +**UpdateStatus** | **String** | Mobile App Status | [optional] +**LastUpdateStatusTime** | **Date** | Mobile LastUpdateStatusTime | [optional] +**CreateTime** | **Date** | Mobile CreateTime | [optional] +**UpdateTime** | **Date** | Mobile UpdateTime | [optional] +**Notes** | **String** | Mobile Notes | [optional] + + + +## Enum: TypeEnum + + +* `None` (value: `"None"`) + +* `Android` (value: `"Android"`) + +* `IOS` (value: `"IOS"`) + + + + + +## Enum: AppStatusEnum + + +* `None` (value: `"None"`) + +* `Published` (value: `"Published"`) + +* `Unpublished` (value: `"Unpublished"`) + + + + + +## Enum: UpdateStatusEnum + + +* `None` (value: `"None"`) + +* `Submitted` (value: `"Submitted"`) + +* `InReview` (value: `"InReview"`) + +* `Rejected` (value: `"Rejected"`) + +* `Approved` (value: `"Approved"`) + +* `Published` (value: `"Published"`) + + + + diff --git a/docs/MobileAppsSubmissionStatusUpdatedEvent.md b/docs/MobileAppsSubmissionStatusUpdatedEvent.md new file mode 100644 index 00000000..aa82239d --- /dev/null +++ b/docs/MobileAppsSubmissionStatusUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.MobileAppsSubmissionStatusUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**MobileAppsSubmissionStatus** | [**MobileAppsSubmissionStatus**](MobileAppsSubmissionStatus.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/MobileAppsSubmissionUpdatedEvent.md b/docs/MobileAppsSubmissionUpdatedEvent.md new file mode 100644 index 00000000..99bf7939 --- /dev/null +++ b/docs/MobileAppsSubmissionUpdatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.MobileAppsSubmissionUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/NextStatusWithOrderType.md b/docs/NextStatusWithOrderType.md new file mode 100644 index 00000000..9232c433 --- /dev/null +++ b/docs/NextStatusWithOrderType.md @@ -0,0 +1,25 @@ +# Flipdish.NextStatusWithOrderType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderType** | **String** | Order type | [optional] +**NextStatus** | **String** | Next status id | [optional] + + + +## Enum: OrderTypeEnum + + +* `All` (value: `"All"`) + +* `Delivery` (value: `"Delivery"`) + +* `Collection` (value: `"Collection"`) + +* `DineIn` (value: `"DineIn"`) + + + + diff --git a/docs/NutritionInfo.md b/docs/NutritionInfo.md new file mode 100644 index 00000000..e22d2ced --- /dev/null +++ b/docs/NutritionInfo.md @@ -0,0 +1,11 @@ +# Flipdish.NutritionInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | **String** | Version of the nutrition information model | [optional] +**MenuItems** | [**[NutritionInfoMenuItem]**](NutritionInfoMenuItem.md) | List of menu item nutrition infos | [optional] +**MenuItemOptionSetItems** | [**[NutritionInfoMenuOptionSetItem]**](NutritionInfoMenuOptionSetItem.md) | List of menu item option set nutrition infos | [optional] + + diff --git a/docs/NutritionInfoItemAddUpdateLabelModel.md b/docs/NutritionInfoItemAddUpdateLabelModel.md new file mode 100644 index 00000000..8c5aea17 --- /dev/null +++ b/docs/NutritionInfoItemAddUpdateLabelModel.md @@ -0,0 +1,11 @@ +# Flipdish.NutritionInfoItemAddUpdateLabelModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**Values** | **[String]** | | [optional] +**IconUrl** | **String** | | [optional] + + diff --git a/docs/NutritionInfoLabel.md b/docs/NutritionInfoLabel.md new file mode 100644 index 00000000..b886330b --- /dev/null +++ b/docs/NutritionInfoLabel.md @@ -0,0 +1,11 @@ +# Flipdish.NutritionInfoLabel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name of the allergen / ingredient | [optional] +**Values** | **[String]** | Optional list of values for the allergen / ingredient | [optional] +**IconUrl** | **String** | Url to the icon for the allergen / ingredient | [optional] + + diff --git a/docs/NutritionInfoMenuItem.md b/docs/NutritionInfoMenuItem.md new file mode 100644 index 00000000..c5d14245 --- /dev/null +++ b/docs/NutritionInfoMenuItem.md @@ -0,0 +1,10 @@ +# Flipdish.NutritionInfoMenuItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicId** | **String** | Menu item public id | [optional] +**Labels** | [**[NutritionInfoLabel]**](NutritionInfoLabel.md) | List of Nutrition Info Labels for this menu item | [optional] + + diff --git a/docs/NutritionInfoMenuOptionSetItem.md b/docs/NutritionInfoMenuOptionSetItem.md new file mode 100644 index 00000000..acb4cec8 --- /dev/null +++ b/docs/NutritionInfoMenuOptionSetItem.md @@ -0,0 +1,10 @@ +# Flipdish.NutritionInfoMenuOptionSetItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicId** | **String** | Menu item option set item public id | [optional] +**Labels** | [**[NutritionInfoLabel]**](NutritionInfoLabel.md) | List of Nutrition Info Labels for this menu item option set item | [optional] + + diff --git a/docs/NutritionInfoV2.md b/docs/NutritionInfoV2.md new file mode 100644 index 00000000..019032e0 --- /dev/null +++ b/docs/NutritionInfoV2.md @@ -0,0 +1,11 @@ +# Flipdish.NutritionInfoV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuItems** | [**[NutritionInfoV2Item]**](NutritionInfoV2Item.md) | List of menu item nutrition infos | [optional] +**MenuItemOptionSetItems** | [**[NutritionInfoV2Item]**](NutritionInfoV2Item.md) | List of menu item option set nutrition infos | [optional] +**ImageBaseUrl** | **String** | Base url for allergen images | [optional] + + diff --git a/docs/NutritionInfoV2Allergen.md b/docs/NutritionInfoV2Allergen.md new file mode 100644 index 00000000..49327391 --- /dev/null +++ b/docs/NutritionInfoV2Allergen.md @@ -0,0 +1,11 @@ +# Flipdish.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] + + diff --git a/docs/NutritionInfoV2Item.md b/docs/NutritionInfoV2Item.md new file mode 100644 index 00000000..766904f6 --- /dev/null +++ b/docs/NutritionInfoV2Item.md @@ -0,0 +1,10 @@ +# Flipdish.NutritionInfoV2Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicId** | **String** | Menu item or menu item option set item public id | [optional] +**Allergens** | [**[NutritionInfoV2Allergen]**](NutritionInfoV2Allergen.md) | List of allergens for this item | [optional] + + diff --git a/docs/OAuthApp.md b/docs/OAuthApp.md new file mode 100644 index 00000000..f4287327 --- /dev/null +++ b/docs/OAuthApp.md @@ -0,0 +1,42 @@ +# Flipdish.OAuthApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OauthAppId** | **String** | OAuth App Identifier | [optional] +**OauthAppName** | **String** | OAuth App Name | [optional] +**OwnerUserId** | **Number** | OAuth App owner user identifier | [optional] +**LogoUri** | **String** | OAuth App logo uri | [optional] +**Flow** | **String** | Supported OpenID Connect flows | [optional] +**RefreshTokenUsage** | **String** | ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens | [optional] +**AccessTokenLifetime** | **Number** | Timem it takes for the IdentityToken to expire in seconds | [optional] +**AbsoluteRefreshTokenLifetime** | **Number** | Maximum lifetime of a refresh token in seconds | [optional] + + + +## Enum: FlowEnum + + +* `AuthorizationCode` (value: `"AuthorizationCode"`) + +* `Implicit` (value: `"Implicit"`) + +* `Hybrid` (value: `"Hybrid"`) + +* `ClientCredentials` (value: `"ClientCredentials"`) + + + + + +## Enum: RefreshTokenUsageEnum + + +* `ReUse` (value: `"ReUse"`) + +* `OneTimeOnly` (value: `"OneTimeOnly"`) + + + + diff --git a/docs/OAuthClientsApi.md b/docs/OAuthClientsApi.md new file mode 100644 index 00000000..6fa1ab27 --- /dev/null +++ b/docs/OAuthClientsApi.md @@ -0,0 +1,564 @@ +# Flipdish.OAuthClientsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addRedirectUri**](OAuthClientsApi.md#addRedirectUri) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | +[**createOAuthApp**](OAuthClientsApi.md#createOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients | +[**deleteOAuthApp**](OAuthClientsApi.md#deleteOAuthApp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +[**getOAuthApps**](OAuthClientsApi.md#getOAuthApps) | **GET** /api/v1.0/{appId}/oauthclients | +[**getOAuthClientByClientId**](OAuthClientsApi.md#getOAuthClientByClientId) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | +[**getOAuthClientSecret**](OAuthClientsApi.md#getOAuthClientSecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | +[**getOauthAccessToken**](OAuthClientsApi.md#getOauthAccessToken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | +[**getRedirectUris**](OAuthClientsApi.md#getRedirectUris) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | +[**oAuthClientsGetApplications**](OAuthClientsApi.md#oAuthClientsGetApplications) | **GET** /api/v1.0/{appId}/oauthclients/appnames | +[**removeRedirectUri**](OAuthClientsApi.md#removeRedirectUri) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId} | +[**updateOAuthApp**](OAuthClientsApi.md#updateOAuthApp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | + + + +## addRedirectUri + +> RestApiResultOauthClientRedirectUri addRedirectUri(oauthAppId, appId, uri) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +let uri = "uri_example"; // String | +apiInstance.addRedirectUri(oauthAppId, appId, uri, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + **uri** | **String**| | + +### Return type + +[**RestApiResultOauthClientRedirectUri**](RestApiResultOauthClientRedirectUri.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## createOAuthApp + +> createOAuthApp(appId, oAuthApp) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let appId = "appId_example"; // String | +let oAuthApp = new Flipdish.OAuthApp(); // OAuthApp | +apiInstance.createOAuthApp(appId, oAuthApp, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## deleteOAuthApp + +> deleteOAuthApp(oauthAppId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +apiInstance.deleteOAuthApp(oauthAppId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## getOAuthApps + +> RestApiArrayResultOAuthApp getOAuthApps(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let appId = "appId_example"; // String | +let opts = { + 'oauthAppName': "oauthAppName_example" // String | +}; +apiInstance.getOAuthApps(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **oauthAppName** | **String**| | [optional] + +### Return type + +[**RestApiArrayResultOAuthApp**](RestApiArrayResultOAuthApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getOAuthClientByClientId + +> RestApiResultOAuthApp getOAuthClientByClientId(oauthAppId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +apiInstance.getOAuthClientByClientId(oauthAppId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiResultOAuthApp**](RestApiResultOAuthApp.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getOAuthClientSecret + +> RestApiStringResult getOAuthClientSecret(oauthAppId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +apiInstance.getOAuthClientSecret(oauthAppId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getOauthAccessToken + +> RestApiStringResult getOauthAccessToken(oauthAppId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +apiInstance.getOauthAccessToken(oauthAppId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiStringResult**](RestApiStringResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getRedirectUris + +> RestApiArrayResultOauthClientRedirectUri getRedirectUris(oauthAppId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +apiInstance.getRedirectUris(oauthAppId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultOauthClientRedirectUri**](RestApiArrayResultOauthClientRedirectUri.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## oAuthClientsGetApplications + +> Object oAuthClientsGetApplications(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let appId = "appId_example"; // String | +apiInstance.oAuthClientsGetApplications(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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 + + +## removeRedirectUri + +> removeRedirectUri(oauthAppId, uriId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let uriId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.removeRedirectUri(oauthAppId, uriId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **uriId** | **Number**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## updateOAuthApp + +> updateOAuthApp(oauthAppId, appId, oAuthApp) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OAuthClientsApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +let oAuthApp = new Flipdish.OAuthApp(); // OAuthApp | +apiInstance.updateOAuthApp(oauthAppId, appId, oAuthApp, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + diff --git a/docs/OAuthTokenModel.md b/docs/OAuthTokenModel.md new file mode 100644 index 00000000..ae7e18d8 --- /dev/null +++ b/docs/OAuthTokenModel.md @@ -0,0 +1,13 @@ +# Flipdish.OAuthTokenModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **String** | Identitifier key | [optional] +**TokenType** | **String** | Token type | [optional] +**SubjectId** | **String** | Oauth subject identifier | [optional] +**ClientId** | **String** | Oauth client identifier | [optional] +**Expiry** | **Date** | Token expiry | [optional] + + diff --git a/docs/OauthClientRedirectUri.md b/docs/OauthClientRedirectUri.md new file mode 100644 index 00000000..7e55eabe --- /dev/null +++ b/docs/OauthClientRedirectUri.md @@ -0,0 +1,10 @@ +# Flipdish.OauthClientRedirectUri + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Redirect uri identifier | [optional] +**Uri** | **String** | Redirect uri | [optional] + + diff --git a/docs/ObjectDisplayOrder.md b/docs/ObjectDisplayOrder.md new file mode 100644 index 00000000..0c202426 --- /dev/null +++ b/docs/ObjectDisplayOrder.md @@ -0,0 +1,10 @@ +# Flipdish.ObjectDisplayOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | ID of object to be ordered | [optional] +**DisplayOrder** | **Number** | New Display order | [optional] + + diff --git a/docs/OktaPortalFeatureFlag.md b/docs/OktaPortalFeatureFlag.md new file mode 100644 index 00000000..37f2fca0 --- /dev/null +++ b/docs/OktaPortalFeatureFlag.md @@ -0,0 +1,9 @@ +# Flipdish.OktaPortalFeatureFlag + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OktaPortalEnabled** | **Boolean** | Feature flag backend_portal_enableOktaWebApi value | [optional] + + diff --git a/docs/OnboardingApi.md b/docs/OnboardingApi.md new file mode 100644 index 00000000..446472ba --- /dev/null +++ b/docs/OnboardingApi.md @@ -0,0 +1,424 @@ +# Flipdish.OnboardingApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**onboardingGetOnboardingConfig**](OnboardingApi.md#onboardingGetOnboardingConfig) | **GET** /api/v1.0/clients/{appId}/onboarding/config | +[**onboardingGetOnboardingConfigs**](OnboardingApi.md#onboardingGetOnboardingConfigs) | **GET** /api/v1.0/clients/{appId}/onboarding/configs | +[**onboardingGetOnboardingItems**](OnboardingApi.md#onboardingGetOnboardingItems) | **GET** /api/v1.0/clients/{appId}/onboarding/stores/{storeId} | +[**onboardingGetOnboardingItemsV2**](OnboardingApi.md#onboardingGetOnboardingItemsV2) | **GET** /api/v1.0/clients/{appId}/onboarding/stores | +[**onboardingUpdateOnboardingConfig**](OnboardingApi.md#onboardingUpdateOnboardingConfig) | **POST** /api/v1.0/clients/{appId}/onboarding/config | +[**onboardingUpdateOnboardingConfigById**](OnboardingApi.md#onboardingUpdateOnboardingConfigById) | **POST** /api/v1.0/clients/{appId}/onboarding/config/{configId} | +[**onboardingUpdateOnboardingItem**](OnboardingApi.md#onboardingUpdateOnboardingItem) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/{storeId}/items/{onboardingItemId} | +[**onboardingUpdateOnboardingItemV2**](OnboardingApi.md#onboardingUpdateOnboardingItemV2) | **POST** /api/v1.0/clients/{appId}/onboarding/stores/items/{onboardingItemId} | + + + +## onboardingGetOnboardingConfig + +> Object onboardingGetOnboardingConfig(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +apiInstance.onboardingGetOnboardingConfig(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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 + + +## onboardingGetOnboardingConfigs + +> Object onboardingGetOnboardingConfigs(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +apiInstance.onboardingGetOnboardingConfigs(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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 + + +## onboardingGetOnboardingItems + +> Object onboardingGetOnboardingItems(appId, storeId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let opts = { + 'milestoneId': 56 // Number | +}; +apiInstance.onboardingGetOnboardingItems(appId, storeId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **milestoneId** | **Number**| | [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 + + +## onboardingGetOnboardingItemsV2 + +> Object onboardingGetOnboardingItemsV2(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +let opts = { + 'storeId': 56, // Number | + 'milestoneId': 56 // Number | +}; +apiInstance.onboardingGetOnboardingItemsV2(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | [optional] + **milestoneId** | **Number**| | [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 + + +## onboardingUpdateOnboardingConfig + +> Object onboardingUpdateOnboardingConfig(appId, configUpdate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +let configUpdate = new Flipdish.OnboardingConfigUpdate(); // OnboardingConfigUpdate | +apiInstance.onboardingUpdateOnboardingConfig(appId, configUpdate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **configUpdate** | [**OnboardingConfigUpdate**](OnboardingConfigUpdate.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## onboardingUpdateOnboardingConfigById + +> Object onboardingUpdateOnboardingConfigById(appId, configId, configUpdate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +let configId = 56; // Number | +let configUpdate = new Flipdish.OnboardingConfigUpdate(); // OnboardingConfigUpdate | +apiInstance.onboardingUpdateOnboardingConfigById(appId, configId, configUpdate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **configId** | **Number**| | + **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 + + +## onboardingUpdateOnboardingItem + +> Object onboardingUpdateOnboardingItem(appId, storeId, onboardingItemId, itemUpdate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let onboardingItemId = 56; // Number | +let itemUpdate = new Flipdish.OnboardingItemUpdate(); // OnboardingItemUpdate | +apiInstance.onboardingUpdateOnboardingItem(appId, storeId, onboardingItemId, itemUpdate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **onboardingItemId** | **Number**| | + **itemUpdate** | [**OnboardingItemUpdate**](OnboardingItemUpdate.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## onboardingUpdateOnboardingItemV2 + +> Object onboardingUpdateOnboardingItemV2(appId, onboardingItemId, itemUpdate, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OnboardingApi(); +let appId = "appId_example"; // String | +let onboardingItemId = 56; // Number | +let itemUpdate = new Flipdish.OnboardingItemUpdate(); // OnboardingItemUpdate | +let opts = { + 'storeId': 56 // Number | +}; +apiInstance.onboardingUpdateOnboardingItemV2(appId, onboardingItemId, itemUpdate, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **onboardingItemId** | **Number**| | + **itemUpdate** | [**OnboardingItemUpdate**](OnboardingItemUpdate.md)| | + **storeId** | **Number**| | [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 + diff --git a/docs/OnboardingConfigUpdate.md b/docs/OnboardingConfigUpdate.md new file mode 100644 index 00000000..558b6c8e --- /dev/null +++ b/docs/OnboardingConfigUpdate.md @@ -0,0 +1,22 @@ +# Flipdish.OnboardingConfigUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **Boolean** | Gets or sets whether onboarding is enabled | [optional] +**IsWelcomeScreenEnabled** | **Boolean** | Gets or sets whether welcome screen is enabled | [optional] +**ConfigType** | **String** | Onboarding config type | [optional] + + + +## Enum: ConfigTypeEnum + + +* `Tutorial` (value: `"Tutorial"`) + +* `OnboardingWizard` (value: `"OnboardingWizard"`) + + + + diff --git a/docs/OnboardingItemUpdate.md b/docs/OnboardingItemUpdate.md new file mode 100644 index 00000000..98a01b15 --- /dev/null +++ b/docs/OnboardingItemUpdate.md @@ -0,0 +1,22 @@ +# Flipdish.OnboardingItemUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **String** | Completion Status for Onboarding Item | [optional] + + + +## Enum: StatusEnum + + +* `Pending` (value: `"Pending"`) + +* `InProgress` (value: `"InProgress"`) + +* `Completed` (value: `"Completed"`) + + + + diff --git a/docs/Order.md b/docs/Order.md new file mode 100644 index 00000000..810f40c7 --- /dev/null +++ b/docs/Order.md @@ -0,0 +1,268 @@ +# Flipdish.Order + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Store** | [**StoreSummary**](StoreSummary.md) | | [optional] +**Customer** | [**CustomerSummary**](CustomerSummary.md) | | [optional] +**Voucher** | [**OrderVoucherSummary**](OrderVoucherSummary.md) | | [optional] +**Fees** | [**FeeSummary**](FeeSummary.md) | | [optional] +**OrderItems** | [**[OrderItem]**](OrderItem.md) | Ordered items | [optional] +**DeliveryLocation** | [**DeliveryLocation**](DeliveryLocation.md) | | [optional] +**CustomerLocation** | [**Coordinates**](Coordinates.md) | | [optional] +**MaskedPhoneNumber** | [**MaskedPhoneNumber**](MaskedPhoneNumber.md) | | [optional] +**DropOffLocationId** | **Number** | Represents table service drop off location | [optional] +**DropOffLocation** | **String** | Represents table service drop off location | [optional] +**AcceptedFor** | **Date** | Time store has accepted the order for | [optional] +**InFraudZone** | **Boolean** | Was order made within a fraud zone | [optional] +**UnusualHighValueOrder** | **Boolean** | Is order of unusually high value | [optional] +**RejectedByUserId** | **Number** | Id of user who rejected order, if available | [optional] +**ChannelOrderId** | **String** | ChannelOrderId from external channel | [optional] +**ChannelOrderDisplayId** | **String** | ChannelOrderDisplayId from external channel | [optional] +**Channel** | [**Channel**](Channel.md) | | [optional] +**OrderDropOffLocation** | [**OrderDropOffLocation**](OrderDropOffLocation.md) | | [optional] +**FulfillmentStatus** | [**OrderFulfillmentStatusBase**](OrderFulfillmentStatusBase.md) | | [optional] +**OrderBatchInfo** | [**OrderBatchSummary**](OrderBatchSummary.md) | | [optional] +**TaxItems** | [**[TaxItem]**](TaxItem.md) | A collection of tax items on the order. | [optional] +**CreatedCampaignVoucherId** | **Number** | The id of the campaign voucher that was created from this order | [optional] +**OrderId** | **Number** | Order identifier | [optional] +**LocalOrderId** | **String** | Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) | [optional] +**DeliveryType** | **String** | Delivery type | [optional] +**PickupLocationType** | **String** | Pickup location type | [optional] +**TableServiceCatagory** | **String** | Pickup location type | [optional] +**TipAmount** | **Number** | Tip amount | [optional] +**DeliveryAmount** | **Number** | Delivery amount | [optional] +**OrderItemsAmount** | **Number** | Ordered items amount | [optional] +**ServiceChargeAmount** | **Number** | Service Charge Amount | [optional] +**ServiceChargePercentage** | **Number** | Service Charge Percentage | [optional] +**Amount** | **Number** | This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee for cash orders. It does not include the OnlineOrderingFee in the case of card orders as this fee is charged by Flipdish directly to the customer. | [optional] +**ProcessingFee** | **Number** | This contains the online ordering processing fee. For card payments this is charged directly to the customer and for cash orders it is paid by the customer to the store. It is tax inclusive. | [optional] +**PaymentAccountType** | **String** | Payment account type | [optional] +**PaymentAccountDescription** | **String** | Payment account description (like Visa ****2371 or Apple Pay. or Cash) | [optional] +**OrderState** | **String** | Order state | [optional] +**IsPreOrder** | **Boolean** | Is pre-order | [optional] +**PlacedTime** | **Date** | Order placed time | [optional] +**RequestedForTime** | **Date** | Order requested for | [optional] +**ChefNote** | **String** | Chef note | [optional] +**AppType** | **String** | Used app type | [optional] +**UserRating** | **Number** | User rating | [optional] +**PaymentStatus** | **String** | Status of the payment | [optional] +**RejectionReason** | **String** | Rejection reason. Can have value if the order is rejected. | [optional] +**RefundedAmount** | **Number** | Amount refunded to customer. | [optional] +**DeliveryTrackingStatus** | **String** | Delivery tracking status | [optional] +**DriverId** | **Number** | Assigned driver identifier | [optional] +**TotalTax** | **Number** | Total tax applied to order | [optional] +**OrderTrackingCode** | **String** | Unique, 6 character long alpha numeric code for tracking. | [optional] +**DeliveryFeeAreaId** | **Number** | Delivery area identifier | [optional] +**ReceiptCode** | **String** | Code used to view the order's receipt | [optional] +**TotalDepositReturnFeeAmount** | **Number** | This contains the total deposit return fee amount for the order. | [optional] + + + +## Enum: DeliveryTypeEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + + + + +## Enum: PickupLocationTypeEnum + + +* `TakeOut` (value: `"TakeOut"`) + +* `TableService` (value: `"TableService"`) + +* `DineIn` (value: `"DineIn"`) + + + + + +## Enum: TableServiceCatagoryEnum + + +* `Generic` (value: `"Generic"`) + +* `Villa` (value: `"Villa"`) + +* `House` (value: `"House"`) + +* `Room` (value: `"Room"`) + +* `Area` (value: `"Area"`) + +* `Table` (value: `"Table"`) + +* `ParkingBay` (value: `"ParkingBay"`) + +* `Gate` (value: `"Gate"`) + +* `DriveThrough` (value: `"DriveThrough"`) + +* `Team` (value: `"Team"`) + + + + + +## Enum: PaymentAccountTypeEnum + + +* `Card` (value: `"Card"`) + +* `Cash` (value: `"Cash"`) + +* `Ideal` (value: `"Ideal"`) + +* `Bancontact` (value: `"Bancontact"`) + +* `Giropay` (value: `"Giropay"`) + +* `Eps` (value: `"Eps"`) + +* `Emv` (value: `"Emv"`) + +* `PayPal` (value: `"PayPal"`) + +* `PayGreen` (value: `"PayGreen"`) + +* `GoogleWalletToken` (value: `"GoogleWalletToken"`) + + + + + +## Enum: OrderStateEnum + + +* `Created` (value: `"Created"`) + +* `PlacedCanBeCancelled` (value: `"PlacedCanBeCancelled"`) + +* `ReadyToProcess` (value: `"ReadyToProcess"`) + +* `AcceptedByRestaurant` (value: `"AcceptedByRestaurant"`) + +* `Dispatched` (value: `"Dispatched"`) + +* `Delivered` (value: `"Delivered"`) + +* `Cancelled` (value: `"Cancelled"`) + +* `ManualReview` (value: `"ManualReview"`) + +* `RejectedByStore` (value: `"RejectedByStore"`) + +* `RejectedByFlipdish` (value: `"RejectedByFlipdish"`) + +* `RejectedAutomatically` (value: `"RejectedAutomatically"`) + +* `RejectedAfterBeingAccepted` (value: `"RejectedAfterBeingAccepted"`) + +* `AcceptedAndRefunded` (value: `"AcceptedAndRefunded"`) + +* `PendingPayment` (value: `"PendingPayment"`) + + + + + +## Enum: AppTypeEnum + + +* `Unknown` (value: `"Unknown"`) + +* `Ios` (value: `"Ios"`) + +* `Android` (value: `"Android"`) + +* `Web` (value: `"Web"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `TelephoneCall` (value: `"TelephoneCall"`) + +* `Sms` (value: `"Sms"`) + +* `PwaAndroid` (value: `"PwaAndroid"`) + +* `PwaIos` (value: `"PwaIos"`) + +* `Google` (value: `"Google"`) + + + + + +## Enum: PaymentStatusEnum + + +* `Paid` (value: `"Paid"`) + +* `Unpaid` (value: `"Unpaid"`) + +* `Refunded` (value: `"Refunded"`) + +* `PartiallyRefunded` (value: `"PartiallyRefunded"`) + +* `Disputed` (value: `"Disputed"`) + + + + + +## Enum: RejectionReasonEnum + + +* `TooBusy` (value: `"TooBusy"`) + +* `FoodUnavailable` (value: `"FoodUnavailable"`) + +* `UnableToDeliver` (value: `"UnableToDeliver"`) + +* `UnknownAddress` (value: `"UnknownAddress"`) + +* `UnknownReason` (value: `"UnknownReason"`) + +* `TooSoon` (value: `"TooSoon"`) + +* `TimeUnavailable` (value: `"TimeUnavailable"`) + +* `DontDeliverToArea` (value: `"DontDeliverToArea"`) + +* `StoreUncontactable` (value: `"StoreUncontactable"`) + + + + + +## Enum: DeliveryTrackingStatusEnum + + +* `Unassigned` (value: `"Unassigned"`) + +* `Unaccepted` (value: `"Unaccepted"`) + +* `Accepted` (value: `"Accepted"`) + +* `Carrying` (value: `"Carrying"`) + +* `OnTheWay` (value: `"OnTheWay"`) + +* `ArrivedAtLocation` (value: `"ArrivedAtLocation"`) + +* `Delivered` (value: `"Delivered"`) + +* `CannotDeliver` (value: `"CannotDeliver"`) + + + + diff --git a/docs/OrderAcceptedEvent.md b/docs/OrderAcceptedEvent.md new file mode 100644 index 00000000..78cc3c62 --- /dev/null +++ b/docs/OrderAcceptedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.OrderAcceptedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**Description** | **String** | Description | [optional] +**OrderAcceptedTime** | **Date** | Order Accepted Time | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderBatch.md b/docs/OrderBatch.md new file mode 100644 index 00000000..71808fa3 --- /dev/null +++ b/docs/OrderBatch.md @@ -0,0 +1,13 @@ +# Flipdish.OrderBatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderIds** | **[Number]** | Orders' ids on the batch | [optional] +**Id** | **Number** | Order batch id | [optional] +**DisplayCode** | **String** | Order batch 6-sign human readable code | [optional] +**CreateTime** | **Date** | Batch creation date and time | [optional] +**IsPublished** | **Boolean** | If the batch is already published | [optional] + + diff --git a/docs/OrderBatchPublishedEvent.md b/docs/OrderBatchPublishedEvent.md new file mode 100644 index 00000000..22b8bcfe --- /dev/null +++ b/docs/OrderBatchPublishedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.OrderBatchPublishedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrderBatchId** | **Number** | Order Batch Id | [optional] +**StoreId** | **Number** | Store id the order batch belogs to | [optional] +**OrderIds** | **[Number]** | Orders' ids on the batch | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderBatchSummary.md b/docs/OrderBatchSummary.md new file mode 100644 index 00000000..e7292013 --- /dev/null +++ b/docs/OrderBatchSummary.md @@ -0,0 +1,12 @@ +# Flipdish.OrderBatchSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Order batch id | [optional] +**DisplayCode** | **String** | Order batch 6-sign human readable code | [optional] +**CreateTime** | **Date** | Batch creation date and time | [optional] +**IsPublished** | **Boolean** | If the batch is already published | [optional] + + diff --git a/docs/OrderBatchesApi.md b/docs/OrderBatchesApi.md new file mode 100644 index 00000000..a0727bc5 --- /dev/null +++ b/docs/OrderBatchesApi.md @@ -0,0 +1,114 @@ +# Flipdish.OrderBatchesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAllOrderBatches**](OrderBatchesApi.md#getAllOrderBatches) | **GET** /api/v1.0/{appId}/order-batches | +[**getOrderBatch**](OrderBatchesApi.md#getOrderBatch) | **GET** /api/v1.0/{appId}/order-batches/{orderBatchId} | + + + +## getAllOrderBatches + +> RestApiArrayResultOrderBatch getAllOrderBatches(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrderBatchesApi(); +let appId = "appId_example"; // String | +let opts = { + 'storeIds': [null], // [Number] | + 'createdFrom': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'createdTo': new Date("2013-10-20T19:20:30+01:00") // Date | +}; +apiInstance.getAllOrderBatches(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeIds** | [**[Number]**](Number.md)| | [optional] + **createdFrom** | **Date**| | [optional] + **createdTo** | **Date**| | [optional] + +### Return type + +[**RestApiArrayResultOrderBatch**](RestApiArrayResultOrderBatch.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getOrderBatch + +> RestApiResultOrderBatch getOrderBatch(appId, orderBatchId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrderBatchesApi(); +let appId = "appId_example"; // String | +let orderBatchId = 56; // Number | +apiInstance.getOrderBatch(appId, orderBatchId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **orderBatchId** | **Number**| | + +### Return type + +[**RestApiResultOrderBatch**](RestApiResultOrderBatch.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/OrderBatchingConfiguration.md b/docs/OrderBatchingConfiguration.md new file mode 100644 index 00000000..e0d67469 --- /dev/null +++ b/docs/OrderBatchingConfiguration.md @@ -0,0 +1,10 @@ +# Flipdish.OrderBatchingConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BatchIntervalInSeconds** | **Number** | Batch sending interval in seconds | [optional] +**IsEnabled** | **Boolean** | OrderBatching is enabled or not | [optional] + + diff --git a/docs/OrderBatchingConfigurationApi.md b/docs/OrderBatchingConfigurationApi.md new file mode 100644 index 00000000..593b9821 --- /dev/null +++ b/docs/OrderBatchingConfigurationApi.md @@ -0,0 +1,106 @@ +# Flipdish.OrderBatchingConfigurationApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get**](OrderBatchingConfigurationApi.md#get) | **GET** /api/v1.0/stores/{storeId}/order-batching-configuration | +[**post**](OrderBatchingConfigurationApi.md#post) | **POST** /api/v1.0/stores/{storeId}/order-batching-configuration | + + + +## get + +> RestApiResultOrderBatchingConfiguration get(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrderBatchingConfigurationApi(); +let storeId = 56; // Number | +apiInstance.get(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**RestApiResultOrderBatchingConfiguration**](RestApiResultOrderBatchingConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## post + +> post(storeId, setOrderBatchingConfiguration) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrderBatchingConfigurationApi(); +let storeId = 56; // Number | +let setOrderBatchingConfiguration = new Flipdish.SetOrderBatchingConfiguration(); // SetOrderBatchingConfiguration | +apiInstance.post(storeId, setOrderBatchingConfiguration, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **setOrderBatchingConfiguration** | [**SetOrderBatchingConfiguration**](SetOrderBatchingConfiguration.md)| | + +### Return type + +null (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 + diff --git a/docs/OrderCapacityConfigUpdatedEvent.md b/docs/OrderCapacityConfigUpdatedEvent.md new file mode 100644 index 00000000..b775b9ad --- /dev/null +++ b/docs/OrderCapacityConfigUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.OrderCapacityConfigUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Id of the store whose order capacity configuration has been updated | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**OrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderCreatedEvent.md b/docs/OrderCreatedEvent.md new file mode 100644 index 00000000..93fbdf74 --- /dev/null +++ b/docs/OrderCreatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.OrderCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**OrderCreatedTime** | **Date** | Order Created Time | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderCustomerTrackingCreatedEvent.md b/docs/OrderCustomerTrackingCreatedEvent.md new file mode 100644 index 00000000..77ba7803 --- /dev/null +++ b/docs/OrderCustomerTrackingCreatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.OrderCustomerTrackingCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**CustomerDeliveryTrackingOrder**](CustomerDeliveryTrackingOrder.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderDeliveryInformation.md b/docs/OrderDeliveryInformation.md new file mode 100644 index 00000000..90c8824f --- /dev/null +++ b/docs/OrderDeliveryInformation.md @@ -0,0 +1,41 @@ +# Flipdish.OrderDeliveryInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | Order Id | [optional] +**ExternalReferenceId** | **String** | External Reference Id | [optional] +**TrackUrl** | **String** | Tracking Url | [optional] +**Status** | **String** | Delivery Status | [optional] +**DeliveryStatusNotes** | **String** | Delivery Status Notes | [optional] +**ErrorMessage** | **String** | Error Message | [optional] +**IntegrationCode** | **String** | Integration Code | [optional] +**IntegrationName** | **String** | Integration Name | [optional] + + + +## Enum: StatusEnum + + +* `None` (value: `"None"`) + +* `Unassigned` (value: `"Unassigned"`) + +* `Unaccepted` (value: `"Unaccepted"`) + +* `Accepted` (value: `"Accepted"`) + +* `Carrying` (value: `"Carrying"`) + +* `OnTheWay` (value: `"OnTheWay"`) + +* `ArrivedAtLocation` (value: `"ArrivedAtLocation"`) + +* `Delivered` (value: `"Delivered"`) + +* `CannotDeliver` (value: `"CannotDeliver"`) + + + + diff --git a/docs/OrderDeliveryInformationBase.md b/docs/OrderDeliveryInformationBase.md new file mode 100644 index 00000000..28812312 --- /dev/null +++ b/docs/OrderDeliveryInformationBase.md @@ -0,0 +1,40 @@ +# Flipdish.OrderDeliveryInformationBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalReferenceId** | **String** | External Reference Id | [optional] +**TrackUrl** | **String** | Tracking Url | [optional] +**Status** | **String** | Delivery Status | [optional] +**DeliveryStatusNotes** | **String** | Delivery Status Notes | [optional] +**ErrorMessage** | **String** | Error Message | [optional] +**IntegrationCode** | **String** | Integration Code | [optional] +**IntegrationName** | **String** | Integration Name | [optional] + + + +## Enum: StatusEnum + + +* `None` (value: `"None"`) + +* `Unassigned` (value: `"Unassigned"`) + +* `Unaccepted` (value: `"Unaccepted"`) + +* `Accepted` (value: `"Accepted"`) + +* `Carrying` (value: `"Carrying"`) + +* `OnTheWay` (value: `"OnTheWay"`) + +* `ArrivedAtLocation` (value: `"ArrivedAtLocation"`) + +* `Delivered` (value: `"Delivered"`) + +* `CannotDeliver` (value: `"CannotDeliver"`) + + + + diff --git a/docs/OrderDeliveryTrackingStatusUpdatedEvent.md b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md new file mode 100644 index 00000000..beb188e8 --- /dev/null +++ b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.OrderDeliveryTrackingStatusUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**DeliveryIntegrationName** | **String** | Delivery integration name | [optional] +**DeliveryErrorMessage** | **String** | Delivery error message (optional) | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderDispatchedEvent.md b/docs/OrderDispatchedEvent.md new file mode 100644 index 00000000..f71ab726 --- /dev/null +++ b/docs/OrderDispatchedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.OrderDispatchedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**OrderDispatchedTime** | **Date** | Order Rejected Time | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderDropOffLocation.md b/docs/OrderDropOffLocation.md new file mode 100644 index 00000000..a3123ff4 --- /dev/null +++ b/docs/OrderDropOffLocation.md @@ -0,0 +1,14 @@ +# Flipdish.OrderDropOffLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | | [optional] +**LocationName** | **String** | | [optional] +**LocationAreaName** | **String** | | [optional] +**LocationId** | **Number** | | [optional] +**LocationAreaId** | **Number** | | [optional] +**ExternalLocationId** | **String** | | [optional] + + diff --git a/docs/OrderFulfillmentStatus.md b/docs/OrderFulfillmentStatus.md new file mode 100644 index 00000000..2ef0e7e6 --- /dev/null +++ b/docs/OrderFulfillmentStatus.md @@ -0,0 +1,12 @@ +# Flipdish.OrderFulfillmentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | Order Id | [optional] +**StatusId** | **String** | Fulfillment Status Id | [optional] +**StatusName** | **String** | Fulfillment Status Name | [optional] +**Icon** | **String** | Status Icon | [optional] + + diff --git a/docs/OrderFulfillmentStatusBase.md b/docs/OrderFulfillmentStatusBase.md new file mode 100644 index 00000000..d8b28972 --- /dev/null +++ b/docs/OrderFulfillmentStatusBase.md @@ -0,0 +1,11 @@ +# Flipdish.OrderFulfillmentStatusBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusId** | **String** | Fulfillment Status Id | [optional] +**StatusName** | **String** | Fulfillment Status Name | [optional] +**Icon** | **String** | Status Icon | [optional] + + diff --git a/docs/OrderFulfillmentStatusUpdate.md b/docs/OrderFulfillmentStatusUpdate.md new file mode 100644 index 00000000..86859503 --- /dev/null +++ b/docs/OrderFulfillmentStatusUpdate.md @@ -0,0 +1,9 @@ +# Flipdish.OrderFulfillmentStatusUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusId** | **String** | Fulfillment Status Id | [optional] + + diff --git a/docs/OrderFulfillmentStatusUpdatedEvent.md b/docs/OrderFulfillmentStatusUpdatedEvent.md new file mode 100644 index 00000000..cd1dc44e --- /dev/null +++ b/docs/OrderFulfillmentStatusUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.OrderFulfillmentStatusUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**Description** | **String** | Description | [optional] +**OrderId** | **Number** | Order Id | [optional] +**StatusName** | **String** | Fulfillment status name | [optional] +**StatusId** | **String** | Fulfillment status ID | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderFulfillmentStatusWithConfigurationActions.md b/docs/OrderFulfillmentStatusWithConfigurationActions.md new file mode 100644 index 00000000..c5a8c0ce --- /dev/null +++ b/docs/OrderFulfillmentStatusWithConfigurationActions.md @@ -0,0 +1,14 @@ +# Flipdish.OrderFulfillmentStatusWithConfigurationActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultNextStatus** | **String** | Default next status (id) | [optional] +**NextStatuses** | [**[FulfillentStatusActionItem]**](FulfillentStatusActionItem.md) | Possible next statuses | [optional] +**OrderId** | **Number** | Order Id | [optional] +**StatusId** | **String** | Fulfillment Status Id | [optional] +**StatusName** | **String** | Fulfillment Status Name | [optional] +**Icon** | **String** | Status Icon | [optional] + + diff --git a/docs/OrderItem.md b/docs/OrderItem.md new file mode 100644 index 00000000..de940b62 --- /dev/null +++ b/docs/OrderItem.md @@ -0,0 +1,22 @@ +# Flipdish.OrderItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderItemOptions** | [**[OrderItemOption]**](OrderItemOption.md) | Option list | [optional] +**Metadata** | **{String: String}** | Metadata | [optional] +**MenuItemPublicId** | **String** | Public id of the Menu Item | [optional] +**MenuSectionName** | **String** | Menu section name | [optional] +**MenuSectionDisplayOrder** | **Number** | Menu section display order | [optional] +**Name** | **String** | Name | [optional] +**Description** | **String** | Description | [optional] +**Price** | **Number** | Price | [optional] +**TaxAmount** | **Number** | Tax currency amount | [optional] +**PriceIncludingOptionSetItems** | **Number** | Price including option set items | [optional] +**MenuItemId** | **Number** | Menu item identifier | [optional] +**MenuItemDisplayOrder** | **Number** | Menu item display order | [optional] +**IsAvailable** | **Boolean** | Is available | [optional] +**DepositReturnFee** | **Number** | Deposit return fee | [optional] + + diff --git a/docs/OrderItemOption.md b/docs/OrderItemOption.md new file mode 100644 index 00000000..1a3821db --- /dev/null +++ b/docs/OrderItemOption.md @@ -0,0 +1,18 @@ +# Flipdish.OrderItemOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | **{String: String}** | Metadata | [optional] +**MenuItemOptionPublicId** | **String** | Public id of the Menu Item Option | [optional] +**MenuItemOptionId** | **Number** | Menu item option identifier | [optional] +**IsMasterOptionSetItem** | **Boolean** | Is master option set item | [optional] +**Name** | **String** | Name | [optional] +**Price** | **Number** | Price | [optional] +**TaxAmount** | **Number** | Tax currency amount | [optional] +**MenuItemOptionDisplayOrder** | **Number** | Menu item option display order | [optional] +**MenuItemOptionSetDisplayOrder** | **Number** | Menu item option set display order | [optional] +**DepositReturnFee** | **Number** | Deposit return fee | [optional] + + diff --git a/docs/OrderLeadTimes.md b/docs/OrderLeadTimes.md new file mode 100644 index 00000000..8b4b4bda --- /dev/null +++ b/docs/OrderLeadTimes.md @@ -0,0 +1,9 @@ +# Flipdish.OrderLeadTimes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LeadTimeMinutes** | **{String: Number}** | 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] + + diff --git a/docs/OrderList.md b/docs/OrderList.md new file mode 100644 index 00000000..bb3a2a01 --- /dev/null +++ b/docs/OrderList.md @@ -0,0 +1,9 @@ +# Flipdish.OrderList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Orders** | [**[OrderReference]**](OrderReference.md) | A list of orders. | [optional] + + diff --git a/docs/OrderPaymentInformation.md b/docs/OrderPaymentInformation.md new file mode 100644 index 00000000..2269df61 --- /dev/null +++ b/docs/OrderPaymentInformation.md @@ -0,0 +1,10 @@ +# Flipdish.OrderPaymentInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | ID of the Order | [optional] +**PaymentRefundable** | **Boolean** | Signifies if the payment is refundable | [optional] + + diff --git a/docs/OrderRatingUpdatedEvent.md b/docs/OrderRatingUpdatedEvent.md new file mode 100644 index 00000000..99ecd736 --- /dev/null +++ b/docs/OrderRatingUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.OrderRatingUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Rating** | **Number** | New User Rating | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderReference.md b/docs/OrderReference.md new file mode 100644 index 00000000..28317b26 --- /dev/null +++ b/docs/OrderReference.md @@ -0,0 +1,9 @@ +# Flipdish.OrderReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | The ID of the order. | [optional] + + diff --git a/docs/OrderRefundedEvent.md b/docs/OrderRefundedEvent.md new file mode 100644 index 00000000..64bc120b --- /dev/null +++ b/docs/OrderRefundedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.OrderRefundedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**RefundedAmount** | **Number** | The amount refunded | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderRejectedEvent.md b/docs/OrderRejectedEvent.md new file mode 100644 index 00000000..f99bc15d --- /dev/null +++ b/docs/OrderRejectedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.OrderRejectedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**OrderRejectedTime** | **Date** | Order Rejected Time | [optional] +**Reason** | **String** | Reason for Rejection | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderSummary.md b/docs/OrderSummary.md new file mode 100644 index 00000000..88f4ebd6 --- /dev/null +++ b/docs/OrderSummary.md @@ -0,0 +1,428 @@ +# Flipdish.OrderSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | Order identifier | [optional] +**DeliveryType** | **String** | Delivery type | [optional] +**PickupLocationType** | **String** | Pickup location type | [optional] +**TableServiceCatagory** | **String** | Table service category | [optional] +**OrderState** | **String** | Order state | [optional] +**RequestedForTime** | **Date** | Order requested for | [optional] +**StoreName** | **String** | Name of the store | [optional] +**StoreIanaTimeZone** | **String** | Store IANA time zone | [optional] +**CustomerName** | **String** | Name of the customer | [optional] +**CustomerPhoneNumber** | **String** | Phone number of customer | [optional] +**Amount** | **Number** | This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee It does include the OnlineOrderingFee | [optional] +**RefundedAmount** | **Number** | Refunded amount | [optional] +**PaymentAccountType** | **String** | Payment Account | [optional] +**PaymentStatus** | **String** | Status of the payment | [optional] +**Currency** | **String** | Currency of payment | [optional] +**AppType** | **String** | Type of app end user is on | [optional] +**LocalOrderId** | **String** | Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) | [optional] +**DropOffLocationId** | **Number** | id of the collection/drop off location | [optional] +**DropOffLocation** | **String** | Represents table service drop off location | [optional] +**AcceptedFor** | **Date** | Time store has accepted the order for | [optional] +**Channel** | [**Channel**](Channel.md) | | [optional] +**InFraudZone** | **Boolean** | Was order made within a fraud zone | [optional] +**UnusualHighValueOrder** | **Boolean** | Is order of unusually high value | [optional] +**ChannelOrderId** | **String** | ChannelOrderId from external channel | [optional] +**ChannelOrderDisplayId** | **String** | ChannelOrderDisplayId from external channel | [optional] +**OrderDropOffLocation** | [**OrderDropOffLocation**](OrderDropOffLocation.md) | | [optional] +**OrderBatchInfo** | [**OrderBatchSummary**](OrderBatchSummary.md) | | [optional] +**DeliveryLocation** | [**DeliveryLocation**](DeliveryLocation.md) | | [optional] + + + +## Enum: DeliveryTypeEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + + + + +## Enum: PickupLocationTypeEnum + + +* `TakeOut` (value: `"TakeOut"`) + +* `TableService` (value: `"TableService"`) + +* `DineIn` (value: `"DineIn"`) + + + + + +## Enum: TableServiceCatagoryEnum + + +* `Generic` (value: `"Generic"`) + +* `Villa` (value: `"Villa"`) + +* `House` (value: `"House"`) + +* `Room` (value: `"Room"`) + +* `Area` (value: `"Area"`) + +* `Table` (value: `"Table"`) + +* `ParkingBay` (value: `"ParkingBay"`) + +* `Gate` (value: `"Gate"`) + +* `DriveThrough` (value: `"DriveThrough"`) + +* `Team` (value: `"Team"`) + + + + + +## Enum: OrderStateEnum + + +* `Created` (value: `"Created"`) + +* `PlacedCanBeCancelled` (value: `"PlacedCanBeCancelled"`) + +* `ReadyToProcess` (value: `"ReadyToProcess"`) + +* `AcceptedByRestaurant` (value: `"AcceptedByRestaurant"`) + +* `Dispatched` (value: `"Dispatched"`) + +* `Delivered` (value: `"Delivered"`) + +* `Cancelled` (value: `"Cancelled"`) + +* `ManualReview` (value: `"ManualReview"`) + +* `RejectedByStore` (value: `"RejectedByStore"`) + +* `RejectedByFlipdish` (value: `"RejectedByFlipdish"`) + +* `RejectedAutomatically` (value: `"RejectedAutomatically"`) + +* `RejectedAfterBeingAccepted` (value: `"RejectedAfterBeingAccepted"`) + +* `AcceptedAndRefunded` (value: `"AcceptedAndRefunded"`) + +* `PendingPayment` (value: `"PendingPayment"`) + + + + + +## Enum: PaymentAccountTypeEnum + + +* `Card` (value: `"Card"`) + +* `Cash` (value: `"Cash"`) + +* `Ideal` (value: `"Ideal"`) + +* `Bancontact` (value: `"Bancontact"`) + +* `Giropay` (value: `"Giropay"`) + +* `Eps` (value: `"Eps"`) + +* `Emv` (value: `"Emv"`) + +* `PayPal` (value: `"PayPal"`) + +* `PayGreen` (value: `"PayGreen"`) + +* `GoogleWalletToken` (value: `"GoogleWalletToken"`) + + + + + +## Enum: PaymentStatusEnum + + +* `Paid` (value: `"Paid"`) + +* `Unpaid` (value: `"Unpaid"`) + +* `Refunded` (value: `"Refunded"`) + +* `PartiallyRefunded` (value: `"PartiallyRefunded"`) + +* `Disputed` (value: `"Disputed"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: AppTypeEnum + + +* `Unknown` (value: `"Unknown"`) + +* `Ios` (value: `"Ios"`) + +* `Android` (value: `"Android"`) + +* `Web` (value: `"Web"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `TelephoneCall` (value: `"TelephoneCall"`) + +* `Sms` (value: `"Sms"`) + +* `PwaAndroid` (value: `"PwaAndroid"`) + +* `PwaIos` (value: `"PwaIos"`) + +* `Google` (value: `"Google"`) + + + + diff --git a/docs/OrderTipUpdatedEvent.md b/docs/OrderTipUpdatedEvent.md new file mode 100644 index 00000000..fd0cf7bc --- /dev/null +++ b/docs/OrderTipUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.OrderTipUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**TipAmount** | **Number** | Tip Amount | [optional] +**Description** | **String** | Description | [optional] +**Order** | [**Order**](Order.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/OrderVoucherSummary.md b/docs/OrderVoucherSummary.md new file mode 100644 index 00000000..a6c84f40 --- /dev/null +++ b/docs/OrderVoucherSummary.md @@ -0,0 +1,53 @@ +# Flipdish.OrderVoucherSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher ID | [optional] +**Name** | **String** | Voucher name | [optional] +**Description** | **String** | Voucher description | [optional] +**Code** | **String** | Voucher code | [optional] +**Amount** | **Number** | Voucher amount | [optional] +**Type** | **String** | Voucher type | [optional] +**SubType** | **String** | Voucher sub type | [optional] + + + +## Enum: TypeEnum + + +* `PercentageDiscount` (value: `"PercentageDiscount"`) + +* `LumpDiscount` (value: `"LumpDiscount"`) + +* `AddItem` (value: `"AddItem"`) + +* `CreditNote` (value: `"CreditNote"`) + +* `FreeDelivery` (value: `"FreeDelivery"`) + + + + + +## Enum: SubTypeEnum + + +* `None` (value: `"None"`) + +* `SignUp` (value: `"SignUp"`) + +* `Loyalty` (value: `"Loyalty"`) + +* `Loyalty25` (value: `"Loyalty25"`) + +* `Retention` (value: `"Retention"`) + +* `SecondaryRetention` (value: `"SecondaryRetention"`) + +* `Custom` (value: `"Custom"`) + + + + diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md new file mode 100644 index 00000000..5c5e377a --- /dev/null +++ b/docs/OrdersApi.md @@ -0,0 +1,804 @@ +# Flipdish.OrdersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**acceptOrder**](OrdersApi.md#acceptOrder) | **POST** /api/v1.0/orders/{id}/accept | +[**dispatchOrder**](OrdersApi.md#dispatchOrder) | **POST** /api/v1.0/orders/{id}/dispatch | +[**getDeliveryInformation**](OrdersApi.md#getDeliveryInformation) | **GET** /api/v1.0/orders/{orderId}/deliveryinfo | +[**getFulfillmentState**](OrdersApi.md#getFulfillmentState) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state | +[**getFulfillmentStatusWithDetailsAndActions**](OrdersApi.md#getFulfillmentStatusWithDetailsAndActions) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state/details | +[**getOrderById**](OrdersApi.md#getOrderById) | **GET** /api/v1.0/orders/{id} | +[**getOrders**](OrdersApi.md#getOrders) | **GET** /api/v1.0/orders | +[**getOrdersSummary**](OrdersApi.md#getOrdersSummary) | **GET** /api/v1.0/{appId}/orders/summaries | +[**getOrdersSummaryNew**](OrdersApi.md#getOrdersSummaryNew) | **GET** /api/v1.0/{appId}/orders/summariesNew | +[**getReadyToProcess**](OrdersApi.md#getReadyToProcess) | **GET** /api/v1.0/{appId}/orders/ready_to_process | +[**refundOrder**](OrdersApi.md#refundOrder) | **POST** /api/v1.0/orders/{id}/refund | +[**rejectOrder**](OrdersApi.md#rejectOrder) | **POST** /api/v1.0/orders/{id}/reject | +[**searchFulfillmentStatuses**](OrdersApi.md#searchFulfillmentStatuses) | **GET** /api/v1.0/{appId}/orders/fulfillmentstatuses | +[**updateDeliveryInformation**](OrdersApi.md#updateDeliveryInformation) | **POST** /api/v1.0/orders/{orderId}/deliveryinfo | +[**updateFulfillmentState**](OrdersApi.md#updateFulfillmentState) | **POST** /api/v1.0/orders/{orderId}/fulfillment/state | + + + +## acceptOrder + +> acceptOrder(id, acceptObject) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let id = 56; // Number | +let acceptObject = new Flipdish.Accept(); // Accept | +apiInstance.acceptOrder(id, acceptObject, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + **acceptObject** | [**Accept**](Accept.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## dispatchOrder + +> dispatchOrder(id) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let id = 56; // Number | +apiInstance.dispatchOrder(id, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## getDeliveryInformation + +> RestApiResultOrderDeliveryInformation getDeliveryInformation(orderId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let orderId = 56; // Number | +apiInstance.getDeliveryInformation(orderId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + +### Return type + +[**RestApiResultOrderDeliveryInformation**](RestApiResultOrderDeliveryInformation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getFulfillmentState + +> RestApiResultOrderFulfillmentStatus getFulfillmentState(orderId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let orderId = 56; // Number | +apiInstance.getFulfillmentState(orderId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + +### Return type + +[**RestApiResultOrderFulfillmentStatus**](RestApiResultOrderFulfillmentStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getFulfillmentStatusWithDetailsAndActions + +> RestApiResultOrderFulfillmentStatusWithConfigurationActions getFulfillmentStatusWithDetailsAndActions(orderId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let orderId = 56; // Number | +apiInstance.getFulfillmentStatusWithDetailsAndActions(orderId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + +### Return type + +[**RestApiResultOrderFulfillmentStatusWithConfigurationActions**](RestApiResultOrderFulfillmentStatusWithConfigurationActions.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getOrderById + +> RestApiResultOrder getOrderById(id) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let id = 56; // Number | +apiInstance.getOrderById(id, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + +### 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, Data, Message + + +## getOrders + +> RestApiPaginationResultOrder getOrders(opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let opts = { + 'physicalRestaurantId': [null], // [Number] | + 'state': ["null"], // [String] | + 'from': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'to': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getOrders(opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **physicalRestaurantId** | [**[Number]**](Number.md)| | [optional] + **state** | [**[String]**](String.md)| | [optional] + **from** | **Date**| | [optional] + **to** | **Date**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultOrder**](RestApiPaginationResultOrder.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + + +## getOrdersSummary + +> RestApiPaginationResultOrderSummary getOrdersSummary(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let appId = "appId_example"; // String | +let opts = { + 'searchQuery': "searchQuery_example", // String | + 'physicalRestaurantId': [null], // [Number] | + 'state': ["null"], // [String] | + 'page': 56, // Number | + 'limit': 56, // Number | + 'orderByRequestedForTime': true, // Boolean | + 'channels': ["null"], // [String] | + 'orderIds': [null], // [Number] | + 'from': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'to': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'logSql': true // Boolean | +}; +apiInstance.getOrdersSummary(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **searchQuery** | **String**| | [optional] + **physicalRestaurantId** | [**[Number]**](Number.md)| | [optional] + **state** | [**[String]**](String.md)| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **orderByRequestedForTime** | **Boolean**| | [optional] + **channels** | [**[String]**](String.md)| | [optional] + **orderIds** | [**[Number]**](Number.md)| | [optional] + **from** | **Date**| | [optional] + **to** | **Date**| | [optional] + **logSql** | **Boolean**| | [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, Data, Message + + +## getOrdersSummaryNew + +> RestApiPaginationResultOrderSummary getOrdersSummaryNew(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let appId = "appId_example"; // String | +let opts = { + 'searchQuery': "searchQuery_example", // String | + 'physicalRestaurantId': [null], // [Number] | + 'state': ["null"], // [String] | + 'page': 56, // Number | + 'limit': 56, // Number | + 'orderByRequestedForTime': true, // Boolean | + 'channels': ["null"], // [String] | + 'orderIds': [null], // [Number] | + 'from': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'to': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'logSql': true // Boolean | +}; +apiInstance.getOrdersSummaryNew(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **searchQuery** | **String**| | [optional] + **physicalRestaurantId** | [**[Number]**](Number.md)| | [optional] + **state** | [**[String]**](String.md)| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **orderByRequestedForTime** | **Boolean**| | [optional] + **channels** | [**[String]**](String.md)| | [optional] + **orderIds** | [**[Number]**](Number.md)| | [optional] + **from** | **Date**| | [optional] + **to** | **Date**| | [optional] + **logSql** | **Boolean**| | [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, Data, Message + + +## getReadyToProcess + +> OrderList getReadyToProcess(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let appId = "appId_example"; // String | +let opts = { + 'storeId': [null] // [Number] | +}; +apiInstance.getReadyToProcess(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | [**[Number]**](Number.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, Message + + +## refundOrder + +> refundOrder(id, refundObject) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let id = 56; // Number | +let refundObject = new Flipdish.Refund(); // Refund | +apiInstance.refundOrder(id, refundObject, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + **refundObject** | [**Refund**](Refund.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## rejectOrder + +> rejectOrder(id, rejectObject) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let id = 56; // Number | +let rejectObject = new Flipdish.Reject(); // Reject | +apiInstance.rejectOrder(id, rejectObject, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + **rejectObject** | [**Reject**](Reject.md)| | + +### Return type + +null (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, Message, ErrorCode, StackTrace + + +## searchFulfillmentStatuses + +> RestApiArrayResultOrderFulfillmentStatus searchFulfillmentStatuses(appId, orderIds) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let appId = "appId_example"; // String | +let orderIds = "orderIds_example"; // String | +apiInstance.searchFulfillmentStatuses(appId, orderIds, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **orderIds** | **String**| | + +### Return type + +[**RestApiArrayResultOrderFulfillmentStatus**](RestApiArrayResultOrderFulfillmentStatus.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateDeliveryInformation + +> updateDeliveryInformation(orderId, deliveryInformation) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let orderId = 56; // Number | +let deliveryInformation = new Flipdish.OrderDeliveryInformationBase(); // OrderDeliveryInformationBase | +apiInstance.updateDeliveryInformation(orderId, deliveryInformation, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + **deliveryInformation** | [**OrderDeliveryInformationBase**](OrderDeliveryInformationBase.md)| | + +### Return type + +null (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 + + +## updateFulfillmentState + +> updateFulfillmentState(orderId, fulfillmentStatusRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.OrdersApi(); +let orderId = 56; // Number | +let fulfillmentStatusRequest = new Flipdish.OrderFulfillmentStatusUpdate(); // OrderFulfillmentStatusUpdate | +apiInstance.updateFulfillmentState(orderId, fulfillmentStatusRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + **fulfillmentStatusRequest** | [**OrderFulfillmentStatusUpdate**](OrderFulfillmentStatusUpdate.md)| | + +### Return type + +null (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 + diff --git a/docs/OtherChargesDetails.md b/docs/OtherChargesDetails.md new file mode 100644 index 00000000..1569455d --- /dev/null +++ b/docs/OtherChargesDetails.md @@ -0,0 +1,10 @@ +# Flipdish.OtherChargesDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalOtherCharges** | **Number** | Total amount of other charges | [optional] +**ChargesCount** | **Number** | Number of other charges | [optional] + + diff --git a/docs/OwnerEntityConfiguration.md b/docs/OwnerEntityConfiguration.md new file mode 100644 index 00000000..1888197c --- /dev/null +++ b/docs/OwnerEntityConfiguration.md @@ -0,0 +1,34 @@ +# Flipdish.OwnerEntityConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerEntity** | **String** | Owner Entity | [optional] +**AllowedBehaviors** | **[String]** | | [optional] + + + +## Enum: OwnerEntityEnum + + +* `CatalogItem` (value: `"CatalogItem"`) + +* `CatalogGroup` (value: `"CatalogGroup"`) + +* `Menu` (value: `"Menu"`) + + + + + +## Enum: [AllowedBehaviorsEnum] + + +* `SendToOrder` (value: `"SendToOrder"`) + +* `SendToMenu` (value: `"SendToMenu"`) + + + + diff --git a/docs/OwnerEntityConfigurations.md b/docs/OwnerEntityConfigurations.md new file mode 100644 index 00000000..f1df91bb --- /dev/null +++ b/docs/OwnerEntityConfigurations.md @@ -0,0 +1,9 @@ +# Flipdish.OwnerEntityConfigurations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configurations** | [**[OwnerEntityConfiguration]**](OwnerEntityConfiguration.md) | Owner Entity Configuration | [optional] + + diff --git a/docs/PasswordResetModel.md b/docs/PasswordResetModel.md new file mode 100644 index 00000000..23db5e9d --- /dev/null +++ b/docs/PasswordResetModel.md @@ -0,0 +1,13 @@ +# Flipdish.PasswordResetModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TokenId** | **String** | Token Id | [optional] +**Email** | **String** | Email address | [optional] +**Password** | **String** | Password | +**PasswordConfirmation** | **String** | Password confirmation | +**Token** | **String** | Password reset token | [optional] + + diff --git a/docs/PaymentAccount.md b/docs/PaymentAccount.md new file mode 100644 index 00000000..527eca38 --- /dev/null +++ b/docs/PaymentAccount.md @@ -0,0 +1,17 @@ +# Flipdish.PaymentAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Number** | The user ID associated with the payment account. | [optional] +**PaymentAccountId** | **Number** | Unique identifier for the payment account. | [optional] +**CanRemoveFromCustomerView** | **Boolean** | 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** | **Boolean** | Indicates if this is the default payment method. | [optional] +**IsVisibleToCustomer** | **Boolean** | 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] + + diff --git a/docs/PaymentIntent.md b/docs/PaymentIntent.md new file mode 100644 index 00000000..d3301ff0 --- /dev/null +++ b/docs/PaymentIntent.md @@ -0,0 +1,14 @@ +# Flipdish.PaymentIntent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | Id of payment intent | [optional] +**Description** | **String** | An arbitrary string attached to the object. Often useful for displaying to users. | [optional] +**Currency** | **String** | Three-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO currency code</a>, in lowercase. Must be a <a href=\"https://stripe.com/docs/currencies\">supported currency</a>. | [optional] +**Status** | **String** | Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent <a href=\"https://stripe.com/docs/payments/intents#intent-statuses\">status</a>. One of: canceled, processing, requires_action, requires_capture, requires_confirmation, requires_payment_method, or succeeded. | [optional] +**Created** | **Date** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional] +**LastPaymentError** | [**LastPaymentError**](LastPaymentError.md) | | [optional] + + diff --git a/docs/PaymentIntentsApi.md b/docs/PaymentIntentsApi.md new file mode 100644 index 00000000..25029cc5 --- /dev/null +++ b/docs/PaymentIntentsApi.md @@ -0,0 +1,56 @@ +# Flipdish.PaymentIntentsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getPaymentIntent**](PaymentIntentsApi.md#getPaymentIntent) | **GET** /api/v1.0/payment_intents/{paymentIntentId} | + + + +## getPaymentIntent + +> RestApiResultPaymentIntent getPaymentIntent(paymentIntentId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PaymentIntentsApi(); +let paymentIntentId = "paymentIntentId_example"; // String | +apiInstance.getPaymentIntent(paymentIntentId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **paymentIntentId** | **String**| | + +### Return type + +[**RestApiResultPaymentIntent**](RestApiResultPaymentIntent.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/PaymentTerminalDetails.md b/docs/PaymentTerminalDetails.md new file mode 100644 index 00000000..9d0f786c --- /dev/null +++ b/docs/PaymentTerminalDetails.md @@ -0,0 +1,12 @@ +# Flipdish.PaymentTerminalDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TerminalId** | **String** | Terminal Id (tid) | [optional] +**Status** | **String** | Status of Terminal | [optional] +**Currency** | **String** | Currency configured on the terminal | [optional] +**Uri** | **String** | Location to Device | [optional] + + diff --git a/docs/PaymentTerminalTransactionDetails.md b/docs/PaymentTerminalTransactionDetails.md new file mode 100644 index 00000000..ea277bfa --- /dev/null +++ b/docs/PaymentTerminalTransactionDetails.md @@ -0,0 +1,14 @@ +# Flipdish.PaymentTerminalTransactionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CardSchemeName** | **String** | Card Type | [optional] +**DateOfExpiry** | **String** | Expirey Date on Card | [optional] +**AuthCode** | **String** | AuthCode | [optional] +**TransactionResult** | **String** | State of Request, \"PENDING\" is not yet completed | [optional] +**PrimaryAccountNumber** | **String** | Masked PAN | [optional] +**CardholderVerificationMethod** | **String** | Type of Verification. | [optional] + + diff --git a/docs/PaymentsApi.md b/docs/PaymentsApi.md new file mode 100644 index 00000000..42291eec --- /dev/null +++ b/docs/PaymentsApi.md @@ -0,0 +1,56 @@ +# Flipdish.PaymentsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getOrderPaymentInformation**](PaymentsApi.md#getOrderPaymentInformation) | **GET** /api/v1.0/payments/payment/{orderId}/refundable | + + + +## getOrderPaymentInformation + +> RestApiResultOrderPaymentInformation getOrderPaymentInformation(orderId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PaymentsApi(); +let orderId = 56; // Number | +apiInstance.getOrderPaymentInformation(orderId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + +### Return type + +[**RestApiResultOrderPaymentInformation**](RestApiResultOrderPaymentInformation.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + diff --git a/docs/Payout.md b/docs/Payout.md new file mode 100644 index 00000000..a8aa46ac --- /dev/null +++ b/docs/Payout.md @@ -0,0 +1,313 @@ +# Flipdish.Payout + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutId** | **Number** | The id of the payout. | [optional] +**PayeeBankAccountId** | **Number** | Bank account identifier | [optional] +**AccountName** | **String** | Account name of the payout destination | [optional] +**PayoutStatus** | **String** | Status of the payout | [optional] +**CreatedDate** | **Date** | Date payout was created | [optional] +**PeriodStartTime** | **Date** | This payout includes operations after at this date (inclusive) | [optional] +**PeriodEndTime** | **Date** | This payout includes operations before at this date (exclusive) | [optional] +**DestinationBank** | **String** | Destination bank name | [optional] +**DestinationAccount** | **String** | Last 4 digits of the destination bank IBAN | [optional] +**Amount** | **Number** | Payout amount | [optional] +**PayoutType** | **String** | Type of payout source | [optional] +**Currency** | **String** | Payout currency | [optional] +**CutoffDate** | **Date** | Payouts before this date do not have a details breakdown | [optional] +**OnlineSalesAmount** | **Number** | Payout online sales amount | [optional] +**OnlineSalesDeliveryCharges** | **Number** | Payout online sales delivery charges | [optional] +**OnlineSalesTips** | **Number** | Payout online sales tips | [optional] +**OnlineSalesServiceCharges** | **Number** | Payout online sales service charges | [optional] +**OnlineSalesRefundedFees** | **Number** | Payout online sales refunded fees | [optional] +**OnlineSalesFees** | **Number** | Payout online sales fees | [optional] +**PosSalesFees** | **Number** | Payout online sales fees | [optional] +**OnlineSalesRefundedAmount** | **Number** | Payout online sales refunded amount | [optional] +**PosSalesRefundedAmount** | **Number** | POS Payout online sales refunded amount | [optional] +**OnlineSalesTax** | **Number** | Payout online sales tax | [optional] +**TotalOnlineRevenue** | **Number** | Payout total online revenue | [optional] +**CashSalesFees** | **Number** | Payout cash sales fees | [optional] +**CashSalesRefundedFees** | **Number** | Payout cash sales refunded fees | [optional] +**CustomerCashFees** | **Number** | Payout cash fees charged to customer | [optional] +**SalesFeesVat** | **Number** | Payout sales fees vat | [optional] +**TotalFees** | **Number** | Payout total fees | [optional] +**TotalOnlineRevenueAdjustments** | **Number** | Payout total online revenue adjustments | [optional] +**ChargebackAmount** | **Number** | Payout chargeback amount | [optional] +**PosSalesChargebackAmount** | **Number** | POS Payout chargeback amount | [optional] +**ChargebackRefundedFees** | **Number** | Payout chargeback refunded fees | [optional] +**TotalChargebackCost** | **Number** | Payout chargebacks total cost | [optional] +**TotalOtherCharges** | **Number** | Payout other charges total | [optional] +**OpeningBalance** | **Number** | Payout opening balance | [optional] +**ClosingBalance** | **Number** | Payout closing balance | [optional] +**PayGreenSalesAmount** | **Number** | Amount of sales through PayGreen (restaurant vouchers) | [optional] +**DeliveryIntegrationFee** | **Number** | Third party integration delivery fee | [optional] +**DeliveryIntegrationTipFee** | **Number** | Third party integration delivery tip fee | [optional] +**TotalThirdPartyFees** | **Number** | Total third party integration fees | [optional] +**PosSalesAmount** | **Number** | POS sales amount | [optional] +**PosSalesTax** | **Number** | POS sales tax | [optional] +**TipsOnPosSales** | **Number** | Tips on POS sales | [optional] + + + +## Enum: PayoutStatusEnum + + +* `Pending` (value: `"Pending"`) + +* `InTransit` (value: `"InTransit"`) + +* `Paid` (value: `"Paid"`) + +* `Failed` (value: `"Failed"`) + +* `Cancelled` (value: `"Cancelled"`) + + + + + +## Enum: PayoutTypeEnum + + +* `Internal` (value: `"Internal"`) + +* `Stripe` (value: `"Stripe"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/PayoutChargeback.md b/docs/PayoutChargeback.md new file mode 100644 index 00000000..d8f6094e --- /dev/null +++ b/docs/PayoutChargeback.md @@ -0,0 +1,261 @@ +# Flipdish.PayoutChargeback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | The id of the order the chargeback was for | [optional] +**OrderCurrency** | **String** | Order currency | [optional] +**PayoutId** | **Number** | The id of the payout the order is related to | [optional] +**OrderDate** | **Date** | The date the order was placed | [optional] +**OrderType** | **String** | Order type (online or cash) | [optional] +**ChargebackDate** | **Date** | The date the chargeback was done | [optional] +**StoreId** | **Number** | Store id | [optional] +**ChargebackAmount** | **Number** | Chargeback amount | [optional] +**RefundedFees** | **Number** | Amount of refunded fees | [optional] + + + +## Enum: OrderCurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: OrderTypeEnum + + +* `Cash` (value: `"Cash"`) + +* `Online` (value: `"Online"`) + + + + diff --git a/docs/PayoutDetail.md b/docs/PayoutDetail.md new file mode 100644 index 00000000..9721d2ad --- /dev/null +++ b/docs/PayoutDetail.md @@ -0,0 +1,283 @@ +# Flipdish.PayoutDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutId** | **Number** | The id of the payout. | [optional] +**BankAccountId** | **Number** | Bank account identifier | [optional] +**AccountName** | **String** | Account name of the payout destination | [optional] +**PayoutStatus** | **String** | Status of the payout | [optional] +**CreatedDate** | **Date** | Date payout was created | [optional] +**PeriodStartTime** | **Date** | This payout includes operations after at this date (inclusive) | [optional] +**PeriodEndTime** | **Date** | This payout includes operations before at this date (exclusive) | [optional] +**DestinationBank** | **String** | Destination bank name | [optional] +**DestinationAccount** | **String** | Last 4 digits of the destination bank IBAN | [optional] +**PayoutType** | **String** | Type of payout source | [optional] +**Currency** | **String** | Payout currency | [optional] +**PayoutStores** | [**[PayoutStore]**](PayoutStore.md) | Payout information broken down by Store | [optional] +**Amount** | **Number** | Payout amount | [optional] +**CutoffDate** | **Date** | Payouts before this date do not have a details breakdown | [optional] + + + +## Enum: PayoutStatusEnum + + +* `Pending` (value: `"Pending"`) + +* `InTransit` (value: `"InTransit"`) + +* `Paid` (value: `"Paid"`) + +* `Failed` (value: `"Failed"`) + +* `Cancelled` (value: `"Cancelled"`) + + + + + +## Enum: PayoutTypeEnum + + +* `Internal` (value: `"Internal"`) + +* `Stripe` (value: `"Stripe"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/PayoutOrder.md b/docs/PayoutOrder.md new file mode 100644 index 00000000..1ca48dfc --- /dev/null +++ b/docs/PayoutOrder.md @@ -0,0 +1,274 @@ +# Flipdish.PayoutOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | The id of the order | [optional] +**PayoutId** | **Number** | The id of the payout the order is related to | [optional] +**OrderDate** | **Date** | The date the order was placed | [optional] +**OrderType** | **String** | Order type (online or cash) | [optional] +**OrderCurrency** | **String** | Order currency | [optional] +**Sales** | **Number** | Order sales amount | [optional] +**SalesTax** | **Number** | Order sales tax amount | [optional] +**DeliveryCharges** | **Number** | Order delivery charges | [optional] +**Tips** | **Number** | Order tips amount | [optional] +**Voucher** | **Number** | Order voucher amount | [optional] +**FlatFeeExcludingVat** | **Number** | Order flat fee amount excluding VAT | [optional] +**FlatFeeExcludingVAT** | **Number** | Order flat fee amount excluding VAT | [optional] +**FlatFeeIncludingVat** | **Number** | Order flat fee amount including VAT | [optional] +**PercentageFeeExcludingVat** | **Number** | Order percentage fee excluding VAT | [optional] +**PercentageFeeExcludingVAT** | **Number** | Order percentage fee excluding VAT | [optional] +**Vat** | **Number** | Order VAT amount | [optional] +**TotalFees** | **Number** | Total order fees amount | [optional] +**CashFeeChargedToCustomer** | **Number** | Cash fee charged to customer | [optional] +**NetSales** | **Number** | Order net sales amount | [optional] +**StoreId** | **Number** | Store id | [optional] +**ServiceChargeAmount** | **Number** | Order ServiceChargeAmount amount | [optional] +**ServiceChargePercentage** | **Number** | Order ServiceChargePercentage amount | [optional] + + + +## Enum: OrderTypeEnum + + +* `Cash` (value: `"Cash"`) + +* `Online` (value: `"Online"`) + + + + + +## Enum: OrderCurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/PayoutOtherCharge.md b/docs/PayoutOtherCharge.md new file mode 100644 index 00000000..6c35cfa7 --- /dev/null +++ b/docs/PayoutOtherCharge.md @@ -0,0 +1,272 @@ +# Flipdish.PayoutOtherCharge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChargeId** | **Number** | The id of the charge | [optional] +**Amount** | **Number** | Charge amount | [optional] +**Currency** | **String** | Currency of the charge | [optional] +**PayoutId** | **Number** | The id of the payout the order is related to | [optional] +**ChargeDate** | **Date** | The date the order was placed | [optional] +**ChargeType** | **String** | Charge type | [optional] +**ChargeDescription** | **String** | Charge description | [optional] +**StoreId** | **Number** | Store id | [optional] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: ChargeTypeEnum + + +* `Other` (value: `"Other"`) + +* `Fees` (value: `"Fees"`) + +* `Chargeback` (value: `"Chargeback"`) + +* `TipFailure` (value: `"TipFailure"`) + +* `ExternalDisbursement` (value: `"ExternalDisbursement"`) + +* `Goods` (value: `"Goods"`) + +* `RestaurantSales` (value: `"RestaurantSales"`) + +* `Tips` (value: `"Tips"`) + + + + diff --git a/docs/PayoutRefund.md b/docs/PayoutRefund.md new file mode 100644 index 00000000..36131133 --- /dev/null +++ b/docs/PayoutRefund.md @@ -0,0 +1,263 @@ +# Flipdish.PayoutRefund + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | The id of the order the refund was for | [optional] +**OrderCurrency** | **String** | Order currency | [optional] +**PayoutId** | **Number** | The id of the payout the order is related to | [optional] +**OrderDate** | **Date** | The date the order was placed | [optional] +**OrderType** | **String** | Order type (online or cash) | [optional] +**RefundDate** | **Date** | The date the refund was done | [optional] +**StoreId** | **Number** | Store id | [optional] +**TotalRefund** | **Number** | Total refund amount | [optional] +**RefundedFees** | **Number** | Refunded fees amount | [optional] +**RefundedAmount** | **Number** | Refunded amount | [optional] +**CashFeeRefundedToCustomer** | **Number** | Cash fee refunded to customer | [optional] + + + +## Enum: OrderCurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: OrderTypeEnum + + +* `Cash` (value: `"Cash"`) + +* `Online` (value: `"Online"`) + + + + diff --git a/docs/PayoutReport3Details.md b/docs/PayoutReport3Details.md new file mode 100644 index 00000000..50abd37c --- /dev/null +++ b/docs/PayoutReport3Details.md @@ -0,0 +1,14 @@ +# Flipdish.PayoutReport3Details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **Number** | | [optional] +**Currency** | **String** | | [optional] +**Summary** | [**PayoutReport3DetailsSummary**](PayoutReport3DetailsSummary.md) | | [optional] +**Revenue** | [**PayoutReport3DetailsRevenue**](PayoutReport3DetailsRevenue.md) | | [optional] +**FlipdishFees** | [**PayoutReport3DetailsFlipdishFees**](PayoutReport3DetailsFlipdishFees.md) | | [optional] +**Adjustments** | [**PayoutReport3DetailsAdjustments**](PayoutReport3DetailsAdjustments.md) | | [optional] + + diff --git a/docs/PayoutReport3DetailsAdjustments.md b/docs/PayoutReport3DetailsAdjustments.md new file mode 100644 index 00000000..d129e031 --- /dev/null +++ b/docs/PayoutReport3DetailsAdjustments.md @@ -0,0 +1,29 @@ +# Flipdish.PayoutReport3DetailsAdjustments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OpeningBalanceDate** | **Date** | | [optional] +**ClosingBalanceDate** | **Date** | | [optional] +**OpeningBalance** | **Number** | | [optional] +**RefundsOnCardOrders** | **Number** | | [optional] +**RefundsOnCashOrders** | **Number** | | [optional] +**CashCustomerFees** | **Number** | | [optional] +**Chargebacks** | **Number** | | [optional] +**OtherTransactions** | **Number** | | [optional] +**ClosingBalance** | **Number** | | [optional] +**BalanceRepaid** | **Number** | | [optional] +**RefundsOnCardOrdersBracketsAmount** | **Number** | | [optional] +**RefundsOnCardOrdersBracketsOutOfAmount** | **Number** | | [optional] +**RefundsOnCashOrdersBracketsAmount** | **Number** | | [optional] +**RefundsOnCashOrdersBracketsOutOfAmount** | **Number** | | [optional] +**CashCustomerFeesBracketsAmount** | **Number** | | [optional] +**CashCustomerFeesBracketsOutOfAmount** | **Number** | | [optional] +**BalanceChange** | **Number** | | [optional] +**PreviousPayoutId** | **Number** | | [optional] +**NextPayoutId** | **Number** | | [optional] +**RefundedFeesOnChargebacks** | **Number** | | [optional] +**TotalChargebackCost** | **Number** | | [optional] + + diff --git a/docs/PayoutReport3DetailsFlipdishFees.md b/docs/PayoutReport3DetailsFlipdishFees.md new file mode 100644 index 00000000..67f49132 --- /dev/null +++ b/docs/PayoutReport3DetailsFlipdishFees.md @@ -0,0 +1,37 @@ +# Flipdish.PayoutReport3DetailsFlipdishFees + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WebAndAppCash** | **Number** | | [optional] +**WebAndAppCashRevenueIncludingTips** | **Number** | | [optional] +**WebAndAppCard** | **Number** | | [optional] +**WebAndAppCardRevenueIncludingTips** | **Number** | | [optional] +**KioskCash** | **Number** | | [optional] +**KioskCashRevenue** | **Number** | | [optional] +**KioskCard** | **Number** | | [optional] +**KioskCardRevenue** | **Number** | | [optional] +**QropCash** | **Number** | | [optional] +**QropCashRevenue** | **Number** | | [optional] +**QropCard** | **Number** | | [optional] +**QropCardRevenue** | **Number** | | [optional] +**PosCard** | **Number** | | [optional] +**PosCardRevenue** | **Number** | | [optional] +**PosCardOnFlipdishOrders** | **Number** | | [optional] +**OtherIntegrationFees** | **Number** | | [optional] +**OtherIntegrationTips** | **Number** | | [optional] +**RefundedFeesOnRefundedSales** | **Number** | | [optional] +**Vat** | **Number** | | [optional] +**RefundedFeesOnPosSales** | **Number** | | [optional] +**Total** | **Number** | | [optional] +**ThirdPartyIntegrationFeesAndTips** | **Number** | | [optional] +**WebAndAppCardOnXOrders** | **Number** | | [optional] +**WebAndAppCashOnXOrders** | **Number** | | [optional] +**KioskCardOnXOrders** | **Number** | | [optional] +**KioskCashOnXOrders** | **Number** | | [optional] +**QropCardOnXOrders** | **Number** | | [optional] +**QropCashOnXOrders** | **Number** | | [optional] +**PosCardOnXOrders** | **Number** | | [optional] + + diff --git a/docs/PayoutReport3DetailsRevenue.md b/docs/PayoutReport3DetailsRevenue.md new file mode 100644 index 00000000..7a113d5c --- /dev/null +++ b/docs/PayoutReport3DetailsRevenue.md @@ -0,0 +1,16 @@ +# Flipdish.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] + + diff --git a/docs/PayoutReport3DetailsSalesLine.md b/docs/PayoutReport3DetailsSalesLine.md new file mode 100644 index 00000000..f4bd5492 --- /dev/null +++ b/docs/PayoutReport3DetailsSalesLine.md @@ -0,0 +1,12 @@ +# Flipdish.PayoutReport3DetailsSalesLine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Online** | **Number** | | [optional] +**Pos** | **Number** | | [optional] +**Other** | **Number** | | [optional] +**Total** | **Number** | | [optional] [readonly] + + diff --git a/docs/PayoutReport3DetailsSummary.md b/docs/PayoutReport3DetailsSummary.md new file mode 100644 index 00000000..bef84ef0 --- /dev/null +++ b/docs/PayoutReport3DetailsSummary.md @@ -0,0 +1,15 @@ +# Flipdish.PayoutReport3DetailsSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revenue** | **Number** | | [optional] +**RevenueOfWhichCash** | **Number** | | [optional] +**RevenueForFeeCalculations** | **Number** | | [optional] +**FlipdishFees** | **Number** | | [optional] +**Adjustments** | **Number** | | [optional] +**ThirdPartyIntegrationFeesAndTips** | **Number** | | [optional] +**Total** | **Number** | | [optional] + + diff --git a/docs/PayoutReport3Overview.md b/docs/PayoutReport3Overview.md new file mode 100644 index 00000000..801e3afd --- /dev/null +++ b/docs/PayoutReport3Overview.md @@ -0,0 +1,10 @@ +# Flipdish.PayoutReport3Overview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutReport3OverviewHeader** | [**PayoutReport3OverviewHeader**](PayoutReport3OverviewHeader.md) | | [optional] +**PayoutStores** | [**[PayoutReport3Store]**](PayoutReport3Store.md) | | [optional] + + diff --git a/docs/PayoutReport3OverviewHeader.md b/docs/PayoutReport3OverviewHeader.md new file mode 100644 index 00000000..02e19253 --- /dev/null +++ b/docs/PayoutReport3OverviewHeader.md @@ -0,0 +1,20 @@ +# Flipdish.PayoutReport3OverviewHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutId** | **Number** | | [optional] +**BankAccountId** | **Number** | | [optional] +**IsManualPayout** | **Boolean** | | [optional] +**AccountName** | **String** | | [optional] +**PayoutStatus** | **String** | | [optional] +**CreatedDate** | **Date** | | [optional] +**PeriodStartTime** | **Date** | | [optional] +**PeriodEndTime** | **Date** | | [optional] +**DestinationBank** | **String** | | [optional] +**DestinationAccount** | **String** | | [optional] +**Amount** | **Number** | | [optional] +**Currency** | **String** | | [optional] + + diff --git a/docs/PayoutReport3RefundedOrder.md b/docs/PayoutReport3RefundedOrder.md new file mode 100644 index 00000000..46dbb0f1 --- /dev/null +++ b/docs/PayoutReport3RefundedOrder.md @@ -0,0 +1,28 @@ +# Flipdish.PayoutReport3RefundedOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Number** | | [optional] +**PlacedAtTime** | **Date** | | [optional] +**ModifiedAtTime** | **Date** | | [optional] +**StoreName** | **String** | | [optional] +**Type** | **String** | | [optional] +**RefundedAmount** | **Number** | | [optional] +**RefundedFees** | **Number** | | [optional] +**RefundType** | **String** | | [optional] +**CashFeeRefundedToCustomer** | **Number** | | [optional] + + + +## Enum: TypeEnum + + +* `Cash` (value: `"Cash"`) + +* `Card` (value: `"Card"`) + + + + diff --git a/docs/PayoutReport3Store.md b/docs/PayoutReport3Store.md new file mode 100644 index 00000000..2778da37 --- /dev/null +++ b/docs/PayoutReport3Store.md @@ -0,0 +1,10 @@ +# Flipdish.PayoutReport3Store + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | | [optional] +**StoreName** | **String** | | [optional] + + diff --git a/docs/PayoutReportsApi.md b/docs/PayoutReportsApi.md new file mode 100644 index 00000000..2a94be05 --- /dev/null +++ b/docs/PayoutReportsApi.md @@ -0,0 +1,400 @@ +# Flipdish.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 | +[**getPayoutReport3RefundedOrders**](PayoutReportsApi.md#getPayoutReport3RefundedOrders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/refundedOrders | +[**payoutReport3ExportPayoutChargebacks**](PayoutReportsApi.md#payoutReport3ExportPayoutChargebacks) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/chargebacks | +[**payoutReport3ExportPayoutOrders**](PayoutReportsApi.md#payoutReport3ExportPayoutOrders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/orders | +[**payoutReport3ExportPayoutPosSales**](PayoutReportsApi.md#payoutReport3ExportPayoutPosSales) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/possales | +[**payoutReport3ExportPayoutRefundedOrders**](PayoutReportsApi.md#payoutReport3ExportPayoutRefundedOrders) | **GET** /api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/refundedOrders | + + + +## getPayoutReport3Details + +> RestApiResultPayoutReport3Details getPayoutReport3Details(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutReportsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'storeIds': [null] // [Number] | +}; +apiInstance.getPayoutReport3Details(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **storeIds** | [**[Number]**](Number.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, Data, Message, ErrorCode, StackTrace + + +## getPayoutReport3Overview + +> RestApiResultPayoutReport3Overview getPayoutReport3Overview(appId, bankAccountId, payoutId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutReportsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +apiInstance.getPayoutReport3Overview(appId, bankAccountId, payoutId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + +### 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, Data, Message, ErrorCode, StackTrace + + +## getPayoutReport3RefundedOrders + +> RestApiPaginationResultPayoutReport3RefundedOrder getPayoutReport3RefundedOrders(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutReportsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'storeIds': [null], // [Number] | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getPayoutReport3RefundedOrders(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **storeIds** | [**[Number]**](Number.md)| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [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, Data, Message, ErrorCode, StackTrace + + +## payoutReport3ExportPayoutChargebacks + +> RestApiResultFileCreationResult payoutReport3ExportPayoutChargebacks(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutReportsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'stores': [null] // [Number] | +}; +apiInstance.payoutReport3ExportPayoutChargebacks(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **stores** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiResultFileCreationResult**](RestApiResultFileCreationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## payoutReport3ExportPayoutOrders + +> RestApiResultFileCreationResult payoutReport3ExportPayoutOrders(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutReportsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'stores': [null] // [Number] | +}; +apiInstance.payoutReport3ExportPayoutOrders(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **stores** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiResultFileCreationResult**](RestApiResultFileCreationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## payoutReport3ExportPayoutPosSales + +> RestApiResultFileCreationResult payoutReport3ExportPayoutPosSales(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutReportsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'stores': [null] // [Number] | +}; +apiInstance.payoutReport3ExportPayoutPosSales(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **stores** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiResultFileCreationResult**](RestApiResultFileCreationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## payoutReport3ExportPayoutRefundedOrders + +> RestApiResultFileCreationResult payoutReport3ExportPayoutRefundedOrders(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutReportsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'stores': [null] // [Number] | +}; +apiInstance.payoutReport3ExportPayoutRefundedOrders(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **stores** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiResultFileCreationResult**](RestApiResultFileCreationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/PayoutRequestIds.md b/docs/PayoutRequestIds.md new file mode 100644 index 00000000..cf29b27d --- /dev/null +++ b/docs/PayoutRequestIds.md @@ -0,0 +1,27 @@ +# Flipdish.PayoutRequestIds + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAccountIds** | **[Number]** | List of bank account ids to search for | [optional] +**States** | **[String]** | List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for | [optional] + + + +## Enum: [StatesEnum] + + +* `Pending` (value: `"Pending"`) + +* `InTransit` (value: `"InTransit"`) + +* `Paid` (value: `"Paid"`) + +* `Failed` (value: `"Failed"`) + +* `Cancelled` (value: `"Cancelled"`) + + + + diff --git a/docs/PayoutStore.md b/docs/PayoutStore.md new file mode 100644 index 00000000..3a7b37d7 --- /dev/null +++ b/docs/PayoutStore.md @@ -0,0 +1,20 @@ +# Flipdish.PayoutStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | The id of the Store. | [optional] +**StoreName** | **String** | Name of the store | [optional] +**Amount** | **Number** | Amount of the payout for this Store | [optional] +**OnlineRevenue** | [**RevenueDetail**](RevenueDetail.md) | | [optional] +**Revenue** | [**RevenueDetail**](RevenueDetail.md) | | [optional] +**RevenueAdjustments** | [**RevenueAdjustmentsDetails**](RevenueAdjustmentsDetails.md) | | [optional] +**FlipdishFees** | [**FlipdishFeesDetails**](FlipdishFeesDetails.md) | | [optional] +**Chargebacks** | [**ChargebackDetails**](ChargebackDetails.md) | | [optional] +**OtherCharges** | [**OtherChargesDetails**](OtherChargesDetails.md) | | [optional] +**Balance** | [**BalanceDetails**](BalanceDetails.md) | | [optional] +**PosRevenue** | [**PosRevenueDetails**](PosRevenueDetails.md) | | [optional] +**ThirdPartyFees** | [**ThirdPartyFeesDetails**](ThirdPartyFeesDetails.md) | | [optional] + + diff --git a/docs/PayoutSummary.md b/docs/PayoutSummary.md new file mode 100644 index 00000000..bc3cf2ae --- /dev/null +++ b/docs/PayoutSummary.md @@ -0,0 +1,262 @@ +# Flipdish.PayoutSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayoutStatus** | **String** | Status of the payout | [optional] +**TotalAmount** | **Number** | Total payouts amount | [optional] +**Currency** | **String** | Payout currency | [optional] +**TotalCount** | **Number** | Total payouts count | [optional] + + + +## Enum: PayoutStatusEnum + + +* `Pending` (value: `"Pending"`) + +* `InTransit` (value: `"InTransit"`) + +* `Paid` (value: `"Paid"`) + +* `Failed` (value: `"Failed"`) + +* `Cancelled` (value: `"Cancelled"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/PayoutsApi.md b/docs/PayoutsApi.md new file mode 100644 index 00000000..0e2cc8a6 --- /dev/null +++ b/docs/PayoutsApi.md @@ -0,0 +1,420 @@ +# Flipdish.PayoutsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getPayout**](PayoutsApi.md#getPayout) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId} | +[**getPayoutChargebacks**](PayoutsApi.md#getPayoutChargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | +[**getPayoutOrders**](PayoutsApi.md#getPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | +[**getPayoutOtherCharges**](PayoutsApi.md#getPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | +[**getPayoutRefunds**](PayoutsApi.md#getPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | +[**getPayoutSummaries**](PayoutsApi.md#getPayoutSummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | +[**getPayouts**](PayoutsApi.md#getPayouts) | **GET** /api/v1.0/{appId}/payouts | + + + +## getPayout + +> PayoutDetail getPayout(appId, bankAccountId, payoutId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +apiInstance.getPayout(appId, bankAccountId, payoutId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + +### Return type + +[**PayoutDetail**](PayoutDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, PayoutId, BankAccountId, AccountName, PayoutStatus, CreatedDate, PeriodStartTime, PeriodEndTime, DestinationBank, DestinationAccount, PayoutType, Currency, PayoutStores, Amount, CutoffDate + + +## getPayoutChargebacks + +> RestApiPaginationResultPayoutChargeback getPayoutChargebacks(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [null] // [Number] | +}; +apiInstance.getPayoutChargebacks(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **storeIds** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutChargeback**](RestApiPaginationResultPayoutChargeback.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPayoutOrders + +> RestApiPaginationResultPayoutOrder getPayoutOrders(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [null] // [Number] | +}; +apiInstance.getPayoutOrders(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **storeIds** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutOrder**](RestApiPaginationResultPayoutOrder.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPayoutOtherCharges + +> RestApiPaginationResultPayoutOtherCharge getPayoutOtherCharges(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [null] // [Number] | +}; +apiInstance.getPayoutOtherCharges(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **storeIds** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutOtherCharge**](RestApiPaginationResultPayoutOtherCharge.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPayoutRefunds + +> RestApiPaginationResultPayoutRefund getPayoutRefunds(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeIds': [null] // [Number] | +}; +apiInstance.getPayoutRefunds(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **storeIds** | [**[Number]**](Number.md)| | [optional] + +### Return type + +[**RestApiPaginationResultPayoutRefund**](RestApiPaginationResultPayoutRefund.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPayoutSummaries + +> RestApiArrayResultPayoutSummary getPayoutSummaries(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsApi(); +let appId = "appId_example"; // String | +let opts = { + 'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'payoutRequestIds_bankAccountIds': [null], // [Number] | List of bank account ids to search for + 'payoutRequestIds_states': ["null"] // [String] | List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for +}; +apiInstance.getPayoutSummaries(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **startDate** | **Date**| | [optional] + **endDate** | **Date**| | [optional] + **payoutRequestIds_bankAccountIds** | [**[Number]**](Number.md)| List of bank account ids to search for | [optional] + **payoutRequestIds_states** | [**[String]**](String.md)| List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for | [optional] + +### Return type + +[**RestApiArrayResultPayoutSummary**](RestApiArrayResultPayoutSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPayouts + +> RestApiPaginationResultPayout getPayouts(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsApi(); +let appId = "appId_example"; // String | +let opts = { + 'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'page': 56, // Number | + 'limit': 56, // Number | + 'payoutRequestIds_bankAccountIds': [null], // [Number] | List of bank account ids to search for + 'payoutRequestIds_states': ["null"] // [String] | List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for +}; +apiInstance.getPayouts(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **startDate** | **Date**| | [optional] + **endDate** | **Date**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **payoutRequestIds_bankAccountIds** | [**[Number]**](Number.md)| List of bank account ids to search for | [optional] + **payoutRequestIds_states** | [**[String]**](String.md)| List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for | [optional] + +### Return type + +[**RestApiPaginationResultPayout**](RestApiPaginationResultPayout.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/PayoutsExportApi.md b/docs/PayoutsExportApi.md new file mode 100644 index 00000000..8914a042 --- /dev/null +++ b/docs/PayoutsExportApi.md @@ -0,0 +1,346 @@ +# Flipdish.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 | +[**exportPayoutOrders**](PayoutsExportApi.md#exportPayoutOrders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export | +[**exportPayoutOtherCharges**](PayoutsExportApi.md#exportPayoutOtherCharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export | +[**exportPayoutRefunds**](PayoutsExportApi.md#exportPayoutRefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export | +[**exportPayoutStores**](PayoutsExportApi.md#exportPayoutStores) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export | +[**exportPayouts**](PayoutsExportApi.md#exportPayouts) | **GET** /api/v1.0/{appId}/payouts/export | + + + +## exportPayoutChargebacks + +> String exportPayoutChargebacks(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsExportApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'storeIds': [null] // [Number] | +}; +apiInstance.exportPayoutChargebacks(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **storeIds** | [**[Number]**](Number.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 + + +## exportPayoutOrders + +> String exportPayoutOrders(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsExportApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'storeIds': [null] // [Number] | +}; +apiInstance.exportPayoutOrders(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **storeIds** | [**[Number]**](Number.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 + + +## exportPayoutOtherCharges + +> String exportPayoutOtherCharges(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsExportApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'storeIds': [null] // [Number] | +}; +apiInstance.exportPayoutOtherCharges(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **storeIds** | [**[Number]**](Number.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 + + +## exportPayoutRefunds + +> String exportPayoutRefunds(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsExportApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'storeIds': [null] // [Number] | +}; +apiInstance.exportPayoutRefunds(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **storeIds** | [**[Number]**](Number.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 + + +## exportPayoutStores + +> String exportPayoutStores(appId, bankAccountId, payoutId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsExportApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let payoutId = 56; // Number | +let opts = { + 'storeIds': [null] // [Number] | +}; +apiInstance.exportPayoutStores(appId, bankAccountId, payoutId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **payoutId** | **Number**| | + **storeIds** | [**[Number]**](Number.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 + + +## exportPayouts + +> String exportPayouts(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PayoutsExportApi(); +let appId = "appId_example"; // String | +let opts = { + 'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'payoutRequestIds_bankAccountIds': [null], // [Number] | List of bank account ids to search for + 'payoutRequestIds_states': ["null"] // [String] | List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for +}; +apiInstance.exportPayouts(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **startDate** | **Date**| | [optional] + **endDate** | **Date**| | [optional] + **payoutRequestIds_bankAccountIds** | [**[Number]**](Number.md)| List of bank account ids to search for | [optional] + **payoutRequestIds_states** | [**[String]**](String.md)| 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 + diff --git a/docs/PendingInvitation.md b/docs/PendingInvitation.md new file mode 100644 index 00000000..b2f36fab --- /dev/null +++ b/docs/PendingInvitation.md @@ -0,0 +1,12 @@ +# Flipdish.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** | **Date** | The time that the invitation was created. | [optional] + + diff --git a/docs/PendingMenuChanges.md b/docs/PendingMenuChanges.md new file mode 100644 index 00000000..8151f715 --- /dev/null +++ b/docs/PendingMenuChanges.md @@ -0,0 +1,10 @@ +# Flipdish.PendingMenuChanges + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Unique catalog item id | [optional] +**MenuId** | **Number** | Unique menu id | [optional] + + diff --git a/docs/PendingMenuChangesSummaries.md b/docs/PendingMenuChangesSummaries.md new file mode 100644 index 00000000..f33d8d72 --- /dev/null +++ b/docs/PendingMenuChangesSummaries.md @@ -0,0 +1,10 @@ +# Flipdish.PendingMenuChangesSummaries + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuId** | **Number** | Menu id | [optional] +**TotalPendingChanges** | **Number** | Sum of pending changes per menu id | [optional] + + diff --git a/docs/PercentDiscountDetails.md b/docs/PercentDiscountDetails.md new file mode 100644 index 00000000..b526de66 --- /dev/null +++ b/docs/PercentDiscountDetails.md @@ -0,0 +1,10 @@ +# Flipdish.PercentDiscountDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PercentageDiscount** | **Number** | Percentage discount | [optional] +**MaxDiscountAmount** | **Number** | 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] + + diff --git a/docs/PhoneCall.md b/docs/PhoneCall.md new file mode 100644 index 00000000..de4f2f2e --- /dev/null +++ b/docs/PhoneCall.md @@ -0,0 +1,43 @@ +# Flipdish.PhoneCall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneCallId** | **Number** | Phone call id | [optional] +**TimeOfCall** | **Date** | Time of the call | [optional] +**TimeOfCallLocal** | **Date** | Time of the call, local to the store to which the call was made | [optional] +**StoreId** | **Number** | ID of the store that the call was TO | [optional] +**StoreName** | **String** | Name of the store that the call was TO | [optional] +**CallerName** | **String** | Name of the caller | [optional] +**CallerUserId** | **Number** | UserID of the caller | [optional] +**CallerNumber** | **String** | Phone number of the caller | [optional] +**CallLengthInSeconds** | **Number** | The amount of time the call took | [optional] +**CallStatus** | **String** | The status of the call | [optional] + + + +## Enum: CallStatusEnum + + +* `Queued` (value: `"Queued"`) + +* `Ringing` (value: `"Ringing"`) + +* `InProgress` (value: `"InProgress"`) + +* `Completed` (value: `"Completed"`) + +* `Failed` (value: `"Failed"`) + +* `Busy` (value: `"Busy"`) + +* `NoAnswer` (value: `"NoAnswer"`) + +* `Unknown` (value: `"Unknown"`) + +* `Canceled` (value: `"Canceled"`) + + + + diff --git a/docs/PhoneCallEndedEvent.md b/docs/PhoneCallEndedEvent.md new file mode 100644 index 00000000..bfd330e6 --- /dev/null +++ b/docs/PhoneCallEndedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.PhoneCallEndedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**PhoneCall** | [**PhoneCall**](PhoneCall.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PhoneCallStartedEvent.md b/docs/PhoneCallStartedEvent.md new file mode 100644 index 00000000..a634be56 --- /dev/null +++ b/docs/PhoneCallStartedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.PhoneCallStartedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**PhoneCall** | [**PhoneCall**](PhoneCall.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PosRevenueDetails.md b/docs/PosRevenueDetails.md new file mode 100644 index 00000000..a4e8234f --- /dev/null +++ b/docs/PosRevenueDetails.md @@ -0,0 +1,12 @@ +# Flipdish.PosRevenueDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PosSalesAmount** | **Number** | POS sale amount for the store | [optional] +**PosSalesTax** | **Number** | POS sale Tax for the store | [optional] +**PosSalesTips** | **Number** | POS sale tips for the store | [optional] +**TotalPosRevenue** | **Number** | POS Total Revenue for the store | [optional] + + diff --git a/docs/PreOrderConfig.md b/docs/PreOrderConfig.md new file mode 100644 index 00000000..d46ac1fa --- /dev/null +++ b/docs/PreOrderConfig.md @@ -0,0 +1,31 @@ +# Flipdish.PreOrderConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LeadTimeMinutes** | **Number** | Lead Time in Minutes | [optional] +**IntervalMinutes** | **Number** | Interval in minutes | [optional] +**MaxOrderAheadDays** | **Number** | Max Days to order ahead | [optional] +**IncludeAsap** | **Boolean** | Show ASAP as option | [optional] +**IncludeMoreGranularInitialTime** | **Boolean** | Granual Init' Time | [optional] +**CutOffTimePreviousDayBasic** | **String** | Cut off time previous day | [optional] +**CutOffTimeCurrentDayBasic** | **String** | Cut off time current day | [optional] +**PreOrderTimeDisplayType** | **String** | Type of time displayed. | [optional] +**AlwaysAppearOpen** | **Boolean** | Specifies whether a customer can pre-order outside the store opening hours or not. | [optional] +**RequireExplicitSelectAlways** | **Boolean** | Force customer to select collection time. | [optional] + + + +## Enum: PreOrderTimeDisplayTypeEnum + + +* `SingleTime` (value: `"SingleTime"`) + +* `StartAndEndTime` (value: `"StartAndEndTime"`) + +* `DayOnly` (value: `"DayOnly"`) + + + + diff --git a/docs/PreOrderTime.md b/docs/PreOrderTime.md new file mode 100644 index 00000000..3929a3d5 --- /dev/null +++ b/docs/PreOrderTime.md @@ -0,0 +1,10 @@ +# Flipdish.PreOrderTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartTime** | **Date** | Start Time | [optional] +**EndTime** | **Date** | End Time | [optional] + + diff --git a/docs/PredefinedAnswer.md b/docs/PredefinedAnswer.md new file mode 100644 index 00000000..ae6b7153 --- /dev/null +++ b/docs/PredefinedAnswer.md @@ -0,0 +1,10 @@ +# Flipdish.PredefinedAnswer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Identifier | [optional] +**Text** | **String** | Text | [optional] + + diff --git a/docs/PreviousOrder.md b/docs/PreviousOrder.md new file mode 100644 index 00000000..c158771f --- /dev/null +++ b/docs/PreviousOrder.md @@ -0,0 +1,264 @@ +# Flipdish.PreviousOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryType** | **String** | | [optional] +**DeliveryLocationAddressString** | **String** | | [optional] +**PaymentAccountType** | **String** | | [optional] +**OrderId** | **Number** | | [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** | **Number** | | [optional] +**ServiceChargePercentage** | **Number** | | [optional] +**ServiceChargeAmount** | **Number** | | [optional] +**TipAmount** | **Number** | | [optional] +**DeliveryAmount** | **Number** | | [optional] +**DepositReturnFeeAmount** | **Number** | | [optional] +**TotalTax** | **Number** | | [optional] +**TotalAmount** | **Number** | | [optional] +**Items** | [**[PreviousOrderItem]**](PreviousOrderItem.md) | | [optional] +**TaxRates** | [**[TaxRate]**](TaxRate.md) | | [optional] +**WhiteLabelId** | **Number** | | [optional] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/PreviousOrderItem.md b/docs/PreviousOrderItem.md new file mode 100644 index 00000000..62c40625 --- /dev/null +++ b/docs/PreviousOrderItem.md @@ -0,0 +1,15 @@ +# Flipdish.PreviousOrderItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MenuSectionDisplayOrder** | **Number** | | [optional] +**MenuSectionName** | **String** | | [optional] +**Name** | **String** | | [optional] +**PriceIncludingOptionSetItems** | **Number** | | [optional] +**DepositReturnFee** | **Number** | | [optional] +**TaxAmount** | **Number** | | [optional] +**PreviousOrderItemOptions** | [**[PreviousOrderItemOption]**](PreviousOrderItemOption.md) | | [optional] + + diff --git a/docs/PreviousOrderItemOption.md b/docs/PreviousOrderItemOption.md new file mode 100644 index 00000000..6bfb17ec --- /dev/null +++ b/docs/PreviousOrderItemOption.md @@ -0,0 +1,10 @@ +# Flipdish.PreviousOrderItemOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**DepositReturnFee** | **Number** | | [optional] + + diff --git a/docs/Printer.md b/docs/Printer.md new file mode 100644 index 00000000..0ab89418 --- /dev/null +++ b/docs/Printer.md @@ -0,0 +1,10 @@ +# Flipdish.Printer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | **String** | Unique serial number of the printer | [optional] +**LastPollTime** | **Date** | Date and time when the printer last polled Flipdish for new orders. | [optional] + + diff --git a/docs/PrinterAssignedToStoreEvent.md b/docs/PrinterAssignedToStoreEvent.md new file mode 100644 index 00000000..9d3f83ee --- /dev/null +++ b/docs/PrinterAssignedToStoreEvent.md @@ -0,0 +1,20 @@ +# Flipdish.PrinterAssignedToStoreEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Printer** | [**Printer**](Printer.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PrinterTurnedOffEvent.md b/docs/PrinterTurnedOffEvent.md new file mode 100644 index 00000000..28f89a71 --- /dev/null +++ b/docs/PrinterTurnedOffEvent.md @@ -0,0 +1,20 @@ +# Flipdish.PrinterTurnedOffEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Printer** | [**Printer**](Printer.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PrinterTurnedOnEvent.md b/docs/PrinterTurnedOnEvent.md new file mode 100644 index 00000000..e010d980 --- /dev/null +++ b/docs/PrinterTurnedOnEvent.md @@ -0,0 +1,20 @@ +# Flipdish.PrinterTurnedOnEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Printer** | [**Printer**](Printer.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PrinterUnassignedFromStoreEvent.md b/docs/PrinterUnassignedFromStoreEvent.md new file mode 100644 index 00000000..9f23c044 --- /dev/null +++ b/docs/PrinterUnassignedFromStoreEvent.md @@ -0,0 +1,20 @@ +# Flipdish.PrinterUnassignedFromStoreEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Printer** | [**Printer**](Printer.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/ProcessPaymentIntentRequest.md b/docs/ProcessPaymentIntentRequest.md new file mode 100644 index 00000000..b60713fb --- /dev/null +++ b/docs/ProcessPaymentIntentRequest.md @@ -0,0 +1,9 @@ +# Flipdish.ProcessPaymentIntentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PaymentIntentId** | **String** | Device card paymentIntentId | + + diff --git a/docs/ProcessingFeeConfig.md b/docs/ProcessingFeeConfig.md new file mode 100644 index 00000000..6b00215b --- /dev/null +++ b/docs/ProcessingFeeConfig.md @@ -0,0 +1,39 @@ +# Flipdish.ProcessingFeeConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store Id | [optional] +**PaymentAccountType** | **String** | Payment account type | [optional] +**PercentFee** | **Number** | Percent fee to customer, including VAT | [optional] +**FixedFee** | **Number** | Fixed fee to customer, including VAT | [optional] + + + +## Enum: PaymentAccountTypeEnum + + +* `Card` (value: `"Card"`) + +* `Cash` (value: `"Cash"`) + +* `Ideal` (value: `"Ideal"`) + +* `Bancontact` (value: `"Bancontact"`) + +* `Giropay` (value: `"Giropay"`) + +* `Eps` (value: `"Eps"`) + +* `Emv` (value: `"Emv"`) + +* `PayPal` (value: `"PayPal"`) + +* `PayGreen` (value: `"PayGreen"`) + +* `GoogleWalletToken` (value: `"GoogleWalletToken"`) + + + + diff --git a/docs/ProcessingFeeConfigsApi.md b/docs/ProcessingFeeConfigsApi.md new file mode 100644 index 00000000..d0ce9a27 --- /dev/null +++ b/docs/ProcessingFeeConfigsApi.md @@ -0,0 +1,56 @@ +# Flipdish.ProcessingFeeConfigsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getProcessingFeeConfigsByStoreIds**](ProcessingFeeConfigsApi.md#getProcessingFeeConfigsByStoreIds) | **GET** /api/v1.0/processingfeeconfigs | + + + +## getProcessingFeeConfigsByStoreIds + +> RestApiArrayResultProcessingFeeConfig getProcessingFeeConfigsByStoreIds(storeIds) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ProcessingFeeConfigsApi(); +let storeIds = [null]; // [Number] | +apiInstance.getProcessingFeeConfigsByStoreIds(storeIds, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeIds** | [**[Number]**](Number.md)| | + +### Return type + +[**RestApiArrayResultProcessingFeeConfig**](RestApiArrayResultProcessingFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/Product.md b/docs/Product.md new file mode 100644 index 00000000..675a7aea --- /dev/null +++ b/docs/Product.md @@ -0,0 +1,30 @@ +# Flipdish.Product + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Unique catalog Item id | [optional] +**IsArchived** | **Boolean** | Returns true if the item is archived | [optional] +**Groups** | [**[GroupReference]**](GroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] +**ProductType** | **String** | Type of item (Product, Modifier, etc) | +**Sku** | **String** | Stock Keeping Unit (SKU) | +**Name** | **String** | Product name | +**Description** | **String** | Product description | [optional] +**Price** | **Number** | Product price | +**ImageFileName** | **String** | Image File Name | [optional] +**Alcohol** | **Boolean** | Product contains alcohol | [optional] + + + +## Enum: ProductTypeEnum + + +* `Product` (value: `"Product"`) + +* `Modifier` (value: `"Modifier"`) + + + + diff --git a/docs/ProductReference.md b/docs/ProductReference.md new file mode 100644 index 00000000..917e6a33 --- /dev/null +++ b/docs/ProductReference.md @@ -0,0 +1,24 @@ +# Flipdish.ProductReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Item** | [**Product**](Product.md) | | [optional] +**Product** | [**Product**](Product.md) | | [optional] +**CatalogItemId** | **String** | Identifier of the CatalogItemId to use as SubProduct | +**ProductType** | **String** | Type of the SupProduct | +**PreselectedQuantity** | **Number** | Quantity of the modifier that will be set when the parent product is placed in the basket | [optional] + + + +## Enum: ProductTypeEnum + + +* `Product` (value: `"Product"`) + +* `Modifier` (value: `"Modifier"`) + + + + diff --git a/docs/PromotionAward.md b/docs/PromotionAward.md new file mode 100644 index 00000000..ae968b51 --- /dev/null +++ b/docs/PromotionAward.md @@ -0,0 +1,10 @@ +# Flipdish.PromotionAward + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PromotionAwardId** | **Number** | Promotion Award Id | [optional] +**MenuItemPublicId** | **String** | The public id of the menu item that will be awarded | [optional] + + diff --git a/docs/PromotionDetails.md b/docs/PromotionDetails.md new file mode 100644 index 00000000..f1c5e4ea --- /dev/null +++ b/docs/PromotionDetails.md @@ -0,0 +1,11 @@ +# Flipdish.PromotionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PromotionId** | **Number** | Promotion Id | [optional] +**Name** | **String** | The name of the promotion | [optional] +**PromotionAwards** | [**[PromotionAward]**](PromotionAward.md) | The items that this promotion will award | [optional] + + diff --git a/docs/PublishMenuChanges.md b/docs/PublishMenuChanges.md new file mode 100644 index 00000000..a89d3b79 --- /dev/null +++ b/docs/PublishMenuChanges.md @@ -0,0 +1,10 @@ +# Flipdish.PublishMenuChanges + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Optional Catalog item id | [optional] +**MenuIds** | **[Number]** | Optional Collection of Menu id | [optional] + + diff --git a/docs/PushNotificationDeletedEvent.md b/docs/PushNotificationDeletedEvent.md new file mode 100644 index 00000000..cf23fdb1 --- /dev/null +++ b/docs/PushNotificationDeletedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.PushNotificationDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | | [optional] +**PushNotification** | [**PushNotificationRequest**](PushNotificationRequest.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PushNotificationRequest.md b/docs/PushNotificationRequest.md new file mode 100644 index 00000000..0f0b5b28 --- /dev/null +++ b/docs/PushNotificationRequest.md @@ -0,0 +1,11 @@ +# Flipdish.PushNotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScheduledTime** | **Date** | UTC Time at which to send the push notification | [optional] +**Title** | **String** | Title of the notification | [optional] +**Message** | **String** | Message of the notification | + + diff --git a/docs/PushNotificationResponse.md b/docs/PushNotificationResponse.md new file mode 100644 index 00000000..89bf01ca --- /dev/null +++ b/docs/PushNotificationResponse.md @@ -0,0 +1,13 @@ +# Flipdish.PushNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sent** | **Boolean** | Sent | [optional] +**ScheduledPushNotificationId** | **Number** | Push notification identifier | [optional] +**ScheduledTime** | **Date** | UTC Time at which to send the push notification | [optional] +**Title** | **String** | Title of the notification | [optional] +**Message** | **String** | Message of the notification | + + diff --git a/docs/PushNotificationScheduledEvent.md b/docs/PushNotificationScheduledEvent.md new file mode 100644 index 00000000..acc972a2 --- /dev/null +++ b/docs/PushNotificationScheduledEvent.md @@ -0,0 +1,18 @@ +# Flipdish.PushNotificationScheduledEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | | [optional] +**PushNotification** | [**PushNotificationRequest**](PushNotificationRequest.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PushNotificationSentEvent.md b/docs/PushNotificationSentEvent.md new file mode 100644 index 00000000..3193ab42 --- /dev/null +++ b/docs/PushNotificationSentEvent.md @@ -0,0 +1,17 @@ +# Flipdish.PushNotificationSentEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**PushNotification** | [**PushNotificationRequest**](PushNotificationRequest.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/PushNotificationsApi.md b/docs/PushNotificationsApi.md new file mode 100644 index 00000000..bbd1fe26 --- /dev/null +++ b/docs/PushNotificationsApi.md @@ -0,0 +1,214 @@ +# Flipdish.PushNotificationsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deletePushNotification**](PushNotificationsApi.md#deletePushNotification) | **DELETE** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | +[**getPushNotifications**](PushNotificationsApi.md#getPushNotifications) | **GET** /api/v1.0/{appId}/pushnotifications | +[**schedulePushNotification**](PushNotificationsApi.md#schedulePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications | +[**updatePushNotification**](PushNotificationsApi.md#updatePushNotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | + + + +## deletePushNotification + +> deletePushNotification(appId, scheduledPushNotificationId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PushNotificationsApi(); +let appId = "appId_example"; // String | +let scheduledPushNotificationId = 56; // Number | +apiInstance.deletePushNotification(appId, scheduledPushNotificationId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **scheduledPushNotificationId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getPushNotifications + +> RestApiPaginationResultPushNotificationResponse getPushNotifications(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PushNotificationsApi(); +let appId = "appId_example"; // String | +let opts = { + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getPushNotifications(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultPushNotificationResponse**](RestApiPaginationResultPushNotificationResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## schedulePushNotification + +> RestApiResultPushNotificationResponse schedulePushNotification(appId, notification) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PushNotificationsApi(); +let appId = "appId_example"; // String | +let notification = new Flipdish.PushNotificationRequest(); // PushNotificationRequest | +apiInstance.schedulePushNotification(appId, notification, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| | + +### Return type + +[**RestApiResultPushNotificationResponse**](RestApiResultPushNotificationResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updatePushNotification + +> RestApiResultPushNotificationResponse updatePushNotification(appId, scheduledPushNotificationId, notification) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.PushNotificationsApi(); +let appId = "appId_example"; // String | +let scheduledPushNotificationId = 56; // Number | +let notification = new Flipdish.PushNotificationRequest(); // PushNotificationRequest | +apiInstance.updatePushNotification(appId, scheduledPushNotificationId, notification, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **scheduledPushNotificationId** | **Number**| | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| | + +### Return type + +[**RestApiResultPushNotificationResponse**](RestApiResultPushNotificationResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/Range.md b/docs/Range.md new file mode 100644 index 00000000..7bccdf4d --- /dev/null +++ b/docs/Range.md @@ -0,0 +1,32 @@ +# Flipdish.Range + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartTime** | **String** | Start time | [optional] +**Period** | **String** | Period | [optional] +**DayOfWeek** | **String** | Day of week | [optional] + + + +## Enum: DayOfWeekEnum + + +* `Sunday` (value: `"Sunday"`) + +* `Monday` (value: `"Monday"`) + +* `Tuesday` (value: `"Tuesday"`) + +* `Wednesday` (value: `"Wednesday"`) + +* `Thursday` (value: `"Thursday"`) + +* `Friday` (value: `"Friday"`) + +* `Saturday` (value: `"Saturday"`) + + + + diff --git a/docs/ReaderActionStateInfo.md b/docs/ReaderActionStateInfo.md new file mode 100644 index 00000000..dbb46bff --- /dev/null +++ b/docs/ReaderActionStateInfo.md @@ -0,0 +1,12 @@ +# Flipdish.ReaderActionStateInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActionState** | **String** | Action state | [optional] +**FailureCode** | **String** | Failure code | [optional] +**FailureMessage** | **String** | Failure Message | [optional] +**Type** | **String** | Type | [optional] + + diff --git a/docs/ReceiptsApi.md b/docs/ReceiptsApi.md new file mode 100644 index 00000000..9fc52e9a --- /dev/null +++ b/docs/ReceiptsApi.md @@ -0,0 +1,56 @@ +# Flipdish.ReceiptsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getReceipt**](ReceiptsApi.md#getReceipt) | **GET** /api/v1.0/receipts/{orderId} | + + + +## getReceipt + +> GetReceiptByOrderIdQueryResponse getReceipt(orderId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.ReceiptsApi(); +let orderId = 56; // Number | +apiInstance.getReceipt(orderId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderId** | **Number**| | + +### Return type + +[**GetReceiptByOrderIdQueryResponse**](GetReceiptByOrderIdQueryResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/RedeemInvitationResult.md b/docs/RedeemInvitationResult.md new file mode 100644 index 00000000..c0661816 --- /dev/null +++ b/docs/RedeemInvitationResult.md @@ -0,0 +1,23 @@ +# Flipdish.RedeemInvitationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | **String** | Access level is for this App | [optional] +**InvitationStatus** | **String** | Invitation status | [optional] + + + +## Enum: InvitationStatusEnum + + +* `Pending` (value: `"Pending"`) + +* `Accepted` (value: `"Accepted"`) + +* `Expired` (value: `"Expired"`) + + + + diff --git a/docs/Refund.md b/docs/Refund.md new file mode 100644 index 00000000..528fc33a --- /dev/null +++ b/docs/Refund.md @@ -0,0 +1,11 @@ +# Flipdish.Refund + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefundReason** | **String** | Refund reason | [optional] +**RefundAmount** | **Number** | Refund amount | +**NotifyCustomer** | **Boolean** | If true, the system sends notification to the customer about the refund | + + diff --git a/docs/Reject.md b/docs/Reject.md new file mode 100644 index 00000000..1ee1f043 --- /dev/null +++ b/docs/Reject.md @@ -0,0 +1,35 @@ +# Flipdish.Reject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RejectReason** | **String** | Reject reason. | +**DoNotNotifyCustomer** | **Boolean** | Notify customer. The server will not send and SMS to the customer if the value is true. | [optional] + + + +## Enum: RejectReasonEnum + + +* `TooBusy` (value: `"TooBusy"`) + +* `FoodUnavailable` (value: `"FoodUnavailable"`) + +* `UnableToDeliver` (value: `"UnableToDeliver"`) + +* `UnknownAddress` (value: `"UnknownAddress"`) + +* `UnknownReason` (value: `"UnknownReason"`) + +* `TooSoon` (value: `"TooSoon"`) + +* `TimeUnavailable` (value: `"TimeUnavailable"`) + +* `DontDeliverToArea` (value: `"DontDeliverToArea"`) + +* `StoreUncontactable` (value: `"StoreUncontactable"`) + + + + diff --git a/docs/RequestLoginPinModel.md b/docs/RequestLoginPinModel.md new file mode 100644 index 00000000..3d046dcb --- /dev/null +++ b/docs/RequestLoginPinModel.md @@ -0,0 +1,9 @@ +# Flipdish.RequestLoginPinModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | + + diff --git a/docs/RequestLoginPinResponse.md b/docs/RequestLoginPinResponse.md new file mode 100644 index 00000000..2eb32722 --- /dev/null +++ b/docs/RequestLoginPinResponse.md @@ -0,0 +1,10 @@ +# Flipdish.RequestLoginPinResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LoginPinSentViaEmail** | **Boolean** | Login PIN sent via email to user | [optional] +**ForceOktaLogin** | **Boolean** | All flipdishers must login via Okta | [optional] + + diff --git a/docs/RequestPasswordResetModel.md b/docs/RequestPasswordResetModel.md new file mode 100644 index 00000000..84a2c6c6 --- /dev/null +++ b/docs/RequestPasswordResetModel.md @@ -0,0 +1,10 @@ +# Flipdish.RequestPasswordResetModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **String** | Email address | [optional] +**RecaptchaToken** | **String** | Google Recaptcha Token | [optional] + + diff --git a/docs/RequestPasswordResetPinResponse.md b/docs/RequestPasswordResetPinResponse.md new file mode 100644 index 00000000..086b9047 --- /dev/null +++ b/docs/RequestPasswordResetPinResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RequestPasswordResetPinResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PasswordResetPinSentViaEmail** | **Boolean** | Password Reset PIN sent via email to user | [optional] + + diff --git a/docs/Response.md b/docs/Response.md new file mode 100644 index 00000000..53d85d04 --- /dev/null +++ b/docs/Response.md @@ -0,0 +1,9 @@ +# Flipdish.Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stores** | [**[StoreItemHeader]**](StoreItemHeader.md) | | [optional] + + diff --git a/docs/RestApiArrayResultAllMetadataResult.md b/docs/RestApiArrayResultAllMetadataResult.md new file mode 100644 index 00000000..e2154b10 --- /dev/null +++ b/docs/RestApiArrayResultAllMetadataResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultAllMetadataResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[AllMetadataResult]**](AllMetadataResult.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultAllergen.md b/docs/RestApiArrayResultAllergen.md new file mode 100644 index 00000000..3e56eae0 --- /dev/null +++ b/docs/RestApiArrayResultAllergen.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultAllergen + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[Allergen]**](Allergen.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultApmCurrencyDataPoint.md b/docs/RestApiArrayResultApmCurrencyDataPoint.md new file mode 100644 index 00000000..a289eb1b --- /dev/null +++ b/docs/RestApiArrayResultApmCurrencyDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultApmCurrencyDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[ApmCurrencyDataPoint]**](ApmCurrencyDataPoint.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultApmDataPoint.md b/docs/RestApiArrayResultApmDataPoint.md new file mode 100644 index 00000000..01fbd610 --- /dev/null +++ b/docs/RestApiArrayResultApmDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultApmDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[ApmDataPoint]**](ApmDataPoint.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultApmHourlyDataPoint.md b/docs/RestApiArrayResultApmHourlyDataPoint.md new file mode 100644 index 00000000..5ff94dd6 --- /dev/null +++ b/docs/RestApiArrayResultApmHourlyDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultApmHourlyDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[ApmHourlyDataPoint]**](ApmHourlyDataPoint.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultAppStoreAppConfigurationSummary.md b/docs/RestApiArrayResultAppStoreAppConfigurationSummary.md new file mode 100644 index 00000000..756e7651 --- /dev/null +++ b/docs/RestApiArrayResultAppStoreAppConfigurationSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultAppStoreAppConfigurationSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[AppStoreAppConfigurationSummary]**](AppStoreAppConfigurationSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultAppStoreAppSummary.md b/docs/RestApiArrayResultAppStoreAppSummary.md new file mode 100644 index 00000000..21d847e7 --- /dev/null +++ b/docs/RestApiArrayResultAppStoreAppSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultAppStoreAppSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[AppStoreAppSummary]**](AppStoreAppSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultBankAccountSummary.md b/docs/RestApiArrayResultBankAccountSummary.md new file mode 100644 index 00000000..d96ac4f8 --- /dev/null +++ b/docs/RestApiArrayResultBankAccountSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultBankAccountSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[BankAccountSummary]**](BankAccountSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultBusinessHoursPeriod.md b/docs/RestApiArrayResultBusinessHoursPeriod.md new file mode 100644 index 00000000..bc949585 --- /dev/null +++ b/docs/RestApiArrayResultBusinessHoursPeriod.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultBusinessHoursPeriod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultChannel.md b/docs/RestApiArrayResultChannel.md new file mode 100644 index 00000000..b93ddf40 --- /dev/null +++ b/docs/RestApiArrayResultChannel.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[Channel]**](Channel.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultClientDeviceSummary.md b/docs/RestApiArrayResultClientDeviceSummary.md new file mode 100644 index 00000000..b0df61aa --- /dev/null +++ b/docs/RestApiArrayResultClientDeviceSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultClientDeviceSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[ClientDeviceSummary]**](ClientDeviceSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md b/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md new file mode 100644 index 00000000..dd27f65d --- /dev/null +++ b/docs/RestApiArrayResultCountryWithAccountFieldsDefinitions.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[CountryWithAccountFieldsDefinitions]**](CountryWithAccountFieldsDefinitions.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultDeliveryZone.md b/docs/RestApiArrayResultDeliveryZone.md new file mode 100644 index 00000000..38b5fbb5 --- /dev/null +++ b/docs/RestApiArrayResultDeliveryZone.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultDeliveryZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[DeliveryZone]**](DeliveryZone.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultEmvTerminalWithAssignments.md b/docs/RestApiArrayResultEmvTerminalWithAssignments.md new file mode 100644 index 00000000..530cf889 --- /dev/null +++ b/docs/RestApiArrayResultEmvTerminalWithAssignments.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultEmvTerminalWithAssignments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[EmvTerminalWithAssignments]**](EmvTerminalWithAssignments.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md b/docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md new file mode 100644 index 00000000..0598bbd1 --- /dev/null +++ b/docs/RestApiArrayResultFulfillmentStatesConfigurationSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultFulfillmentStatesConfigurationSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[FulfillmentStatesConfigurationSummary]**](FulfillmentStatesConfigurationSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultHomeAction.md b/docs/RestApiArrayResultHomeAction.md new file mode 100644 index 00000000..8c1cef98 --- /dev/null +++ b/docs/RestApiArrayResultHomeAction.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultHomeAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[HomeAction]**](HomeAction.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultKioskCashPaymentSettings.md b/docs/RestApiArrayResultKioskCashPaymentSettings.md new file mode 100644 index 00000000..8e094c6b --- /dev/null +++ b/docs/RestApiArrayResultKioskCashPaymentSettings.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultKioskCashPaymentSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[KioskCashPaymentSettings]**](KioskCashPaymentSettings.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultLocalisedTimeZone.md b/docs/RestApiArrayResultLocalisedTimeZone.md new file mode 100644 index 00000000..57935246 --- /dev/null +++ b/docs/RestApiArrayResultLocalisedTimeZone.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultLocalisedTimeZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[LocalisedTimeZone]**](LocalisedTimeZone.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultLocationAreaLocation.md b/docs/RestApiArrayResultLocationAreaLocation.md new file mode 100644 index 00000000..6bf06f1f --- /dev/null +++ b/docs/RestApiArrayResultLocationAreaLocation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultLocationAreaLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[LocationAreaLocation]**](LocationAreaLocation.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultLocationAreaWithLocations.md b/docs/RestApiArrayResultLocationAreaWithLocations.md new file mode 100644 index 00000000..d970f09f --- /dev/null +++ b/docs/RestApiArrayResultLocationAreaWithLocations.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultLocationAreaWithLocations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[LocationAreaWithLocations]**](LocationAreaWithLocations.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultLoyaltyCampaign.md b/docs/RestApiArrayResultLoyaltyCampaign.md new file mode 100644 index 00000000..673a26ba --- /dev/null +++ b/docs/RestApiArrayResultLoyaltyCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultLoyaltyCampaign + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[LoyaltyCampaign]**](LoyaltyCampaign.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuCheckpoint.md b/docs/RestApiArrayResultMenuCheckpoint.md new file mode 100644 index 00000000..c10c92da --- /dev/null +++ b/docs/RestApiArrayResultMenuCheckpoint.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuCheckpoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuCheckpoint]**](MenuCheckpoint.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuElementEditResponse.md b/docs/RestApiArrayResultMenuElementEditResponse.md new file mode 100644 index 00000000..970fe3cd --- /dev/null +++ b/docs/RestApiArrayResultMenuElementEditResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuElementEditResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuElementEditResponse]**](MenuElementEditResponse.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuElementListResponse.md b/docs/RestApiArrayResultMenuElementListResponse.md new file mode 100644 index 00000000..de7b7a4f --- /dev/null +++ b/docs/RestApiArrayResultMenuElementListResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuElementListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuElementListResponse]**](MenuElementListResponse.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuItemOptionSet.md b/docs/RestApiArrayResultMenuItemOptionSet.md new file mode 100644 index 00000000..dbba5418 --- /dev/null +++ b/docs/RestApiArrayResultMenuItemOptionSet.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuItemOptionSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuItemOptionSet]**](MenuItemOptionSet.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuItemOptionSetItem.md b/docs/RestApiArrayResultMenuItemOptionSetItem.md new file mode 100644 index 00000000..ec2dac08 --- /dev/null +++ b/docs/RestApiArrayResultMenuItemOptionSetItem.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuItemOptionSetItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuItemOptionSetItem]**](MenuItemOptionSetItem.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuSection.md b/docs/RestApiArrayResultMenuSection.md new file mode 100644 index 00000000..2a59c8ae --- /dev/null +++ b/docs/RestApiArrayResultMenuSection.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuSection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuSection]**](MenuSection.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuSectionItem.md b/docs/RestApiArrayResultMenuSectionItem.md new file mode 100644 index 00000000..e40fa6f0 --- /dev/null +++ b/docs/RestApiArrayResultMenuSectionItem.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuSectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuSectionItem]**](MenuSectionItem.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuStoreNames.md b/docs/RestApiArrayResultMenuStoreNames.md new file mode 100644 index 00000000..5e233dc4 --- /dev/null +++ b/docs/RestApiArrayResultMenuStoreNames.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuStoreNames + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuStoreNames]**](MenuStoreNames.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuSummary.md b/docs/RestApiArrayResultMenuSummary.md new file mode 100644 index 00000000..05964b33 --- /dev/null +++ b/docs/RestApiArrayResultMenuSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuSummary]**](MenuSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuTaxDetails.md b/docs/RestApiArrayResultMenuTaxDetails.md new file mode 100644 index 00000000..910e39d3 --- /dev/null +++ b/docs/RestApiArrayResultMenuTaxDetails.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuTaxDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuTaxDetails]**](MenuTaxDetails.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMenuZone.md b/docs/RestApiArrayResultMenuZone.md new file mode 100644 index 00000000..8d247bb7 --- /dev/null +++ b/docs/RestApiArrayResultMenuZone.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMenuZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MenuZone]**](MenuZone.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMetadata.md b/docs/RestApiArrayResultMetadata.md new file mode 100644 index 00000000..5e66d442 --- /dev/null +++ b/docs/RestApiArrayResultMetadata.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[Metadata]**](Metadata.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultMobileAppsStatistics.md b/docs/RestApiArrayResultMobileAppsStatistics.md new file mode 100644 index 00000000..dbb11b07 --- /dev/null +++ b/docs/RestApiArrayResultMobileAppsStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultMobileAppsStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[MobileAppsStatistics]**](MobileAppsStatistics.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultOAuthApp.md b/docs/RestApiArrayResultOAuthApp.md new file mode 100644 index 00000000..f656d511 --- /dev/null +++ b/docs/RestApiArrayResultOAuthApp.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultOAuthApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[OAuthApp]**](OAuthApp.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultOauthClientRedirectUri.md b/docs/RestApiArrayResultOauthClientRedirectUri.md new file mode 100644 index 00000000..340d0398 --- /dev/null +++ b/docs/RestApiArrayResultOauthClientRedirectUri.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultOauthClientRedirectUri + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[OauthClientRedirectUri]**](OauthClientRedirectUri.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultOrderBatch.md b/docs/RestApiArrayResultOrderBatch.md new file mode 100644 index 00000000..bf431d31 --- /dev/null +++ b/docs/RestApiArrayResultOrderBatch.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultOrderBatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[OrderBatch]**](OrderBatch.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultOrderFulfillmentStatus.md b/docs/RestApiArrayResultOrderFulfillmentStatus.md new file mode 100644 index 00000000..df48b332 --- /dev/null +++ b/docs/RestApiArrayResultOrderFulfillmentStatus.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultOrderFulfillmentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[OrderFulfillmentStatus]**](OrderFulfillmentStatus.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultPayoutSummary.md b/docs/RestApiArrayResultPayoutSummary.md new file mode 100644 index 00000000..205248de --- /dev/null +++ b/docs/RestApiArrayResultPayoutSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultPayoutSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[PayoutSummary]**](PayoutSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultPendingInvitation.md b/docs/RestApiArrayResultPendingInvitation.md new file mode 100644 index 00000000..a086d6ea --- /dev/null +++ b/docs/RestApiArrayResultPendingInvitation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultPendingInvitation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[PendingInvitation]**](PendingInvitation.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultPendingMenuChangesSummaries.md b/docs/RestApiArrayResultPendingMenuChangesSummaries.md new file mode 100644 index 00000000..12568703 --- /dev/null +++ b/docs/RestApiArrayResultPendingMenuChangesSummaries.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultPendingMenuChangesSummaries + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[PendingMenuChangesSummaries]**](PendingMenuChangesSummaries.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultPreOrderTime.md b/docs/RestApiArrayResultPreOrderTime.md new file mode 100644 index 00000000..ef1e0c17 --- /dev/null +++ b/docs/RestApiArrayResultPreOrderTime.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultPreOrderTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[PreOrderTime]**](PreOrderTime.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultProcessingFeeConfig.md b/docs/RestApiArrayResultProcessingFeeConfig.md new file mode 100644 index 00000000..42db87bc --- /dev/null +++ b/docs/RestApiArrayResultProcessingFeeConfig.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultProcessingFeeConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[ProcessingFeeConfig]**](ProcessingFeeConfig.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultRedeemInvitationResult.md b/docs/RestApiArrayResultRedeemInvitationResult.md new file mode 100644 index 00000000..969822f8 --- /dev/null +++ b/docs/RestApiArrayResultRedeemInvitationResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultRedeemInvitationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[RedeemInvitationResult]**](RedeemInvitationResult.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultRestApiDefaultResponse.md b/docs/RestApiArrayResultRestApiDefaultResponse.md new file mode 100644 index 00000000..392ffc39 --- /dev/null +++ b/docs/RestApiArrayResultRestApiDefaultResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultRestApiDefaultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[RestApiDefaultResponse]**](RestApiDefaultResponse.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultRestaurantVoucherEligibleStore.md b/docs/RestApiArrayResultRestaurantVoucherEligibleStore.md new file mode 100644 index 00000000..4e1acc57 --- /dev/null +++ b/docs/RestApiArrayResultRestaurantVoucherEligibleStore.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultRestaurantVoucherEligibleStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[RestaurantVoucherEligibleStore]**](RestaurantVoucherEligibleStore.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md new file mode 100644 index 00000000..e9f74b01 --- /dev/null +++ b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[RestaurantVoucherPayGreenConfiguration]**](RestaurantVoucherPayGreenConfiguration.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md new file mode 100644 index 00000000..a884ae51 --- /dev/null +++ b/docs/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[RestaurantVoucherPayGreenConfigurationSummary]**](RestaurantVoucherPayGreenConfigurationSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultRetentionCampaign.md b/docs/RestApiArrayResultRetentionCampaign.md new file mode 100644 index 00000000..6e95abdc --- /dev/null +++ b/docs/RestApiArrayResultRetentionCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultRetentionCampaign + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[RetentionCampaign]**](RetentionCampaign.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultSmsProviderCredential.md b/docs/RestApiArrayResultSmsProviderCredential.md new file mode 100644 index 00000000..8a4ba72c --- /dev/null +++ b/docs/RestApiArrayResultSmsProviderCredential.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultSmsProviderCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[SmsProviderCredential]**](SmsProviderCredential.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultStoreChannelAssignment.md b/docs/RestApiArrayResultStoreChannelAssignment.md new file mode 100644 index 00000000..a50714ae --- /dev/null +++ b/docs/RestApiArrayResultStoreChannelAssignment.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultStoreChannelAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[StoreChannelAssignment]**](StoreChannelAssignment.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md b/docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md new file mode 100644 index 00000000..6a6da259 --- /dev/null +++ b/docs/RestApiArrayResultStoreDeliveryZoneFeeConfig.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultStoreDeliveryZoneFeeConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[StoreDeliveryZoneFeeConfig]**](StoreDeliveryZoneFeeConfig.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultStoreListItem.md b/docs/RestApiArrayResultStoreListItem.md new file mode 100644 index 00000000..e110d0e8 --- /dev/null +++ b/docs/RestApiArrayResultStoreListItem.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultStoreListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[StoreListItem]**](StoreListItem.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultStoreStatistics.md b/docs/RestApiArrayResultStoreStatistics.md new file mode 100644 index 00000000..4bd8a3b9 --- /dev/null +++ b/docs/RestApiArrayResultStoreStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultStoreStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[StoreStatistics]**](StoreStatistics.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultStripeCustomConnectedAccount.md b/docs/RestApiArrayResultStripeCustomConnectedAccount.md new file mode 100644 index 00000000..66b86e95 --- /dev/null +++ b/docs/RestApiArrayResultStripeCustomConnectedAccount.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultStripeCustomConnectedAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[StripeCustomConnectedAccount]**](StripeCustomConnectedAccount.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultSubscriptionSummary.md b/docs/RestApiArrayResultSubscriptionSummary.md new file mode 100644 index 00000000..9e3b642c --- /dev/null +++ b/docs/RestApiArrayResultSubscriptionSummary.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultSubscriptionSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[SubscriptionSummary]**](SubscriptionSummary.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultSupportedCountry.md b/docs/RestApiArrayResultSupportedCountry.md new file mode 100644 index 00000000..c677b16e --- /dev/null +++ b/docs/RestApiArrayResultSupportedCountry.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultSupportedCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[SupportedCountry]**](SupportedCountry.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultTeammate.md b/docs/RestApiArrayResultTeammate.md new file mode 100644 index 00000000..666f4cf8 --- /dev/null +++ b/docs/RestApiArrayResultTeammate.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultTeammate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[Teammate]**](Teammate.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultUserFlipdishAccount.md b/docs/RestApiArrayResultUserFlipdishAccount.md new file mode 100644 index 00000000..02788954 --- /dev/null +++ b/docs/RestApiArrayResultUserFlipdishAccount.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultUserFlipdishAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[UserFlipdishAccount]**](UserFlipdishAccount.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultUserNote.md b/docs/RestApiArrayResultUserNote.md new file mode 100644 index 00000000..db75f4d8 --- /dev/null +++ b/docs/RestApiArrayResultUserNote.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultUserNote + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[UserNote]**](UserNote.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultUserStoreInfo.md b/docs/RestApiArrayResultUserStoreInfo.md new file mode 100644 index 00000000..2c7d3928 --- /dev/null +++ b/docs/RestApiArrayResultUserStoreInfo.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultUserStoreInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[UserStoreInfo]**](UserStoreInfo.md) | Generic data object. | + + diff --git a/docs/RestApiArrayResultVoucherDataPoint.md b/docs/RestApiArrayResultVoucherDataPoint.md new file mode 100644 index 00000000..1ad47344 --- /dev/null +++ b/docs/RestApiArrayResultVoucherDataPoint.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiArrayResultVoucherDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[VoucherDataPoint]**](VoucherDataPoint.md) | Generic data object. | + + diff --git a/docs/RestApiDefaultResponse.md b/docs/RestApiDefaultResponse.md new file mode 100644 index 00000000..f5674e56 --- /dev/null +++ b/docs/RestApiDefaultResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiDefaultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **String** | Data string | [optional] [readonly] + + diff --git a/docs/RestApiErrorResult.md b/docs/RestApiErrorResult.md new file mode 100644 index 00000000..988a4ae2 --- /dev/null +++ b/docs/RestApiErrorResult.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiErrorResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **String** | Error message | +**ErrorCode** | **Number** | Error code | [optional] +**StackTrace** | **String** | Stack trace | [optional] +**Errors** | [**[ValidationErrorResult]**](ValidationErrorResult.md) | List of errors grouped by field name | [optional] + + diff --git a/docs/RestApiEventSearchPaginationResult.md b/docs/RestApiEventSearchPaginationResult.md new file mode 100644 index 00000000..e8b98737 --- /dev/null +++ b/docs/RestApiEventSearchPaginationResult.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiEventSearchPaginationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**EventSearchResult**](EventSearchResult.md) | | +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | + + diff --git a/docs/RestApiFinanceSearchPaginationResultInvoice.md b/docs/RestApiFinanceSearchPaginationResultInvoice.md new file mode 100644 index 00000000..0cadf9f2 --- /dev/null +++ b/docs/RestApiFinanceSearchPaginationResultInvoice.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiFinanceSearchPaginationResultInvoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextPage** | **String** | Next page | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[Invoice]**](Invoice.md) | Generic data object. | + + diff --git a/docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md b/docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md new file mode 100644 index 00000000..197f53ba --- /dev/null +++ b/docs/RestApiFinanceSearchPaginationResultSubscriptionInvoice.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextPage** | **String** | Next page | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[SubscriptionInvoice]**](SubscriptionInvoice.md) | Generic data object. | + + diff --git a/docs/RestApiForbiddenResult.md b/docs/RestApiForbiddenResult.md new file mode 100644 index 00000000..e1423fea --- /dev/null +++ b/docs/RestApiForbiddenResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiForbiddenResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **String** | Message | [readonly] + + diff --git a/docs/RestApiIntegerResult.md b/docs/RestApiIntegerResult.md new file mode 100644 index 00000000..9b40bb5f --- /dev/null +++ b/docs/RestApiIntegerResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiIntegerResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **Number** | Data integer | + + diff --git a/docs/RestApiPaginationResultApp.md b/docs/RestApiPaginationResultApp.md new file mode 100644 index 00000000..3e3a669a --- /dev/null +++ b/docs/RestApiPaginationResultApp.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[App]**](App.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultAppStoreAppSummary.md b/docs/RestApiPaginationResultAppStoreAppSummary.md new file mode 100644 index 00000000..608f45e7 --- /dev/null +++ b/docs/RestApiPaginationResultAppStoreAppSummary.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultAppStoreAppSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[AppStoreAppSummary]**](AppStoreAppSummary.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultBusinessHoursOverride.md b/docs/RestApiPaginationResultBusinessHoursOverride.md new file mode 100644 index 00000000..e675d320 --- /dev/null +++ b/docs/RestApiPaginationResultBusinessHoursOverride.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultBusinessHoursOverride + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[BusinessHoursOverride]**](BusinessHoursOverride.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultCatalogItem.md b/docs/RestApiPaginationResultCatalogItem.md new file mode 100644 index 00000000..f50169a2 --- /dev/null +++ b/docs/RestApiPaginationResultCatalogItem.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultCatalogItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[CatalogItem]**](CatalogItem.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultGroup.md b/docs/RestApiPaginationResultGroup.md new file mode 100644 index 00000000..8fef598b --- /dev/null +++ b/docs/RestApiPaginationResultGroup.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[Group]**](Group.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultHydraDeviceDetails.md b/docs/RestApiPaginationResultHydraDeviceDetails.md new file mode 100644 index 00000000..1564f224 --- /dev/null +++ b/docs/RestApiPaginationResultHydraDeviceDetails.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultHydraDeviceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[HydraDeviceDetails]**](HydraDeviceDetails.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultMetafieldDefinition.md b/docs/RestApiPaginationResultMetafieldDefinition.md new file mode 100644 index 00000000..3878667e --- /dev/null +++ b/docs/RestApiPaginationResultMetafieldDefinition.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultMetafieldDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[MetafieldDefinition]**](MetafieldDefinition.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md b/docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md new file mode 100644 index 00000000..6decb6e7 --- /dev/null +++ b/docs/RestApiPaginationResultMetafieldDefinitionRecommendation.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[MetafieldDefinitionRecommendation]**](MetafieldDefinitionRecommendation.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultOAuthTokenModel.md b/docs/RestApiPaginationResultOAuthTokenModel.md new file mode 100644 index 00000000..5c32533d --- /dev/null +++ b/docs/RestApiPaginationResultOAuthTokenModel.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultOAuthTokenModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[OAuthTokenModel]**](OAuthTokenModel.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultOrder.md b/docs/RestApiPaginationResultOrder.md new file mode 100644 index 00000000..932dafa7 --- /dev/null +++ b/docs/RestApiPaginationResultOrder.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[Order]**](Order.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultOrderSummary.md b/docs/RestApiPaginationResultOrderSummary.md new file mode 100644 index 00000000..2573180a --- /dev/null +++ b/docs/RestApiPaginationResultOrderSummary.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultOrderSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[OrderSummary]**](OrderSummary.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPayout.md b/docs/RestApiPaginationResultPayout.md new file mode 100644 index 00000000..dafee901 --- /dev/null +++ b/docs/RestApiPaginationResultPayout.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPayout + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[Payout]**](Payout.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPayoutChargeback.md b/docs/RestApiPaginationResultPayoutChargeback.md new file mode 100644 index 00000000..075a665d --- /dev/null +++ b/docs/RestApiPaginationResultPayoutChargeback.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPayoutChargeback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PayoutChargeback]**](PayoutChargeback.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPayoutOrder.md b/docs/RestApiPaginationResultPayoutOrder.md new file mode 100644 index 00000000..da83b5e1 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutOrder.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPayoutOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PayoutOrder]**](PayoutOrder.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPayoutOtherCharge.md b/docs/RestApiPaginationResultPayoutOtherCharge.md new file mode 100644 index 00000000..42c4b768 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutOtherCharge.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPayoutOtherCharge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PayoutOtherCharge]**](PayoutOtherCharge.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPayoutRefund.md b/docs/RestApiPaginationResultPayoutRefund.md new file mode 100644 index 00000000..1dbfe496 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutRefund.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPayoutRefund + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PayoutRefund]**](PayoutRefund.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPayoutReport3RefundedOrder.md b/docs/RestApiPaginationResultPayoutReport3RefundedOrder.md new file mode 100644 index 00000000..e2c1b733 --- /dev/null +++ b/docs/RestApiPaginationResultPayoutReport3RefundedOrder.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PayoutReport3RefundedOrder]**](PayoutReport3RefundedOrder.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPendingMenuChanges.md b/docs/RestApiPaginationResultPendingMenuChanges.md new file mode 100644 index 00000000..a92e501d --- /dev/null +++ b/docs/RestApiPaginationResultPendingMenuChanges.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPendingMenuChanges + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PendingMenuChanges]**](PendingMenuChanges.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPhoneCall.md b/docs/RestApiPaginationResultPhoneCall.md new file mode 100644 index 00000000..10439473 --- /dev/null +++ b/docs/RestApiPaginationResultPhoneCall.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPhoneCall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PhoneCall]**](PhoneCall.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultProduct.md b/docs/RestApiPaginationResultProduct.md new file mode 100644 index 00000000..2735fbe1 --- /dev/null +++ b/docs/RestApiPaginationResultProduct.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[Product]**](Product.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultPushNotificationResponse.md b/docs/RestApiPaginationResultPushNotificationResponse.md new file mode 100644 index 00000000..efedb154 --- /dev/null +++ b/docs/RestApiPaginationResultPushNotificationResponse.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultPushNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[PushNotificationResponse]**](PushNotificationResponse.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultRestaurant.md b/docs/RestApiPaginationResultRestaurant.md new file mode 100644 index 00000000..4caaa01f --- /dev/null +++ b/docs/RestApiPaginationResultRestaurant.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultRestaurant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[Restaurant]**](Restaurant.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultStore.md b/docs/RestApiPaginationResultStore.md new file mode 100644 index 00000000..84eb056e --- /dev/null +++ b/docs/RestApiPaginationResultStore.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[Store]**](Store.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultStoreGroup.md b/docs/RestApiPaginationResultStoreGroup.md new file mode 100644 index 00000000..63894cce --- /dev/null +++ b/docs/RestApiPaginationResultStoreGroup.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultStoreGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[StoreGroup]**](StoreGroup.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultStoreGroupExtended.md b/docs/RestApiPaginationResultStoreGroupExtended.md new file mode 100644 index 00000000..b333f837 --- /dev/null +++ b/docs/RestApiPaginationResultStoreGroupExtended.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultStoreGroupExtended + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[StoreGroupExtended]**](StoreGroupExtended.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultStoreHeader.md b/docs/RestApiPaginationResultStoreHeader.md new file mode 100644 index 00000000..16b3f8f0 --- /dev/null +++ b/docs/RestApiPaginationResultStoreHeader.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultStoreHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[StoreHeader]**](StoreHeader.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultStoreValidationConfig.md b/docs/RestApiPaginationResultStoreValidationConfig.md new file mode 100644 index 00000000..eb6b6d1d --- /dev/null +++ b/docs/RestApiPaginationResultStoreValidationConfig.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultStoreValidationConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[StoreValidationConfig]**](StoreValidationConfig.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultUserSearch.md b/docs/RestApiPaginationResultUserSearch.md new file mode 100644 index 00000000..70188d1a --- /dev/null +++ b/docs/RestApiPaginationResultUserSearch.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultUserSearch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[UserSearch]**](UserSearch.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultVoucherSummary.md b/docs/RestApiPaginationResultVoucherSummary.md new file mode 100644 index 00000000..8772b92e --- /dev/null +++ b/docs/RestApiPaginationResultVoucherSummary.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultVoucherSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[VoucherSummary]**](VoucherSummary.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultWebhookLog.md b/docs/RestApiPaginationResultWebhookLog.md new file mode 100644 index 00000000..07497d28 --- /dev/null +++ b/docs/RestApiPaginationResultWebhookLog.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultWebhookLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[WebhookLog]**](WebhookLog.md) | Generic data object. | + + diff --git a/docs/RestApiPaginationResultWebhookSubscription.md b/docs/RestApiPaginationResultWebhookSubscription.md new file mode 100644 index 00000000..52ed7536 --- /dev/null +++ b/docs/RestApiPaginationResultWebhookSubscription.md @@ -0,0 +1,12 @@ +# Flipdish.RestApiPaginationResultWebhookSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **Number** | Current page index | +**Limit** | **Number** | Current page size | +**TotalRecordCount** | **Number** | Total record count | +**Data** | [**[WebhookSubscription]**](WebhookSubscription.md) | Generic data object. | + + diff --git a/docs/RestApiResultAcceptInvitationResult.md b/docs/RestApiResultAcceptInvitationResult.md new file mode 100644 index 00000000..176a0087 --- /dev/null +++ b/docs/RestApiResultAcceptInvitationResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAcceptInvitationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AcceptInvitationResult**](AcceptInvitationResult.md) | | + + diff --git a/docs/RestApiResultAccountDetail.md b/docs/RestApiResultAccountDetail.md new file mode 100644 index 00000000..ada6bc67 --- /dev/null +++ b/docs/RestApiResultAccountDetail.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAccountDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccountDetail**](AccountDetail.md) | | + + diff --git a/docs/RestApiResultAccountFieldsDefinitions.md b/docs/RestApiResultAccountFieldsDefinitions.md new file mode 100644 index 00000000..1f1633ce --- /dev/null +++ b/docs/RestApiResultAccountFieldsDefinitions.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAccountFieldsDefinitions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AccountFieldsDefinitions**](AccountFieldsDefinitions.md) | | + + diff --git a/docs/RestApiResultAddressFormResponse.md b/docs/RestApiResultAddressFormResponse.md new file mode 100644 index 00000000..08ff55a8 --- /dev/null +++ b/docs/RestApiResultAddressFormResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAddressFormResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AddressFormResponse**](AddressFormResponse.md) | | + + diff --git a/docs/RestApiResultApmStatistics.md b/docs/RestApiResultApmStatistics.md new file mode 100644 index 00000000..3d91cd00 --- /dev/null +++ b/docs/RestApiResultApmStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultApmStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ApmStatistics**](ApmStatistics.md) | | + + diff --git a/docs/RestApiResultApmStatus.md b/docs/RestApiResultApmStatus.md new file mode 100644 index 00000000..85b7618d --- /dev/null +++ b/docs/RestApiResultApmStatus.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultApmStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ApmStatus**](ApmStatus.md) | | + + diff --git a/docs/RestApiResultApp.md b/docs/RestApiResultApp.md new file mode 100644 index 00000000..ed935785 --- /dev/null +++ b/docs/RestApiResultApp.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**App**](App.md) | | + + diff --git a/docs/RestApiResultAppChannelAssignment.md b/docs/RestApiResultAppChannelAssignment.md new file mode 100644 index 00000000..7cf59a84 --- /dev/null +++ b/docs/RestApiResultAppChannelAssignment.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAppChannelAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppChannelAssignment**](AppChannelAssignment.md) | | + + diff --git a/docs/RestApiResultAppCompliance.md b/docs/RestApiResultAppCompliance.md new file mode 100644 index 00000000..feaad1fb --- /dev/null +++ b/docs/RestApiResultAppCompliance.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAppCompliance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppCompliance**](AppCompliance.md) | | + + diff --git a/docs/RestApiResultAppConfigSalesChannel.md b/docs/RestApiResultAppConfigSalesChannel.md new file mode 100644 index 00000000..9b69a499 --- /dev/null +++ b/docs/RestApiResultAppConfigSalesChannel.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAppConfigSalesChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppConfigSalesChannel**](AppConfigSalesChannel.md) | | + + diff --git a/docs/RestApiResultAppStoreApp.md b/docs/RestApiResultAppStoreApp.md new file mode 100644 index 00000000..8ab0ff93 --- /dev/null +++ b/docs/RestApiResultAppStoreApp.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAppStoreApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppStoreApp**](AppStoreApp.md) | | + + diff --git a/docs/RestApiResultAppStoreAppConfiguration.md b/docs/RestApiResultAppStoreAppConfiguration.md new file mode 100644 index 00000000..52f53c6d --- /dev/null +++ b/docs/RestApiResultAppStoreAppConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAppStoreAppConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppStoreAppConfiguration**](AppStoreAppConfiguration.md) | | + + diff --git a/docs/RestApiResultAppStoreAppEntitlements.md b/docs/RestApiResultAppStoreAppEntitlements.md new file mode 100644 index 00000000..e5dca166 --- /dev/null +++ b/docs/RestApiResultAppStoreAppEntitlements.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAppStoreAppEntitlements + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AppStoreAppEntitlements**](AppStoreAppEntitlements.md) | | + + diff --git a/docs/RestApiResultAssignedBankAccount.md b/docs/RestApiResultAssignedBankAccount.md new file mode 100644 index 00000000..b9891c4c --- /dev/null +++ b/docs/RestApiResultAssignedBankAccount.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultAssignedBankAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AssignedBankAccount**](AssignedBankAccount.md) | | + + diff --git a/docs/RestApiResultBankAccountDetail.md b/docs/RestApiResultBankAccountDetail.md new file mode 100644 index 00000000..9c935fe4 --- /dev/null +++ b/docs/RestApiResultBankAccountDetail.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultBankAccountDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BankAccountDetail**](BankAccountDetail.md) | | + + diff --git a/docs/RestApiResultBluetoothTerminalStatus.md b/docs/RestApiResultBluetoothTerminalStatus.md new file mode 100644 index 00000000..5b5e311c --- /dev/null +++ b/docs/RestApiResultBluetoothTerminalStatus.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultBluetoothTerminalStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BluetoothTerminalStatus**](BluetoothTerminalStatus.md) | | + + diff --git a/docs/RestApiResultBusinessHoursOverride.md b/docs/RestApiResultBusinessHoursOverride.md new file mode 100644 index 00000000..476531a5 --- /dev/null +++ b/docs/RestApiResultBusinessHoursOverride.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultBusinessHoursOverride + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | | + + diff --git a/docs/RestApiResultBusinessHoursPeriod.md b/docs/RestApiResultBusinessHoursPeriod.md new file mode 100644 index 00000000..c3ea39f7 --- /dev/null +++ b/docs/RestApiResultBusinessHoursPeriod.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultBusinessHoursPeriod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | | + + diff --git a/docs/RestApiResultCardReader.md b/docs/RestApiResultCardReader.md new file mode 100644 index 00000000..cf7f0840 --- /dev/null +++ b/docs/RestApiResultCardReader.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCardReader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CardReader**](CardReader.md) | | + + diff --git a/docs/RestApiResultCatalogItem.md b/docs/RestApiResultCatalogItem.md new file mode 100644 index 00000000..dd22307b --- /dev/null +++ b/docs/RestApiResultCatalogItem.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCatalogItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CatalogItem**](CatalogItem.md) | | + + diff --git a/docs/RestApiResultChannel.md b/docs/RestApiResultChannel.md new file mode 100644 index 00000000..57dace4f --- /dev/null +++ b/docs/RestApiResultChannel.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Channel**](Channel.md) | | + + diff --git a/docs/RestApiResultClientDevice.md b/docs/RestApiResultClientDevice.md new file mode 100644 index 00000000..d99ebc4d --- /dev/null +++ b/docs/RestApiResultClientDevice.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultClientDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ClientDevice**](ClientDevice.md) | | + + diff --git a/docs/RestApiResultClientDeviceEnrollmentResult.md b/docs/RestApiResultClientDeviceEnrollmentResult.md new file mode 100644 index 00000000..5e3e5a3b --- /dev/null +++ b/docs/RestApiResultClientDeviceEnrollmentResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultClientDeviceEnrollmentResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ClientDeviceEnrollmentResult**](ClientDeviceEnrollmentResult.md) | | + + diff --git a/docs/RestApiResultCoordinates.md b/docs/RestApiResultCoordinates.md new file mode 100644 index 00000000..a86d2caf --- /dev/null +++ b/docs/RestApiResultCoordinates.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCoordinates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Coordinates**](Coordinates.md) | | + + diff --git a/docs/RestApiResultCountryFormResponse.md b/docs/RestApiResultCountryFormResponse.md new file mode 100644 index 00000000..71db55fd --- /dev/null +++ b/docs/RestApiResultCountryFormResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCountryFormResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CountryFormResponse**](CountryFormResponse.md) | | + + diff --git a/docs/RestApiResultCreatedMenuSectionItems.md b/docs/RestApiResultCreatedMenuSectionItems.md new file mode 100644 index 00000000..7bd97618 --- /dev/null +++ b/docs/RestApiResultCreatedMenuSectionItems.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCreatedMenuSectionItems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CreatedMenuSectionItems**](CreatedMenuSectionItems.md) | | + + diff --git a/docs/RestApiResultCrossSellMenuItems.md b/docs/RestApiResultCrossSellMenuItems.md new file mode 100644 index 00000000..c25b97fd --- /dev/null +++ b/docs/RestApiResultCrossSellMenuItems.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCrossSellMenuItems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CrossSellMenuItems**](CrossSellMenuItems.md) | | + + diff --git a/docs/RestApiResultCustomer.md b/docs/RestApiResultCustomer.md new file mode 100644 index 00000000..22f55ae8 --- /dev/null +++ b/docs/RestApiResultCustomer.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCustomer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Customer**](Customer.md) | | + + diff --git a/docs/RestApiResultCustomers.md b/docs/RestApiResultCustomers.md new file mode 100644 index 00000000..8700fcf7 --- /dev/null +++ b/docs/RestApiResultCustomers.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultCustomers + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Customers**](Customers.md) | | + + diff --git a/docs/RestApiResultDeliveryZone.md b/docs/RestApiResultDeliveryZone.md new file mode 100644 index 00000000..579dc4c2 --- /dev/null +++ b/docs/RestApiResultDeliveryZone.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultDeliveryZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**DeliveryZone**](DeliveryZone.md) | | + + diff --git a/docs/RestApiResultDnsRecordInformation.md b/docs/RestApiResultDnsRecordInformation.md new file mode 100644 index 00000000..78448256 --- /dev/null +++ b/docs/RestApiResultDnsRecordInformation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultDnsRecordInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**DnsRecordInformation**](DnsRecordInformation.md) | | + + diff --git a/docs/RestApiResultExecuteConfigurationActionResult.md b/docs/RestApiResultExecuteConfigurationActionResult.md new file mode 100644 index 00000000..6095f793 --- /dev/null +++ b/docs/RestApiResultExecuteConfigurationActionResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultExecuteConfigurationActionResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ExecuteConfigurationActionResult**](ExecuteConfigurationActionResult.md) | | + + diff --git a/docs/RestApiResultFileCreationResult.md b/docs/RestApiResultFileCreationResult.md new file mode 100644 index 00000000..270e5645 --- /dev/null +++ b/docs/RestApiResultFileCreationResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultFileCreationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**FileCreationResult**](FileCreationResult.md) | | + + diff --git a/docs/RestApiResultFileDownloadResult.md b/docs/RestApiResultFileDownloadResult.md new file mode 100644 index 00000000..3771d7b4 --- /dev/null +++ b/docs/RestApiResultFileDownloadResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultFileDownloadResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**FileDownloadResult**](FileDownloadResult.md) | | + + diff --git a/docs/RestApiResultFulfillmentStatesConfiguration.md b/docs/RestApiResultFulfillmentStatesConfiguration.md new file mode 100644 index 00000000..2b2e30e0 --- /dev/null +++ b/docs/RestApiResultFulfillmentStatesConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultFulfillmentStatesConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**FulfillmentStatesConfiguration**](FulfillmentStatesConfiguration.md) | | + + diff --git a/docs/RestApiResultGroup.md b/docs/RestApiResultGroup.md new file mode 100644 index 00000000..fbc542d0 --- /dev/null +++ b/docs/RestApiResultGroup.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Group**](Group.md) | | + + diff --git a/docs/RestApiResultHasPaymentMethodResponse.md b/docs/RestApiResultHasPaymentMethodResponse.md new file mode 100644 index 00000000..00d2b685 --- /dev/null +++ b/docs/RestApiResultHasPaymentMethodResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultHasPaymentMethodResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HasPaymentMethodResponse**](HasPaymentMethodResponse.md) | | + + diff --git a/docs/RestApiResultHomeStatistics.md b/docs/RestApiResultHomeStatistics.md new file mode 100644 index 00000000..40802324 --- /dev/null +++ b/docs/RestApiResultHomeStatistics.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultHomeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HomeStatistics**](HomeStatistics.md) | | + + diff --git a/docs/RestApiResultHydraConfig.md b/docs/RestApiResultHydraConfig.md new file mode 100644 index 00000000..37b0ce56 --- /dev/null +++ b/docs/RestApiResultHydraConfig.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultHydraConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraConfig**](HydraConfig.md) | | + + diff --git a/docs/RestApiResultHydraDeviceDetails.md b/docs/RestApiResultHydraDeviceDetails.md new file mode 100644 index 00000000..1aea3267 --- /dev/null +++ b/docs/RestApiResultHydraDeviceDetails.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultHydraDeviceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraDeviceDetails**](HydraDeviceDetails.md) | | + + diff --git a/docs/RestApiResultHydraStatus.md b/docs/RestApiResultHydraStatus.md new file mode 100644 index 00000000..60e02ca8 --- /dev/null +++ b/docs/RestApiResultHydraStatus.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultHydraStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**HydraStatus**](HydraStatus.md) | | + + diff --git a/docs/RestApiResultIndexPage.md b/docs/RestApiResultIndexPage.md new file mode 100644 index 00000000..6b44b31a --- /dev/null +++ b/docs/RestApiResultIndexPage.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultIndexPage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IndexPage**](IndexPage.md) | | + + diff --git a/docs/RestApiResultIndexPageBase.md b/docs/RestApiResultIndexPageBase.md new file mode 100644 index 00000000..81d0e700 --- /dev/null +++ b/docs/RestApiResultIndexPageBase.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultIndexPageBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IndexPageBase**](IndexPageBase.md) | | + + diff --git a/docs/RestApiResultIntercomUserHash.md b/docs/RestApiResultIntercomUserHash.md new file mode 100644 index 00000000..05092851 --- /dev/null +++ b/docs/RestApiResultIntercomUserHash.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultIntercomUserHash + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**IntercomUserHash**](IntercomUserHash.md) | | + + diff --git a/docs/RestApiResultJobResponse.md b/docs/RestApiResultJobResponse.md new file mode 100644 index 00000000..d34bf309 --- /dev/null +++ b/docs/RestApiResultJobResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultJobResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**JobResponse**](JobResponse.md) | | + + diff --git a/docs/RestApiResultKioskEntitlementsResult.md b/docs/RestApiResultKioskEntitlementsResult.md new file mode 100644 index 00000000..b322f430 --- /dev/null +++ b/docs/RestApiResultKioskEntitlementsResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultKioskEntitlementsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**KioskEntitlementsResult**](KioskEntitlementsResult.md) | | + + diff --git a/docs/RestApiResultKioskIotConnectionParameters.md b/docs/RestApiResultKioskIotConnectionParameters.md new file mode 100644 index 00000000..96efaffd --- /dev/null +++ b/docs/RestApiResultKioskIotConnectionParameters.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultKioskIotConnectionParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**KioskIotConnectionParameters**](KioskIotConnectionParameters.md) | | + + diff --git a/docs/RestApiResultKioskSettings.md b/docs/RestApiResultKioskSettings.md new file mode 100644 index 00000000..5b6f431e --- /dev/null +++ b/docs/RestApiResultKioskSettings.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultKioskSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**KioskSettings**](KioskSettings.md) | | + + diff --git a/docs/RestApiResultLightspeedSettings.md b/docs/RestApiResultLightspeedSettings.md new file mode 100644 index 00000000..6293e0e5 --- /dev/null +++ b/docs/RestApiResultLightspeedSettings.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultLightspeedSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LightspeedSettings**](LightspeedSettings.md) | | + + diff --git a/docs/RestApiResultLocationArea.md b/docs/RestApiResultLocationArea.md new file mode 100644 index 00000000..a57d591c --- /dev/null +++ b/docs/RestApiResultLocationArea.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultLocationArea + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LocationArea**](LocationArea.md) | | + + diff --git a/docs/RestApiResultLocationAreaLocation.md b/docs/RestApiResultLocationAreaLocation.md new file mode 100644 index 00000000..e9ece679 --- /dev/null +++ b/docs/RestApiResultLocationAreaLocation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultLocationAreaLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LocationAreaLocation**](LocationAreaLocation.md) | | + + diff --git a/docs/RestApiResultLocationAreaWithLocations.md b/docs/RestApiResultLocationAreaWithLocations.md new file mode 100644 index 00000000..ec830dba --- /dev/null +++ b/docs/RestApiResultLocationAreaWithLocations.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultLocationAreaWithLocations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LocationAreaWithLocations**](LocationAreaWithLocations.md) | | + + diff --git a/docs/RestApiResultLoyaltyCampaign.md b/docs/RestApiResultLoyaltyCampaign.md new file mode 100644 index 00000000..45059703 --- /dev/null +++ b/docs/RestApiResultLoyaltyCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultLoyaltyCampaign + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LoyaltyCampaign**](LoyaltyCampaign.md) | | + + diff --git a/docs/RestApiResultMappedLocation.md b/docs/RestApiResultMappedLocation.md new file mode 100644 index 00000000..00989c85 --- /dev/null +++ b/docs/RestApiResultMappedLocation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMappedLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MappedLocation**](MappedLocation.md) | | + + diff --git a/docs/RestApiResultMenu.md b/docs/RestApiResultMenu.md new file mode 100644 index 00000000..c511c2c1 --- /dev/null +++ b/docs/RestApiResultMenu.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenu + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Menu**](Menu.md) | | + + diff --git a/docs/RestApiResultMenuItemOptionSet.md b/docs/RestApiResultMenuItemOptionSet.md new file mode 100644 index 00000000..31f4054d --- /dev/null +++ b/docs/RestApiResultMenuItemOptionSet.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenuItemOptionSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuItemOptionSet**](MenuItemOptionSet.md) | | + + diff --git a/docs/RestApiResultMenuItemOptionSetItem.md b/docs/RestApiResultMenuItemOptionSetItem.md new file mode 100644 index 00000000..e5be3635 --- /dev/null +++ b/docs/RestApiResultMenuItemOptionSetItem.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenuItemOptionSetItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuItemOptionSetItem**](MenuItemOptionSetItem.md) | | + + diff --git a/docs/RestApiResultMenuNutritionInfoHeader.md b/docs/RestApiResultMenuNutritionInfoHeader.md new file mode 100644 index 00000000..cf53f350 --- /dev/null +++ b/docs/RestApiResultMenuNutritionInfoHeader.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenuNutritionInfoHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuNutritionInfoHeader**](MenuNutritionInfoHeader.md) | | + + diff --git a/docs/RestApiResultMenuSection.md b/docs/RestApiResultMenuSection.md new file mode 100644 index 00000000..9c468372 --- /dev/null +++ b/docs/RestApiResultMenuSection.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenuSection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuSection**](MenuSection.md) | | + + diff --git a/docs/RestApiResultMenuSectionAvailability.md b/docs/RestApiResultMenuSectionAvailability.md new file mode 100644 index 00000000..8c1d2e8d --- /dev/null +++ b/docs/RestApiResultMenuSectionAvailability.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenuSectionAvailability + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuSectionAvailability**](MenuSectionAvailability.md) | | + + diff --git a/docs/RestApiResultMenuSectionItem.md b/docs/RestApiResultMenuSectionItem.md new file mode 100644 index 00000000..d3b5af94 --- /dev/null +++ b/docs/RestApiResultMenuSectionItem.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenuSectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuSectionItem**](MenuSectionItem.md) | | + + diff --git a/docs/RestApiResultMenuZone.md b/docs/RestApiResultMenuZone.md new file mode 100644 index 00000000..8b27a418 --- /dev/null +++ b/docs/RestApiResultMenuZone.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMenuZone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MenuZone**](MenuZone.md) | | + + diff --git a/docs/RestApiResultMetadata.md b/docs/RestApiResultMetadata.md new file mode 100644 index 00000000..15ba5ef3 --- /dev/null +++ b/docs/RestApiResultMetadata.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Metadata**](Metadata.md) | | + + diff --git a/docs/RestApiResultMetafieldDefinition.md b/docs/RestApiResultMetafieldDefinition.md new file mode 100644 index 00000000..709fe35b --- /dev/null +++ b/docs/RestApiResultMetafieldDefinition.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMetafieldDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MetafieldDefinition**](MetafieldDefinition.md) | | + + diff --git a/docs/RestApiResultMobileAppsImage.md b/docs/RestApiResultMobileAppsImage.md new file mode 100644 index 00000000..06d3edfe --- /dev/null +++ b/docs/RestApiResultMobileAppsImage.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMobileAppsImage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsImage**](MobileAppsImage.md) | | + + diff --git a/docs/RestApiResultMobileAppsSubmission.md b/docs/RestApiResultMobileAppsSubmission.md new file mode 100644 index 00000000..c76f42fa --- /dev/null +++ b/docs/RestApiResultMobileAppsSubmission.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMobileAppsSubmission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsSubmission**](MobileAppsSubmission.md) | | + + diff --git a/docs/RestApiResultMobileAppsSubmissionDetails.md b/docs/RestApiResultMobileAppsSubmissionDetails.md new file mode 100644 index 00000000..db436d03 --- /dev/null +++ b/docs/RestApiResultMobileAppsSubmissionDetails.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMobileAppsSubmissionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsSubmissionDetails**](MobileAppsSubmissionDetails.md) | | + + diff --git a/docs/RestApiResultMobileAppsSubmissionStatus.md b/docs/RestApiResultMobileAppsSubmissionStatus.md new file mode 100644 index 00000000..0e87da13 --- /dev/null +++ b/docs/RestApiResultMobileAppsSubmissionStatus.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultMobileAppsSubmissionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MobileAppsSubmissionStatus**](MobileAppsSubmissionStatus.md) | | + + diff --git a/docs/RestApiResultModelBase.md b/docs/RestApiResultModelBase.md new file mode 100644 index 00000000..6123a0ff --- /dev/null +++ b/docs/RestApiResultModelBase.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultModelBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **Object** | Model base | + + diff --git a/docs/RestApiResultNutritionInfo.md b/docs/RestApiResultNutritionInfo.md new file mode 100644 index 00000000..8e3afe77 --- /dev/null +++ b/docs/RestApiResultNutritionInfo.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultNutritionInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**NutritionInfo**](NutritionInfo.md) | | + + diff --git a/docs/RestApiResultNutritionInfoV2.md b/docs/RestApiResultNutritionInfoV2.md new file mode 100644 index 00000000..1d4511b6 --- /dev/null +++ b/docs/RestApiResultNutritionInfoV2.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultNutritionInfoV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**NutritionInfoV2**](NutritionInfoV2.md) | | + + diff --git a/docs/RestApiResultOAuthApp.md b/docs/RestApiResultOAuthApp.md new file mode 100644 index 00000000..e433eaaa --- /dev/null +++ b/docs/RestApiResultOAuthApp.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOAuthApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OAuthApp**](OAuthApp.md) | | + + diff --git a/docs/RestApiResultOauthClientRedirectUri.md b/docs/RestApiResultOauthClientRedirectUri.md new file mode 100644 index 00000000..4da835bc --- /dev/null +++ b/docs/RestApiResultOauthClientRedirectUri.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOauthClientRedirectUri + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OauthClientRedirectUri**](OauthClientRedirectUri.md) | | + + diff --git a/docs/RestApiResultOktaPortalFeatureFlag.md b/docs/RestApiResultOktaPortalFeatureFlag.md new file mode 100644 index 00000000..3fe3af48 --- /dev/null +++ b/docs/RestApiResultOktaPortalFeatureFlag.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOktaPortalFeatureFlag + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OktaPortalFeatureFlag**](OktaPortalFeatureFlag.md) | | + + diff --git a/docs/RestApiResultOrder.md b/docs/RestApiResultOrder.md new file mode 100644 index 00000000..cda561ea --- /dev/null +++ b/docs/RestApiResultOrder.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Order**](Order.md) | | + + diff --git a/docs/RestApiResultOrderBatch.md b/docs/RestApiResultOrderBatch.md new file mode 100644 index 00000000..dcdf41da --- /dev/null +++ b/docs/RestApiResultOrderBatch.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrderBatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderBatch**](OrderBatch.md) | | + + diff --git a/docs/RestApiResultOrderBatchingConfiguration.md b/docs/RestApiResultOrderBatchingConfiguration.md new file mode 100644 index 00000000..acce4d86 --- /dev/null +++ b/docs/RestApiResultOrderBatchingConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrderBatchingConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderBatchingConfiguration**](OrderBatchingConfiguration.md) | | + + diff --git a/docs/RestApiResultOrderDeliveryInformation.md b/docs/RestApiResultOrderDeliveryInformation.md new file mode 100644 index 00000000..270f494d --- /dev/null +++ b/docs/RestApiResultOrderDeliveryInformation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrderDeliveryInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderDeliveryInformation**](OrderDeliveryInformation.md) | | + + diff --git a/docs/RestApiResultOrderFulfillmentStatus.md b/docs/RestApiResultOrderFulfillmentStatus.md new file mode 100644 index 00000000..1748a0aa --- /dev/null +++ b/docs/RestApiResultOrderFulfillmentStatus.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrderFulfillmentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderFulfillmentStatus**](OrderFulfillmentStatus.md) | | + + diff --git a/docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md b/docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md new file mode 100644 index 00000000..d726db8f --- /dev/null +++ b/docs/RestApiResultOrderFulfillmentStatusWithConfigurationActions.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrderFulfillmentStatusWithConfigurationActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderFulfillmentStatusWithConfigurationActions**](OrderFulfillmentStatusWithConfigurationActions.md) | | + + diff --git a/docs/RestApiResultOrderLeadTimes.md b/docs/RestApiResultOrderLeadTimes.md new file mode 100644 index 00000000..8a13538e --- /dev/null +++ b/docs/RestApiResultOrderLeadTimes.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrderLeadTimes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderLeadTimes**](OrderLeadTimes.md) | | + + diff --git a/docs/RestApiResultOrderPaymentInformation.md b/docs/RestApiResultOrderPaymentInformation.md new file mode 100644 index 00000000..1fd80fac --- /dev/null +++ b/docs/RestApiResultOrderPaymentInformation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultOrderPaymentInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**OrderPaymentInformation**](OrderPaymentInformation.md) | | + + diff --git a/docs/RestApiResultPaymentIntent.md b/docs/RestApiResultPaymentIntent.md new file mode 100644 index 00000000..3cfe9931 --- /dev/null +++ b/docs/RestApiResultPaymentIntent.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultPaymentIntent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentIntent**](PaymentIntent.md) | | + + diff --git a/docs/RestApiResultPaymentTerminalDetails.md b/docs/RestApiResultPaymentTerminalDetails.md new file mode 100644 index 00000000..8da4cbfd --- /dev/null +++ b/docs/RestApiResultPaymentTerminalDetails.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultPaymentTerminalDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentTerminalDetails**](PaymentTerminalDetails.md) | | + + diff --git a/docs/RestApiResultPaymentTerminalTransactionDetails.md b/docs/RestApiResultPaymentTerminalTransactionDetails.md new file mode 100644 index 00000000..df6cceb0 --- /dev/null +++ b/docs/RestApiResultPaymentTerminalTransactionDetails.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultPaymentTerminalTransactionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentTerminalTransactionDetails**](PaymentTerminalTransactionDetails.md) | | + + diff --git a/docs/RestApiResultPayoutReport3Details.md b/docs/RestApiResultPayoutReport3Details.md new file mode 100644 index 00000000..4a7ccba0 --- /dev/null +++ b/docs/RestApiResultPayoutReport3Details.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultPayoutReport3Details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PayoutReport3Details**](PayoutReport3Details.md) | | + + diff --git a/docs/RestApiResultPayoutReport3Overview.md b/docs/RestApiResultPayoutReport3Overview.md new file mode 100644 index 00000000..9b7c036c --- /dev/null +++ b/docs/RestApiResultPayoutReport3Overview.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultPayoutReport3Overview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PayoutReport3Overview**](PayoutReport3Overview.md) | | + + diff --git a/docs/RestApiResultPreOrderConfig.md b/docs/RestApiResultPreOrderConfig.md new file mode 100644 index 00000000..581369de --- /dev/null +++ b/docs/RestApiResultPreOrderConfig.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultPreOrderConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PreOrderConfig**](PreOrderConfig.md) | | + + diff --git a/docs/RestApiResultProcessingFeeConfig.md b/docs/RestApiResultProcessingFeeConfig.md new file mode 100644 index 00000000..859b1eb7 --- /dev/null +++ b/docs/RestApiResultProcessingFeeConfig.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultProcessingFeeConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ProcessingFeeConfig**](ProcessingFeeConfig.md) | | + + diff --git a/docs/RestApiResultProduct.md b/docs/RestApiResultProduct.md new file mode 100644 index 00000000..612a4253 --- /dev/null +++ b/docs/RestApiResultProduct.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Product**](Product.md) | | + + diff --git a/docs/RestApiResultPushNotificationResponse.md b/docs/RestApiResultPushNotificationResponse.md new file mode 100644 index 00000000..751c1e47 --- /dev/null +++ b/docs/RestApiResultPushNotificationResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultPushNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PushNotificationResponse**](PushNotificationResponse.md) | | + + diff --git a/docs/RestApiResultRedeemInvitationResult.md b/docs/RestApiResultRedeemInvitationResult.md new file mode 100644 index 00000000..5051f06b --- /dev/null +++ b/docs/RestApiResultRedeemInvitationResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultRedeemInvitationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RedeemInvitationResult**](RedeemInvitationResult.md) | | + + diff --git a/docs/RestApiResultRestApiDefaultResponse.md b/docs/RestApiResultRestApiDefaultResponse.md new file mode 100644 index 00000000..c6457f7f --- /dev/null +++ b/docs/RestApiResultRestApiDefaultResponse.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultRestApiDefaultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestApiDefaultResponse**](RestApiDefaultResponse.md) | | + + diff --git a/docs/RestApiResultRestApiIntegerResult.md b/docs/RestApiResultRestApiIntegerResult.md new file mode 100644 index 00000000..876502de --- /dev/null +++ b/docs/RestApiResultRestApiIntegerResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultRestApiIntegerResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestApiIntegerResult**](RestApiIntegerResult.md) | | + + diff --git a/docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md b/docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md new file mode 100644 index 00000000..fc071a7c --- /dev/null +++ b/docs/RestApiResultRestaurantVoucherPayGreenConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultRestaurantVoucherPayGreenConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestaurantVoucherPayGreenConfiguration**](RestaurantVoucherPayGreenConfiguration.md) | | + + diff --git a/docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md b/docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md new file mode 100644 index 00000000..07e957db --- /dev/null +++ b/docs/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultRestaurantVoucherPayGreenStoreConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RestaurantVoucherPayGreenStoreConfiguration**](RestaurantVoucherPayGreenStoreConfiguration.md) | | + + diff --git a/docs/RestApiResultRetentionCampaign.md b/docs/RestApiResultRetentionCampaign.md new file mode 100644 index 00000000..9087a021 --- /dev/null +++ b/docs/RestApiResultRetentionCampaign.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultRetentionCampaign + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RetentionCampaign**](RetentionCampaign.md) | | + + diff --git a/docs/RestApiResultServiceCharge.md b/docs/RestApiResultServiceCharge.md new file mode 100644 index 00000000..2f79e204 --- /dev/null +++ b/docs/RestApiResultServiceCharge.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultServiceCharge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ServiceCharge**](ServiceCharge.md) | | + + diff --git a/docs/RestApiResultSmsProviderCredential.md b/docs/RestApiResultSmsProviderCredential.md new file mode 100644 index 00000000..b7f66b8a --- /dev/null +++ b/docs/RestApiResultSmsProviderCredential.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultSmsProviderCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**SmsProviderCredential**](SmsProviderCredential.md) | | + + diff --git a/docs/RestApiResultStore.md b/docs/RestApiResultStore.md new file mode 100644 index 00000000..57970f90 --- /dev/null +++ b/docs/RestApiResultStore.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Store**](Store.md) | | + + diff --git a/docs/RestApiResultStoreAddress.md b/docs/RestApiResultStoreAddress.md new file mode 100644 index 00000000..0939164d --- /dev/null +++ b/docs/RestApiResultStoreAddress.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStoreAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreAddress**](StoreAddress.md) | | + + diff --git a/docs/RestApiResultStoreChannelAssignment.md b/docs/RestApiResultStoreChannelAssignment.md new file mode 100644 index 00000000..3ee035b8 --- /dev/null +++ b/docs/RestApiResultStoreChannelAssignment.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStoreChannelAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreChannelAssignment**](StoreChannelAssignment.md) | | + + diff --git a/docs/RestApiResultStoreEndOfDayReport.md b/docs/RestApiResultStoreEndOfDayReport.md new file mode 100644 index 00000000..a1260d26 --- /dev/null +++ b/docs/RestApiResultStoreEndOfDayReport.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStoreEndOfDayReport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreEndOfDayReport**](StoreEndOfDayReport.md) | | + + diff --git a/docs/RestApiResultStoreGroup.md b/docs/RestApiResultStoreGroup.md new file mode 100644 index 00000000..ae816daa --- /dev/null +++ b/docs/RestApiResultStoreGroup.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStoreGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreGroup**](StoreGroup.md) | | + + diff --git a/docs/RestApiResultStoreGroupBase.md b/docs/RestApiResultStoreGroupBase.md new file mode 100644 index 00000000..f9fad085 --- /dev/null +++ b/docs/RestApiResultStoreGroupBase.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStoreGroupBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreGroupBase**](StoreGroupBase.md) | | + + diff --git a/docs/RestApiResultStoreOrderCapacityConfig.md b/docs/RestApiResultStoreOrderCapacityConfig.md new file mode 100644 index 00000000..67fba6a6 --- /dev/null +++ b/docs/RestApiResultStoreOrderCapacityConfig.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStoreOrderCapacityConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StoreOrderCapacityConfig**](StoreOrderCapacityConfig.md) | | + + diff --git a/docs/RestApiResultStripeConnectedAccount.md b/docs/RestApiResultStripeConnectedAccount.md new file mode 100644 index 00000000..a332abb8 --- /dev/null +++ b/docs/RestApiResultStripeConnectedAccount.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStripeConnectedAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeConnectedAccount**](StripeConnectedAccount.md) | | + + diff --git a/docs/RestApiResultStripeTerminalConnectionToken.md b/docs/RestApiResultStripeTerminalConnectionToken.md new file mode 100644 index 00000000..a14ff98f --- /dev/null +++ b/docs/RestApiResultStripeTerminalConnectionToken.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStripeTerminalConnectionToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeTerminalConnectionToken**](StripeTerminalConnectionToken.md) | | + + diff --git a/docs/RestApiResultStripeTerminalLocation.md b/docs/RestApiResultStripeTerminalLocation.md new file mode 100644 index 00000000..14367353 --- /dev/null +++ b/docs/RestApiResultStripeTerminalLocation.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStripeTerminalLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StripeTerminalLocation**](StripeTerminalLocation.md) | | + + diff --git a/docs/RestApiResultStuartSettings.md b/docs/RestApiResultStuartSettings.md new file mode 100644 index 00000000..04fb17f2 --- /dev/null +++ b/docs/RestApiResultStuartSettings.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultStuartSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StuartSettings**](StuartSettings.md) | | + + diff --git a/docs/RestApiResultSubscription.md b/docs/RestApiResultSubscription.md new file mode 100644 index 00000000..0f68933c --- /dev/null +++ b/docs/RestApiResultSubscription.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Subscription**](Subscription.md) | | + + diff --git a/docs/RestApiResultTeammate.md b/docs/RestApiResultTeammate.md new file mode 100644 index 00000000..1584ea88 --- /dev/null +++ b/docs/RestApiResultTeammate.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultTeammate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Teammate**](Teammate.md) | | + + diff --git a/docs/RestApiResultTelemetrySeriesResult.md b/docs/RestApiResultTelemetrySeriesResult.md new file mode 100644 index 00000000..4a9656ac --- /dev/null +++ b/docs/RestApiResultTelemetrySeriesResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultTelemetrySeriesResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TelemetrySeriesResult**](TelemetrySeriesResult.md) | | + + diff --git a/docs/RestApiResultTipConfiguration.md b/docs/RestApiResultTipConfiguration.md new file mode 100644 index 00000000..3e3d1ef7 --- /dev/null +++ b/docs/RestApiResultTipConfiguration.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultTipConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TipConfiguration**](TipConfiguration.md) | | + + diff --git a/docs/RestApiResultUpdateMobileAppsSubmissionStatus.md b/docs/RestApiResultUpdateMobileAppsSubmissionStatus.md new file mode 100644 index 00000000..1e49f771 --- /dev/null +++ b/docs/RestApiResultUpdateMobileAppsSubmissionStatus.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultUpdateMobileAppsSubmissionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UpdateMobileAppsSubmissionStatus**](UpdateMobileAppsSubmissionStatus.md) | | + + diff --git a/docs/RestApiResultUserInfo.md b/docs/RestApiResultUserInfo.md new file mode 100644 index 00000000..66d5c199 --- /dev/null +++ b/docs/RestApiResultUserInfo.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultUserInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UserInfo**](UserInfo.md) | | + + diff --git a/docs/RestApiResultUserRole.md b/docs/RestApiResultUserRole.md new file mode 100644 index 00000000..6d40b6ad --- /dev/null +++ b/docs/RestApiResultUserRole.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultUserRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UserRole**](UserRole.md) | | + + diff --git a/docs/RestApiResultVoucher.md b/docs/RestApiResultVoucher.md new file mode 100644 index 00000000..55dd6422 --- /dev/null +++ b/docs/RestApiResultVoucher.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultVoucher + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Voucher**](Voucher.md) | | + + diff --git a/docs/RestApiResultVoucherWithStats.md b/docs/RestApiResultVoucherWithStats.md new file mode 100644 index 00000000..880ae24f --- /dev/null +++ b/docs/RestApiResultVoucherWithStats.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultVoucherWithStats + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**VoucherWithStats**](VoucherWithStats.md) | | + + diff --git a/docs/RestApiResultWebsiteImage.md b/docs/RestApiResultWebsiteImage.md new file mode 100644 index 00000000..7043ecf5 --- /dev/null +++ b/docs/RestApiResultWebsiteImage.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultWebsiteImage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**WebsiteImage**](WebsiteImage.md) | | + + diff --git a/docs/RestApiResultWebsiteTestimonial.md b/docs/RestApiResultWebsiteTestimonial.md new file mode 100644 index 00000000..03122378 --- /dev/null +++ b/docs/RestApiResultWebsiteTestimonial.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiResultWebsiteTestimonial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**WebsiteTestimonial**](WebsiteTestimonial.md) | | + + diff --git a/docs/RestApiStringArrayResult.md b/docs/RestApiStringArrayResult.md new file mode 100644 index 00000000..5e05c6eb --- /dev/null +++ b/docs/RestApiStringArrayResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiStringArrayResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **[String]** | Data string array | + + diff --git a/docs/RestApiStringResult.md b/docs/RestApiStringResult.md new file mode 100644 index 00000000..2f9ccfb6 --- /dev/null +++ b/docs/RestApiStringResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiStringResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **String** | Data string | + + diff --git a/docs/RestApiUnauthorizedResult.md b/docs/RestApiUnauthorizedResult.md new file mode 100644 index 00000000..e8540adf --- /dev/null +++ b/docs/RestApiUnauthorizedResult.md @@ -0,0 +1,9 @@ +# Flipdish.RestApiUnauthorizedResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **String** | Message | [readonly] + + diff --git a/docs/Restaurant.md b/docs/Restaurant.md new file mode 100644 index 00000000..0a1f8021 --- /dev/null +++ b/docs/Restaurant.md @@ -0,0 +1,19 @@ +# Flipdish.Restaurant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelConfigs** | [**[WhiteLabelConfig]**](WhiteLabelConfig.md) | Collection of white label configurations | [optional] +**VirtualRestaurantId** | **Number** | Virtual restaurant identifier | [optional] +**VirtualRestaurantName** | **String** | Virtual restaurant name | [optional] +**VirtualRestaurantUrl** | **String** | Virtual restaurant URL | [optional] +**PhysicalRestaurantId** | **Number** | Physical restaurant identifier | [optional] +**PhysicalRestaurantName** | **String** | Physical restaurant name | [optional] +**PhysicalRestaurantAddress** | **String** | Physical restaurant address | [optional] +**MenuId** | **Number** | Menu identifier | [optional] +**IsArchived** | **Boolean** | Indicates if the restaurant is archived | [optional] +**IsPublished** | **Boolean** | Indicates if the restaurant is published | [optional] +**FlipdishStripeCustomConnectedAccounts** | **[Number]** | List of Flipdish Stripe custom connected account identifiers | [optional] + + diff --git a/docs/RestaurantVoucherAssignedStore.md b/docs/RestaurantVoucherAssignedStore.md new file mode 100644 index 00000000..09528432 --- /dev/null +++ b/docs/RestaurantVoucherAssignedStore.md @@ -0,0 +1,11 @@ +# Flipdish.RestaurantVoucherAssignedStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | | [optional] +**Name** | **String** | | [optional] +**Active** | **Boolean** | | [optional] + + diff --git a/docs/RestaurantVoucherEligibleStore.md b/docs/RestaurantVoucherEligibleStore.md new file mode 100644 index 00000000..83eb0e8e --- /dev/null +++ b/docs/RestaurantVoucherEligibleStore.md @@ -0,0 +1,10 @@ +# Flipdish.RestaurantVoucherEligibleStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | | [optional] +**Name** | **String** | | [optional] + + diff --git a/docs/RestaurantVoucherPayGreenConfiguration.md b/docs/RestaurantVoucherPayGreenConfiguration.md new file mode 100644 index 00000000..1e251d7c --- /dev/null +++ b/docs/RestaurantVoucherPayGreenConfiguration.md @@ -0,0 +1,12 @@ +# Flipdish.RestaurantVoucherPayGreenConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**PayGreenId** | **String** | | [optional] +**PayGreenConfigurationId** | **Number** | | [optional] +**AssignedStores** | [**[RestaurantVoucherAssignedStore]**](RestaurantVoucherAssignedStore.md) | | [optional] + + diff --git a/docs/RestaurantVoucherPayGreenConfigurationSummary.md b/docs/RestaurantVoucherPayGreenConfigurationSummary.md new file mode 100644 index 00000000..e5c41657 --- /dev/null +++ b/docs/RestaurantVoucherPayGreenConfigurationSummary.md @@ -0,0 +1,10 @@ +# Flipdish.RestaurantVoucherPayGreenConfigurationSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**PayGreenConfigurationId** | **Number** | | [optional] + + diff --git a/docs/RestaurantVoucherPayGreenStoreConfiguration.md b/docs/RestaurantVoucherPayGreenStoreConfiguration.md new file mode 100644 index 00000000..c8ed57a6 --- /dev/null +++ b/docs/RestaurantVoucherPayGreenStoreConfiguration.md @@ -0,0 +1,12 @@ +# Flipdish.RestaurantVoucherPayGreenStoreConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**Active** | **Boolean** | | [optional] +**PayGreenId** | **String** | | [optional] +**PayGreenConfigurationId** | **Number** | | [optional] + + diff --git a/docs/RestaurantVouchersPayGreenApi.md b/docs/RestaurantVouchersPayGreenApi.md new file mode 100644 index 00000000..d035a872 --- /dev/null +++ b/docs/RestaurantVouchersPayGreenApi.md @@ -0,0 +1,458 @@ +# Flipdish.RestaurantVouchersPayGreenApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createPayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#createPayGreenConfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen | +[**deletePayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#deletePayGreenConfiguration) | **DELETE** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +[**getElegibleStores**](RestaurantVouchersPayGreenApi.md#getElegibleStores) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores | +[**getPayGreenConfigurations**](RestaurantVouchersPayGreenApi.md#getPayGreenConfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen | +[**getStoreAvailablePayGreenConfigurations**](RestaurantVouchersPayGreenApi.md#getStoreAvailablePayGreenConfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}/available-configurations | +[**getStorePayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#getStorePayGreenConfiguration) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId} | +[**listPayGreenConfigurations**](RestaurantVouchersPayGreenApi.md#listPayGreenConfigurations) | **GET** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +[**updatePayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#updatePayGreenConfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId} | +[**updateStorePayGreenConfiguration**](RestaurantVouchersPayGreenApi.md#updateStorePayGreenConfiguration) | **POST** /api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId} | + + + +## createPayGreenConfiguration + +> RestApiResultRestaurantVoucherPayGreenConfiguration createPayGreenConfiguration(appId, request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +let request = new Flipdish.CreatePayGreenConfigurationRequest(); // CreatePayGreenConfigurationRequest | +apiInstance.createPayGreenConfiguration(appId, request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **request** | [**CreatePayGreenConfigurationRequest**](CreatePayGreenConfigurationRequest.md)| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenConfiguration**](RestApiResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deletePayGreenConfiguration + +> Object deletePayGreenConfiguration(appId, paygreenConfigurationId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +let paygreenConfigurationId = 56; // Number | +apiInstance.deletePayGreenConfiguration(appId, paygreenConfigurationId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **paygreenConfigurationId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getElegibleStores + +> RestApiArrayResultRestaurantVoucherEligibleStore getElegibleStores(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +apiInstance.getElegibleStores(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultRestaurantVoucherEligibleStore**](RestApiArrayResultRestaurantVoucherEligibleStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPayGreenConfigurations + +> RestApiArrayResultRestaurantVoucherPayGreenConfiguration getPayGreenConfigurations(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +apiInstance.getPayGreenConfigurations(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultRestaurantVoucherPayGreenConfiguration**](RestApiArrayResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoreAvailablePayGreenConfigurations + +> RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary getStoreAvailablePayGreenConfigurations(appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.getStoreAvailablePayGreenConfigurations(appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary**](RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStorePayGreenConfiguration + +> RestApiResultRestaurantVoucherPayGreenStoreConfiguration getStorePayGreenConfiguration(appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +apiInstance.getStorePayGreenConfiguration(appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenStoreConfiguration**](RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## listPayGreenConfigurations + +> RestApiResultRestaurantVoucherPayGreenConfiguration listPayGreenConfigurations(appId, paygreenConfigurationId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +let paygreenConfigurationId = 56; // Number | +apiInstance.listPayGreenConfigurations(appId, paygreenConfigurationId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **paygreenConfigurationId** | **Number**| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenConfiguration**](RestApiResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updatePayGreenConfiguration + +> RestApiResultRestaurantVoucherPayGreenConfiguration updatePayGreenConfiguration(appId, paygreenConfigurationId, request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +let paygreenConfigurationId = 56; // Number | +let request = new Flipdish.UpdatePayGreenConfigurationRequest(); // UpdatePayGreenConfigurationRequest | +apiInstance.updatePayGreenConfiguration(appId, paygreenConfigurationId, request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **paygreenConfigurationId** | **Number**| | + **request** | [**UpdatePayGreenConfigurationRequest**](UpdatePayGreenConfigurationRequest.md)| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenConfiguration**](RestApiResultRestaurantVoucherPayGreenConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateStorePayGreenConfiguration + +> RestApiResultRestaurantVoucherPayGreenStoreConfiguration updateStorePayGreenConfiguration(appId, storeId, request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.RestaurantVouchersPayGreenApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let request = new Flipdish.UpdateStorePayGreenConfigurationRequest(); // UpdateStorePayGreenConfigurationRequest | +apiInstance.updateStorePayGreenConfiguration(appId, storeId, request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **request** | [**UpdateStorePayGreenConfigurationRequest**](UpdateStorePayGreenConfigurationRequest.md)| | + +### Return type + +[**RestApiResultRestaurantVoucherPayGreenStoreConfiguration**](RestApiResultRestaurantVoucherPayGreenStoreConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/RetentionCampaign.md b/docs/RetentionCampaign.md new file mode 100644 index 00000000..c804f8fd --- /dev/null +++ b/docs/RetentionCampaign.md @@ -0,0 +1,24 @@ +# Flipdish.RetentionCampaign + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CampaignId** | **Number** | Id of campaign | [optional] +**Statistics** | [**CampaignStatistics**](CampaignStatistics.md) | | [optional] +**Stores** | [**[StoreCampaignStartTime]**](StoreCampaignStartTime.md) | Stores this campaign applies to with campaign start time in Utc | [optional] +**PublicId** | **String** | Permanent reference to the item. | [optional] +**NotifyCustomerAfterMinutes** | **Number** | Time in minutes, after which customer will receive retention voucher if he/she does not order | [optional] +**PercentDiscountAmount** | **Number** | Discount amount in percents | [optional] +**MaxDiscount** | **Number** | Maximum discount for percentage discounts | [optional] +**LumpDiscountAmount** | **Number** | Discount amount in sum of money | [optional] +**VoucherValidPeriodDays** | **Number** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **Boolean** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **Boolean** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **Boolean** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **Boolean** | Is campaign enabled | [optional] +**StoreIds** | **[Number]** | Ids of stores this campaign applies to | [optional] +**AppId** | **String** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **Boolean** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + + diff --git a/docs/RetentionCampaignBase.md b/docs/RetentionCampaignBase.md new file mode 100644 index 00000000..537f59ef --- /dev/null +++ b/docs/RetentionCampaignBase.md @@ -0,0 +1,20 @@ +# Flipdish.RetentionCampaignBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NotifyCustomerAfterMinutes** | **Number** | Time in minutes, after which customer will receive retention voucher if he/she does not order | [optional] +**PercentDiscountAmount** | **Number** | Discount amount in percents | [optional] +**MaxDiscount** | **Number** | Maximum discount for percentage discounts | [optional] +**LumpDiscountAmount** | **Number** | Discount amount in sum of money | [optional] +**VoucherValidPeriodDays** | **Number** | Number of days for which the voucher will be valid. | [optional] +**IncludeDeliveryFee** | **Boolean** | Discount will include delivery fee | [optional] +**AutoApplyResultingVouchers** | **Boolean** | Automatically apply resulting vouchers | [optional] +**IncludeExistingOrders** | **Boolean** | Campaign will apply to existing orders | [optional] +**IsEnabled** | **Boolean** | Is campaign enabled | [optional] +**StoreIds** | **[Number]** | Ids of stores this campaign applies to | [optional] +**AppId** | **String** | The app that this campaign belongs to. | [optional] +**ForceDiscount** | **Boolean** | Controls whether the voucher generated from this campaign will override discount exclusions | [optional] + + diff --git a/docs/RetentionCampaignCreatedEvent.md b/docs/RetentionCampaignCreatedEvent.md new file mode 100644 index 00000000..73ebf422 --- /dev/null +++ b/docs/RetentionCampaignCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.RetentionCampaignCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/RetentionCampaignDeletedEvent.md b/docs/RetentionCampaignDeletedEvent.md new file mode 100644 index 00000000..45c56c89 --- /dev/null +++ b/docs/RetentionCampaignDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.RetentionCampaignDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/RetentionCampaignUpdatedEvent.md b/docs/RetentionCampaignUpdatedEvent.md new file mode 100644 index 00000000..aa7421aa --- /dev/null +++ b/docs/RetentionCampaignUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.RetentionCampaignUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**RetentionCampaign** | [**RetentionCampaign**](RetentionCampaign.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/RevenueAdjustmentsDetails.md b/docs/RevenueAdjustmentsDetails.md new file mode 100644 index 00000000..48d0079b --- /dev/null +++ b/docs/RevenueAdjustmentsDetails.md @@ -0,0 +1,16 @@ +# Flipdish.RevenueAdjustmentsDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesRefundedAmount** | **Number** | Online sales refunds | [optional] +**PosSalesRefundedAmount** | **Number** | POS Online sales refunds | [optional] +**CashSalesRefundedAmount** | **Number** | Cash sales refunds | [optional] +**CustomerCashFees** | **Number** | Customer cash fees | [optional] +**RefundsCount** | **Number** | Number of refunds | [optional] +**PayGreenSalesAmount** | **Number** | PayGreen sales | [optional] +**PayGreenProcessingFees** | **Number** | PayGreen processing fees charged to end-user | [optional] +**TotalOnlineRevenueAdjustments** | **Number** | Total revenue adjustments | [optional] + + diff --git a/docs/RevenueDetail.md b/docs/RevenueDetail.md new file mode 100644 index 00000000..cb3d338a --- /dev/null +++ b/docs/RevenueDetail.md @@ -0,0 +1,21 @@ +# Flipdish.RevenueDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnlineSalesAmount** | **Number** | Online sales amount | [optional] +**OnlineSalesTax** | **Number** | Online sales tax | [optional] +**OnlineSalesIncludingTax** | **Number** | Online sales amount plus online sales tax | [optional] +**OnlineSalesFeesBaseAmount** | **Number** | Online sales base amount to calculate fees | [optional] +**CashSalesAmount** | **Number** | Cash sales amount | [optional] +**CashSalesTax** | **Number** | Cash sales tax | [optional] +**CashSalesIncludingTax** | **Number** | Cash sales amount plus online sales tax | [optional] +**CashSalesFeesBaseAmount** | **Number** | Online sales base amount to calculate fees | [optional] +**TotalSalesIncludingTax** | **Number** | Total Sales (online and cash) including tax | [optional] +**OnlineSalesDeliveryCharges** | **Number** | Delivery charges on online sales | [optional] +**OnlineSalesTips** | **Number** | Tips for online sales | [optional] +**TotalOnlineRevenue** | **Number** | Online sales plus online delivery charges and tips | [optional] +**OnlineSalesServiceCharges** | **Number** | Service charge on online sales | [optional] + + diff --git a/docs/SafeWaitHandle.md b/docs/SafeWaitHandle.md new file mode 100644 index 00000000..22b3cd86 --- /dev/null +++ b/docs/SafeWaitHandle.md @@ -0,0 +1,10 @@ +# Flipdish.SafeWaitHandle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsInvalid** | **Boolean** | | [optional] [readonly] +**IsClosed** | **Boolean** | | [optional] [readonly] + + diff --git a/docs/SearchApi.md b/docs/SearchApi.md new file mode 100644 index 00000000..4143a96b --- /dev/null +++ b/docs/SearchApi.md @@ -0,0 +1,70 @@ +# Flipdish.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(query, countryId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SearchApi(); +let query = "query_example"; // String | +let countryId = "countryId_example"; // String | +let opts = { + 'includeArchivedStores': "includeArchivedStores_example", // String | + 'searchType': "searchType_example", // String | + 'publishedStatus': "publishedStatus_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.searchRestaurants(query, countryId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **countryId** | **String**| | + **includeArchivedStores** | **String**| | [optional] + **searchType** | **String**| | [optional] + **publishedStatus** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [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, Data + diff --git a/docs/SearchCriteria.md b/docs/SearchCriteria.md new file mode 100644 index 00000000..2cd36d83 --- /dev/null +++ b/docs/SearchCriteria.md @@ -0,0 +1,24 @@ +# Flipdish.SearchCriteria + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Limit** | **Number** | The maximum elements to return | [optional] +**Page** | **Number** | The index of the page to return, starting by 1 | [optional] +**Start** | **Date** | Start date | [optional] +**End** | **Date** | End date | [optional] +**OrderId** | **Number** | Events that have Order Id | [optional] +**StoreId** | **Number** | Events that have Store Id | [optional] +**StoreIdList** | **[Number]** | Events that have Store Id List | [optional] +**StoreGroupId** | **Number** | Events that have Store Group Id | [optional] +**UserId** | **Number** | Events that have User Id | [optional] +**MenuId** | **Number** | Events that have Menu Id | [optional] +**CampaignId** | **Number** | Events that have Campaign Id | [optional] +**UserEmail** | **String** | Events that have User Email | [optional] +**UserName** | **String** | Events that have User Name | [optional] +**VoucherCode** | **String** | Events that have voucher code | [optional] +**EventType** | **[String]** | Events that have event type\\s | [optional] +**FlipdishEventId** | **String** | Unique Identifier of Event, if this is specified, all other criteria are ignored. | [optional] + + diff --git a/docs/ServiceCharge.md b/docs/ServiceCharge.md new file mode 100644 index 00000000..1c553201 --- /dev/null +++ b/docs/ServiceCharge.md @@ -0,0 +1,14 @@ +# Flipdish.ServiceCharge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**PercentageValue** | **Number** | The Default Service Charge Value | [optional] +**Enabled** | **Boolean** | Enable Service Charge for store true(on) / false(off) | [optional] +**IsOptional** | **Boolean** | Sets the service charge to be optional | [optional] +**DisplayWithProcessingFee** | **Boolean** | Display service charge together with processing fee | [optional] +**IncludesVouchers** | **Boolean** | If true, will include voucher value in calculation i.e 10E order with 1E service charge and 5E voucher would have service charge at 0.5E | [optional] + + diff --git a/docs/SetOrderBatchingConfiguration.md b/docs/SetOrderBatchingConfiguration.md new file mode 100644 index 00000000..8873bbe5 --- /dev/null +++ b/docs/SetOrderBatchingConfiguration.md @@ -0,0 +1,10 @@ +# Flipdish.SetOrderBatchingConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BatchIntervalInSeconds** | **Number** | Batch sending interval in seconds | [optional] +**Enabled** | **Boolean** | OrderBatching is enabled or not | [optional] + + diff --git a/docs/SetPasswordWithPinModel.md b/docs/SetPasswordWithPinModel.md new file mode 100644 index 00000000..5d323fab --- /dev/null +++ b/docs/SetPasswordWithPinModel.md @@ -0,0 +1,11 @@ +# Flipdish.SetPasswordWithPinModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pin** | **Number** | PIN code (received via email) | +**NewPassword** | **String** | New Password | +**RecaptchaToken** | **String** | Google Recaptcha Token | [optional] + + diff --git a/docs/SetVoucherValidityPeriodsSimplifiedRequest.md b/docs/SetVoucherValidityPeriodsSimplifiedRequest.md new file mode 100644 index 00000000..699f7456 --- /dev/null +++ b/docs/SetVoucherValidityPeriodsSimplifiedRequest.md @@ -0,0 +1,32 @@ +# Flipdish.SetVoucherValidityPeriodsSimplifiedRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DaysOfWeek** | **[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] + + + +## Enum: [DaysOfWeekEnum] + + +* `Sunday` (value: `"Sunday"`) + +* `Monday` (value: `"Monday"`) + +* `Tuesday` (value: `"Tuesday"`) + +* `Wednesday` (value: `"Wednesday"`) + +* `Thursday` (value: `"Thursday"`) + +* `Friday` (value: `"Friday"`) + +* `Saturday` (value: `"Saturday"`) + + + + diff --git a/docs/Setting.md b/docs/Setting.md new file mode 100644 index 00000000..ebf1d379 --- /dev/null +++ b/docs/Setting.md @@ -0,0 +1,10 @@ +# Flipdish.Setting + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **String** | | [optional] +**Value** | **String** | | [optional] + + diff --git a/docs/SignupStep.md b/docs/SignupStep.md new file mode 100644 index 00000000..5a413499 --- /dev/null +++ b/docs/SignupStep.md @@ -0,0 +1,26 @@ +# Flipdish.SignupStep + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **String** | Action needs to take | [optional] +**Question** | **String** | Question in case Action == Question | [optional] +**PredefinedAnswers** | [**[PredefinedAnswer]**](PredefinedAnswer.md) | Predefined answer in case Action == Question | [optional] + + + +## Enum: ActionEnum + + +* `Question` (value: `"Question"`) + +* `StoreLocation` (value: `"StoreLocation"`) + +* `PaymentSubscription` (value: `"PaymentSubscription"`) + +* `StoreName` (value: `"StoreName"`) + + + + diff --git a/docs/SmsInfo.md b/docs/SmsInfo.md new file mode 100644 index 00000000..ac56fe58 --- /dev/null +++ b/docs/SmsInfo.md @@ -0,0 +1,11 @@ +# Flipdish.SmsInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **String** | Origin phone number | [optional] +**To** | **String** | Destination phone number | [optional] +**Text** | **String** | Text message | [optional] + + diff --git a/docs/SmsProviderCredential.md b/docs/SmsProviderCredential.md new file mode 100644 index 00000000..bbb8af0a --- /dev/null +++ b/docs/SmsProviderCredential.md @@ -0,0 +1,29 @@ +# Flipdish.SmsProviderCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **String** | | [optional] +**BrandId** | **String** | | [optional] +**SmsServiceType** | **String** | | [optional] +**SenderId** | **String** | | [optional] +**Username** | **String** | | [optional] +**AuthToken** | **String** | | [optional] + + + +## Enum: SmsServiceTypeEnum + + +* `Nexmo` (value: `"Nexmo"`) + +* `Twilio` (value: `"Twilio"`) + +* `Default` (value: `"Default"`) + +* `MessageBird` (value: `"MessageBird"`) + + + + diff --git a/docs/SmsProviderCredentialUpdateRequest.md b/docs/SmsProviderCredentialUpdateRequest.md new file mode 100644 index 00000000..8722250a --- /dev/null +++ b/docs/SmsProviderCredentialUpdateRequest.md @@ -0,0 +1,11 @@ +# Flipdish.SmsProviderCredentialUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SenderId** | **String** | | [optional] +**Username** | **String** | | [optional] +**AuthToken** | **String** | | [optional] + + diff --git a/docs/SmsProviderCredentialsApi.md b/docs/SmsProviderCredentialsApi.md new file mode 100644 index 00000000..20f8d0d4 --- /dev/null +++ b/docs/SmsProviderCredentialsApi.md @@ -0,0 +1,268 @@ +# Flipdish.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(orgId, brandId, serviceType, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SmsProviderCredentialsApi(); +let orgId = "orgId_example"; // String | +let brandId = "brandId_example"; // String | +let serviceType = "serviceType_example"; // String | +let opts = { + 'withFallback': true // Boolean | +}; +apiInstance.getBrandSmsProviderCredentialByServiceType(orgId, brandId, serviceType, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **String**| | + **brandId** | **String**| | + **serviceType** | **String**| | + **withFallback** | **Boolean**| | [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, Data + + +## getBrandSmsProviderCredentials + +> RestApiArrayResultSmsProviderCredential getBrandSmsProviderCredentials(orgId, brandId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SmsProviderCredentialsApi(); +let orgId = "orgId_example"; // String | +let brandId = "brandId_example"; // String | +apiInstance.getBrandSmsProviderCredentials(orgId, brandId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## smsProviderCredentialDelete + +> RestApiResultSmsProviderCredential smsProviderCredentialDelete(orgId, brandId, serviceType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SmsProviderCredentialsApi(); +let orgId = "orgId_example"; // String | +let brandId = "brandId_example"; // String | +let serviceType = "serviceType_example"; // String | +apiInstance.smsProviderCredentialDelete(orgId, brandId, serviceType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## smsProviderCredentialUpdate + +> RestApiResultSmsProviderCredential smsProviderCredentialUpdate(orgId, brandId, serviceType, credential) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SmsProviderCredentialsApi(); +let orgId = "orgId_example"; // String | +let brandId = "brandId_example"; // String | +let serviceType = "serviceType_example"; // String | +let credential = new Flipdish.SmsProviderCredentialUpdateRequest(); // SmsProviderCredentialUpdateRequest | +apiInstance.smsProviderCredentialUpdate(orgId, brandId, serviceType, credential, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## smsProviderCredentialsBulkUpsert + +> RestApiArrayResultSmsProviderCredential smsProviderCredentialsBulkUpsert(credentials) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SmsProviderCredentialsApi(); +let credentials = [new Flipdish.SmsProviderCredential()]; // [SmsProviderCredential] | +apiInstance.smsProviderCredentialsBulkUpsert(credentials, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **credentials** | [**[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, Data + diff --git a/docs/SmsReceivedEvent.md b/docs/SmsReceivedEvent.md new file mode 100644 index 00000000..3ef7fc62 --- /dev/null +++ b/docs/SmsReceivedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.SmsReceivedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**SmsInfo** | [**SmsInfo**](SmsInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StatisticsCurrencyDataPoint.md b/docs/StatisticsCurrencyDataPoint.md new file mode 100644 index 00000000..34a81a8d --- /dev/null +++ b/docs/StatisticsCurrencyDataPoint.md @@ -0,0 +1,245 @@ +# Flipdish.StatisticsCurrencyDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **String** | Currency | [optional] +**UserCount** | **Number** | Amount of users for this currency | [optional] +**OrderCount** | **Number** | Amount of orders for this currency | [optional] +**OrderValue** | **Number** | Value of orders for this currency | [optional] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/Store.md b/docs/Store.md new file mode 100644 index 00000000..850f5b50 --- /dev/null +++ b/docs/Store.md @@ -0,0 +1,334 @@ +# Flipdish.Store + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**StoreGroupId** | **Number** | Store group id to which this store belongs | [optional] +**Address** | [**StoreAddress**](StoreAddress.md) | | [optional] +**DeliveryZones** | [**[DeliveryZone]**](DeliveryZone.md) | Delivery zones | [optional] +**ApmPhoneNumber** | **String** | Automated Phone Marketing number | [optional] +**PickupHours** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Pickup hours | [optional] +**DeliveryHours** | [**[BusinessHoursPeriod]**](BusinessHoursPeriod.md) | Delivery hours | [optional] +**MenuId** | **Number** | Menu identifier | [optional] +**OrderConfirmationMessageOverrideDelivery** | **String** | Overridden confirmation message for delivery orders | [optional] +**OrderConfirmationMessageOverridePickup** | **String** | Overridden confirmation message for pickup orders | [optional] +**PrintoutLayoutType** | **String** | Printout layout | [optional] +**StoreNotes** | [**[StoreNote]**](StoreNote.md) | Store notes | [optional] +**MicrosoftTimeZone** | **String** | Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) (Editable through store coordinate change) | [optional] +**IanaTimeZone** | **String** | IANA Time Zone (https://www.iana.org/time-zones) (Editable through store coordinate change) | [optional] +**Currency** | **String** | Currency (derived from Store Group) | [optional] +**PreOrderDeliveryEnabled** | **Boolean** | Is PerOrder Enabled for Delivery | [optional] +**PreOrderPickupEnabled** | **Boolean** | Is PerOrder Enabled for Pickup | [optional] +**LogoUrl** | **String** | Url for logo image | [optional] +**FraudPreventionStrategy** | **String** | Fraud Prevention Strategy | [optional] +**AppIds** | **[String]** | Store's app ids | [optional] +**PropertyId** | **String** | Property Id | [optional] +**PhoneNumber** | **String** | Phone number | [optional] +**AlwaysAppearOpen** | **Boolean** | True if the store always appears open | [optional] +**PreOrderEnabled** | **Boolean** | True if the store accepts pre-orders | [optional] +**TakeOutEnabled** | **Boolean** | True if the store accepts take-out orders | [optional] +**TableServiceEnabled** | **Boolean** | True if the store has table service | [optional] +**DineInEnabled** | **Boolean** | True if the store accepts dine-in orders | [optional] +**AllowPreOrdersAndTableService** | **Boolean** | True if both pre-orders and talbe service can be enabled | [optional] +**PickupEnabled** | **Boolean** | True if the store accepts pickup orders | [optional] +**DeliveryEnabled** | **Boolean** | True if the store accepts delivery orders | [optional] +**CardOrderDeliveryEnabled** | **Boolean** | True if the store accepts card payment for delivery orders | [optional] +**CashOrdersDeliveryEnabled** | **Boolean** | True if the store accepts cash payment for delivery orders | [optional] +**CardOrdersPickupEnabled** | **Boolean** | True if the store accepts card payment for pickup orders | [optional] +**CashOrdersPickupEnabled** | **Boolean** | True if the store accepts cash payment for pickup orders | [optional] +**TipsEnabled** | **Boolean** | True if the store accepts tips | [optional] +**AutomaticallyAcceptOrders** | **Boolean** | True if the stores orders are automatically accepted in Flipdish | [optional] +**OpenForDelivery** | **Boolean** | True if the store is open for delivery | [optional] +**OpenForPickup** | **Boolean** | True if the store is open for pickup | [optional] +**MinimumPickupOrderAmount** | **Number** | Minimum pickup order amount | [optional] +**RequireCustomerNameForPickup** | **Boolean** | True if customer name required for pickup orders | [optional] +**GdprCustomerPhoneNumbers** | **Boolean** | Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. | [optional] +**RequireCustomerNameForDelivery** | **Boolean** | True if customer name required for delivery orders | [optional] +**AllowChefNotes** | **Boolean** | True if the customer is allowed enter custom notes with their orders | [optional] +**EtaInPickupConfirmationSmsEnabled** | **Boolean** | True if order confirmation sms includes estimated time when order will be ready for collection | [optional] +**EtaInDeliveryConfirmationSmsEnabled** | **Boolean** | True if order confirmation sms includes estimated time when order will delivered | [optional] +**IsArchived** | **Boolean** | Is the Store Archived | [optional] +**IsPublished** | **Boolean** | Is the Store Published | [optional] +**Name** | **String** | Name | [optional] +**EmailAddress** | **String** | Email address (visible to customers) | [optional] +**StaffLanguage** | **String** | Staff Language (used for communication with the staff) Emails, Printouts etc | [optional] +**SalesChannelTypes** | **[String]** | Sales Channel Types | [optional] +**InheritanceConfigTypes** | **[String]** | Inheritance Config Types | [optional] + + + +## Enum: PrintoutLayoutTypeEnum + + +* `Default` (value: `"Default"`) + +* `Centra` (value: `"Centra"`) + +* `SmallChefNotes` (value: `"SmallChefNotes"`) + +* `SmallChefNotesAndCentra` (value: `"SmallChefNotesAndCentra"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: [SalesChannelTypesEnum] + + +* `Web` (value: `"Web"`) + +* `App` (value: `"App"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `None` (value: `"None"`) + + + + + +## Enum: [InheritanceConfigTypesEnum] + + +* `CollectionSettings` (value: `"CollectionSettings"`) + + + + diff --git a/docs/StoreAddress.md b/docs/StoreAddress.md new file mode 100644 index 00000000..01fbf5d0 --- /dev/null +++ b/docs/StoreAddress.md @@ -0,0 +1,18 @@ +# Flipdish.StoreAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressId** | **Number** | Address identifier | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | | [optional] +**Line1** | **String** | Address line 1 | [optional] +**Postcode** | **String** | Postcode | [optional] +**City** | **String** | City | [optional] +**CountryCode** | **String** | Country code (ISO-alpha2) | [optional] +**DisplayForCustomer** | **String** | Display for customer | [optional] +**AddressFields** | **{String: Object}** | Dyanmic field/value pairs, defined by the form assigned to the given country code. | [optional] +**SingleLineDisplay** | **String** | Single line display i18n, may be empty for not supported countries | [optional] +**TwoLinesDisplay** | **[String]** | Two line display i18n, may be empty for not supported countries | [optional] + + diff --git a/docs/StoreAddressBase.md b/docs/StoreAddressBase.md new file mode 100644 index 00000000..273927c8 --- /dev/null +++ b/docs/StoreAddressBase.md @@ -0,0 +1,16 @@ +# Flipdish.StoreAddressBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Line1** | **String** | Address line 1 | [optional] +**Postcode** | **String** | Postcode | [optional] +**City** | **String** | City | [optional] +**CountryCode** | **String** | Country code (ISO-alpha2) | [optional] +**DisplayForCustomer** | **String** | Display for customer | [optional] +**AddressFields** | **{String: Object}** | Dyanmic field/value pairs, defined by the form assigned to the given country code. | [optional] +**SingleLineDisplay** | **String** | Single line display i18n, may be empty for not supported countries | [optional] +**TwoLinesDisplay** | **[String]** | Two line display i18n, may be empty for not supported countries | [optional] + + diff --git a/docs/StoreAddressForm.md b/docs/StoreAddressForm.md new file mode 100644 index 00000000..e82e190c --- /dev/null +++ b/docs/StoreAddressForm.md @@ -0,0 +1,10 @@ +# Flipdish.StoreAddressForm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressFields** | **{String: Object}** | The dynamic fields generated by the address form. | +**CountryCode** | **String** | ISO 2 letters code for the country, should be the same as the form that generates the fields. | + + diff --git a/docs/StoreAddressUpdatedEvent.md b/docs/StoreAddressUpdatedEvent.md new file mode 100644 index 00000000..21ba2b54 --- /dev/null +++ b/docs/StoreAddressUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreAddressUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**StoreAddress** | [**StoreAddress**](StoreAddress.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreArchivedEvent.md b/docs/StoreArchivedEvent.md new file mode 100644 index 00000000..ace0cc7e --- /dev/null +++ b/docs/StoreArchivedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreArchivedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] [readonly] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreBase.md b/docs/StoreBase.md new file mode 100644 index 00000000..93bb9daa --- /dev/null +++ b/docs/StoreBase.md @@ -0,0 +1,65 @@ +# Flipdish.StoreBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **String** | Phone number | [optional] +**AlwaysAppearOpen** | **Boolean** | True if the store always appears open | [optional] +**PreOrderEnabled** | **Boolean** | True if the store accepts pre-orders | [optional] +**TakeOutEnabled** | **Boolean** | True if the store accepts take-out orders | [optional] +**TableServiceEnabled** | **Boolean** | True if the store has table service | [optional] +**DineInEnabled** | **Boolean** | True if the store accepts dine-in orders | [optional] +**AllowPreOrdersAndTableService** | **Boolean** | True if both pre-orders and talbe service can be enabled | [optional] +**PickupEnabled** | **Boolean** | True if the store accepts pickup orders | [optional] +**DeliveryEnabled** | **Boolean** | True if the store accepts delivery orders | [optional] +**CardOrderDeliveryEnabled** | **Boolean** | True if the store accepts card payment for delivery orders | [optional] +**CashOrdersDeliveryEnabled** | **Boolean** | True if the store accepts cash payment for delivery orders | [optional] +**CardOrdersPickupEnabled** | **Boolean** | True if the store accepts card payment for pickup orders | [optional] +**CashOrdersPickupEnabled** | **Boolean** | True if the store accepts cash payment for pickup orders | [optional] +**TipsEnabled** | **Boolean** | True if the store accepts tips | [optional] +**AutomaticallyAcceptOrders** | **Boolean** | True if the stores orders are automatically accepted in Flipdish | [optional] +**OpenForDelivery** | **Boolean** | True if the store is open for delivery | [optional] +**OpenForPickup** | **Boolean** | True if the store is open for pickup | [optional] +**MinimumPickupOrderAmount** | **Number** | Minimum pickup order amount | [optional] +**RequireCustomerNameForPickup** | **Boolean** | True if customer name required for pickup orders | [optional] +**GdprCustomerPhoneNumbers** | **Boolean** | Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. | [optional] +**RequireCustomerNameForDelivery** | **Boolean** | True if customer name required for delivery orders | [optional] +**AllowChefNotes** | **Boolean** | True if the customer is allowed enter custom notes with their orders | [optional] +**EtaInPickupConfirmationSmsEnabled** | **Boolean** | True if order confirmation sms includes estimated time when order will be ready for collection | [optional] +**EtaInDeliveryConfirmationSmsEnabled** | **Boolean** | True if order confirmation sms includes estimated time when order will delivered | [optional] +**IsArchived** | **Boolean** | Is the Store Archived | [optional] +**IsPublished** | **Boolean** | Is the Store Published | [optional] +**Name** | **String** | Name | [optional] +**EmailAddress** | **String** | Email address (visible to customers) | [optional] +**StaffLanguage** | **String** | Staff Language (used for communication with the staff) Emails, Printouts etc | [optional] +**SalesChannelTypes** | **[String]** | Sales Channel Types | [optional] +**InheritanceConfigTypes** | **[String]** | Inheritance Config Types | [optional] + + + +## Enum: [SalesChannelTypesEnum] + + +* `Web` (value: `"Web"`) + +* `App` (value: `"App"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `None` (value: `"None"`) + + + + + +## Enum: [InheritanceConfigTypesEnum] + + +* `CollectionSettings` (value: `"CollectionSettings"`) + + + + diff --git a/docs/StoreBusinessHoursOverrideCreatedEvent.md b/docs/StoreBusinessHoursOverrideCreatedEvent.md new file mode 100644 index 00000000..f30a5a8a --- /dev/null +++ b/docs/StoreBusinessHoursOverrideCreatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreBusinessHoursOverrideCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**BusinessHoursOverride** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreBusinessHoursOverrideDeletedEvent.md b/docs/StoreBusinessHoursOverrideDeletedEvent.md new file mode 100644 index 00000000..9b31ccc4 --- /dev/null +++ b/docs/StoreBusinessHoursOverrideDeletedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreBusinessHoursOverrideDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**BusinessHoursOverride** | [**BusinessHoursOverride**](BusinessHoursOverride.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreCampaignStartTime.md b/docs/StoreCampaignStartTime.md new file mode 100644 index 00000000..a3df12cc --- /dev/null +++ b/docs/StoreCampaignStartTime.md @@ -0,0 +1,10 @@ +# Flipdish.StoreCampaignStartTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store Id | [optional] +**TsStart** | **Date** | Campaign start time in Utc | [optional] + + diff --git a/docs/StoreChannelAssignment.md b/docs/StoreChannelAssignment.md new file mode 100644 index 00000000..812cb04a --- /dev/null +++ b/docs/StoreChannelAssignment.md @@ -0,0 +1,11 @@ +# Flipdish.StoreChannelAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelId** | **Number** | Channel ID | [optional] +**StoreId** | **Number** | Store ID | [optional] +**StoreName** | **String** | Store Name | [optional] + + diff --git a/docs/StoreCloneSettings.md b/docs/StoreCloneSettings.md new file mode 100644 index 00000000..8bb1ca8e --- /dev/null +++ b/docs/StoreCloneSettings.md @@ -0,0 +1,9 @@ +# Flipdish.StoreCloneSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TargetStoreGroupId** | **Number** | If specified will clone to a specific store group, otherwise will clone to the store group of the Store which is being cloned | [optional] + + diff --git a/docs/StoreCollectionSettings.md b/docs/StoreCollectionSettings.md new file mode 100644 index 00000000..618ee421 --- /dev/null +++ b/docs/StoreCollectionSettings.md @@ -0,0 +1,14 @@ +# Flipdish.StoreCollectionSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PickupEnabled** | **Boolean** | True if the store accepts pickup orders | +**MinimumPickupOrderAmount** | **Number** | Minimum pickup order amount | +**RequireCustomerNameForPickup** | **Boolean** | True if customer name required for pickup orders | +**CashOrdersPickupEnabled** | **Boolean** | True if the store accepts cash payment for pickup orders | +**LeadTimeMinutes** | **Number** | Auto accept lead time for collection orders | +**EtaInPickupConfirmationSmsEnabled** | **Boolean** | True if order confirmation sms includes estimated time when order will be ready for collection | + + diff --git a/docs/StoreConfig.md b/docs/StoreConfig.md new file mode 100644 index 00000000..d4b928f9 --- /dev/null +++ b/docs/StoreConfig.md @@ -0,0 +1,14 @@ +# Flipdish.StoreConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PickupEnabled** | **Boolean** | True if the store accepts pickup orders | [optional] +**BankAccountAttached** | **Boolean** | True if the store has a Bank Account attached | [optional] +**MenuAssigned** | **Boolean** | True if the store is assigned to a Menu | [optional] +**HasFullAddress** | **Boolean** | True if the store has a valid Address | [optional] +**PickupHours** | **Boolean** | True if the store has Pickup hours | [optional] +**IsPublished** | **Boolean** | Is the Store Published | [optional] + + diff --git a/docs/StoreCreateBase.md b/docs/StoreCreateBase.md new file mode 100644 index 00000000..3c5d92b4 --- /dev/null +++ b/docs/StoreCreateBase.md @@ -0,0 +1,30 @@ +# Flipdish.StoreCreateBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Name | [optional] +**EmailAddress** | **String** | Email address (visible to customers) | [optional] +**StaffLanguage** | **String** | Staff Language (used for communication with the staff) Emails, Printouts etc | [optional] +**SalesChannelType** | **String** | Sales Channel Type | [optional] +**PhoneNumber** | **String** | Phone Number | [optional] + + + +## Enum: SalesChannelTypeEnum + + +* `Web` (value: `"Web"`) + +* `App` (value: `"App"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `None` (value: `"None"`) + + + + diff --git a/docs/StoreCreatedEvent.md b/docs/StoreCreatedEvent.md new file mode 100644 index 00000000..59c2fb91 --- /dev/null +++ b/docs/StoreCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreDataPoint.md b/docs/StoreDataPoint.md new file mode 100644 index 00000000..84970d36 --- /dev/null +++ b/docs/StoreDataPoint.md @@ -0,0 +1,10 @@ +# Flipdish.StoreDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Day** | **Date** | Day | [optional] +**Value** | **Number** | Value for the day | [optional] + + diff --git a/docs/StoreDeletedEvent.md b/docs/StoreDeletedEvent.md new file mode 100644 index 00000000..74e36999 --- /dev/null +++ b/docs/StoreDeletedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] [readonly] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreDeliveryZoneFeeConfig.md b/docs/StoreDeliveryZoneFeeConfig.md new file mode 100644 index 00000000..8f793f07 --- /dev/null +++ b/docs/StoreDeliveryZoneFeeConfig.md @@ -0,0 +1,10 @@ +# Flipdish.StoreDeliveryZoneFeeConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryZoneId** | **Number** | ID of the delivery zone this fee corresponds to | [optional] +**Fee** | **Number** | Fee for delivery within this zone | [optional] + + diff --git a/docs/StoreDeliveryZoneFeeConfigUpdateRequest.md b/docs/StoreDeliveryZoneFeeConfigUpdateRequest.md new file mode 100644 index 00000000..63660b3e --- /dev/null +++ b/docs/StoreDeliveryZoneFeeConfigUpdateRequest.md @@ -0,0 +1,9 @@ +# Flipdish.StoreDeliveryZoneFeeConfigUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryZoneFees** | [**[StoreDeliveryZoneFeeConfig]**](StoreDeliveryZoneFeeConfig.md) | Delivery zone fees to update | [optional] + + diff --git a/docs/StoreEndOfDayReport.md b/docs/StoreEndOfDayReport.md new file mode 100644 index 00000000..306eb45b --- /dev/null +++ b/docs/StoreEndOfDayReport.md @@ -0,0 +1,267 @@ +# Flipdish.StoreEndOfDayReport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store Id | [optional] +**StoreName** | **String** | Store name | [optional] +**Currency** | **String** | Currency | [optional] +**OrderCount** | **Number** | Order Count | [optional] +**OrderValue** | **Number** | Order Value | [optional] +**OrderValueExcludingDeliveryFees** | **Number** | Order Value Excluding Delivery Fees | [optional] +**CollectionOrderCount** | **Number** | Collection Order Count | [optional] +**CollectionCashOrderCount** | **Number** | Collection Cash Order Count | [optional] +**CollectionPaidOnlineOrderCount** | **Number** | Collection Paid Online Order Count | [optional] +**CollectionOrderValue** | **Number** | Collection Order Value | [optional] +**CollectionCashOrderValue** | **Number** | Collection Cash Order Value | [optional] +**CollectionPaidOnlineOrderValue** | **Number** | Collection Paid Online Order Value | [optional] +**DeliveryOrderCount** | **Number** | Delivery Order Count | [optional] +**DeliveryCashOrderCount** | **Number** | Delivery Cash Order Count | [optional] +**DeliveryPaidOnlineOrderCount** | **Number** | Delivery Paid Online Order Count | [optional] +**DeliveryOrderValue** | **Number** | Delivery Order Value | [optional] +**DeliveryCashOrderValue** | **Number** | Delivery Cash Order Value | [optional] +**DeliveryPaidOnlineOrderValue** | **Number** | Delivery Paid Online Order Value | [optional] +**PaidOnlineOrderCount** | **Number** | Paid Online Order Count | [optional] +**CashOrderCount** | **Number** | Cash Order Count | [optional] +**PaidOnlineOrderValue** | **Number** | Paid Online Order Value | [optional] +**CashOrderValue** | **Number** | Cash Order Value | [optional] +**PaidOnlineOrderValueExcludingDeliveryFees** | **Number** | Paid Online Order Value Excluding Delivery Fees | [optional] +**CashOrderValueExcludingDeliveryFees** | **Number** | Cash Order Value Excluding Delivery Fees | [optional] +**StartTime** | **Date** | Start Time | [optional] +**EndTime** | **Date** | End Time | [optional] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/StoreFeeConfig.md b/docs/StoreFeeConfig.md new file mode 100644 index 00000000..944770d2 --- /dev/null +++ b/docs/StoreFeeConfig.md @@ -0,0 +1,53 @@ +# Flipdish.StoreFeeConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FeeConfigId** | **Number** | | [optional] +**StoreId** | **Number** | | [optional] +**StartTime** | **Date** | | [optional] +**PercentFeeCardOrders** | **Number** | | [optional] +**PercentFeeCashOrders** | **Number** | | [optional] +**PercentFeeCardOrdersWeb** | **Number** | | [optional] +**PercentFeeCashOrdersWeb** | **Number** | | [optional] +**PercentFeeCardOrdersKiosk** | **Number** | | [optional] +**PercentFeeCashOrdersKiosk** | **Number** | | [optional] +**FixedFeeCardOrdersKiosk** | **Number** | | [optional] +**FixedFeeCashOrdersKiosk** | **Number** | | [optional] +**PercentFeeCardOrdersKioskChargedToCustomerIncludingVat** | **Number** | | [optional] +**FixedFeeCardOrdersKioskChargedToCustomerIncludingVat** | **Number** | | [optional] +**PercentFeeCashOrdersKioskChargedToCustomerIncludingVat** | **Number** | | [optional] +**FixedFeeCashOrdersKioskChargedToCustomerIncludingVat** | **Number** | | [optional] +**FixedFeeCardOrders** | **Number** | | [optional] +**FixedFeeCashOrders** | **Number** | | [optional] +**PercentFeeCardOrdersChargedToCustomerIncludingVat** | **Number** | | [optional] +**FixedFeeCardOrdersChargedToCustomerIncludingVat** | **Number** | | [optional] +**PercentFeeCashOrdersChargedToCustomerIncludingVat** | **Number** | | [optional] +**FixedFeeCashOrdersChargedToCustomerIncludingVat** | **Number** | | [optional] +**PercentFeeTips** | **Number** | Gets or sets the percent fee tips. | [optional] +**PercentFeeTipsCollection** | **Number** | Gets or sets the percent fee tips for collection. | [optional] +**PercentFeeTipsDelivery** | **Number** | Gets or sets the percent fee tips for delivery. | [optional] +**TaxRatePercent** | **Number** | Gets or sets the tax rate percent. | [optional] +**PercentFeeCardOrdersLocationService** | **Number** | Gets or sets the percent fee card orders location service. | [optional] +**PercentFeeCashOrdersLocationService** | **Number** | Gets or sets the percent fee cash orders location service. | [optional] +**FixedFeeCardOrdersLocationService** | **Number** | Gets or sets the fixed fee card orders location service. | [optional] +**FixedFeeCashOrdersLocationService** | **Number** | Gets or sets the fixed fee cash orders location service. | [optional] +**PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat** | **Number** | Gets or sets the percent fee card orders location service charged to customer including vat. | [optional] +**PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat** | **Number** | Gets or sets the percent fee cash orders location service charged to customer including vat. | [optional] +**FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat** | **Number** | Gets or sets the fixed fee card orders location service charged to customer including vat. | [optional] +**FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat** | **Number** | Gets or sets the fixed fee cash orders location service charged to customer including vat. | [optional] +**PercentFeeCardOrdersIngest** | **Number** | Gets or sets the percent fee card orders ingest. | [optional] +**PercentFeeCashOrdersIngest** | **Number** | Gets or sets the percent fee cash orders ingest. | [optional] +**FixedFeeCardOrdersIngest** | **Number** | Gets or sets the fixed fee card orders ingest. | [optional] +**FixedFeeCashOrdersIngest** | **Number** | Gets or sets the fixed fee cash orders ingest. | [optional] +**PercentFeeDelivery** | **Number** | Gets or sets the percent fee for delivery orders. | [optional] +**FixedFeeDelivery** | **Number** | Gets or sets the fixed fee for delivery orders. | [optional] +**PercentFeeCardPosTransaction** | **Number** | Gets or sets the percent fee for POS transactions. | [optional] +**FixedFeeCardPosTransaction** | **Number** | Gets or sets the fixed fee for POS transactions. | [optional] +**PercentFeeOrderWithGoogle** | **Number** | Additional percentage fee charged on orders submitted through Order With Google | [optional] +**FixedFeeOrderWithGoogle** | **Number** | Additional fixed fee charged on orders submitted through Order With Google | [optional] +**ShouldNotAutoIncreaseBefore** | **Date** | Should not auto increase fees before this date | [optional] +**Reason** | **String** | Reason for the last fee change (optional) | [optional] + + diff --git a/docs/StoreFeeConfigUpdatedEvent.md b/docs/StoreFeeConfigUpdatedEvent.md new file mode 100644 index 00000000..7b2c46f8 --- /dev/null +++ b/docs/StoreFeeConfigUpdatedEvent.md @@ -0,0 +1,21 @@ +# Flipdish.StoreFeeConfigUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Changes** | **String** | Diff between before and after | [optional] +**StoreFeeConfig** | [**StoreFeeConfig**](StoreFeeConfig.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreGroup.md b/docs/StoreGroup.md new file mode 100644 index 00000000..ca7a0873 --- /dev/null +++ b/docs/StoreGroup.md @@ -0,0 +1,249 @@ +# Flipdish.StoreGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreGroupId** | **Number** | Unique Store Group Identifier | [optional] +**GeneralRating** | **Number** | Store Group rating | [optional] +**GeneralRatingCount** | **Number** | Store Group rating count | [optional] +**DeliveryMenuMessage** | **String** | Delivery menu message | [optional] +**PickupMenuMessage** | **String** | Pickup menu message | [optional] +**BrandIds** | **[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] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/StoreGroupBase.md b/docs/StoreGroupBase.md new file mode 100644 index 00000000..647fbc25 --- /dev/null +++ b/docs/StoreGroupBase.md @@ -0,0 +1,243 @@ +# Flipdish.StoreGroupBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Store Group Name | [optional] +**Currency** | **String** | Currency used by the stores in this group | [optional] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/StoreGroupCreatedEvent.md b/docs/StoreGroupCreatedEvent.md new file mode 100644 index 00000000..e0b9a75c --- /dev/null +++ b/docs/StoreGroupCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreGroupCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreGroupId** | **Number** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreGroupDeletedEvent.md b/docs/StoreGroupDeletedEvent.md new file mode 100644 index 00000000..65e7f729 --- /dev/null +++ b/docs/StoreGroupDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreGroupDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreGroupId** | **Number** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreGroupExtended.md b/docs/StoreGroupExtended.md new file mode 100644 index 00000000..083a7dbc --- /dev/null +++ b/docs/StoreGroupExtended.md @@ -0,0 +1,252 @@ +# Flipdish.StoreGroupExtended + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalStores** | **Number** | Total Amount of Stores | [optional] +**GroupedCoordinates** | [**[GroupedCoordinates]**](GroupedCoordinates.md) | Grouped store coordinates | [optional] +**StoreHeaders** | [**[StoreHeader]**](StoreHeader.md) | Store Headers associated with Store Group | [optional] +**StoreGroupId** | **Number** | Unique Store Group Identifier | [optional] +**GeneralRating** | **Number** | Store Group rating | [optional] +**GeneralRatingCount** | **Number** | Store Group rating count | [optional] +**DeliveryMenuMessage** | **String** | Delivery menu message | [optional] +**PickupMenuMessage** | **String** | Pickup menu message | [optional] +**BrandIds** | **[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] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/StoreGroupUpdatedEvent.md b/docs/StoreGroupUpdatedEvent.md new file mode 100644 index 00000000..fcc6b71c --- /dev/null +++ b/docs/StoreGroupUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreGroupUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreGroupId** | **Number** | Store Group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**StoreGroup** | [**StoreGroup**](StoreGroup.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreGroupsApi.md b/docs/StoreGroupsApi.md new file mode 100644 index 00000000..d357b33a --- /dev/null +++ b/docs/StoreGroupsApi.md @@ -0,0 +1,420 @@ +# Flipdish.StoreGroupsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**assignStoresToStoreGroup**](StoreGroupsApi.md#assignStoresToStoreGroup) | **POST** /api/v1.0/{appId}/storegroups/{storeGroupId}/assignStores | +[**createStoreGroup**](StoreGroupsApi.md#createStoreGroup) | **POST** /api/v1.0/{appNameId}/storegroups | +[**getStoreGroup**](StoreGroupsApi.md#getStoreGroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | +[**getStoreGroups**](StoreGroupsApi.md#getStoreGroups) | **GET** /api/v1.0/{appNameId}/storegroups | +[**getStoreGroupsExtended**](StoreGroupsApi.md#getStoreGroupsExtended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | +[**removeStoreGroup**](StoreGroupsApi.md#removeStoreGroup) | **DELETE** /api/v1.0/storegroups/{storeGroupId} | +[**setCustomerMessages**](StoreGroupsApi.md#setCustomerMessages) | **POST** /api/v1.0/storegroups/{storeGroupId}/CustomerMessages | +[**updateStoreGroup**](StoreGroupsApi.md#updateStoreGroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | + + + +## assignStoresToStoreGroup + +> assignStoresToStoreGroup(appId, storeGroupId, storeIds) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let appId = "appId_example"; // String | +let storeGroupId = 56; // Number | +let storeIds = [null]; // [Number] | +apiInstance.assignStoresToStoreGroup(appId, storeGroupId, storeIds, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeGroupId** | **Number**| | + **storeIds** | [**[Number]**](Number.md)| | + +### Return type + +null (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 + + +## createStoreGroup + +> RestApiResultStoreGroup createStoreGroup(appNameId, storeGroup) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let appNameId = "appNameId_example"; // String | +let storeGroup = new Flipdish.StoreGroupBase(); // StoreGroupBase | +apiInstance.createStoreGroup(appNameId, storeGroup, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **String**| | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| | + +### Return type + +[**RestApiResultStoreGroup**](RestApiResultStoreGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoreGroup + +> RestApiResultStoreGroup getStoreGroup(storeGroupId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let storeGroupId = 56; // Number | +apiInstance.getStoreGroup(storeGroupId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| | + +### Return type + +[**RestApiResultStoreGroup**](RestApiResultStoreGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoreGroups + +> RestApiPaginationResultStoreGroup getStoreGroups(appNameId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let appNameId = "appNameId_example"; // String | +let opts = { + 'searchQuery': "searchQuery_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getStoreGroups(appNameId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **String**| | + **searchQuery** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreGroup**](RestApiPaginationResultStoreGroup.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoreGroupsExtended + +> RestApiPaginationResultStoreGroupExtended getStoreGroupsExtended(appNameId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let appNameId = "appNameId_example"; // String | +let opts = { + 'searchQuery': "searchQuery_example", // String | + 'page': 56, // Number | + 'limit': 56, // Number | + 'groupingRadius': 56 // Number | +}; +apiInstance.getStoreGroupsExtended(appNameId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appNameId** | **String**| | + **searchQuery** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **groupingRadius** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreGroupExtended**](RestApiPaginationResultStoreGroupExtended.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## removeStoreGroup + +> removeStoreGroup(storeGroupId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let storeGroupId = 56; // Number | +apiInstance.removeStoreGroup(storeGroupId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## setCustomerMessages + +> setCustomerMessages(storeGroupId, customerMessages) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let storeGroupId = 56; // Number | +let customerMessages = new Flipdish.CustomerMessages(); // CustomerMessages | +apiInstance.setCustomerMessages(storeGroupId, customerMessages, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| | + **customerMessages** | [**CustomerMessages**](CustomerMessages.md)| | + +### Return type + +null (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 + + +## updateStoreGroup + +> RestApiResultStoreGroupBase updateStoreGroup(storeGroupId, storeGroup) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreGroupsApi(); +let storeGroupId = 56; // Number | +let storeGroup = new Flipdish.StoreGroupBase(); // StoreGroupBase | +apiInstance.updateStoreGroup(storeGroupId, storeGroup, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| | + +### Return type + +[**RestApiResultStoreGroupBase**](RestApiResultStoreGroupBase.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/StoreHeader.md b/docs/StoreHeader.md new file mode 100644 index 00000000..35f529a4 --- /dev/null +++ b/docs/StoreHeader.md @@ -0,0 +1,11 @@ +# Flipdish.StoreHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**Name** | **String** | Name | [optional] +**Category** | **String** | Name | [optional] + + diff --git a/docs/StoreItemHeader.md b/docs/StoreItemHeader.md new file mode 100644 index 00000000..30817651 --- /dev/null +++ b/docs/StoreItemHeader.md @@ -0,0 +1,10 @@ +# Flipdish.StoreItemHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | | [optional] +**Name** | **String** | | [optional] + + diff --git a/docs/StoreKioskSetting.md b/docs/StoreKioskSetting.md new file mode 100644 index 00000000..757e6a32 --- /dev/null +++ b/docs/StoreKioskSetting.md @@ -0,0 +1,17 @@ +# Flipdish.StoreKioskSetting + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KioskSettingId** | **Number** | Kiosk setting id | [optional] +**KioskName** | **String** | Store kiosk name | [optional] +**RequireCustomerName** | **Boolean** | Require customer name flag | [optional] +**RequireCustomerPhoneNumber** | **Boolean** | Require customer phone number flag | [optional] +**RequestCustomerPhoneNumber** | **Boolean** | Request customer phone number flag (Option to Skip) | [optional] +**RequestTableNumber** | **Boolean** | Request table number flag | [optional] +**OfferDineInOrTakeawayOption** | **Boolean** | Offer Dine-In/Takeaway option flag | [optional] +**PhysicalRestaurantId** | **Number** | Physical restaurant id | [optional] +**HydraConfigId** | **Number** | Hydra config id | [optional] + + diff --git a/docs/StoreKioskSettingUpdatedEvent.md b/docs/StoreKioskSettingUpdatedEvent.md new file mode 100644 index 00000000..27395244 --- /dev/null +++ b/docs/StoreKioskSettingUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreKioskSettingUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**StoreKioskSetting** | [**StoreKioskSetting**](StoreKioskSetting.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreListItem.md b/docs/StoreListItem.md new file mode 100644 index 00000000..19bcae4c --- /dev/null +++ b/docs/StoreListItem.md @@ -0,0 +1,15 @@ +# Flipdish.StoreListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store Id | [optional] +**StoreName** | **String** | Store Name | [optional] +**StoreGroupId** | **Number** | Store Group Id | [optional] +**StoreGroupName** | **String** | Store Group Name | [optional] +**HasLoyaltyCampaign** | **Boolean** | Store has loyalty campaign | [optional] +**HasRetentionCampaign** | **Boolean** | Store has retention campaign | [optional] +**IsPublished** | **Boolean** | Is Published store | [optional] + + diff --git a/docs/StoreLogoCreatedEvent.md b/docs/StoreLogoCreatedEvent.md new file mode 100644 index 00000000..e519d880 --- /dev/null +++ b/docs/StoreLogoCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreLogoCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**StoreId** | **Number** | 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) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreLogoDeletedEvent.md b/docs/StoreLogoDeletedEvent.md new file mode 100644 index 00000000..dcae9f57 --- /dev/null +++ b/docs/StoreLogoDeletedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.StoreLogoDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**StoreId** | **Number** | ID of store that the logo has been added to | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreLogoUpdatedEvent.md b/docs/StoreLogoUpdatedEvent.md new file mode 100644 index 00000000..4001aa07 --- /dev/null +++ b/docs/StoreLogoUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreLogoUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**StoreId** | **Number** | 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) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreMenuAssignedEvent.md b/docs/StoreMenuAssignedEvent.md new file mode 100644 index 00000000..61042618 --- /dev/null +++ b/docs/StoreMenuAssignedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreMenuAssignedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**MenuId** | **Number** | MenuId Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreNote.md b/docs/StoreNote.md new file mode 100644 index 00000000..d5fe2f40 --- /dev/null +++ b/docs/StoreNote.md @@ -0,0 +1,11 @@ +# Flipdish.StoreNote + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Number** | User identifier | [optional] +**CreateTime** | **Date** | Create time | [optional] +**Note** | **String** | Note | [optional] + + diff --git a/docs/StoreOpeningHoursUpdatedEvent.md b/docs/StoreOpeningHoursUpdatedEvent.md new file mode 100644 index 00000000..3e0a443d --- /dev/null +++ b/docs/StoreOpeningHoursUpdatedEvent.md @@ -0,0 +1,45 @@ +# Flipdish.StoreOpeningHoursUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [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) | | [optional] +**BusinessHoursPeriod** | [**BusinessHoursPeriod**](BusinessHoursPeriod.md) | | [optional] +**Description** | **String** | Description | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + + +## Enum: DeliveryTypeEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + + + + +## Enum: DeliveryTypeStringEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + + + diff --git a/docs/StoreOrderCapacityApi.md b/docs/StoreOrderCapacityApi.md new file mode 100644 index 00000000..48daa417 --- /dev/null +++ b/docs/StoreOrderCapacityApi.md @@ -0,0 +1,114 @@ +# Flipdish.StoreOrderCapacityApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getStoreOrderCapacity**](StoreOrderCapacityApi.md#getStoreOrderCapacity) | **GET** /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | +[**updateStoreOrderCapacityConfig**](StoreOrderCapacityApi.md#updateStoreOrderCapacityConfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | + + + +## getStoreOrderCapacity + +> RestApiResultStoreOrderCapacityConfig getStoreOrderCapacity(appId, storeId, deliveryType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreOrderCapacityApi(); +let appId = "appId_example"; // String | +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +apiInstance.getStoreOrderCapacity(appId, storeId, deliveryType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | **Number**| | + **deliveryType** | **String**| | + +### Return type + +[**RestApiResultStoreOrderCapacityConfig**](RestApiResultStoreOrderCapacityConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateStoreOrderCapacityConfig + +> updateStoreOrderCapacityConfig(storeId, deliveryType, appId, newOrderCapacityConfig) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoreOrderCapacityApi(); +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +let appId = "appId_example"; // String | +let newOrderCapacityConfig = new Flipdish.StoreOrderCapacityConfigEditModel(); // StoreOrderCapacityConfigEditModel | +apiInstance.updateStoreOrderCapacityConfig(storeId, deliveryType, appId, newOrderCapacityConfig, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryType** | **String**| | + **appId** | **String**| | + **newOrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md)| | + +### Return type + +null (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 + diff --git a/docs/StoreOrderCapacityConfig.md b/docs/StoreOrderCapacityConfig.md new file mode 100644 index 00000000..fc46a7d6 --- /dev/null +++ b/docs/StoreOrderCapacityConfig.md @@ -0,0 +1,23 @@ +# Flipdish.StoreOrderCapacityConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**DeliveryType** | **String** | Signifies whether the order capacity configuration is for Delivery / Pickup | [optional] +**StoreIntervalInMinutes** | **Number** | Store Interval - time between orders, e.g. 10 minutes between each order time available to customer | [optional] +**OrderCapacityPeriods** | [**[StoreOrderCapacityPeriod]**](StoreOrderCapacityPeriod.md) | Order capacity periods | [optional] + + + +## Enum: DeliveryTypeEnum + + +* `Delivery` (value: `"Delivery"`) + +* `Pickup` (value: `"Pickup"`) + + + + diff --git a/docs/StoreOrderCapacityConfigEditModel.md b/docs/StoreOrderCapacityConfigEditModel.md new file mode 100644 index 00000000..a54ad3a4 --- /dev/null +++ b/docs/StoreOrderCapacityConfigEditModel.md @@ -0,0 +1,9 @@ +# Flipdish.StoreOrderCapacityConfigEditModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderCapacityPeriods** | [**[StoreOrderCapacityPeriod]**](StoreOrderCapacityPeriod.md) | Order capacity periods | [optional] + + diff --git a/docs/StoreOrderCapacityPeriod.md b/docs/StoreOrderCapacityPeriod.md new file mode 100644 index 00000000..0343b1dd --- /dev/null +++ b/docs/StoreOrderCapacityPeriod.md @@ -0,0 +1,35 @@ +# Flipdish.StoreOrderCapacityPeriod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxOrderNumberPerStoreInterval** | **Number** | The maximum number of orders per each store order interval in this order capacity period. E.g. for a period from 9:00 till 11:00, if the store's interval is 10 minutes, and MaxOrderNumberPerStoreInterval is set to 5, it means that within each 10-minute interval between 9:00 and 11:00 (i.e. 9:00-9:10, 9:10-9:20, .. , 10:50-11:00) it will be possible to request at most 5 orders. | [optional] +**DayOfTheWeek** | **String** | Day of the week the period pertains to | [optional] +**PeriodStartHour** | **Number** | The hour the period starts at | [optional] +**PeriodStartMinutes** | **Number** | The minutes after the hour the period starts at | [optional] +**PeriodEndHour** | **Number** | The hour the period ends at | [optional] +**PeriodEndMinutes** | **Number** | The minutes after the hour the period ends at | [optional] + + + +## Enum: DayOfTheWeekEnum + + +* `Sunday` (value: `"Sunday"`) + +* `Monday` (value: `"Monday"`) + +* `Tuesday` (value: `"Tuesday"`) + +* `Wednesday` (value: `"Wednesday"`) + +* `Thursday` (value: `"Thursday"`) + +* `Friday` (value: `"Friday"`) + +* `Saturday` (value: `"Saturday"`) + + + + diff --git a/docs/StorePreOrderConfigUpdatedEvent.md b/docs/StorePreOrderConfigUpdatedEvent.md new file mode 100644 index 00000000..ab675429 --- /dev/null +++ b/docs/StorePreOrderConfigUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StorePreOrderConfigUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**PreOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md) | | [optional] +**OldPreOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StorePublishedEvent.md b/docs/StorePublishedEvent.md new file mode 100644 index 00000000..6ba33f63 --- /dev/null +++ b/docs/StorePublishedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StorePublishedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] [readonly] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreServiceChargeUpdatedEvent.md b/docs/StoreServiceChargeUpdatedEvent.md new file mode 100644 index 00000000..2b7c44cd --- /dev/null +++ b/docs/StoreServiceChargeUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreServiceChargeUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**ServiceCharge** | [**ServiceCharge**](ServiceCharge.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreStatistics.md b/docs/StoreStatistics.md new file mode 100644 index 00000000..456683e0 --- /dev/null +++ b/docs/StoreStatistics.md @@ -0,0 +1,10 @@ +# Flipdish.StoreStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store Id | [optional] +**Data** | [**[StoreDataPoint]**](StoreDataPoint.md) | Store Data Points | [optional] + + diff --git a/docs/StoreSummary.md b/docs/StoreSummary.md new file mode 100644 index 00000000..191441ac --- /dev/null +++ b/docs/StoreSummary.md @@ -0,0 +1,252 @@ +# Flipdish.StoreSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Store identifier | [optional] +**Name** | **String** | Store name | [optional] +**MenuId** | **Number** | Stores menu identifier | [optional] +**Metadata** | **{String: String}** | Store metadata | [optional] +**Currency** | **String** | Currency which used by the Store | [optional] +**Coordinates** | [**Coordinates**](Coordinates.md) | | [optional] +**StoreTimezone** | **String** | Timezone of store | [optional] +**StoreIanaTimezone** | **String** | IANA Timezone of store | [optional] +**StoreGroupId** | **Number** | 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] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/StoreTipUpdatedEvent.md b/docs/StoreTipUpdatedEvent.md new file mode 100644 index 00000000..02361732 --- /dev/null +++ b/docs/StoreTipUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.StoreTipUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Config** | [**UpdateTipConfiguration**](UpdateTipConfiguration.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreUnarchivedEvent.md b/docs/StoreUnarchivedEvent.md new file mode 100644 index 00000000..0fa690c8 --- /dev/null +++ b/docs/StoreUnarchivedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreUnarchivedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] [readonly] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreUnpublishedEvent.md b/docs/StoreUnpublishedEvent.md new file mode 100644 index 00000000..35983e81 --- /dev/null +++ b/docs/StoreUnpublishedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreUnpublishedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] [readonly] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreUpdatedEvent.md b/docs/StoreUpdatedEvent.md new file mode 100644 index 00000000..da554d9f --- /dev/null +++ b/docs/StoreUpdatedEvent.md @@ -0,0 +1,20 @@ +# Flipdish.StoreUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**OrgId** | **String** | Organisation Id | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] [readonly] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Store** | [**Store**](Store.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/StoreValidationConfig.md b/docs/StoreValidationConfig.md new file mode 100644 index 00000000..b2ae6dbe --- /dev/null +++ b/docs/StoreValidationConfig.md @@ -0,0 +1,13 @@ +# Flipdish.StoreValidationConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Store identifier | [optional] +**Name** | **String** | Name | [optional] +**IsValid** | **Boolean** | Is Store Valid for Kiosk | [optional] +**StoreGroupId** | **Number** | Store group Id | [optional] +**ConfigValidation** | [**StoreConfig**](StoreConfig.md) | | [optional] + + diff --git a/docs/StoresApi.md b/docs/StoresApi.md new file mode 100644 index 00000000..099c93ef --- /dev/null +++ b/docs/StoresApi.md @@ -0,0 +1,2078 @@ +# Flipdish.StoresApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**archiveStore**](StoresApi.md#archiveStore) | **POST** /api/v1.0/stores/{storeId}/archive | +[**assignMenu**](StoresApi.md#assignMenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | +[**cloneStore**](StoresApi.md#cloneStore) | **POST** /api/v1.0/stores/{storeId}/clone | +[**configureStoreServiceCharge**](StoresApi.md#configureStoreServiceCharge) | **POST** /api/v1.0/stores/{storeId}/servicecharge | +[**createBusinessHoursOverrideByStoreId**](StoresApi.md#createBusinessHoursOverrideByStoreId) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | +[**createStore**](StoresApi.md#createStore) | **POST** /api/v1.0/stores | +[**createStoreInProperty**](StoresApi.md#createStoreInProperty) | **POST** /api/v1.0/properties/{propertyId}/stores | +[**deleteBusinessHoursOverride**](StoresApi.md#deleteBusinessHoursOverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | +[**getBankAccountForStore**](StoresApi.md#getBankAccountForStore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | +[**getBusinessHours**](StoresApi.md#getBusinessHours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +[**getBusinessHoursOverrideByStoreId**](StoresApi.md#getBusinessHoursOverrideByStoreId) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | +[**getEndOfDayReport**](StoresApi.md#getEndOfDayReport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | +[**getPreOrderConfig**](StoresApi.md#getPreOrderConfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +[**getPreOrderPreview**](StoresApi.md#getPreOrderPreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | +[**getProcessingFeeConfigsByStoreId**](StoresApi.md#getProcessingFeeConfigsByStoreId) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | +[**getProcessingFeeConfigsByStoreIdAndPaymentAccountType**](StoresApi.md#getProcessingFeeConfigsByStoreIdAndPaymentAccountType) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | +[**getStoreById**](StoresApi.md#getStoreById) | **GET** /api/v1.0/stores/{storeId} | +[**getStoreDeliveryFeeConfig**](StoresApi.md#getStoreDeliveryFeeConfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +[**getStoreFeeConfig**](StoresApi.md#getStoreFeeConfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig | +[**getStoreHeadersByAppId**](StoresApi.md#getStoreHeadersByAppId) | **GET** /api/v1.0/{appId}/stores/header | +[**getStoreLeadTimes**](StoresApi.md#getStoreLeadTimes) | **GET** /api/v1.0/stores/{storeId}/leadTimes | +[**getStoreNetSales**](StoresApi.md#getStoreNetSales) | **GET** /api/v1.0/{appId}/stores/stats | +[**getStoreServiceCharge**](StoresApi.md#getStoreServiceCharge) | **GET** /api/v1.0/stores/{storeId}/servicecharge | +[**getStores**](StoresApi.md#getStores) | **GET** /api/v1.0/stores | +[**getStoresByAppId**](StoresApi.md#getStoresByAppId) | **GET** /api/v1.0/{appId}/stores | +[**getStoresByStoreIdWithValidations**](StoresApi.md#getStoresByStoreIdWithValidations) | **GET** /api/v1.0/{appId}/storevalidation/kiosk | +[**publishStore**](StoresApi.md#publishStore) | **POST** /api/v1.0/stores/{storeId}/publish | +[**putStoreDeliveryFeeConfig**](StoresApi.md#putStoreDeliveryFeeConfig) | **PUT** /api/v1.0/stores/{storeId}/feeConfig/deliveryZones | +[**setBusinessHours**](StoresApi.md#setBusinessHours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | +[**setPreOrdeEnabled**](StoresApi.md#setPreOrdeEnabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | +[**setStoreCollectionSettings**](StoresApi.md#setStoreCollectionSettings) | **POST** /api/v1.0/stores/{storeId}/collectionsettings | +[**setStoreLeadTimes**](StoresApi.md#setStoreLeadTimes) | **POST** /api/v1.0/stores/{storeId}/leadTimes | +[**storesSetPropertyId**](StoresApi.md#storesSetPropertyId) | **POST** /api/v1.0/stores/{storeId}/propertyId/{propertyId} | +[**supportedSalesChannelsTypes**](StoresApi.md#supportedSalesChannelsTypes) | **POST** /api/v1.0/properties/{propertyId}/stores/{storeId}/supportedSalesChannels | +[**unpublishStore**](StoresApi.md#unpublishStore) | **POST** /api/v1.0/stores/{storeId}/unpublish | +[**updatePreOrderConfig**](StoresApi.md#updatePreOrderConfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | +[**updateStore**](StoresApi.md#updateStore) | **POST** /api/v1.0/stores/{storeId} | +[**updateStoreAddress**](StoresApi.md#updateStoreAddress) | **POST** /api/v1.0/stores/{storeId}/address | +[**updateStoreAddressCoordinates**](StoresApi.md#updateStoreAddressCoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | +[**updateStoreAddressForm**](StoresApi.md#updateStoreAddressForm) | **POST** /api/v1.0/stores/{storeId}/addressform | + + + +## archiveStore + +> archiveStore(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.archiveStore(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Data, application/json, text/json, application/xml, text/xml + + +## assignMenu + +> RestApiArrayResultRestApiDefaultResponse assignMenu(storeId, menuId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let menuId = 56; // Number | +apiInstance.assignMenu(storeId, menuId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **menuId** | **Number**| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## cloneStore + +> RestApiResultStore cloneStore(storeId, settings) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let settings = new Flipdish.StoreCloneSettings(); // StoreCloneSettings | +apiInstance.cloneStore(storeId, settings, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **settings** | [**StoreCloneSettings**](StoreCloneSettings.md)| | + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## configureStoreServiceCharge + +> RestApiResultServiceCharge configureStoreServiceCharge(storeId, serviceCharge) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let serviceCharge = new Flipdish.ServiceCharge(); // ServiceCharge | +apiInstance.configureStoreServiceCharge(storeId, serviceCharge, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **serviceCharge** | [**ServiceCharge**](ServiceCharge.md)| | + +### Return type + +[**RestApiResultServiceCharge**](RestApiResultServiceCharge.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## createBusinessHoursOverrideByStoreId + +> RestApiResultBusinessHoursOverride createBusinessHoursOverrideByStoreId(storeId, businessHoursOverride) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let businessHoursOverride = new Flipdish.BusinessHoursOverrideBase(); // BusinessHoursOverrideBase | +apiInstance.createBusinessHoursOverrideByStoreId(storeId, businessHoursOverride, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **businessHoursOverride** | [**BusinessHoursOverrideBase**](BusinessHoursOverrideBase.md)| | + +### Return type + +[**RestApiResultBusinessHoursOverride**](RestApiResultBusinessHoursOverride.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## createStore + +> RestApiResultStore createStore(storeGroupId, store) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeGroupId = 56; // Number | +let store = new Flipdish.StoreCreateBase(); // StoreCreateBase | +apiInstance.createStore(storeGroupId, store, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| | + **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, Data + + +## createStoreInProperty + +> RestApiResultStore createStoreInProperty(storeGroupId, propertyId, store, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeGroupId = 56; // Number | +let propertyId = "propertyId_example"; // String | +let store = new Flipdish.StoreCreateBase(); // StoreCreateBase | +let opts = { + 'autoAssignMenu': true // Boolean | +}; +apiInstance.createStoreInProperty(storeGroupId, propertyId, store, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeGroupId** | **Number**| | + **propertyId** | **String**| | + **store** | [**StoreCreateBase**](StoreCreateBase.md)| | + **autoAssignMenu** | **Boolean**| | [optional] + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteBusinessHoursOverride + +> RestApiArrayResultRestApiDefaultResponse deleteBusinessHoursOverride(storeId, businessHoursOverrideId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let businessHoursOverrideId = 56; // Number | +apiInstance.deleteBusinessHoursOverride(storeId, businessHoursOverrideId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **businessHoursOverrideId** | **Number**| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getBankAccountForStore + +> RestApiResultAssignedBankAccount getBankAccountForStore(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.getBankAccountForStore(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**RestApiResultAssignedBankAccount**](RestApiResultAssignedBankAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getBusinessHours + +> RestApiArrayResultBusinessHoursPeriod getBusinessHours(storeId, deliveryType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +apiInstance.getBusinessHours(storeId, deliveryType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryType** | **String**| | + +### Return type + +[**RestApiArrayResultBusinessHoursPeriod**](RestApiArrayResultBusinessHoursPeriod.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getBusinessHoursOverrideByStoreId + +> RestApiPaginationResultBusinessHoursOverride getBusinessHoursOverrideByStoreId(storeId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let opts = { + 'after': new Date("2013-10-20T19:20:30+01:00"), // Date | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getBusinessHoursOverrideByStoreId(storeId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **after** | **Date**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultBusinessHoursOverride**](RestApiPaginationResultBusinessHoursOverride.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getEndOfDayReport + +> RestApiResultStoreEndOfDayReport getEndOfDayReport(storeId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let opts = { + 'date': new Date("2013-10-20T19:20:30+01:00") // Date | +}; +apiInstance.getEndOfDayReport(storeId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **date** | **Date**| | [optional] + +### Return type + +[**RestApiResultStoreEndOfDayReport**](RestApiResultStoreEndOfDayReport.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPreOrderConfig + +> RestApiResultPreOrderConfig getPreOrderConfig(storeId, deliveryType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +apiInstance.getPreOrderConfig(storeId, deliveryType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryType** | **String**| | + +### Return type + +[**RestApiResultPreOrderConfig**](RestApiResultPreOrderConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getPreOrderPreview + +> RestApiArrayResultPreOrderTime getPreOrderPreview(storeId, deliveryType, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +let opts = { + 'preOrderConfig_leadTimeMinutes': 56, // Number | Lead Time in Minutes + 'preOrderConfig_intervalMinutes': 56, // Number | Interval in minutes + 'preOrderConfig_maxOrderAheadDays': 56, // Number | Max Days to order ahead + 'preOrderConfig_includeAsap': true, // Boolean | Show ASAP as option + 'preOrderConfig_includeMoreGranularInitialTime': true, // Boolean | Granual Init' Time + 'preOrderConfig_cutOffTimePreviousDayBasic': "preOrderConfig_cutOffTimePreviousDayBasic_example", // String | Cut off time previous day + 'preOrderConfig_cutOffTimeCurrentDayBasic': "preOrderConfig_cutOffTimeCurrentDayBasic_example", // String | Cut off time current day + 'preOrderConfig_preOrderTimeDisplayType': "preOrderConfig_preOrderTimeDisplayType_example", // String | Type of time displayed. + 'preOrderConfig_alwaysAppearOpen': true, // Boolean | Specifies whether a customer can pre-order outside the store opening hours or not. + 'preOrderConfig_requireExplicitSelectAlways': true // Boolean | Force customer to select collection time. +}; +apiInstance.getPreOrderPreview(storeId, deliveryType, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryType** | **String**| | + **preOrderConfig_leadTimeMinutes** | **Number**| Lead Time in Minutes | [optional] + **preOrderConfig_intervalMinutes** | **Number**| Interval in minutes | [optional] + **preOrderConfig_maxOrderAheadDays** | **Number**| Max Days to order ahead | [optional] + **preOrderConfig_includeAsap** | **Boolean**| Show ASAP as option | [optional] + **preOrderConfig_includeMoreGranularInitialTime** | **Boolean**| Granual Init' Time | [optional] + **preOrderConfig_cutOffTimePreviousDayBasic** | **String**| Cut off time previous day | [optional] + **preOrderConfig_cutOffTimeCurrentDayBasic** | **String**| Cut off time current day | [optional] + **preOrderConfig_preOrderTimeDisplayType** | **String**| Type of time displayed. | [optional] + **preOrderConfig_alwaysAppearOpen** | **Boolean**| Specifies whether a customer can pre-order outside the store opening hours or not. | [optional] + **preOrderConfig_requireExplicitSelectAlways** | **Boolean**| Force customer to select collection time. | [optional] + +### Return type + +[**RestApiArrayResultPreOrderTime**](RestApiArrayResultPreOrderTime.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getProcessingFeeConfigsByStoreId + +> RestApiArrayResultProcessingFeeConfig getProcessingFeeConfigsByStoreId(storeId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let opts = { + 'appNameId': "appNameId_example" // String | +}; +apiInstance.getProcessingFeeConfigsByStoreId(storeId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **appNameId** | **String**| | [optional] + +### Return type + +[**RestApiArrayResultProcessingFeeConfig**](RestApiArrayResultProcessingFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getProcessingFeeConfigsByStoreIdAndPaymentAccountType + +> RestApiResultProcessingFeeConfig getProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let paymentAccountType = "paymentAccountType_example"; // String | +let opts = { + 'appNameId': "appNameId_example" // String | +}; +apiInstance.getProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **paymentAccountType** | **String**| | + **appNameId** | **String**| | [optional] + +### Return type + +[**RestApiResultProcessingFeeConfig**](RestApiResultProcessingFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getStoreById + +> RestApiResultStore getStoreById(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.getStoreById(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoreDeliveryFeeConfig + +> RestApiArrayResultStoreDeliveryZoneFeeConfig getStoreDeliveryFeeConfig(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.getStoreDeliveryFeeConfig(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### 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, Data + + +## getStoreFeeConfig + +> StoreFeeConfig getStoreFeeConfig(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.getStoreFeeConfig(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**StoreFeeConfig**](StoreFeeConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, FeeConfigId, StoreId, StartTime, PercentFeeCardOrders, PercentFeeCashOrders, PercentFeeCardOrdersWeb, PercentFeeCashOrdersWeb, PercentFeeCardOrdersKiosk, PercentFeeCashOrdersKiosk, FixedFeeCardOrdersKiosk, FixedFeeCashOrdersKiosk, PercentFeeCardOrdersKioskChargedToCustomerIncludingVat, FixedFeeCardOrdersKioskChargedToCustomerIncludingVat, PercentFeeCashOrdersKioskChargedToCustomerIncludingVat, FixedFeeCashOrdersKioskChargedToCustomerIncludingVat, FixedFeeCardOrders, FixedFeeCashOrders, PercentFeeCardOrdersChargedToCustomerIncludingVat, FixedFeeCardOrdersChargedToCustomerIncludingVat, PercentFeeCashOrdersChargedToCustomerIncludingVat, FixedFeeCashOrdersChargedToCustomerIncludingVat, PercentFeeTips, PercentFeeTipsCollection, PercentFeeTipsDelivery, TaxRatePercent, PercentFeeCardOrdersLocationService, PercentFeeCashOrdersLocationService, FixedFeeCardOrdersLocationService, FixedFeeCashOrdersLocationService, PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat, PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat, FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat, FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat, PercentFeeDelivery, FixedFeeDelivery, PercentFeeCardPosTransaction, FixedFeeCardPosTransaction, PercentFeeOrderWithGoogle, FixedFeeOrderWithGoogle + + +## getStoreHeadersByAppId + +> RestApiPaginationResultStoreHeader getStoreHeadersByAppId(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let appId = "appId_example"; // String | +let opts = { + 'storeNameQuery': "storeNameQuery_example", // String | + 'salesChannelType': "salesChannelType_example", // String | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getStoreHeadersByAppId(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeNameQuery** | **String**| | [optional] + **salesChannelType** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreHeader**](RestApiPaginationResultStoreHeader.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoreLeadTimes + +> RestApiResultOrderLeadTimes getStoreLeadTimes(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.getStoreLeadTimes(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### 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, Data + + +## getStoreNetSales + +> RestApiArrayResultStoreStatistics getStoreNetSales(appId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let appId = "appId_example"; // String | +let storeId = [null]; // [Number] | +apiInstance.getStoreNetSales(appId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **storeId** | [**[Number]**](Number.md)| | + +### Return type + +[**RestApiArrayResultStoreStatistics**](RestApiArrayResultStoreStatistics.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoreServiceCharge + +> ServiceCharge getStoreServiceCharge(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.getStoreServiceCharge(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**ServiceCharge**](ServiceCharge.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, StoreId, PercentageValue, Enabled, IsOptional, DisplayWithProcessingFee, IncludesVouchers + + +## getStores + +> RestApiPaginationResultStore getStores(opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let opts = { + 'searchQuery': "searchQuery_example", // String | + 'page': 56, // Number | + 'limit': 56, // Number | + 'storeGroupId': 56 // Number | +}; +apiInstance.getStores(opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchQuery** | **String**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + **storeGroupId** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultStore**](RestApiPaginationResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoresByAppId + +> RestApiPaginationResultStore getStoresByAppId(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let appId = "appId_example"; // String | +let opts = { + 'searchQuery': "searchQuery_example", // String | + 'salesChannelType': "salesChannelType_example", // String | + 'excludeUnpublished': true, // Boolean | + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getStoresByAppId(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **searchQuery** | **String**| | [optional] + **salesChannelType** | **String**| | [optional] + **excludeUnpublished** | **Boolean**| | [optional] + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultStore**](RestApiPaginationResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getStoresByStoreIdWithValidations + +> RestApiPaginationResultStoreValidationConfig getStoresByStoreIdWithValidations(storeId, appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = [null]; // [Number] | +let appId = "appId_example"; // String | +let opts = { + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getStoresByStoreIdWithValidations(storeId, appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | [**[Number]**](Number.md)| | + **appId** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultStoreValidationConfig**](RestApiPaginationResultStoreValidationConfig.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## publishStore + +> publishStore(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.publishStore(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Data, application/json, text/json, application/xml, text/xml + + +## putStoreDeliveryFeeConfig + +> putStoreDeliveryFeeConfig(storeId, feeConfigUpdateRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let feeConfigUpdateRequest = new Flipdish.StoreDeliveryZoneFeeConfigUpdateRequest(); // StoreDeliveryZoneFeeConfigUpdateRequest | +apiInstance.putStoreDeliveryFeeConfig(storeId, feeConfigUpdateRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **feeConfigUpdateRequest** | [**StoreDeliveryZoneFeeConfigUpdateRequest**](StoreDeliveryZoneFeeConfigUpdateRequest.md)| | + +### Return type + +null (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**: Message, ErrorCode, StackTrace, application/json, text/json, application/xml, text/xml + + +## setBusinessHours + +> RestApiResultBusinessHoursPeriod setBusinessHours(storeId, deliveryType, businessHoursPeriod) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +let businessHoursPeriod = new Flipdish.BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | +apiInstance.setBusinessHours(storeId, deliveryType, businessHoursPeriod, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **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, Data + + +## setPreOrdeEnabled + +> RestApiArrayResultRestApiDefaultResponse setPreOrdeEnabled(storeId, deliveryType, enabled) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +let enabled = true; // Boolean | +apiInstance.setPreOrdeEnabled(storeId, deliveryType, enabled, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryType** | **String**| | + **enabled** | **Boolean**| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## setStoreCollectionSettings + +> RestApiResultRestApiDefaultResponse setStoreCollectionSettings(storeId, settings, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let settings = new Flipdish.StoreCollectionSettings(); // StoreCollectionSettings | +let opts = { + 'inheritFromProperty': true // Boolean | +}; +apiInstance.setStoreCollectionSettings(storeId, settings, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **settings** | [**StoreCollectionSettings**](StoreCollectionSettings.md)| | + **inheritFromProperty** | **Boolean**| | [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, Data, Message, ErrorCode, StackTrace + + +## setStoreLeadTimes + +> RestApiResultOrderLeadTimes setStoreLeadTimes(storeId, leadTime) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let leadTime = new Flipdish.LeadTime(); // LeadTime | +apiInstance.setStoreLeadTimes(storeId, leadTime, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **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, Data + + +## storesSetPropertyId + +> Object storesSetPropertyId(storeId, propertyId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let propertyId = "propertyId_example"; // String | +apiInstance.storesSetPropertyId(storeId, propertyId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **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 + + +## supportedSalesChannelsTypes + +> supportedSalesChannelsTypes(propertyId, storeId, salesChannelTypes) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let propertyId = "propertyId_example"; // String | +let storeId = 56; // Number | +let salesChannelTypes = ["null"]; // [String] | +apiInstance.supportedSalesChannelsTypes(propertyId, storeId, salesChannelTypes, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propertyId** | **String**| | + **storeId** | **Number**| | + **salesChannelTypes** | [**[String]**](String.md)| | + +### Return type + +null (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 + + +## unpublishStore + +> unpublishStore(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +apiInstance.unpublishStore(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Data, application/json, text/json, application/xml, text/xml + + +## updatePreOrderConfig + +> RestApiArrayResultRestApiDefaultResponse updatePreOrderConfig(storeId, deliveryType, preOrderConfig) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let deliveryType = "deliveryType_example"; // String | +let preOrderConfig = new Flipdish.PreOrderConfig(); // PreOrderConfig | +apiInstance.updatePreOrderConfig(storeId, deliveryType, preOrderConfig, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **deliveryType** | **String**| | + **preOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md)| | + +### Return type + +[**RestApiArrayResultRestApiDefaultResponse**](RestApiArrayResultRestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + + +## updateStore + +> RestApiResultStore updateStore(storeId, store) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let store = new Flipdish.StoreBase(); // StoreBase | +apiInstance.updateStore(storeId, store, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **store** | [**StoreBase**](StoreBase.md)| | + +### Return type + +[**RestApiResultStore**](RestApiResultStore.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateStoreAddress + +> RestApiResultStoreAddress updateStoreAddress(storeId, storeAddress) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let storeAddress = new Flipdish.StoreAddressBase(); // StoreAddressBase | +apiInstance.updateStoreAddress(storeId, storeAddress, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **storeAddress** | [**StoreAddressBase**](StoreAddressBase.md)| | + +### Return type + +[**RestApiResultStoreAddress**](RestApiResultStoreAddress.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateStoreAddressCoordinates + +> RestApiResultCoordinates updateStoreAddressCoordinates(storeId, coordinates, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let coordinates = new Flipdish.Coordinates(); // Coordinates | +let opts = { + 'appNameId': "appNameId_example" // String | +}; +apiInstance.updateStoreAddressCoordinates(storeId, coordinates, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **coordinates** | [**Coordinates**](Coordinates.md)| | + **appNameId** | **String**| | [optional] + +### Return type + +[**RestApiResultCoordinates**](RestApiResultCoordinates.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updateStoreAddressForm + +> Object updateStoreAddressForm(storeId, address) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StoresApi(); +let storeId = 56; // Number | +let address = new Flipdish.StoreAddressForm(); // StoreAddressForm | +apiInstance.updateStoreAddressForm(storeId, address, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **address** | [**StoreAddressForm**](StoreAddressForm.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/Stream.md b/docs/Stream.md new file mode 100644 index 00000000..f7b35e7a --- /dev/null +++ b/docs/Stream.md @@ -0,0 +1,16 @@ +# Flipdish.Stream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanRead** | **Boolean** | | [optional] [readonly] +**CanSeek** | **Boolean** | | [optional] [readonly] +**CanTimeout** | **Boolean** | | [optional] [readonly] +**CanWrite** | **Boolean** | | [optional] [readonly] +**Length** | **Number** | | [optional] [readonly] +**Position** | **Number** | | [optional] +**ReadTimeout** | **Number** | | [optional] +**WriteTimeout** | **Number** | | [optional] + + diff --git a/docs/StripeAccountLinkRequest.md b/docs/StripeAccountLinkRequest.md new file mode 100644 index 00000000..a2b6a1ad --- /dev/null +++ b/docs/StripeAccountLinkRequest.md @@ -0,0 +1,34 @@ +# Flipdish.StripeAccountLinkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StripeId** | **String** | Stripe's own connected account identifier | [optional] +**ReturnUrl** | **String** | URL to be hit if link creation succeeds | [optional] +**Collect** | **String** | Which information to collect from users at this stage | [optional] +**Type** | **String** | Either onboarding or edit user information | [optional] + + + +## Enum: CollectEnum + + +* `CurrentlyDue` (value: `"CurrentlyDue"`) + +* `EventuallyDue` (value: `"EventuallyDue"`) + + + + + +## Enum: TypeEnum + + +* `Onboarding` (value: `"Onboarding"`) + +* `Update` (value: `"Update"`) + + + + diff --git a/docs/StripeConnectedAccount.md b/docs/StripeConnectedAccount.md new file mode 100644 index 00000000..a4263dab --- /dev/null +++ b/docs/StripeConnectedAccount.md @@ -0,0 +1,69 @@ +# Flipdish.StripeConnectedAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlipdishConnectedAccountId** | **Number** | Flipdish connected account identifier | [optional] +**StripeId** | **String** | Stripe's own connected account identifier | [optional] +**WhitelabelConfigId** | **Number** | Id of the WhitelabelConfig the connected account is assigned to | [optional] +**CardPaymentsStatus** | **String** | Card payments capability status (Inactive, Pending, Active, Unrequested) | [optional] +**TransfersStatus** | **String** | Transfers capability status (Inactive, Pending, Active, Unrequested) | [optional] +**AccountStatus** | **String** | Current status of the account | [optional] +**PayoutsEnabled** | **Boolean** | Payouts Enabled status | [optional] +**PaymentsEnabled** | **Boolean** | Payments Enabled status | [optional] + + + +## Enum: CardPaymentsStatusEnum + + +* `Inactive` (value: `"Inactive"`) + +* `Pending` (value: `"Pending"`) + +* `Active` (value: `"Active"`) + +* `Unrequested` (value: `"Unrequested"`) + + + + + +## Enum: TransfersStatusEnum + + +* `Inactive` (value: `"Inactive"`) + +* `Pending` (value: `"Pending"`) + +* `Active` (value: `"Active"`) + +* `Unrequested` (value: `"Unrequested"`) + + + + + +## Enum: AccountStatusEnum + + +* `Disabled` (value: `"Disabled"`) + +* `Enabled` (value: `"Enabled"`) + +* `AdditionalInformationRequired` (value: `"AdditionalInformationRequired"`) + +* `PendingVerification` (value: `"PendingVerification"`) + +* `Unverified` (value: `"Unverified"`) + +* `Rejected` (value: `"Rejected"`) + +* `UpdateExternalAccount` (value: `"UpdateExternalAccount"`) + +* `PlatformPaused` (value: `"PlatformPaused"`) + + + + diff --git a/docs/StripeConnectedAccountInfo.md b/docs/StripeConnectedAccountInfo.md new file mode 100644 index 00000000..cc537115 --- /dev/null +++ b/docs/StripeConnectedAccountInfo.md @@ -0,0 +1,68 @@ +# Flipdish.StripeConnectedAccountInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountStatus** | **String** | Stripe connected account status | [optional] +**StripeId** | **String** | Stripe connected account id | [optional] +**CardPaymentStatus** | **String** | Current status of the Card Payment capability of the account | [optional] +**PayoutScheduleInterval** | **String** | Payouts Schedule Interval | [optional] +**PayoutsEnabled** | **Boolean** | Payouts Enabled status | [optional] +**PayoutsPaused** | **Boolean** | Flag indicating if payouts are paused | [optional] +**PaymentsEnabled** | **Boolean** | Flag indicating if payments are enabled | [optional] + + + +## Enum: AccountStatusEnum + + +* `Disabled` (value: `"Disabled"`) + +* `Enabled` (value: `"Enabled"`) + +* `AdditionalInformationRequired` (value: `"AdditionalInformationRequired"`) + +* `PendingVerification` (value: `"PendingVerification"`) + +* `Unverified` (value: `"Unverified"`) + +* `Rejected` (value: `"Rejected"`) + +* `UpdateExternalAccount` (value: `"UpdateExternalAccount"`) + +* `PlatformPaused` (value: `"PlatformPaused"`) + + + + + +## Enum: CardPaymentStatusEnum + + +* `Inactive` (value: `"Inactive"`) + +* `Pending` (value: `"Pending"`) + +* `Active` (value: `"Active"`) + +* `Unrequested` (value: `"Unrequested"`) + + + + + +## Enum: PayoutScheduleIntervalEnum + + +* `Manual` (value: `"Manual"`) + +* `Daily` (value: `"Daily"`) + +* `Weekly` (value: `"Weekly"`) + +* `Monthly` (value: `"Monthly"`) + + + + diff --git a/docs/StripeCustomConnectApi.md b/docs/StripeCustomConnectApi.md new file mode 100644 index 00000000..f2bac4bd --- /dev/null +++ b/docs/StripeCustomConnectApi.md @@ -0,0 +1,466 @@ +# Flipdish.StripeCustomConnectApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createBankAccountAndConnectedAccount**](StripeCustomConnectApi.md#createBankAccountAndConnectedAccount) | **POST** /api/v1.0/{appId}/customconnect/bank-account | +[**createStripeConnectedAccount**](StripeCustomConnectApi.md#createStripeConnectedAccount) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account | +[**createStripeConnectedAccountLink**](StripeCustomConnectApi.md#createStripeConnectedAccountLink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | +[**getCustomConnect**](StripeCustomConnectApi.md#getCustomConnect) | **GET** /api/v1.0/{appId}/customconnect/{storeId} | +[**getVerificationStatus**](StripeCustomConnectApi.md#getVerificationStatus) | **GET** /api/v1.0/{appId}/customconnect/verification-status | +[**setBankAccountBusinessType**](StripeCustomConnectApi.md#setBankAccountBusinessType) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | +[**stripeCustomConnectRefresh**](StripeCustomConnectApi.md#stripeCustomConnectRefresh) | **GET** /api/v1.0/{appId}/customconnect/refresh-link | +[**updateBankAccountDetails**](StripeCustomConnectApi.md#updateBankAccountDetails) | **POST** /api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details | +[**updatePayoutSchedule**](StripeCustomConnectApi.md#updatePayoutSchedule) | **POST** /api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval} | + + + +## createBankAccountAndConnectedAccount + +> RestApiResultBankAccountDetail createBankAccountAndConnectedAccount(appId, account) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let appId = "appId_example"; // String | +let account = new Flipdish.BankAccountCreate(); // BankAccountCreate | +apiInstance.createBankAccountAndConnectedAccount(appId, account, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## createStripeConnectedAccount + +> RestApiResultStripeConnectedAccount createStripeConnectedAccount(appId, bankAccountId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +apiInstance.createStripeConnectedAccount(appId, bankAccountId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + +### Return type + +[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## createStripeConnectedAccountLink + +> RestApiResultStripeConnectedAccount createStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let appId = "appId_example"; // String | +let stripeConnectedAccountId = "stripeConnectedAccountId_example"; // String | +let stripeAccountLinkRequest = new Flipdish.StripeAccountLinkRequest(); // StripeAccountLinkRequest | +apiInstance.createStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **stripeConnectedAccountId** | **String**| | + **stripeAccountLinkRequest** | [**StripeAccountLinkRequest**](StripeAccountLinkRequest.md)| | + +### Return type + +[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getCustomConnect + +> RestApiArrayResultStripeCustomConnectedAccount getCustomConnect(storeId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let storeId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.getCustomConnect(storeId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultStripeCustomConnectedAccount**](RestApiArrayResultStripeCustomConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getVerificationStatus + +> RestApiResultStripeConnectedAccount getVerificationStatus(appId, stripeConnectedAccountId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let appId = "appId_example"; // String | +let stripeConnectedAccountId = "stripeConnectedAccountId_example"; // String | +apiInstance.getVerificationStatus(appId, stripeConnectedAccountId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **stripeConnectedAccountId** | **String**| | + +### Return type + +[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## setBankAccountBusinessType + +> RestApiResultBankAccountDetail setBankAccountBusinessType(appId, bankAccountId, businessType) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let businessType = "businessType_example"; // String | +apiInstance.setBankAccountBusinessType(appId, bankAccountId, businessType, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **businessType** | **String**| | + +### Return type + +[**RestApiResultBankAccountDetail**](RestApiResultBankAccountDetail.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## stripeCustomConnectRefresh + +> Object stripeCustomConnectRefresh(linkRequestId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let linkRequestId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.stripeCustomConnectRefresh(linkRequestId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linkRequestId** | **Number**| | + **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 + + +## updateBankAccountDetails + +> RestApiResultStripeConnectedAccount updateBankAccountDetails(appId, bankAccountId, updateRequest) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let appId = "appId_example"; // String | +let bankAccountId = 56; // Number | +let updateRequest = new Flipdish.BankAccountDetailsUpdateRequest(); // BankAccountDetailsUpdateRequest | +apiInstance.updateBankAccountDetails(appId, bankAccountId, updateRequest, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **bankAccountId** | **Number**| | + **updateRequest** | [**BankAccountDetailsUpdateRequest**](BankAccountDetailsUpdateRequest.md)| | + +### Return type + +[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## updatePayoutSchedule + +> RestApiResultModelBase updatePayoutSchedule(appId, stripeConnectedAccountId, interval) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StripeCustomConnectApi(); +let appId = "appId_example"; // String | +let stripeConnectedAccountId = "stripeConnectedAccountId_example"; // String | +let interval = "interval_example"; // String | +apiInstance.updatePayoutSchedule(appId, stripeConnectedAccountId, interval, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **stripeConnectedAccountId** | **String**| | + **interval** | **String**| | + +### Return type + +[**RestApiResultModelBase**](RestApiResultModelBase.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/StripeCustomConnectedAccount.md b/docs/StripeCustomConnectedAccount.md new file mode 100644 index 00000000..f5f5606b --- /dev/null +++ b/docs/StripeCustomConnectedAccount.md @@ -0,0 +1,66 @@ +# Flipdish.StripeCustomConnectedAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | 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] + + + +## Enum: CardPaymentsStatusEnum + + +* `Inactive` (value: `"Inactive"`) + +* `Pending` (value: `"Pending"`) + +* `Active` (value: `"Active"`) + +* `Unrequested` (value: `"Unrequested"`) + + + + + +## Enum: TransfersStatusEnum + + +* `Inactive` (value: `"Inactive"`) + +* `Pending` (value: `"Pending"`) + +* `Active` (value: `"Active"`) + +* `Unrequested` (value: `"Unrequested"`) + + + + + +## Enum: AccountStatusEnum + + +* `Disabled` (value: `"Disabled"`) + +* `Enabled` (value: `"Enabled"`) + +* `AdditionalInformationRequired` (value: `"AdditionalInformationRequired"`) + +* `PendingVerification` (value: `"PendingVerification"`) + +* `Unverified` (value: `"Unverified"`) + +* `Rejected` (value: `"Rejected"`) + +* `UpdateExternalAccount` (value: `"UpdateExternalAccount"`) + +* `PlatformPaused` (value: `"PlatformPaused"`) + + + + diff --git a/docs/StripeTerminalConnectionToken.md b/docs/StripeTerminalConnectionToken.md new file mode 100644 index 00000000..1966dbce --- /dev/null +++ b/docs/StripeTerminalConnectionToken.md @@ -0,0 +1,9 @@ +# Flipdish.StripeTerminalConnectionToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **String** | Connection Token | [optional] + + diff --git a/docs/StripeTerminalLocation.md b/docs/StripeTerminalLocation.md new file mode 100644 index 00000000..8265658c --- /dev/null +++ b/docs/StripeTerminalLocation.md @@ -0,0 +1,9 @@ +# Flipdish.StripeTerminalLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | **String** | Registered location of the terminal | [optional] + + diff --git a/docs/StuartApi.md b/docs/StuartApi.md new file mode 100644 index 00000000..1da8e3ed --- /dev/null +++ b/docs/StuartApi.md @@ -0,0 +1,206 @@ +# Flipdish.StuartApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**stuartCancelJob**](StuartApi.md#stuartCancelJob) | **DELETE** /api/v1.0/stuart/jobs/{jobId} | +[**stuartGetJob**](StuartApi.md#stuartGetJob) | **GET** /api/v1.0/stuart/jobs/{jobId} | +[**stuartGetStuartSettings**](StuartApi.md#stuartGetStuartSettings) | **GET** /api/v1.0/stuart/settings/{storeId} | +[**stuartPostStuartSettings**](StuartApi.md#stuartPostStuartSettings) | **POST** /api/v1.0/stuart/settings/{storeId} | + + + +## stuartCancelJob + +> Object stuartCancelJob(jobId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StuartApi(); +let jobId = 56; // Number | +let storeId = 56; // Number | +apiInstance.stuartCancelJob(jobId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobId** | **Number**| | + **storeId** | **Number**| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## stuartGetJob + +> RestApiResultJobResponse stuartGetJob(jobId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StuartApi(); +let jobId = 56; // Number | +let storeId = 56; // Number | +apiInstance.stuartGetJob(jobId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobId** | **Number**| | + **storeId** | **Number**| | + +### Return type + +[**RestApiResultJobResponse**](RestApiResultJobResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## stuartGetStuartSettings + +> RestApiResultStuartSettings stuartGetStuartSettings(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StuartApi(); +let storeId = 56; // Number | +apiInstance.stuartGetStuartSettings(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**RestApiResultStuartSettings**](RestApiResultStuartSettings.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## stuartPostStuartSettings + +> Object stuartPostStuartSettings(storeId, stuartSettings) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.StuartApi(); +let storeId = 56; // Number | +let stuartSettings = new Flipdish.StuartSettings(); // StuartSettings | +apiInstance.stuartPostStuartSettings(storeId, stuartSettings, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **stuartSettings** | [**StuartSettings**](StuartSettings.md)| | + +### Return type + +**Object** + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/StuartSettings.md b/docs/StuartSettings.md new file mode 100644 index 00000000..777a30f2 --- /dev/null +++ b/docs/StuartSettings.md @@ -0,0 +1,56 @@ +# Flipdish.StuartSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientId** | **String** | Client Id | [optional] +**ClientSecret** | **String** | Client Secret | [optional] +**Enabled** | **Boolean** | Enabled | [optional] +**WebhookUrlBasicAuthentication** | **String** | Webhook url to settle in the Stuart portal | [optional] +**OverrideWebhookUrl** | **Boolean** | Override Flipdish Webhook Url | [optional] +**MinutesToPickupBeforeThanDeliveryTime** | **Number** | MinutesToPickupBeforeThanDeliveryTime | [optional] +**PackageType** | **String** | Package type | [optional] +**TransportType** | **String** | Transport type | [optional] +**CancelOrderIfStuartCancelDelivery** | **Boolean** | Determines if Flipdish order should be cancel when Stuart cancels delivery | [optional] +**TransportPrices** | [**StuartSettingsTransportPrices**](StuartSettingsTransportPrices.md) | | [optional] + + + +## Enum: PackageTypeEnum + + +* `Xsmall` (value: `"Xsmall"`) + +* `Small` (value: `"Small"`) + +* `Medium` (value: `"Medium"`) + +* `Large` (value: `"Large"`) + +* `Xlarge` (value: `"Xlarge"`) + + + + + +## Enum: TransportTypeEnum + + +* `Bike` (value: `"Bike"`) + +* `Cargobike` (value: `"Cargobike"`) + +* `Cargobikexl` (value: `"Cargobikexl"`) + +* `Motorbike` (value: `"Motorbike"`) + +* `Motorbikexl` (value: `"Motorbikexl"`) + +* `Car` (value: `"Car"`) + +* `Van` (value: `"Van"`) + + + + diff --git a/docs/StuartSettingsTransportPrices.md b/docs/StuartSettingsTransportPrices.md new file mode 100644 index 00000000..5874800d --- /dev/null +++ b/docs/StuartSettingsTransportPrices.md @@ -0,0 +1,15 @@ +# Flipdish.StuartSettingsTransportPrices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bike** | **Number** | | [optional] +**Cargobike** | **Number** | | [optional] +**Cargobikexl** | **Number** | | [optional] +**Motorbike** | **Number** | | [optional] +**Motorbikexl** | **Number** | | [optional] +**Car** | **Number** | | [optional] +**Van** | **Number** | | [optional] + + diff --git a/docs/Subscription.md b/docs/Subscription.md new file mode 100644 index 00000000..fce124c9 --- /dev/null +++ b/docs/Subscription.md @@ -0,0 +1,276 @@ +# Flipdish.Subscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Products** | [**[SubscriptionProduct]**](SubscriptionProduct.md) | Products | +**NextInvoiceAmount** | **Number** | Next invoice amount | [optional] +**NextInvoiceBillingDate** | **Date** | Next invoice billing date | [optional] +**UpcomingInvoiceItems** | [**[InvoiceItem]**](InvoiceItem.md) | Upcoming invoice items | [optional] +**UpcomingInvoiceDiscounts** | [**[InvoiceDiscount]**](InvoiceDiscount.md) | Upcoming invoice discounts | [optional] +**UpcomingInvoice** | [**UpcomingInvoice**](UpcomingInvoice.md) | | [optional] +**SubscriptionId** | **String** | The subscription identifier | +**Name** | **String** | | +**Status** | **String** | Status | +**Currency** | **String** | Currency | +**User** | **String** | User | +**DefaultPaymentDescription** | **String** | Default payment description | [optional] +**CancellationRequestDate** | **Date** | Cancellation Date | [optional] +**CancellationDate** | **Date** | Cancel Date | [optional] + + + +## Enum: StatusEnum + + +* `Incomplete` (value: `"Incomplete"`) + +* `IncompleteExpired` (value: `"IncompleteExpired"`) + +* `Trialing` (value: `"Trialing"`) + +* `Active` (value: `"Active"`) + +* `PastDue` (value: `"PastDue"`) + +* `Canceled` (value: `"Canceled"`) + +* `Unpaid` (value: `"Unpaid"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/SubscriptionInvoice.md b/docs/SubscriptionInvoice.md new file mode 100644 index 00000000..518bf742 --- /dev/null +++ b/docs/SubscriptionInvoice.md @@ -0,0 +1,269 @@ +# Flipdish.SubscriptionInvoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InvoiceId** | **String** | The invoice identifier | +**_Number** | **String** | Invoice number | +**Total** | **Number** | Total | [optional] +**Currency** | **String** | Currency | +**Status** | **String** | Status | +**SubscriptionId** | **String** | The subscription identifier | [optional] +**PaidAt** | **Date** | Paid At | [optional] +**FinalisedAt** | **Date** | Finalised At | [optional] +**PdfLink** | **String** | Pdf Link | +**HostedUrl** | **String** | Hosted Url | +**Overdue** | **Boolean** | Overdue | + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: StatusEnum + + +* `Draft` (value: `"Draft"`) + +* `Open` (value: `"Open"`) + +* `Paid` (value: `"Paid"`) + +* `UnCollectible` (value: `"UnCollectible"`) + +* `Void` (value: `"Void"`) + + + + diff --git a/docs/SubscriptionProduct.md b/docs/SubscriptionProduct.md new file mode 100644 index 00000000..6481c2ee --- /dev/null +++ b/docs/SubscriptionProduct.md @@ -0,0 +1,30 @@ +# Flipdish.SubscriptionProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProductId** | **String** | Product Identifier | +**Name** | **String** | Name | +**Quantity** | **Number** | Quantity | +**PricePerUnit** | **Number** | Price Per Unit | [optional] +**PriceTotal** | **Number** | Price Total | [optional] +**PaymentFrequency** | **String** | Payment Frequency | +**Stores** | [**[SubscriptionStore]**](SubscriptionStore.md) | Stores | [optional] + + + +## Enum: PaymentFrequencyEnum + + +* `day` (value: `"day"`) + +* `week` (value: `"week"`) + +* `month` (value: `"month"`) + +* `year` (value: `"year"`) + + + + diff --git a/docs/SubscriptionStore.md b/docs/SubscriptionStore.md new file mode 100644 index 00000000..e56fba47 --- /dev/null +++ b/docs/SubscriptionStore.md @@ -0,0 +1,10 @@ +# Flipdish.SubscriptionStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Store Id | +**Name** | **String** | Name | + + diff --git a/docs/SubscriptionSummary.md b/docs/SubscriptionSummary.md new file mode 100644 index 00000000..9274efd0 --- /dev/null +++ b/docs/SubscriptionSummary.md @@ -0,0 +1,272 @@ +# Flipdish.SubscriptionSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextInvoiceAmount** | **Number** | Next invoice amount | [optional] +**NextInvoiceBillingDate** | **Date** | Next invoice billing date | [optional] +**SubscriptionId** | **String** | The subscription identifier | +**Name** | **String** | | +**Status** | **String** | Status | +**Currency** | **String** | Currency | +**User** | **String** | User | +**DefaultPaymentDescription** | **String** | Default payment description | [optional] +**CancellationRequestDate** | **Date** | Cancellation Date | [optional] +**CancellationDate** | **Date** | Cancel Date | [optional] + + + +## Enum: StatusEnum + + +* `Incomplete` (value: `"Incomplete"`) + +* `IncompleteExpired` (value: `"IncompleteExpired"`) + +* `Trialing` (value: `"Trialing"`) + +* `Active` (value: `"Active"`) + +* `PastDue` (value: `"PastDue"`) + +* `Canceled` (value: `"Canceled"`) + +* `Unpaid` (value: `"Unpaid"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md new file mode 100644 index 00000000..5823cbb8 --- /dev/null +++ b/docs/SubscriptionsApi.md @@ -0,0 +1,166 @@ +# Flipdish.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(appId, subscriptionId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SubscriptionsApi(); +let appId = "appId_example"; // String | +let subscriptionId = "subscriptionId_example"; // String | +apiInstance.getSubscriptionById(appId, subscriptionId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## getSubscriptionsForApp + +> RestApiArrayResultSubscriptionSummary getSubscriptionsForApp(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SubscriptionsApi(); +let appId = "appId_example"; // String | +let opts = { + 'excludeNotOwnedSubscriptions': true, // Boolean | + 'storeId': [null], // [Number] | + 'excludeCancelledSubscriptions': true // Boolean | +}; +apiInstance.getSubscriptionsForApp(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **excludeNotOwnedSubscriptions** | **Boolean**| | [optional] + **storeId** | [**[Number]**](Number.md)| | [optional] + **excludeCancelledSubscriptions** | **Boolean**| | [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, Data, Message, ErrorCode, StackTrace + + +## hasCustomerGotPaymentMethodOnFile + +> RestApiResultHasPaymentMethodResponse hasCustomerGotPaymentMethodOnFile(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.SubscriptionsApi(); +let appId = "appId_example"; // String | +let opts = { + 'email': "email_example" // String | +}; +apiInstance.hasCustomerGotPaymentMethodOnFile(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + diff --git a/docs/SupportedCountry.md b/docs/SupportedCountry.md new file mode 100644 index 00000000..11dec157 --- /dev/null +++ b/docs/SupportedCountry.md @@ -0,0 +1,57 @@ +# Flipdish.SupportedCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CountryCode** | **String** | Country code | [optional] +**Name** | **String** | Nice display name for a country | [optional] +**PhoneCode** | **Number** | Country internatinoal phone code prefix | [optional] +**LanguageCode** | **String** | Language code | [optional] +**LanguageName** | **String** | Language name | [optional] +**OtpNumber** | **String** | The phone number provided to Store staff which, in conjunction with a one-time-code, will connect them to the customer. | [optional] +**SupportNumber** | **String** | The store's support phone number, displayed to customers. | [optional] +**AddressLayout** | **String** | Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom. | [optional] +**PostCodeType** | **String** | Post code type | [optional] +**SupportRegion** | **String** | Supported region. This is not used. | [optional] + + + +## Enum: AddressLayoutEnum + + +* `BuildingFirst` (value: `"BuildingFirst"`) + +* `AddressFirst` (value: `"AddressFirst"`) + +* `FullStreetAddressFirst` (value: `"FullStreetAddressFirst"`) + + + + + +## Enum: PostCodeTypeEnum + + +* `None` (value: `"None"`) + +* `PostCode` (value: `"PostCode"`) + +* `Zip` (value: `"Zip"`) + + + + + +## Enum: SupportRegionEnum + + +* `Default` (value: `"Default"`) + +* `Spain` (value: `"Spain"`) + +* `Benelux` (value: `"Benelux"`) + + + + diff --git a/docs/TaxItem.md b/docs/TaxItem.md new file mode 100644 index 00000000..f5cc4ee0 --- /dev/null +++ b/docs/TaxItem.md @@ -0,0 +1,11 @@ +# Flipdish.TaxItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | The name of the tax item. | [optional] +**Rate** | **Number** | The tax rate applied to the item. | [optional] +**Amount** | **Number** | The amount of tax applied to the item. | [optional] + + diff --git a/docs/TaxRate.md b/docs/TaxRate.md new file mode 100644 index 00000000..29e23691 --- /dev/null +++ b/docs/TaxRate.md @@ -0,0 +1,11 @@ +# Flipdish.TaxRate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**Percentage** | **Number** | | [optional] +**Total** | **Number** | | [optional] + + diff --git a/docs/Teammate.md b/docs/Teammate.md new file mode 100644 index 00000000..d5147be8 --- /dev/null +++ b/docs/Teammate.md @@ -0,0 +1,65 @@ +# Flipdish.Teammate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TeammateId** | **String** | Unique indentifier | [optional] +**UserId** | **Number** | User ID of the teammate | [optional] +**Name** | **String** | Name | [optional] +**LastActivity** | **Date** | Last activity | [optional] +**AppId** | **String** | Access level is for this App | [optional] +**InvitationStatus** | **String** | Invitation status | [optional] +**Email** | **String** | Email address | [optional] +**AppAccessLevel** | **String** | App access level | [optional] +**HasAccessToAllStores** | **Boolean** | The user has access to all stores for the app (including new stores that added later) | [optional] +**StoreIds** | **[Number]** | Store IDs the user has access to (if HasAccessToAllStores is false) | [optional] +**PropertyIds** | **[String]** | Property Ids the user has access to (if HasAccessToAllStores is false) | [optional] + + + +## Enum: InvitationStatusEnum + + +* `Pending` (value: `"Pending"`) + +* `Accepted` (value: `"Accepted"`) + +* `Expired` (value: `"Expired"`) + + + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + +* `Onboarding` (value: `"Onboarding"`) + +* `Support` (value: `"Support"`) + + + + diff --git a/docs/TeammateBase.md b/docs/TeammateBase.md new file mode 100644 index 00000000..ce4ac6b9 --- /dev/null +++ b/docs/TeammateBase.md @@ -0,0 +1,45 @@ +# Flipdish.TeammateBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppAccessLevel** | **String** | App access level | [optional] +**HasAccessToAllStores** | **Boolean** | The user has access to all stores for the app (including new stores that added later) | [optional] +**StoreIds** | **[Number]** | Store IDs the user has access to (if HasAccessToAllStores is false) | [optional] +**PropertyIds** | **[String]** | Property Ids the user has access to (if HasAccessToAllStores is false) | [optional] + + + +## Enum: AppAccessLevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + +* `Onboarding` (value: `"Onboarding"`) + +* `Support` (value: `"Support"`) + + + + diff --git a/docs/TeammateDeletedEvent.md b/docs/TeammateDeletedEvent.md new file mode 100644 index 00000000..c8d75651 --- /dev/null +++ b/docs/TeammateDeletedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.TeammateDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/TeammateInviteAcceptedEvent.md b/docs/TeammateInviteAcceptedEvent.md new file mode 100644 index 00000000..e99d7f50 --- /dev/null +++ b/docs/TeammateInviteAcceptedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.TeammateInviteAcceptedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/TeammateInviteSentEvent.md b/docs/TeammateInviteSentEvent.md new file mode 100644 index 00000000..dcf964fd --- /dev/null +++ b/docs/TeammateInviteSentEvent.md @@ -0,0 +1,17 @@ +# Flipdish.TeammateInviteSentEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/TeammateUpdatedEvent.md b/docs/TeammateUpdatedEvent.md new file mode 100644 index 00000000..95fde8c9 --- /dev/null +++ b/docs/TeammateUpdatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.TeammateUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Teammate** | [**Teammate**](Teammate.md) | | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/TeammatesApi.md b/docs/TeammatesApi.md new file mode 100644 index 00000000..41a7db67 --- /dev/null +++ b/docs/TeammatesApi.md @@ -0,0 +1,496 @@ +# Flipdish.TeammatesApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createTeammate**](TeammatesApi.md#createTeammate) | **POST** /api/v1.0/{appId}/teammates | +[**deleteTeammate**](TeammatesApi.md#deleteTeammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | +[**getTeammateByAppIdAndTeammateId**](TeammatesApi.md#getTeammateByAppIdAndTeammateId) | **GET** /api/v1.0/{appId}/teammates/{id} | +[**getTeammatesByAppId**](TeammatesApi.md#getTeammatesByAppId) | **GET** /api/v1.0/{appId}/teammates | +[**grantaccess**](TeammatesApi.md#grantaccess) | **POST** /api/v1.0/{appId}/teammates/grantaccess | +[**redeemInvitation**](TeammatesApi.md#redeemInvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | +[**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(appId, teammate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let appId = "appId_example"; // String | +let teammate = new Flipdish.CreateTeammate(); // CreateTeammate | +apiInstance.createTeammate(appId, teammate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **teammate** | [**CreateTeammate**](CreateTeammate.md)| | + +### Return type + +[**RestApiResultTeammate**](RestApiResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteTeammate + +> deleteTeammate(appId, id) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let appId = "appId_example"; // String | +let id = "id_example"; // String | +apiInstance.deleteTeammate(appId, id, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **id** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## getTeammateByAppIdAndTeammateId + +> RestApiResultTeammate getTeammateByAppIdAndTeammateId(appId, id) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let appId = "appId_example"; // String | +let id = "id_example"; // String | +apiInstance.getTeammateByAppIdAndTeammateId(appId, id, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **id** | **String**| | + +### Return type + +[**RestApiResultTeammate**](RestApiResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getTeammatesByAppId + +> RestApiArrayResultTeammate getTeammatesByAppId(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let appId = "appId_example"; // String | +apiInstance.getTeammatesByAppId(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiArrayResultTeammate**](RestApiArrayResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## grantaccess + +> Object grantaccess(appId, teammate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let appId = "appId_example"; // String | +let teammate = new Flipdish.CreateTeammate(); // CreateTeammate | +apiInstance.grantaccess(appId, teammate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## redeemInvitation + +> RestApiResultRedeemInvitationResult redeemInvitation(otc, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let otc = "otc_example"; // String | +let appId = "appId_example"; // String | +apiInstance.redeemInvitation(otc, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **otc** | **String**| | + **appId** | **String**| | + +### Return type + +[**RestApiResultRedeemInvitationResult**](RestApiResultRedeemInvitationResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## teammatesAcceptInvitation + +> RestApiResultAcceptInvitationResult teammatesAcceptInvitation(otc, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let otc = "otc_example"; // String | +let appId = "appId_example"; // String | +apiInstance.teammatesAcceptInvitation(otc, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## teammatesAcceptInvitations + +> RestApiArrayResultRedeemInvitationResult teammatesAcceptInvitations() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +apiInstance.teammatesAcceptInvitations((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## teammatesPendingInvitations + +> RestApiArrayResultPendingInvitation teammatesPendingInvitations() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +apiInstance.teammatesPendingInvitations((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data + + +## updateTeammate + +> RestApiResultTeammate updateTeammate(appId, id, teammate) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TeammatesApi(); +let appId = "appId_example"; // String | +let id = "id_example"; // String | +let teammate = new Flipdish.TeammateBase(); // TeammateBase | +apiInstance.updateTeammate(appId, id, teammate, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **id** | **String**| | + **teammate** | [**TeammateBase**](TeammateBase.md)| | + +### Return type + +[**RestApiResultTeammate**](RestApiResultTeammate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + diff --git a/docs/TelemetrySeriesProperty.md b/docs/TelemetrySeriesProperty.md new file mode 100644 index 00000000..332bb1ed --- /dev/null +++ b/docs/TelemetrySeriesProperty.md @@ -0,0 +1,13 @@ +# Flipdish.TelemetrySeriesProperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**Type** | **String** | | [optional] +**IntValues** | **[Number]** | | [optional] +**StringValues** | **[String]** | | [optional] +**DoubleValues** | **[Number]** | | [optional] + + diff --git a/docs/TelemetrySeriesQueryParameters.md b/docs/TelemetrySeriesQueryParameters.md new file mode 100644 index 00000000..689d7923 --- /dev/null +++ b/docs/TelemetrySeriesQueryParameters.md @@ -0,0 +1,12 @@ +# Flipdish.TelemetrySeriesQueryParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KioskId** | **String** | | [optional] +**Variables** | **[String]** | | [optional] +**StartDate** | **Date** | | [optional] +**EndDate** | **Date** | | [optional] + + diff --git a/docs/TelemetrySeriesResult.md b/docs/TelemetrySeriesResult.md new file mode 100644 index 00000000..15996375 --- /dev/null +++ b/docs/TelemetrySeriesResult.md @@ -0,0 +1,10 @@ +# Flipdish.TelemetrySeriesResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamps** | **[Date]** | | [optional] +**Properties** | [**[TelemetrySeriesProperty]**](TelemetrySeriesProperty.md) | | [optional] + + diff --git a/docs/TelephonyConfig.md b/docs/TelephonyConfig.md new file mode 100644 index 00000000..4ca44154 --- /dev/null +++ b/docs/TelephonyConfig.md @@ -0,0 +1,29 @@ +# Flipdish.TelephonyConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TelephonyConfigId** | **Number** | ID of the phone call | [optional] +**ApmEnabled** | **Boolean** | APM enabled flag | [optional] +**Type** | **String** | Type of telephony service | [optional] +**ConsentEnabled** | **Boolean** | Consent enabled flag | [optional] +**PhoneNumber** | **String** | APM phone number of the store | [optional] +**SendAppLinkSms** | **Boolean** | Send app link SMS flag | [optional] +**UseCustomAppLinkSmsMessage** | **Boolean** | Use custom app link SMS message flag | [optional] +**UseCustomVoiceMessage** | **Boolean** | Use custom voice message flag | [optional] +**AppLinkSmsMessage** | **String** | App link SMS message | [optional] +**ResendApmMessageAfterDays** | **Number** | Amount of days to resend APM message | [optional] + + + +## Enum: TypeEnum + + +* `PreRecorded` (value: `"PreRecorded"`) + +* `VoiceAI` (value: `"VoiceAI"`) + + + + diff --git a/docs/TelephonyConfigUpdatedEvent.md b/docs/TelephonyConfigUpdatedEvent.md new file mode 100644 index 00000000..b07f32f3 --- /dev/null +++ b/docs/TelephonyConfigUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.TelephonyConfigUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**StoreId** | **Number** | Store Id | [optional] +**TelephonyConfig** | [**TelephonyConfig**](TelephonyConfig.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/TerminalIotApi.md b/docs/TerminalIotApi.md new file mode 100644 index 00000000..22707e70 --- /dev/null +++ b/docs/TerminalIotApi.md @@ -0,0 +1,52 @@ +# Flipdish.TerminalIotApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getTerminalIotConnection**](TerminalIotApi.md#getTerminalIotConnection) | **POST** /api/v1.0/terminaliot/connect | + + + +## getTerminalIotConnection + +> RestApiResultKioskIotConnectionParameters getTerminalIotConnection() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TerminalIotApi(); +apiInstance.getTerminalIotConnection((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RestApiResultKioskIotConnectionParameters**](RestApiResultKioskIotConnectionParameters.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/ThirdPartyFeesDetails.md b/docs/ThirdPartyFeesDetails.md new file mode 100644 index 00000000..5e0ac9f1 --- /dev/null +++ b/docs/ThirdPartyFeesDetails.md @@ -0,0 +1,11 @@ +# Flipdish.ThirdPartyFeesDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryIntegrationFee** | **Number** | Third party integration delivery fee | [optional] +**DeliveryTipFee** | **Number** | Third party integration delivery tip fee | [optional] +**TotalThirdPartyFees** | **Number** | Total third party integration fees | [optional] + + diff --git a/docs/TipConfiguration.md b/docs/TipConfiguration.md new file mode 100644 index 00000000..84baa931 --- /dev/null +++ b/docs/TipConfiguration.md @@ -0,0 +1,15 @@ +# Flipdish.TipConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | **Number** | Configuration is for this StoreId | [optional] +**IsEnabled** | **Boolean** | Are tips enabled? | [optional] +**AllowCustomTips** | **Boolean** | Are custom tips allowed? | [optional] +**AllowRoundUp** | **Boolean** | Is round up allowed? | [optional] +**AllowEmojis** | **Boolean** | Are emojis allowed? | [optional] +**Percentages** | **[Number]** | Ordered list of tip breakpoints (smallest -&gt; largest) | [optional] +**DefaultPercentage** | **Number** | Defines a default percentage, it must be in the list of Percentages | [optional] + + diff --git a/docs/TipsApi.md b/docs/TipsApi.md new file mode 100644 index 00000000..3f17ecc0 --- /dev/null +++ b/docs/TipsApi.md @@ -0,0 +1,106 @@ +# Flipdish.TipsApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**tipConfigGet**](TipsApi.md#tipConfigGet) | **GET** /api/v1.0/stores/{storeId}/tipconfig | +[**tipConfigUpsert**](TipsApi.md#tipConfigUpsert) | **POST** /api/v1.0/stores/{storeId}/tipconfig | + + + +## tipConfigGet + +> RestApiResultTipConfiguration tipConfigGet(storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TipsApi(); +let storeId = 56; // Number | +apiInstance.tipConfigGet(storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + +### Return type + +[**RestApiResultTipConfiguration**](RestApiResultTipConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## tipConfigUpsert + +> RestApiResultTipConfiguration tipConfigUpsert(storeId, updateConfig) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.TipsApi(); +let storeId = 56; // Number | +let updateConfig = new Flipdish.UpdateTipConfiguration(); // UpdateTipConfiguration | +apiInstance.tipConfigUpsert(storeId, updateConfig, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storeId** | **Number**| | + **updateConfig** | [**UpdateTipConfiguration**](UpdateTipConfiguration.md)| | + +### Return type + +[**RestApiResultTipConfiguration**](RestApiResultTipConfiguration.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + diff --git a/docs/UnRegisterCardReaderRequest.md b/docs/UnRegisterCardReaderRequest.md new file mode 100644 index 00000000..ca70ca7d --- /dev/null +++ b/docs/UnRegisterCardReaderRequest.md @@ -0,0 +1,10 @@ +# Flipdish.UnRegisterCardReaderRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReaderId** | **String** | Device card readerid | +**KioskDeviceId** | **String** | The kiosk device id | + + diff --git a/docs/UpcomingInvoice.md b/docs/UpcomingInvoice.md new file mode 100644 index 00000000..876bb6e4 --- /dev/null +++ b/docs/UpcomingInvoice.md @@ -0,0 +1,16 @@ +# Flipdish.UpcomingInvoice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **Number** | Amount | [optional] +**NextBillingDate** | **Date** | Next billing date | [optional] +**Subtotal** | **Number** | Subtotal | +**TotalExcludingTax** | **Number** | Total excluding tax | [optional] +**AmountDue** | **Number** | Amount due | +**Tax** | **Number** | Tax | +**Items** | [**[InvoiceItem]**](InvoiceItem.md) | Items | [optional] +**Discounts** | [**[InvoiceDiscount]**](InvoiceDiscount.md) | Discounts | [optional] + + diff --git a/docs/UpdateAppStoreApp.md b/docs/UpdateAppStoreApp.md new file mode 100644 index 00000000..77dddb98 --- /dev/null +++ b/docs/UpdateAppStoreApp.md @@ -0,0 +1,148 @@ +# Flipdish.UpdateAppStoreApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | **String** | | +**ConfigurationType** | **String** | | +**StoreSelectorType** | **String** | | +**FieldGroups** | [**[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** | **Boolean** | | [optional] +**Name** | **String** | | +**Description** | **String** | | +**IsEnabled** | **Boolean** | | [optional] +**Categories** | **[String]** | | +**Countries** | **[String]** | | +**DeveloperName** | **String** | | [optional] + + + +## Enum: ConfigurationTypeEnum + + +* `ExternalLink` (value: `"ExternalLink"`) + +* `FlipdishHosted` (value: `"FlipdishHosted"`) + + + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + + +## Enum: TeammateAppAccessLevelEnum + + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManger` (value: `"FinanceManger"`) + + + + + +## Enum: PermissionsTypeEnum + + +* `Teammate` (value: `"Teammate"`) + + + + + +## Enum: [CategoriesEnum] + + +* `PointOfSale` (value: `"PointOfSale"`) + +* `DeliveryAndLogistics` (value: `"DeliveryAndLogistics"`) + +* `CRM` (value: `"CRM"`) + +* `GiftCard` (value: `"GiftCard"`) + +* `Accounting` (value: `"Accounting"`) + +* `LoyaltyAndMarketing` (value: `"LoyaltyAndMarketing"`) + +* `Other` (value: `"Other"`) + + + + + +## Enum: [CountriesEnum] + + +* `GB` (value: `"GB"`) + +* `IE` (value: `"IE"`) + +* `FR` (value: `"FR"`) + +* `ES` (value: `"ES"`) + +* `PT` (value: `"PT"`) + +* `IT` (value: `"IT"`) + +* `DE` (value: `"DE"`) + +* `PL` (value: `"PL"`) + +* `BE` (value: `"BE"`) + +* `LU` (value: `"LU"`) + +* `NL` (value: `"NL"`) + +* `US` (value: `"US"`) + +* `CA` (value: `"CA"`) + +* `BG` (value: `"BG"`) + +* `MX` (value: `"MX"`) + +* `AU` (value: `"AU"`) + +* `NZ` (value: `"NZ"`) + + + + diff --git a/docs/UpdateAppStoreAppConfiguration.md b/docs/UpdateAppStoreAppConfiguration.md new file mode 100644 index 00000000..d688f1d4 --- /dev/null +++ b/docs/UpdateAppStoreAppConfiguration.md @@ -0,0 +1,11 @@ +# Flipdish.UpdateAppStoreAppConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **Boolean** | | +**StoreIds** | **[Number]** | | [optional] +**Settings** | [**[Setting]**](Setting.md) | | [optional] + + diff --git a/docs/UpdateAppStoreAppConfigurationValuesBatch.md b/docs/UpdateAppStoreAppConfigurationValuesBatch.md new file mode 100644 index 00000000..c360fdc2 --- /dev/null +++ b/docs/UpdateAppStoreAppConfigurationValuesBatch.md @@ -0,0 +1,9 @@ +# Flipdish.UpdateAppStoreAppConfigurationValuesBatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Settings** | [**[Setting]**](Setting.md) | | [optional] + + diff --git a/docs/UpdateAppStoreAppConfigurationWebhookDTO.md b/docs/UpdateAppStoreAppConfigurationWebhookDTO.md new file mode 100644 index 00000000..5d7c2653 --- /dev/null +++ b/docs/UpdateAppStoreAppConfigurationWebhookDTO.md @@ -0,0 +1,12 @@ +# Flipdish.UpdateAppStoreAppConfigurationWebhookDTO + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **String** | | +**IsEnabled** | **Boolean** | | +**StoreIds** | **[Number]** | | [optional] +**Settings** | [**[Setting]**](Setting.md) | | [optional] + + diff --git a/docs/UpdateAppStoreAppExternalProduct.md b/docs/UpdateAppStoreAppExternalProduct.md new file mode 100644 index 00000000..897894f4 --- /dev/null +++ b/docs/UpdateAppStoreAppExternalProduct.md @@ -0,0 +1,9 @@ +# Flipdish.UpdateAppStoreAppExternalProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalProductId** | **String** | | [optional] + + diff --git a/docs/UpdateCatalogGroupReference.md b/docs/UpdateCatalogGroupReference.md new file mode 100644 index 00000000..c7358c8d --- /dev/null +++ b/docs/UpdateCatalogGroupReference.md @@ -0,0 +1,20 @@ +# Flipdish.UpdateCatalogGroupReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogGroupId** | **String** | Identifier of the ProductId to use as SubProduct | +**CatalogItemId** | **String** | Identifier of the ProductId to use as SubProduct | [optional] +**GroupType** | **String** | Type of the SupProduct | + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/UpdateCatalogItem.md b/docs/UpdateCatalogItem.md new file mode 100644 index 00000000..79582cc3 --- /dev/null +++ b/docs/UpdateCatalogItem.md @@ -0,0 +1,16 @@ +# Flipdish.UpdateCatalogItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sku** | **String** | Stock Keeping Unit (SKU) | [optional] +**Name** | **String** | Product name | [optional] +**Description** | **String** | Product description | [optional] +**Price** | **Number** | Product price | [optional] +**ImageFileName** | **String** | Image File Name | [optional] +**Alcohol** | **Boolean** | Product contains alcohol | [optional] +**Groups** | [**[UpdateCatalogGroupReference]**](UpdateCatalogGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] + + diff --git a/docs/UpdateDriverNotificationToken.md b/docs/UpdateDriverNotificationToken.md new file mode 100644 index 00000000..a975285f --- /dev/null +++ b/docs/UpdateDriverNotificationToken.md @@ -0,0 +1,9 @@ +# Flipdish.UpdateDriverNotificationToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PushNotificationsToken** | **String** | Push notifications token, cannot be null | + + diff --git a/docs/UpdateDriverProfileModel.md b/docs/UpdateDriverProfileModel.md new file mode 100644 index 00000000..08417b71 --- /dev/null +++ b/docs/UpdateDriverProfileModel.md @@ -0,0 +1,9 @@ +# Flipdish.UpdateDriverProfileModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | The new name of the Driver. | [optional] + + diff --git a/docs/UpdateFulfillmentStatesConfiguration.md b/docs/UpdateFulfillmentStatesConfiguration.md new file mode 100644 index 00000000..a49a514c --- /dev/null +++ b/docs/UpdateFulfillmentStatesConfiguration.md @@ -0,0 +1,27 @@ +# Flipdish.UpdateFulfillmentStatesConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OverwriteSystemTemplate** | **Boolean** | Set to true if a system configuration template is to be updated (permissions also needed) | [optional] +**StoreIds** | **[Number]** | Stores id's | [optional] +**StoreSelectorType** | **String** | Store Selector Type | [optional] +**States** | [**[FulfillmentStatusConfigurationItem]**](FulfillmentStatusConfigurationItem.md) | Settings | [optional] +**AutomaticTransitionsEnabled** | **Boolean** | Enable automatic transitions | [optional] +**Name** | **String** | Name | [optional] + + + +## Enum: StoreSelectorTypeEnum + + +* `None` (value: `"None"`) + +* `Single` (value: `"Single"`) + +* `Multiple` (value: `"Multiple"`) + + + + diff --git a/docs/UpdateGroup.md b/docs/UpdateGroup.md new file mode 100644 index 00000000..52cf98bb --- /dev/null +++ b/docs/UpdateGroup.md @@ -0,0 +1,16 @@ +# Flipdish.UpdateGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sku** | **String** | Stock Keeping Unit (SKU) | [optional] +**Name** | **String** | Group name | [optional] +**AutogenerateDisplayText** | **Boolean** | Autogenerate display text in ordering applications | [optional] +**ImageFileName** | **String** | Image File Name | [optional] +**MinSelectCount** | **Number** | Minimum number of items that the user has to select | [optional] +**MaxSelectCount** | **Number** | Maximum number of items that the user has to select | [optional] +**Products** | [**[UpdateProductReference]**](UpdateProductReference.md) | Collection of items associated with this group | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] + + diff --git a/docs/UpdateGroupReference.md b/docs/UpdateGroupReference.md new file mode 100644 index 00000000..3d90de3a --- /dev/null +++ b/docs/UpdateGroupReference.md @@ -0,0 +1,19 @@ +# Flipdish.UpdateGroupReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Identifier of the ProductId to use as SubProduct | +**GroupType** | **String** | Type of the SupProduct | + + + +## Enum: GroupTypeEnum + + +* `ModifierGroup` (value: `"ModifierGroup"`) + + + + diff --git a/docs/UpdateLocationArea.md b/docs/UpdateLocationArea.md new file mode 100644 index 00000000..ea5a71bd --- /dev/null +++ b/docs/UpdateLocationArea.md @@ -0,0 +1,11 @@ +# Flipdish.UpdateLocationArea + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocationAreaId** | **Number** | Location Area Id | +**LocationAreaName** | **String** | Descriptive LocationArea name | +**IsDeleted** | **Boolean** | Sets if the Location Area should be soft deleted or not | [optional] + + diff --git a/docs/UpdateMetafieldDefinition.md b/docs/UpdateMetafieldDefinition.md new file mode 100644 index 00000000..89971d52 --- /dev/null +++ b/docs/UpdateMetafieldDefinition.md @@ -0,0 +1,22 @@ +# Flipdish.UpdateMetafieldDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | Field Name | [optional] +**Description** | **String** | Field Description | [optional] +**Behaviors** | **[String]** | Enable Metafield Behaviors | [optional] + + + +## Enum: [BehaviorsEnum] + + +* `SendToOrder` (value: `"SendToOrder"`) + +* `SendToMenu` (value: `"SendToMenu"`) + + + + diff --git a/docs/UpdateMobileAppsSubmissionStatus.md b/docs/UpdateMobileAppsSubmissionStatus.md new file mode 100644 index 00000000..24b85aa7 --- /dev/null +++ b/docs/UpdateMobileAppsSubmissionStatus.md @@ -0,0 +1,59 @@ +# Flipdish.UpdateMobileAppsSubmissionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MobileAppsSubmissionStatusId** | **Number** | Mobile Apps Submission Status Id | [optional] +**Type** | **String** | Mobile Type | [optional] +**AppStatus** | **String** | Mobile App Status | [optional] +**UpdateStatus** | **String** | Mobile App Status | [optional] +**LastUpdateStatusTime** | **Date** | Mobile LastUpdateStatusTime | [optional] +**Notes** | **String** | Mobile Notes | [optional] + + + +## Enum: TypeEnum + + +* `None` (value: `"None"`) + +* `Android` (value: `"Android"`) + +* `IOS` (value: `"IOS"`) + + + + + +## Enum: AppStatusEnum + + +* `None` (value: `"None"`) + +* `Published` (value: `"Published"`) + +* `Unpublished` (value: `"Unpublished"`) + + + + + +## Enum: UpdateStatusEnum + + +* `None` (value: `"None"`) + +* `Submitted` (value: `"Submitted"`) + +* `InReview` (value: `"InReview"`) + +* `Rejected` (value: `"Rejected"`) + +* `Approved` (value: `"Approved"`) + +* `Published` (value: `"Published"`) + + + + diff --git a/docs/UpdatePayGreenConfigurationRequest.md b/docs/UpdatePayGreenConfigurationRequest.md new file mode 100644 index 00000000..56145fa1 --- /dev/null +++ b/docs/UpdatePayGreenConfigurationRequest.md @@ -0,0 +1,10 @@ +# Flipdish.UpdatePayGreenConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **String** | | [optional] +**AssignedStores** | **[Number]** | | [optional] + + diff --git a/docs/UpdateProduct.md b/docs/UpdateProduct.md new file mode 100644 index 00000000..778e70ff --- /dev/null +++ b/docs/UpdateProduct.md @@ -0,0 +1,16 @@ +# Flipdish.UpdateProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sku** | **String** | Stock Keeping Unit (SKU) | [optional] +**Name** | **String** | Product name | [optional] +**Description** | **String** | Product description | [optional] +**Price** | **Number** | Product price | [optional] +**ImageFileName** | **String** | Image File Name | [optional] +**Alcohol** | **Boolean** | Product contains alcohol | [optional] +**Groups** | [**[UpdateGroupReference]**](UpdateGroupReference.md) | Collection of groups associated with this item | [optional] +**Metafields** | [**[Metafield]**](Metafield.md) | Collection of metafields | [optional] + + diff --git a/docs/UpdateProductReference.md b/docs/UpdateProductReference.md new file mode 100644 index 00000000..42af7e18 --- /dev/null +++ b/docs/UpdateProductReference.md @@ -0,0 +1,22 @@ +# Flipdish.UpdateProductReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogItemId** | **String** | Identifier of the CatalogItemId to use as SubProduct | +**ProductType** | **String** | Type of the SupProduct | +**PreselectedQuantity** | **Number** | Quantity of the modifier that will be set when the parent product is placed in the basket | [optional] + + + +## Enum: ProductTypeEnum + + +* `Product` (value: `"Product"`) + +* `Modifier` (value: `"Modifier"`) + + + + diff --git a/docs/UpdateStorePayGreenConfigurationRequest.md b/docs/UpdateStorePayGreenConfigurationRequest.md new file mode 100644 index 00000000..27d2df3e --- /dev/null +++ b/docs/UpdateStorePayGreenConfigurationRequest.md @@ -0,0 +1,10 @@ +# Flipdish.UpdateStorePayGreenConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | **Boolean** | | [optional] +**PayGreenConfigurationId** | **Number** | | [optional] + + diff --git a/docs/UpdateTipConfiguration.md b/docs/UpdateTipConfiguration.md new file mode 100644 index 00000000..1353a3c1 --- /dev/null +++ b/docs/UpdateTipConfiguration.md @@ -0,0 +1,14 @@ +# Flipdish.UpdateTipConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsEnabled** | **Boolean** | Are tips enabled? | [optional] +**AllowCustomTips** | **Boolean** | Are custom tips allowed? | [optional] +**AllowRoundUp** | **Boolean** | Is round up allowed? | [optional] +**AllowEmojis** | **Boolean** | Are emojis allowed? | [optional] +**Percentages** | **[Number]** | Ordered list of tip breakpoints (smallest -&gt; largest) | [optional] +**DefaultPercentage** | **Number** | Defines a default percentage, it must be in the list of Percentages | [optional] + + diff --git a/docs/UpdateVoucher.md b/docs/UpdateVoucher.md new file mode 100644 index 00000000..0d76b78d --- /dev/null +++ b/docs/UpdateVoucher.md @@ -0,0 +1,75 @@ +# Flipdish.UpdateVoucher + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PromotionId** | **Number** | Promotion ID to update | [optional] +**PromotionName** | **String** | The updated name of the promotion | [optional] +**PromotionAwardMenuItemPublicIds** | **[String]** | The updated menu items that the promotion awards | [optional] +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**Stores** | **[Number]** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **Number** | Valid on orders on or above | [optional] +**TakesPriority** | **Boolean** | Takes priority | [optional] +**IsEnabled** | **Boolean** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **Boolean** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **Boolean** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **Boolean** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **Boolean** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **Boolean** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **Boolean** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **Boolean** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **Boolean** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **Boolean** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **Boolean** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**ForceDiscount** | **Boolean** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **[String]** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**[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** | **Number** | Customer UserID | [optional] +**MaxRedemptions** | **Number** | Maximum number of times the voucher can be redeemed (used) | [optional] + + + +## Enum: [ChannelRestrictionsEnum] + + +* `Ios` (value: `"Ios"`) + +* `Android` (value: `"Android"`) + +* `Web` (value: `"Web"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `Google` (value: `"Google"`) + + + + + +## Enum: VoucherSubTypeEnum + + +* `None` (value: `"None"`) + +* `SignUp` (value: `"SignUp"`) + +* `Loyalty` (value: `"Loyalty"`) + +* `Loyalty25` (value: `"Loyalty25"`) + +* `Retention` (value: `"Retention"`) + +* `SecondaryRetention` (value: `"SecondaryRetention"`) + +* `Custom` (value: `"Custom"`) + + + + diff --git a/docs/UpdateVoucherUsage.md b/docs/UpdateVoucherUsage.md new file mode 100644 index 00000000..554377b9 --- /dev/null +++ b/docs/UpdateVoucherUsage.md @@ -0,0 +1,11 @@ +# Flipdish.UpdateVoucherUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsUsed** | **Boolean** | Flag indicating whether the voucher is used | [optional] +**UsedByCustomerId** | **Number** | 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] + + diff --git a/docs/UserAnsweredSignupQuestionsEvent.md b/docs/UserAnsweredSignupQuestionsEvent.md new file mode 100644 index 00000000..9c177a91 --- /dev/null +++ b/docs/UserAnsweredSignupQuestionsEvent.md @@ -0,0 +1,17 @@ +# Flipdish.UserAnsweredSignupQuestionsEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**SignupAnswers** | **String** | The users answers | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/UserCreatedEvent.md b/docs/UserCreatedEvent.md new file mode 100644 index 00000000..fedd744a --- /dev/null +++ b/docs/UserCreatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.UserCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/UserDeletedEvent.md b/docs/UserDeletedEvent.md new file mode 100644 index 00000000..27402a65 --- /dev/null +++ b/docs/UserDeletedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.UserDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/UserEventInfo.md b/docs/UserEventInfo.md new file mode 100644 index 00000000..97aa1add --- /dev/null +++ b/docs/UserEventInfo.md @@ -0,0 +1,12 @@ +# Flipdish.UserEventInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Number** | User Id | [optional] +**UserName** | **String** | User Name | [optional] +**UserPhoneNumber** | **String** | User Phone Number | [optional] +**UserEmail** | **String** | User Email | [optional] + + diff --git a/docs/UserFlipdishAccount.md b/docs/UserFlipdishAccount.md new file mode 100644 index 00000000..65324133 --- /dev/null +++ b/docs/UserFlipdishAccount.md @@ -0,0 +1,10 @@ +# Flipdish.UserFlipdishAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlipdishAccountId** | **Number** | Flipdish Account Id | [optional] +**Name** | **String** | Flipdish Account Name | [optional] + + diff --git a/docs/UserInfo.md b/docs/UserInfo.md new file mode 100644 index 00000000..e66d9cf6 --- /dev/null +++ b/docs/UserInfo.md @@ -0,0 +1,35 @@ +# Flipdish.UserInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **String** | The user's phone number. | [optional] +**Email** | **String** | The user's email address. | [optional] +**EmailConfirmed** | **Boolean** | Indicates if the user's email address has been confirmed. | [optional] +**PreventFromUsingCards** | **Boolean** | Indicates if the user is prevented from using cards. | [optional] +**IsUserPhoneNumberBlocked** | **Boolean** | Indicates if the user's phone number is blocked. | [optional] +**UserWhiteLabels** | [**[UserWhiteLabelInfo]**](UserWhiteLabelInfo.md) | List of white label information associated with the user. | [optional] +**UserId** | **Number** | The unique identifier for the user. | [optional] +**UserName** | **String** | The user's username. | [optional] +**CustomerName** | **String** | The customer's name. | [optional] +**HasLoggedIn** | **Boolean** | Indicates if the user has logged in. | [optional] +**DisableAppRatingControl** | **Boolean** | Indicates if the app rating control is disabled for the user. | [optional] +**GloballyOptedOut** | **Boolean** | Indicates if the user has globally opted out. | [optional] +**CompletedOrderCount** | **Number** | The number of completed orders by the user. | [optional] +**CancelledOrderCount** | **Number** | The number of cancelled orders by the user. | [optional] +**OrderTotalValue** | **Number** | The total value of orders placed by the user. | [optional] +**TsMostRecentOrder** | **Date** | The timestamp of the user's most recent order. | [optional] +**TsFirstOrder** | **Date** | The timestamp of the user's first order. | [optional] +**IsRestaurantUser** | **Boolean** | Indicates if the user is a restaurant user. | [optional] +**Installs** | [**[AppInstall]**](AppInstall.md) | List of app installs associated with the user. | [optional] +**DeliveryLocations** | [**[DeliveryLocation]**](DeliveryLocation.md) | List of delivery locations associated with the user. | [optional] +**PaymentAccounts** | [**[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** | [**[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** | [**[UserMonthlyCommission]**](UserMonthlyCommission.md) | User's monthly commissions. | [optional] + + diff --git a/docs/UserLoginEvent.md b/docs/UserLoginEvent.md new file mode 100644 index 00000000..a89bed1d --- /dev/null +++ b/docs/UserLoginEvent.md @@ -0,0 +1,17 @@ +# Flipdish.UserLoginEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/UserMonthlyCommission.md b/docs/UserMonthlyCommission.md new file mode 100644 index 00000000..9befa4b0 --- /dev/null +++ b/docs/UserMonthlyCommission.md @@ -0,0 +1,246 @@ +# Flipdish.UserMonthlyCommission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **Number** | The unique identifier of the user. | [optional] +**MonthStart** | **Date** | The start date of the month for which the commission is calculated. | [optional] +**CommissionAmount** | **Number** | 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] + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + diff --git a/docs/UserNote.md b/docs/UserNote.md new file mode 100644 index 00000000..bb30cd5e --- /dev/null +++ b/docs/UserNote.md @@ -0,0 +1,15 @@ +# Flipdish.UserNote + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserNoteId** | **Number** | Identifier for the user note. | [optional] +**UserId** | **Number** | User identifier associated with the note. | [optional] +**Note** | **String** | Note content. | [optional] +**TsCreate** | **Date** | Creation timestamp of the note. | [optional] +**CreatedByUserId** | **Number** | 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] + + diff --git a/docs/UserPasswordCreatedEvent.md b/docs/UserPasswordCreatedEvent.md new file mode 100644 index 00000000..248d39fe --- /dev/null +++ b/docs/UserPasswordCreatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.UserPasswordCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/UserRole.md b/docs/UserRole.md new file mode 100644 index 00000000..e6177978 --- /dev/null +++ b/docs/UserRole.md @@ -0,0 +1,10 @@ +# Flipdish.UserRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RolesUserIn** | **[String]** | Roles the user is in | [optional] +**RolesUserNotIn** | **[String]** | Roles the user is not in | [optional] + + diff --git a/docs/UserSearch.md b/docs/UserSearch.md new file mode 100644 index 00000000..4f74779b --- /dev/null +++ b/docs/UserSearch.md @@ -0,0 +1,32 @@ +# Flipdish.UserSearch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | User Id | [optional] +**PhoneNumber** | **String** | Phone Number | [optional] +**Email** | **String** | Email | [optional] +**CustomerName** | **String** | Customer Name | [optional] +**HasLoggedIn** | **Boolean** | Has Logged In | [optional] +**UserDiscriminator** | **String** | User Discriminator | [optional] +**TsCreate** | **Date** | Timestamp Created | [optional] +**WhiteLabelConfigs** | [**[UserWhiteLabelConfig]**](UserWhiteLabelConfig.md) | WhiteLabel Configs | [optional] +**UserType** | **String** | User Type | [optional] [readonly] + + + +## Enum: UserDiscriminatorEnum + + +* `All` (value: `"All"`) + +* `ApplicationUsers` (value: `"ApplicationUsers"`) + +* `RestaurantUsers` (value: `"RestaurantUsers"`) + +* `HydraUsers` (value: `"HydraUsers"`) + + + + diff --git a/docs/UserStoreInfo.md b/docs/UserStoreInfo.md new file mode 100644 index 00000000..9da1a440 --- /dev/null +++ b/docs/UserStoreInfo.md @@ -0,0 +1,11 @@ +# Flipdish.UserStoreInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PropertyId** | **String** | Property Id | [optional] +**StoreId** | **Number** | Store Id | [optional] +**StoreName** | **String** | Store Name | [optional] + + diff --git a/docs/UserUpdatedEvent.md b/docs/UserUpdatedEvent.md new file mode 100644 index 00000000..18d121e3 --- /dev/null +++ b/docs/UserUpdatedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.UserUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/UserWhiteLabelConfig.md b/docs/UserWhiteLabelConfig.md new file mode 100644 index 00000000..dbcc905a --- /dev/null +++ b/docs/UserWhiteLabelConfig.md @@ -0,0 +1,44 @@ +# Flipdish.UserWhiteLabelConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Identifier | [optional] +**ConfigId** | **Number** | WlConfigId | [optional] +**AppId** | **String** | Brand Id | [optional] +**Name** | **String** | WhiteLabel Name | [optional] +**Level** | **String** | WhiteLabel Access Level | [optional] + + + +## Enum: LevelEnum + + +* `None` (value: `"None"`) + +* `Owner` (value: `"Owner"`) + +* `StoreOwner` (value: `"StoreOwner"`) + +* `PropertyOwner` (value: `"PropertyOwner"`) + +* `ManagedOwner` (value: `"ManagedOwner"`) + +* `Integrator` (value: `"Integrator"`) + +* `PropertyManager` (value: `"PropertyManager"`) + +* `StoreManager` (value: `"StoreManager"`) + +* `StoreStaff` (value: `"StoreStaff"`) + +* `StoreReadOnlyAccess` (value: `"StoreReadOnlyAccess"`) + +* `FinanceManager` (value: `"FinanceManager"`) + +* `Support` (value: `"Support"`) + + + + diff --git a/docs/UserWhiteLabelInfo.md b/docs/UserWhiteLabelInfo.md new file mode 100644 index 00000000..239b92d6 --- /dev/null +++ b/docs/UserWhiteLabelInfo.md @@ -0,0 +1,11 @@ +# Flipdish.UserWhiteLabelInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WlConfigId** | **Number** | WhiteLabelConfig Id | [optional] +**AppId** | **String** | Brand Id (AppId) | [optional] +**WhiteLabelName** | **String** | WhiteLabel Name | [optional] + + diff --git a/docs/UsersApi.md b/docs/UsersApi.md new file mode 100644 index 00000000..a2c27ca6 --- /dev/null +++ b/docs/UsersApi.md @@ -0,0 +1,940 @@ +# Flipdish.UsersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addUserNote**](UsersApi.md#addUserNote) | **POST** /api/v1.0/users/{userId}/AddUserNote | +[**addUserToRole**](UsersApi.md#addUserToRole) | **POST** /api/v1.0/users/{userId}/AddUserToRole/{roleName} | +[**anonymizeUser**](UsersApi.md#anonymizeUser) | **POST** /api/v1.0/users/{userId}/AnonymizeUser | +[**blockUserPhoneNumber**](UsersApi.md#blockUserPhoneNumber) | **POST** /api/v1.0/users/{userId}/BlockUserPhoneNumber | +[**getPreviousOrderCountForStore**](UsersApi.md#getPreviousOrderCountForStore) | **GET** /api/v1.0/users/{userId}/previousordercount/{storeId} | +[**getRestaurantUserAccounts**](UsersApi.md#getRestaurantUserAccounts) | **GET** /api/v1.0/users/{userId}/RestaurantUserAccounts | +[**getRestaurantUserStores**](UsersApi.md#getRestaurantUserStores) | **GET** /api/v1.0/users/{userId}/RestaurantUserStores | +[**getRoles**](UsersApi.md#getRoles) | **GET** /api/v1.0/users/roles | +[**getRolesAndUnassignedRoles**](UsersApi.md#getRolesAndUnassignedRoles) | **GET** /api/v1.0/users/{userId}/roles | +[**getUserById**](UsersApi.md#getUserById) | **GET** /api/v1.0/users/{userId} | +[**getUserNotes**](UsersApi.md#getUserNotes) | **GET** /api/v1.0/users/{userId}/UserNotes | +[**markUserAsFraudulent**](UsersApi.md#markUserAsFraudulent) | **POST** /api/v1.0/users/{userId}/MarkUserAsFraudulent | +[**markUserAsSuspicious**](UsersApi.md#markUserAsSuspicious) | **POST** /api/v1.0/users/{userId}/MarkUserAsSuspicious | +[**removeUserFromRole**](UsersApi.md#removeUserFromRole) | **POST** /api/v1.0/users/{userId}/RemoveUserFromRole/{roleName} | +[**resetMfa**](UsersApi.md#resetMfa) | **POST** /api/v1.0/users/{userId}/ResetMfa | +[**searchUsers**](UsersApi.md#searchUsers) | **GET** /api/v1.0/users/search | +[**setCustomerName**](UsersApi.md#setCustomerName) | **POST** /api/v1.0/users/{userId}/SetCustomerName | +[**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(userId, note) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +let note = "note_example"; // String | +apiInstance.addUserNote(userId, note, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + **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, Data, Message + + +## addUserToRole + +> RestApiResultUserRole addUserToRole(userId, roleName) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +let roleName = "roleName_example"; // String | +apiInstance.addUserToRole(userId, roleName, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + **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, Data, Message + + +## anonymizeUser + +> RestApiDefaultResponse anonymizeUser(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.anonymizeUser(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## blockUserPhoneNumber + +> RestApiDefaultResponse blockUserPhoneNumber(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.blockUserPhoneNumber(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## getPreviousOrderCountForStore + +> RestApiStringResult getPreviousOrderCountForStore(userId, storeId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +let storeId = 56; // Number | +apiInstance.getPreviousOrderCountForStore(userId, storeId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + **storeId** | **Number**| | + +### 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, Data, Message + + +## getRestaurantUserAccounts + +> RestApiArrayResultUserFlipdishAccount getRestaurantUserAccounts(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.getRestaurantUserAccounts(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## getRestaurantUserStores + +> RestApiArrayResultUserStoreInfo getRestaurantUserStores(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.getRestaurantUserStores(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## getRoles + +> RestApiStringArrayResult getRoles() + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +apiInstance.getRoles((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message + + +## getRolesAndUnassignedRoles + +> RestApiResultUserRole getRolesAndUnassignedRoles(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.getRolesAndUnassignedRoles(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## getUserById + +> RestApiResultUserInfo getUserById(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.getUserById(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## getUserNotes + +> RestApiArrayResultUserNote getUserNotes(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.getUserNotes(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## markUserAsFraudulent + +> RestApiDefaultResponse markUserAsFraudulent(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.markUserAsFraudulent(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## markUserAsSuspicious + +> RestApiDefaultResponse markUserAsSuspicious(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.markUserAsSuspicious(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## removeUserFromRole + +> RestApiResultUserRole removeUserFromRole(userId, roleName) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +let roleName = "roleName_example"; // String | +apiInstance.removeUserFromRole(userId, roleName, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + **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, Data, Message + + +## resetMfa + +> RestApiDefaultResponse resetMfa(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.resetMfa(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + + +## searchUsers + +> RestApiPaginationResultUserSearch searchUsers(searchQuery, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let searchQuery = "searchQuery_example"; // String | +let opts = { + 'hasUserLoggedIn': true, // Boolean | + 'userDiscriminator': "userDiscriminator_example", // String | + 'searchIn': "searchIn_example", // String | + 'pageIndex': 56, // Number | + 'pageSize': 56 // Number | +}; +apiInstance.searchUsers(searchQuery, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchQuery** | **String**| | + **hasUserLoggedIn** | **Boolean**| | [optional] + **userDiscriminator** | **String**| | [optional] + **searchIn** | **String**| | [optional] + **pageIndex** | **Number**| | [optional] + **pageSize** | **Number**| | [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, Data, Message + + +## setCustomerName + +> RestApiDefaultResponse setCustomerName(userId, customerName) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +let customerName = "customerName_example"; // String | +apiInstance.setCustomerName(userId, customerName, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + **customerName** | **String**| | + +### Return type + +[**RestApiDefaultResponse**](RestApiDefaultResponse.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + + +## setUserLanguage + +> RestApiDefaultResponse setUserLanguage(userId, languageId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +let languageId = "languageId_example"; // String | +apiInstance.setUserLanguage(userId, languageId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + **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, Data, Message + + +## unblockUserPhoneNumber + +> RestApiDefaultResponse unblockUserPhoneNumber(userId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.UsersApi(); +let userId = 56; // Number | +apiInstance.unblockUserPhoneNumber(userId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Number**| | + +### 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, Data, Message + diff --git a/docs/ValidValue.md b/docs/ValidValue.md new file mode 100644 index 00000000..a65c24de --- /dev/null +++ b/docs/ValidValue.md @@ -0,0 +1,10 @@ +# Flipdish.ValidValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **String** | | +**Name** | **String** | | + + diff --git a/docs/ValidationErrorResult.md b/docs/ValidationErrorResult.md new file mode 100644 index 00000000..7bab7247 --- /dev/null +++ b/docs/ValidationErrorResult.md @@ -0,0 +1,10 @@ +# Flipdish.ValidationErrorResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldName** | **String** | Field name | [optional] +**Errors** | **[String]** | List of errors relates to field | [optional] + + diff --git a/docs/ValidityPeriod.md b/docs/ValidityPeriod.md new file mode 100644 index 00000000..3721ad17 --- /dev/null +++ b/docs/ValidityPeriod.md @@ -0,0 +1,32 @@ +# Flipdish.ValidityPeriod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DayOfWeek** | **String** | | [optional] +**StartTime** | **String** | | [optional] +**EndTime** | **String** | | [optional] + + + +## Enum: DayOfWeekEnum + + +* `Sunday` (value: `"Sunday"`) + +* `Monday` (value: `"Monday"`) + +* `Tuesday` (value: `"Tuesday"`) + +* `Wednesday` (value: `"Wednesday"`) + +* `Thursday` (value: `"Thursday"`) + +* `Friday` (value: `"Friday"`) + +* `Saturday` (value: `"Saturday"`) + + + + diff --git a/docs/Voucher.md b/docs/Voucher.md new file mode 100644 index 00000000..ccb282ea --- /dev/null +++ b/docs/Voucher.md @@ -0,0 +1,348 @@ +# Flipdish.Voucher + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**Status** | **String** | Voucher Status | [optional] +**VoucherType** | **String** | Voucher Type | [optional] +**Currency** | **String** | Currency of the voucher | [optional] +**StoreNames** | **[String]** | Stores that this voucher applies to | [optional] +**PromotionDetails** | [**PromotionDetails**](PromotionDetails.md) | | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | | [optional] +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**Stores** | **[Number]** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **Number** | Valid on orders on or above | [optional] +**TakesPriority** | **Boolean** | Takes priority | [optional] +**IsEnabled** | **Boolean** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **Boolean** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **Boolean** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **Boolean** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **Boolean** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **Boolean** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **Boolean** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **Boolean** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **Boolean** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **Boolean** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **Boolean** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**ForceDiscount** | **Boolean** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **[String]** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**[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** | **Number** | Customer UserID | [optional] +**MaxRedemptions** | **Number** | Maximum number of times the voucher can be redeemed (used) | [optional] + + + +## Enum: StatusEnum + + +* `Valid` (value: `"Valid"`) + +* `NotYetValid` (value: `"NotYetValid"`) + +* `Expired` (value: `"Expired"`) + +* `Used` (value: `"Used"`) + +* `Disabled` (value: `"Disabled"`) + + + + + +## Enum: VoucherTypeEnum + + +* `PercentageDiscount` (value: `"PercentageDiscount"`) + +* `LumpDiscount` (value: `"LumpDiscount"`) + +* `AddItem` (value: `"AddItem"`) + +* `CreditNote` (value: `"CreditNote"`) + +* `FreeDelivery` (value: `"FreeDelivery"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: [ChannelRestrictionsEnum] + + +* `Ios` (value: `"Ios"`) + +* `Android` (value: `"Android"`) + +* `Web` (value: `"Web"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `Google` (value: `"Google"`) + + + + + +## Enum: VoucherSubTypeEnum + + +* `None` (value: `"None"`) + +* `SignUp` (value: `"SignUp"`) + +* `Loyalty` (value: `"Loyalty"`) + +* `Loyalty25` (value: `"Loyalty25"`) + +* `Retention` (value: `"Retention"`) + +* `SecondaryRetention` (value: `"SecondaryRetention"`) + +* `Custom` (value: `"Custom"`) + + + + diff --git a/docs/VoucherAppliedEvent.md b/docs/VoucherAppliedEvent.md new file mode 100644 index 00000000..fc42932d --- /dev/null +++ b/docs/VoucherAppliedEvent.md @@ -0,0 +1,17 @@ +# Flipdish.VoucherAppliedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**EventName** | **String** | The event name | [optional] +**OrderId** | **Number** | Order id | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/VoucherCreatedEvent.md b/docs/VoucherCreatedEvent.md new file mode 100644 index 00000000..45e70516 --- /dev/null +++ b/docs/VoucherCreatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.VoucherCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/VoucherDataPoint.md b/docs/VoucherDataPoint.md new file mode 100644 index 00000000..8ff0b9bc --- /dev/null +++ b/docs/VoucherDataPoint.md @@ -0,0 +1,11 @@ +# Flipdish.VoucherDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PeriodStart** | **Date** | Date from which the data point starts | [optional] +**PeriodLengthInDays** | **Number** | The length in days that this data point covers | [optional] +**Value** | **Number** | The value of this data point | [optional] + + diff --git a/docs/VoucherDeletedEvent.md b/docs/VoucherDeletedEvent.md new file mode 100644 index 00000000..3046ac36 --- /dev/null +++ b/docs/VoucherDeletedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.VoucherDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/VoucherSummary.md b/docs/VoucherSummary.md new file mode 100644 index 00000000..34a83251 --- /dev/null +++ b/docs/VoucherSummary.md @@ -0,0 +1,70 @@ +# Flipdish.VoucherSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**Code** | **String** | Voucher Code | [optional] +**Status** | **String** | Voucher Status | [optional] +**VoucherType** | **String** | Voucher Type | [optional] +**VoucherSubType** | **String** | Voucher Sub Type | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**IsEnabled** | **Boolean** | Is voucher enabled | [optional] + + + +## Enum: StatusEnum + + +* `Valid` (value: `"Valid"`) + +* `NotYetValid` (value: `"NotYetValid"`) + +* `Expired` (value: `"Expired"`) + +* `Used` (value: `"Used"`) + +* `Disabled` (value: `"Disabled"`) + + + + + +## Enum: VoucherTypeEnum + + +* `PercentageDiscount` (value: `"PercentageDiscount"`) + +* `LumpDiscount` (value: `"LumpDiscount"`) + +* `AddItem` (value: `"AddItem"`) + +* `CreditNote` (value: `"CreditNote"`) + +* `FreeDelivery` (value: `"FreeDelivery"`) + + + + + +## Enum: VoucherSubTypeEnum + + +* `None` (value: `"None"`) + +* `SignUp` (value: `"SignUp"`) + +* `Loyalty` (value: `"Loyalty"`) + +* `Loyalty25` (value: `"Loyalty25"`) + +* `Retention` (value: `"Retention"`) + +* `SecondaryRetention` (value: `"SecondaryRetention"`) + +* `Custom` (value: `"Custom"`) + + + + diff --git a/docs/VoucherUpdatedEvent.md b/docs/VoucherUpdatedEvent.md new file mode 100644 index 00000000..b9eae71e --- /dev/null +++ b/docs/VoucherUpdatedEvent.md @@ -0,0 +1,19 @@ +# Flipdish.VoucherUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VoucherId** | **Number** | Voucher Id | [optional] +**EventName** | **String** | The event name | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description | [optional] +**Voucher** | [**Voucher**](Voucher.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/VoucherWithStats.md b/docs/VoucherWithStats.md new file mode 100644 index 00000000..30bdb138 --- /dev/null +++ b/docs/VoucherWithStats.md @@ -0,0 +1,353 @@ +# Flipdish.VoucherWithStats + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalUsed** | **Number** | Total times the voucher was used | [optional] +**TotalCustomers** | **Number** | Total amount of customers who used this voucher | [optional] +**TotalAmountFromOrders** | **Number** | Total amount of money from orders | [optional] +**TotalDiscounted** | **Number** | Total amount of money given away | [optional] +**AverageOrderSize** | **Number** | Average Order Size | [optional] +**VoucherId** | **Number** | Voucher Id | [optional] +**Status** | **String** | Voucher Status | [optional] +**VoucherType** | **String** | Voucher Type | [optional] +**Currency** | **String** | Currency of the voucher | [optional] +**StoreNames** | **[String]** | Stores that this voucher applies to | [optional] +**PromotionDetails** | [**PromotionDetails**](PromotionDetails.md) | | [optional] +**CreditNoteDetails** | [**CreditNoteDetails**](CreditNoteDetails.md) | | [optional] +**LumpDiscountDetails** | [**LumpDiscountDetails**](LumpDiscountDetails.md) | | [optional] +**PercentDiscountDetails** | [**PercentDiscountDetails**](PercentDiscountDetails.md) | | [optional] +**Code** | **String** | Voucher Code | [optional] +**Description** | **String** | Voucher Description (Visible on printout) | [optional] +**Stores** | **[Number]** | Stores that this voucher applies to | [optional] +**ValidOnOrdersOver** | **Number** | Valid on orders on or above | [optional] +**TakesPriority** | **Boolean** | Takes priority | [optional] +**IsEnabled** | **Boolean** | Is voucher enabled | [optional] +**IsAutomaticallyApplied** | **Boolean** | Is voucher automatically applied | [optional] +**IncludeDeliveryFee** | **Boolean** | Include delivery fees | [optional] +**IsValidForDeliveryOrders** | **Boolean** | Valid for delivery orders | [optional] +**IsValidForPickupOrders** | **Boolean** | Valid for pickup orders | [optional] +**IsValidForOrdersPayedOnline** | **Boolean** | Valid for orders payed online | [optional] +**IsValidForOrdersPayedByCash** | **Boolean** | Valid for orders payed in cash | [optional] +**IsValidForFirstOrderOnly** | **Boolean** | Valid only on the first order by the customer | [optional] +**IsValidOncePerCustomer** | **Boolean** | Valid once per customer | [optional] +**IsValidOnlyOnce** | **Boolean** | Valid only once, by any customer (once used cannot be used again by any other customer) | [optional] +**IsDiscoverable** | **Boolean** | Enables the voucher to be offered in the Voucher Discoverability feature | [optional] +**ForceDiscount** | **Boolean** | Force the discount to be applied which bypasses some menu restrictions | [optional] +**StartDate** | **Date** | Voucher Starts On (Time in UTC) | [optional] +**ExpiryDate** | **Date** | Voucher Expires On (Time in UTC) | [optional] +**ChannelRestrictions** | **[String]** | Limit the channels this voucher can be used on | [optional] +**ValidityPeriods** | [**[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** | **Number** | Customer UserID | [optional] +**MaxRedemptions** | **Number** | Maximum number of times the voucher can be redeemed (used) | [optional] + + + +## Enum: StatusEnum + + +* `Valid` (value: `"Valid"`) + +* `NotYetValid` (value: `"NotYetValid"`) + +* `Expired` (value: `"Expired"`) + +* `Used` (value: `"Used"`) + +* `Disabled` (value: `"Disabled"`) + + + + + +## Enum: VoucherTypeEnum + + +* `PercentageDiscount` (value: `"PercentageDiscount"`) + +* `LumpDiscount` (value: `"LumpDiscount"`) + +* `AddItem` (value: `"AddItem"`) + +* `CreditNote` (value: `"CreditNote"`) + +* `FreeDelivery` (value: `"FreeDelivery"`) + + + + + +## Enum: CurrencyEnum + + +* `EUR` (value: `"EUR"`) + +* `USD` (value: `"USD"`) + +* `GBP` (value: `"GBP"`) + +* `CAD` (value: `"CAD"`) + +* `AUD` (value: `"AUD"`) + +* `DJF` (value: `"DJF"`) + +* `ZAR` (value: `"ZAR"`) + +* `ETB` (value: `"ETB"`) + +* `AED` (value: `"AED"`) + +* `BHD` (value: `"BHD"`) + +* `DZD` (value: `"DZD"`) + +* `EGP` (value: `"EGP"`) + +* `IQD` (value: `"IQD"`) + +* `JOD` (value: `"JOD"`) + +* `KWD` (value: `"KWD"`) + +* `LBP` (value: `"LBP"`) + +* `LYD` (value: `"LYD"`) + +* `MAD` (value: `"MAD"`) + +* `OMR` (value: `"OMR"`) + +* `QAR` (value: `"QAR"`) + +* `SAR` (value: `"SAR"`) + +* `SYP` (value: `"SYP"`) + +* `TND` (value: `"TND"`) + +* `YER` (value: `"YER"`) + +* `CLP` (value: `"CLP"`) + +* `INR` (value: `"INR"`) + +* `AZN` (value: `"AZN"`) + +* `RUB` (value: `"RUB"`) + +* `BYN` (value: `"BYN"`) + +* `BGN` (value: `"BGN"`) + +* `NGN` (value: `"NGN"`) + +* `BDT` (value: `"BDT"`) + +* `CNY` (value: `"CNY"`) + +* `BAM` (value: `"BAM"`) + +* `CZK` (value: `"CZK"`) + +* `DKK` (value: `"DKK"`) + +* `CHF` (value: `"CHF"`) + +* `MVR` (value: `"MVR"`) + +* `BTN` (value: `"BTN"`) + +* `XCD` (value: `"XCD"`) + +* `BZD` (value: `"BZD"`) + +* `HKD` (value: `"HKD"`) + +* `IDR` (value: `"IDR"`) + +* `JMD` (value: `"JMD"`) + +* `MYR` (value: `"MYR"`) + +* `NZD` (value: `"NZD"`) + +* `PHP` (value: `"PHP"`) + +* `SGD` (value: `"SGD"`) + +* `TTD` (value: `"TTD"`) + +* `XDR` (value: `"XDR"`) + +* `ARS` (value: `"ARS"`) + +* `BOB` (value: `"BOB"`) + +* `COP` (value: `"COP"`) + +* `CRC` (value: `"CRC"`) + +* `CUP` (value: `"CUP"`) + +* `DOP` (value: `"DOP"`) + +* `GTQ` (value: `"GTQ"`) + +* `HNL` (value: `"HNL"`) + +* `MXN` (value: `"MXN"`) + +* `NIO` (value: `"NIO"`) + +* `PAB` (value: `"PAB"`) + +* `PEN` (value: `"PEN"`) + +* `PYG` (value: `"PYG"`) + +* `UYU` (value: `"UYU"`) + +* `VEF` (value: `"VEF"`) + +* `IRR` (value: `"IRR"`) + +* `XOF` (value: `"XOF"`) + +* `CDF` (value: `"CDF"`) + +* `XAF` (value: `"XAF"`) + +* `HTG` (value: `"HTG"`) + +* `ILS` (value: `"ILS"`) + +* `HRK` (value: `"HRK"`) + +* `HUF` (value: `"HUF"`) + +* `AMD` (value: `"AMD"`) + +* `ISK` (value: `"ISK"`) + +* `JPY` (value: `"JPY"`) + +* `GEL` (value: `"GEL"`) + +* `KZT` (value: `"KZT"`) + +* `KHR` (value: `"KHR"`) + +* `KRW` (value: `"KRW"`) + +* `KGS` (value: `"KGS"`) + +* `LAK` (value: `"LAK"`) + +* `MKD` (value: `"MKD"`) + +* `MNT` (value: `"MNT"`) + +* `BND` (value: `"BND"`) + +* `MMK` (value: `"MMK"`) + +* `NOK` (value: `"NOK"`) + +* `NPR` (value: `"NPR"`) + +* `PKR` (value: `"PKR"`) + +* `PLN` (value: `"PLN"`) + +* `AFN` (value: `"AFN"`) + +* `BRL` (value: `"BRL"`) + +* `MDL` (value: `"MDL"`) + +* `RON` (value: `"RON"`) + +* `RWF` (value: `"RWF"`) + +* `SEK` (value: `"SEK"`) + +* `LKR` (value: `"LKR"`) + +* `SOS` (value: `"SOS"`) + +* `ALL` (value: `"ALL"`) + +* `RSD` (value: `"RSD"`) + +* `KES` (value: `"KES"`) + +* `TJS` (value: `"TJS"`) + +* `THB` (value: `"THB"`) + +* `ERN` (value: `"ERN"`) + +* `TMT` (value: `"TMT"`) + +* `BWP` (value: `"BWP"`) + +* `TRY` (value: `"TRY"`) + +* `UAH` (value: `"UAH"`) + +* `UZS` (value: `"UZS"`) + +* `VND` (value: `"VND"`) + +* `MOP` (value: `"MOP"`) + +* `TWD` (value: `"TWD"`) + +* `BMD` (value: `"BMD"`) + + + + + +## Enum: [ChannelRestrictionsEnum] + + +* `Ios` (value: `"Ios"`) + +* `Android` (value: `"Android"`) + +* `Web` (value: `"Web"`) + +* `Kiosk` (value: `"Kiosk"`) + +* `Pos` (value: `"Pos"`) + +* `Google` (value: `"Google"`) + + + + + +## Enum: VoucherSubTypeEnum + + +* `None` (value: `"None"`) + +* `SignUp` (value: `"SignUp"`) + +* `Loyalty` (value: `"Loyalty"`) + +* `Loyalty25` (value: `"Loyalty25"`) + +* `Retention` (value: `"Retention"`) + +* `SecondaryRetention` (value: `"SecondaryRetention"`) + +* `Custom` (value: `"Custom"`) + + + + diff --git a/docs/VouchersApi.md b/docs/VouchersApi.md new file mode 100644 index 00000000..070ee832 --- /dev/null +++ b/docs/VouchersApi.md @@ -0,0 +1,490 @@ +# Flipdish.VouchersApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createVoucher**](VouchersApi.md#createVoucher) | **POST** /api/v1.0/vouchers/{appId} | +[**getVoucherByCode**](VouchersApi.md#getVoucherByCode) | **GET** /api/v1.0/{appId}/vouchers/code/{code} | +[**getVoucherById**](VouchersApi.md#getVoucherById) | **GET** /api/v1.0/vouchers/{voucherId} | +[**getVoucherStatsById**](VouchersApi.md#getVoucherStatsById) | **GET** /api/v1.0/vouchers/stats/{voucherId} | +[**getVoucherValidityPeriods**](VouchersApi.md#getVoucherValidityPeriods) | **GET** /api/v1.0/{appId}/vouchers/{voucherId}/validity-periods | +[**getVouchers**](VouchersApi.md#getVouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | +[**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(appId, voucher) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let appId = "appId_example"; // String | +let voucher = new Flipdish.CreateVoucher(); // CreateVoucher | +apiInstance.createVoucher(appId, voucher, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **voucher** | [**CreateVoucher**](CreateVoucher.md)| | + +### Return type + +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getVoucherByCode + +> RestApiResultVoucher getVoucherByCode(appId, code) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let appId = "appId_example"; // String | +let code = "code_example"; // String | +apiInstance.getVoucherByCode(appId, code, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### 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, Data, Message, ErrorCode, StackTrace + + +## getVoucherById + +> RestApiResultVoucherWithStats getVoucherById(voucherId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let voucherId = 56; // Number | +apiInstance.getVoucherById(voucherId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voucherId** | **Number**| | + +### Return type + +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getVoucherStatsById + +> RestApiArrayResultVoucherDataPoint getVoucherStatsById(voucherId, aggregateDataBy, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let voucherId = 56; // Number | +let aggregateDataBy = "aggregateDataBy_example"; // String | +let opts = { + 'dataPointLimit': 56 // Number | +}; +apiInstance.getVoucherStatsById(voucherId, aggregateDataBy, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voucherId** | **Number**| | + **aggregateDataBy** | **String**| | + **dataPointLimit** | **Number**| | [optional] + +### Return type + +[**RestApiArrayResultVoucherDataPoint**](RestApiArrayResultVoucherDataPoint.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## getVoucherValidityPeriods + +> getVoucherValidityPeriods(appId, voucherId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let appId = "appId_example"; // String | +let voucherId = 56; // Number | +apiInstance.getVoucherValidityPeriods(appId, voucherId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **voucherId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Data, application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## getVouchers + +> RestApiPaginationResultVoucherSummary getVouchers(appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let appId = "appId_example"; // String | +let opts = { + 'pageIndex': 56, // Number | + 'pageSize': 56, // Number | + 'searchCodes': ["null"], // [String] | + 'statusSearch': ["null"], // [String] | + 'typeSearch': ["null"], // [String] | + 'subTypeSearch': ["null"], // [String] | + 'storeIds': [null], // [Number] | + 'channelRestrictions': ["null"] // [String] | +}; +apiInstance.getVouchers(appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **pageIndex** | **Number**| | [optional] + **pageSize** | **Number**| | [optional] + **searchCodes** | [**[String]**](String.md)| | [optional] + **statusSearch** | [**[String]**](String.md)| | [optional] + **typeSearch** | [**[String]**](String.md)| | [optional] + **subTypeSearch** | [**[String]**](String.md)| | [optional] + **storeIds** | [**[Number]**](Number.md)| | [optional] + **channelRestrictions** | [**[String]**](String.md)| | [optional] + +### Return type + +[**RestApiPaginationResultVoucherSummary**](RestApiPaginationResultVoucherSummary.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## setVoucherValidityPeriodsSimplified + +> setVoucherValidityPeriodsSimplified(appId, voucherId, request) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let appId = "appId_example"; // String | +let voucherId = 56; // Number | +let request = new Flipdish.SetVoucherValidityPeriodsSimplifiedRequest(); // SetVoucherValidityPeriodsSimplifiedRequest | +apiInstance.setVoucherValidityPeriodsSimplified(appId, voucherId, request, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **voucherId** | **Number**| | + **request** | [**SetVoucherValidityPeriodsSimplifiedRequest**](SetVoucherValidityPeriodsSimplifiedRequest.md)| | + +### Return type + +null (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**: Data, application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + + +## updateVoucher + +> RestApiResultVoucherWithStats updateVoucher(voucherId, voucher, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let voucherId = 56; // Number | +let voucher = new Flipdish.UpdateVoucher(); // UpdateVoucher | +let opts = { + 'storeId': [null], // [Number] | + 'percentValue': 56, // Number | + 'lumpValue': 3.4, // Number | + 'maxDiscountAmount': 3.4 // Number | +}; +apiInstance.updateVoucher(voucherId, voucher, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voucherId** | **Number**| | + **voucher** | [**UpdateVoucher**](UpdateVoucher.md)| | + **storeId** | [**[Number]**](Number.md)| | [optional] + **percentValue** | **Number**| | [optional] + **lumpValue** | **Number**| | [optional] + **maxDiscountAmount** | **Number**| | [optional] + +### Return type + +[**RestApiResultVoucherWithStats**](RestApiResultVoucherWithStats.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace + + +## updateVoucherUsage + +> updateVoucherUsage(appId, voucherId, voucherUsage) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.VouchersApi(); +let appId = "appId_example"; // String | +let voucherId = 56; // Number | +let voucherUsage = new Flipdish.UpdateVoucherUsage(); // UpdateVoucherUsage | +apiInstance.updateVoucherUsage(appId, voucherId, voucherUsage, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **voucherId** | **Number**| | + **voucherUsage** | [**UpdateVoucherUsage**](UpdateVoucherUsage.md)| | + +### Return type + +null (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**: Data, application/json, text/json, application/xml, text/xml, Message, ErrorCode, StackTrace + diff --git a/docs/WaitHandle.md b/docs/WaitHandle.md new file mode 100644 index 00000000..3643f18d --- /dev/null +++ b/docs/WaitHandle.md @@ -0,0 +1,10 @@ +# Flipdish.WaitHandle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Handle** | **Object** | | [optional] +**SafeWaitHandle** | [**SafeWaitHandle**](SafeWaitHandle.md) | | [optional] + + diff --git a/docs/WebhookEventSample.md b/docs/WebhookEventSample.md new file mode 100644 index 00000000..5224cf44 --- /dev/null +++ b/docs/WebhookEventSample.md @@ -0,0 +1,11 @@ +# Flipdish.WebhookEventSample + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **String** | Event name | [optional] +**CreateTime** | **Date** | Sample event creation date and time | [optional] +**Body** | [**FlipdishEventBase**](FlipdishEventBase.md) | | [optional] + + diff --git a/docs/WebhookLog.md b/docs/WebhookLog.md new file mode 100644 index 00000000..e18ee0c9 --- /dev/null +++ b/docs/WebhookLog.md @@ -0,0 +1,23 @@ +# Flipdish.WebhookLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WebhookSubscriptionOwnerUserId** | **Number** | Webhook subscription owner user identifier | [optional] +**EventCreated** | **String** | Event created | [optional] +**WebhookTriggered** | **String** | Webhook triggered | [optional] +**WebhookEventName** | **String** | Webhook event name | [optional] +**WebhookSubscriptionCallbackUrl** | **String** | Webhook subscription callback url | [optional] +**HttpResponseStatusCode** | **String** | Received HTTP repsonse status HTTP code | [optional] +**HttpResponseStatus** | **String** | Received HTTP repsonse status | [optional] +**RequestHeaders** | **String** | Request headers | [optional] +**RequestBody** | **String** | Request body | [optional] +**ResponseHeaders** | **String** | Received response headers | [optional] +**ResponseBody** | **String** | Received response body | [optional] +**Duration** | **String** | Duration of HTTP request | [optional] +**RetryCount** | **Number** | Retry count | [optional] +**FlipdishWebhookId** | **String** | Flipdish webhook identifier | [optional] +**Version** | **String** | Flipdish webhook version | [optional] + + diff --git a/docs/WebhookSubscription.md b/docs/WebhookSubscription.md new file mode 100644 index 00000000..98042af9 --- /dev/null +++ b/docs/WebhookSubscription.md @@ -0,0 +1,15 @@ +# Flipdish.WebhookSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Number** | Webhook subscription identifier | [optional] +**OwnerUserId** | **Number** | Webhook subscription owner user identifier | [optional] +**Version** | **String** | Webhook subscription owner user identifier | [optional] +**EventNames** | **[String]** | Webhook subscription event names | [optional] +**CallbackUrl** | **String** | Callback url. Flipdish system POST messages to this url. | [optional] +**Enabled** | **Boolean** | Is webhook subscription enabled. | [optional] +**VerifyToken** | **String** | This is your token which will be in the Header of each POST request from Flipdish with name: X-Verify-Token. | [optional] + + diff --git a/docs/WebhookSubscriptionCreatedEvent.md b/docs/WebhookSubscriptionCreatedEvent.md new file mode 100644 index 00000000..6b9666e8 --- /dev/null +++ b/docs/WebhookSubscriptionCreatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.WebhookSubscriptionCreatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/WebhookSubscriptionDeletedEvent.md b/docs/WebhookSubscriptionDeletedEvent.md new file mode 100644 index 00000000..4295782d --- /dev/null +++ b/docs/WebhookSubscriptionDeletedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.WebhookSubscriptionDeletedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/WebhookSubscriptionEventInfo.md b/docs/WebhookSubscriptionEventInfo.md new file mode 100644 index 00000000..09434833 --- /dev/null +++ b/docs/WebhookSubscriptionEventInfo.md @@ -0,0 +1,12 @@ +# Flipdish.WebhookSubscriptionEventInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerUserId** | **Number** | Webhook subscription owner user identifier | [optional] +**WebhookSubscriptionId** | **Number** | Webhook subscription identifier | [optional] +**ClientId** | **String** | Oauth client identifier | [optional] +**CallbackUrl** | **String** | Webhook callback url | [optional] + + diff --git a/docs/WebhookSubscriptionUpdatedEvent.md b/docs/WebhookSubscriptionUpdatedEvent.md new file mode 100644 index 00000000..5c0fa940 --- /dev/null +++ b/docs/WebhookSubscriptionUpdatedEvent.md @@ -0,0 +1,16 @@ +# Flipdish.WebhookSubscriptionUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**WebhookSubscriptionEventInfo** | [**WebhookSubscriptionEventInfo**](WebhookSubscriptionEventInfo.md) | | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md new file mode 100644 index 00000000..ed696d26 --- /dev/null +++ b/docs/WebhooksApi.md @@ -0,0 +1,550 @@ +# Flipdish.WebhooksApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createWebhookSubscription**](WebhooksApi.md#createWebhookSubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +[**createWebhookSubscriptionEventNames**](WebhooksApi.md#createWebhookSubscriptionEventNames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +[**deleteWebhookSubscription**](WebhooksApi.md#deleteWebhookSubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | +[**deleteWebhookSubscriptionEventName**](WebhooksApi.md#deleteWebhookSubscriptionEventName) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | +[**getWebhookEventNames**](WebhooksApi.md#getWebhookEventNames) | **GET** /api/v1.0/{appId}/webhooks/events | +[**getWebhookEventNamesBySubscriptionId**](WebhooksApi.md#getWebhookEventNamesBySubscriptionId) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | +[**getWebhookEventSample**](WebhooksApi.md#getWebhookEventSample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | +[**getWebhookLogs**](WebhooksApi.md#getWebhookLogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | +[**getWebhookSubscriptions**](WebhooksApi.md#getWebhookSubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | +[**updateWebhookSubscription**](WebhooksApi.md#updateWebhookSubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | + + + +## createWebhookSubscription + +> RestApiIntegerResult createWebhookSubscription(oauthAppId, appId, webhookSubscription) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +let webhookSubscription = new Flipdish.WebhookSubscription(); // WebhookSubscription | +apiInstance.createWebhookSubscription(oauthAppId, appId, webhookSubscription, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| | + +### Return type + +[**RestApiIntegerResult**](RestApiIntegerResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + + +## createWebhookSubscriptionEventNames + +> createWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let webhookSubscriptionId = 56; // Number | +let eventName = "eventName_example"; // String | +let appId = "appId_example"; // String | +apiInstance.createWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **webhookSubscriptionId** | **Number**| | + **eventName** | **String**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message + + +## deleteWebhookSubscription + +> deleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let webhookSubscriptionId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.deleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **webhookSubscriptionId** | **Number**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message + + +## deleteWebhookSubscriptionEventName + +> deleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let webhookSubscriptionId = 56; // Number | +let eventName = "eventName_example"; // String | +let appId = "appId_example"; // String | +apiInstance.deleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **webhookSubscriptionId** | **Number**| | + **eventName** | **String**| | + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Message + + +## getWebhookEventNames + +> RestApiStringArrayResult getWebhookEventNames(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let appId = "appId_example"; // String | +apiInstance.getWebhookEventNames(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + + +## getWebhookEventNamesBySubscriptionId + +> RestApiStringArrayResult getWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let webhookSubscriptionId = 56; // Number | +let appId = "appId_example"; // String | +apiInstance.getWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **webhookSubscriptionId** | **Number**| | + **appId** | **String**| | + +### Return type + +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + + +## getWebhookEventSample + +> WebhookEventSample getWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let eventName = "eventName_example"; // String | +let appId = "appId_example"; // String | +let oauthAppId = "oauthAppId_example"; // String | +let webhookSubscriptionId = "webhookSubscriptionId_example"; // String | +let opts = { + 'version': "version_example" // String | +}; +apiInstance.getWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **eventName** | **String**| | + **appId** | **String**| | + **oauthAppId** | **String**| | + **webhookSubscriptionId** | **String**| | + **version** | **String**| | [optional] + +### Return type + +[**WebhookEventSample**](WebhookEventSample.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Type, CreateTime, Body + + +## getWebhookLogs + +> RestApiPaginationResultWebhookLog getWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let webhookSubscriptionId = 56; // Number | +let start = new Date("2013-10-20T19:20:30+01:00"); // Date | +let end = new Date("2013-10-20T19:20:30+01:00"); // Date | +let appId = "appId_example"; // String | +let opts = { + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **webhookSubscriptionId** | **Number**| | + **start** | **Date**| | + **end** | **Date**| | + **appId** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultWebhookLog**](RestApiPaginationResultWebhookLog.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + + +## getWebhookSubscriptions + +> RestApiPaginationResultWebhookSubscription getWebhookSubscriptions(oauthAppId, appId, opts) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let appId = "appId_example"; // String | +let opts = { + 'page': 56, // Number | + 'limit': 56 // Number | +}; +apiInstance.getWebhookSubscriptions(oauthAppId, appId, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **appId** | **String**| | + **page** | **Number**| | [optional] + **limit** | **Number**| | [optional] + +### Return type + +[**RestApiPaginationResultWebhookSubscription**](RestApiPaginationResultWebhookSubscription.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data, Message + + +## updateWebhookSubscription + +> updateWebhookSubscription(oauthAppId, webhookSubscriptionId, appId, webhookSubscription) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebhooksApi(); +let oauthAppId = "oauthAppId_example"; // String | +let webhookSubscriptionId = 56; // Number | +let appId = "appId_example"; // String | +let webhookSubscription = new Flipdish.WebhookSubscription(); // WebhookSubscription | +apiInstance.updateWebhookSubscription(oauthAppId, webhookSubscriptionId, appId, webhookSubscription, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oauthAppId** | **String**| | + **webhookSubscriptionId** | **Number**| | + **appId** | **String**| | + **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| | + +### Return type + +null (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, Message + diff --git a/docs/WebsiteApi.md b/docs/WebsiteApi.md new file mode 100644 index 00000000..9574571f --- /dev/null +++ b/docs/WebsiteApi.md @@ -0,0 +1,408 @@ +# Flipdish.WebsiteApi + +All URIs are relative to *https://api.flipdish.co* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addTestimonial**](WebsiteApi.md#addTestimonial) | **POST** /api/v1.0/{appId}/website/testimonial | +[**deleteTestimonial**](WebsiteApi.md#deleteTestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +[**deleteWebsiteImage**](WebsiteApi.md#deleteWebsiteImage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | +[**editTestimonial**](WebsiteApi.md#editTestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | +[**getIndexConfiguration**](WebsiteApi.md#getIndexConfiguration) | **GET** /api/v1.0/{appId}/website/index | +[**setIndexConfiguration**](WebsiteApi.md#setIndexConfiguration) | **POST** /api/v1.0/{appId}/website/index | +[**uploadWebsiteImage**](WebsiteApi.md#uploadWebsiteImage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | +[**websiteCheckNow**](WebsiteApi.md#websiteCheckNow) | **GET** /api/v1.0/{appId}/website/dnscheck | + + + +## addTestimonial + +> RestApiResultWebsiteTestimonial addTestimonial(appId, testimonial) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +let testimonial = new Flipdish.WebsiteTestimonialBase(); // WebsiteTestimonialBase | +apiInstance.addTestimonial(appId, testimonial, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| | + +### Return type + +[**RestApiResultWebsiteTestimonial**](RestApiResultWebsiteTestimonial.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## deleteTestimonial + +> deleteTestimonial(appId, testimonialId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +let testimonialId = 56; // Number | +apiInstance.deleteTestimonial(appId, testimonialId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **testimonialId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## deleteWebsiteImage + +> deleteWebsiteImage(appId, imageId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +let imageId = 56; // Number | +apiInstance.deleteWebsiteImage(appId, imageId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **imageId** | **Number**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + + +## editTestimonial + +> RestApiResultWebsiteTestimonial editTestimonial(appId, testimonialId, testimonial) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +let testimonialId = 56; // Number | +let testimonial = new Flipdish.WebsiteTestimonialBase(); // WebsiteTestimonialBase | +apiInstance.editTestimonial(appId, testimonialId, testimonial, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **testimonialId** | **Number**| | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| | + +### Return type + +[**RestApiResultWebsiteTestimonial**](RestApiResultWebsiteTestimonial.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## getIndexConfiguration + +> RestApiResultIndexPage getIndexConfiguration(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +apiInstance.getIndexConfiguration(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +[**RestApiResultIndexPage**](RestApiResultIndexPage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## setIndexConfiguration + +> RestApiResultIndexPageBase setIndexConfiguration(appId, indexPage) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +let indexPage = new Flipdish.IndexPageBase(); // IndexPageBase | +apiInstance.setIndexConfiguration(appId, indexPage, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **indexPage** | [**IndexPageBase**](IndexPageBase.md)| | + +### Return type + +[**RestApiResultIndexPageBase**](RestApiResultIndexPageBase.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## uploadWebsiteImage + +> RestApiResultWebsiteImage uploadWebsiteImage(appId, imageLocation, Image) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +let imageLocation = "imageLocation_example"; // String | +let Image = "/path/to/file"; // File | App Logo +apiInstance.uploadWebsiteImage(appId, imageLocation, Image, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + **imageLocation** | **String**| | + **Image** | **File**| App Logo | + +### Return type + +[**RestApiResultWebsiteImage**](RestApiResultWebsiteImage.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json, text/json, application/xml, text/xml, Data + + +## websiteCheckNow + +> websiteCheckNow(appId) + + + +### Example + +```javascript +import Flipdish from '@flipdish/api-client-javascript'; +let defaultClient = Flipdish.ApiClient.instance; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = defaultClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Flipdish.WebsiteApi(); +let appId = "appId_example"; // String | +apiInstance.websiteCheckNow(appId, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + diff --git a/docs/WebsiteImage.md b/docs/WebsiteImage.md new file mode 100644 index 00000000..a6b3c318 --- /dev/null +++ b/docs/WebsiteImage.md @@ -0,0 +1,30 @@ +# Flipdish.WebsiteImage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImageId** | **Number** | Represents the id of the image | [optional] +**ImageLocation** | **String** | Represents the location of the image | [optional] +**ImageUrl** | **String** | Represents the image url | [optional] + + + +## Enum: ImageLocationEnum + + +* `IndexHeader` (value: `"IndexHeader"`) + +* `IndexAboutSectionLeft` (value: `"IndexAboutSectionLeft"`) + +* `IndexAboutSectionRight` (value: `"IndexAboutSectionRight"`) + +* `IndexGallery` (value: `"IndexGallery"`) + +* `IndexOpeningHoursHeader` (value: `"IndexOpeningHoursHeader"`) + +* `IndexTestimonialsHeader` (value: `"IndexTestimonialsHeader"`) + + + + diff --git a/docs/WebsiteTestimonial.md b/docs/WebsiteTestimonial.md new file mode 100644 index 00000000..837c3d76 --- /dev/null +++ b/docs/WebsiteTestimonial.md @@ -0,0 +1,11 @@ +# Flipdish.WebsiteTestimonial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TestimonialId** | **Number** | Id of the testimonial | [optional] +**Author** | **String** | Author of the testimonial | [optional] +**Message** | **String** | Message of the testimonial | [optional] + + diff --git a/docs/WebsiteTestimonialBase.md b/docs/WebsiteTestimonialBase.md new file mode 100644 index 00000000..79002f9e --- /dev/null +++ b/docs/WebsiteTestimonialBase.md @@ -0,0 +1,10 @@ +# Flipdish.WebsiteTestimonialBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Author** | **String** | Author of the testimonial | [optional] +**Message** | **String** | Message of the testimonial | [optional] + + diff --git a/docs/WebsiteUpdatedEvent.md b/docs/WebsiteUpdatedEvent.md new file mode 100644 index 00000000..a71c4b22 --- /dev/null +++ b/docs/WebsiteUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.WebsiteUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppNameId** | **String** | App Name id of the whitelabel of the website | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**Description** | **String** | Description of event | [optional] +**EventName** | **String** | The event name | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/WebsiteVanityUrlUpdatedEvent.md b/docs/WebsiteVanityUrlUpdatedEvent.md new file mode 100644 index 00000000..62a441e0 --- /dev/null +++ b/docs/WebsiteVanityUrlUpdatedEvent.md @@ -0,0 +1,18 @@ +# Flipdish.WebsiteVanityUrlUpdatedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventName** | **String** | The event name | [optional] +**Description** | **String** | Description | [optional] +**User** | [**UserEventInfo**](UserEventInfo.md) | | [optional] +**VanityUrl** | **String** | New vanity url | [optional] +**FlipdishEventId** | **String** | The identitfier of the event | [optional] +**CreateTime** | **Date** | The time of creation of the event | [optional] +**Position** | **Number** | Position | [optional] +**AppId** | **String** | App id | [optional] +**OrgId** | **String** | Org id | [optional] +**IpAddress** | **String** | Ip Address | [optional] + + diff --git a/docs/WhiteLabelConfig.md b/docs/WhiteLabelConfig.md new file mode 100644 index 00000000..57ddb584 --- /dev/null +++ b/docs/WhiteLabelConfig.md @@ -0,0 +1,14 @@ +# Flipdish.WhiteLabelConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WhiteLabelId** | **Number** | 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] + + diff --git a/mocha.opts b/mocha.opts new file mode 100644 index 00000000..90701180 --- /dev/null +++ b/mocha.opts @@ -0,0 +1 @@ +--timeout 10000 diff --git a/package.json b/package.json new file mode 100644 index 00000000..7103a9be --- /dev/null +++ b/package.json @@ -0,0 +1,46 @@ +{ + "name": "@flipdish/api-client-javascript", + "version": "1.0.0", + "description": "JS API client generated by OpenAPI Generator", + "license": "Unlicense", + "main": "dist/index.js", + "scripts": { + "build": "babel src -d dist", + "prepare": "npm run build", + "test": "mocha --require @babel/register --recursive" + }, + "browser": { + "fs": false + }, + "dependencies": { + "@babel/cli": "^7.0.0", + "superagent": "^5.3.0" + }, + "devDependencies": { + "@babel/core": "^7.0.0", + "@babel/plugin-proposal-class-properties": "^7.0.0", + "@babel/plugin-proposal-decorators": "^7.0.0", + "@babel/plugin-proposal-do-expressions": "^7.0.0", + "@babel/plugin-proposal-export-default-from": "^7.0.0", + "@babel/plugin-proposal-export-namespace-from": "^7.0.0", + "@babel/plugin-proposal-function-bind": "^7.0.0", + "@babel/plugin-proposal-function-sent": "^7.0.0", + "@babel/plugin-proposal-json-strings": "^7.0.0", + "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", + "@babel/plugin-proposal-numeric-separator": "^7.0.0", + "@babel/plugin-proposal-optional-chaining": "^7.0.0", + "@babel/plugin-proposal-pipeline-operator": "^7.0.0", + "@babel/plugin-proposal-throw-expressions": "^7.0.0", + "@babel/plugin-syntax-dynamic-import": "^7.0.0", + "@babel/plugin-syntax-import-meta": "^7.0.0", + "@babel/preset-env": "^7.0.0", + "@babel/register": "^7.0.0", + "expect.js": "^0.3.1", + "mocha": "^8.0.1", + "sinon": "^7.2.0" + }, + "files": [ + "dist" + ] +} diff --git a/src/ApiClient.js b/src/ApiClient.js new file mode 100644 index 00000000..faa0f5a3 --- /dev/null +++ b/src/ApiClient.js @@ -0,0 +1,687 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import superagent from "superagent"; +import querystring from "querystring"; + +/** +* @module ApiClient +* @version 1.0.0 +*/ + +/** +* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an +* application to use this class directly - the *Api and model classes provide the public API for the service. The +* contents of this file should be regarded as internal but are documented for completeness. +* @alias module:ApiClient +* @class +*/ +class ApiClient { + constructor() { + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default https://api.flipdish.co + */ + this.basePath = 'https://api.flipdish.co'.replace(/\/+$/, ''); + + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + this.authentications = { + 'oauth2': {type: 'oauth2'} + } + + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + this.defaultHeaders = { + 'User-Agent': 'OpenAPI-Generator/1.0.0/Javascript' + }; + + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + this.timeout = 60000; + + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + this.cache = true; + + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + this.enableCookies = false; + + /* + * Used to save and return cookies in a node.js (non-browser) setting, + * if this.enableCookies is set to true. + */ + if (typeof window === 'undefined') { + this.agent = new superagent.agent(); + } + + /* + * Allow user to override superagent agent + */ + this.requestAgent = null; + + /* + * Allow user to add superagent plugins + */ + this.plugins = null; + + } + + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + paramToString(param) { + if (param == undefined || param == null) { + return ''; + } + if (param instanceof Date) { + return param.toJSON(); + } + if (ApiClient.canBeJsonified(param)) { + return JSON.stringify(param); + } + + return param.toString(); + } + + /** + * Returns a boolean indicating if the parameter could be JSON.stringified + * @param param The actual parameter + * @returns {Boolean} Flag indicating if param can be JSON.stringified + */ + static canBeJsonified(str) { + if (typeof str !== 'string' && typeof str !== 'object') return false; + try { + const type = str.toString(); + return type === '[object Object]' + || type === '[object Array]'; + } catch (err) { + return false; + } + }; + + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @param {String} apiBasePath Base path defined in the path, operation level to override the default one + * @returns {String} The encoded path with parameter values substituted. + */ + buildUrl(path, pathParams, apiBasePath) { + if (!path.match(/^\//)) { + path = '/' + path; + } + + var url = this.basePath + path; + + // use API (operation, path) base path if defined + if (apiBasePath !== null && apiBasePath !== undefined) { + url = apiBasePath + path; + } + + url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => { + var value; + if (pathParams.hasOwnProperty(key)) { + value = this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + + return encodeURIComponent(value); + }); + + return url; + } + + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
    + *
  • application/json
  • + *
  • application/json; charset=UTF8
  • + *
  • APPLICATION/JSON
  • + *
+ * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + isJsonMime(contentType) { + return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); + } + + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + jsonPreferredMime(contentTypes) { + for (var i = 0; i < contentTypes.length; i++) { + if (this.isJsonMime(contentTypes[i])) { + return contentTypes[i]; + } + } + + return contentTypes[0]; + } + + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + isFileParam(param) { + // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) + if (typeof require === 'function') { + let fs; + try { + fs = require('fs'); + } catch (err) {} + if (fs && fs.ReadStream && param instanceof fs.ReadStream) { + return true; + } + } + + // Buffer in Node.js + if (typeof Buffer === 'function' && param instanceof Buffer) { + return true; + } + + // Blob in browser + if (typeof Blob === 'function' && param instanceof Blob) { + return true; + } + + // File in browser (it seems File object is also instance of Blob, but keep this for safe) + if (typeof File === 'function' && param instanceof File) { + return true; + } + + return false; + } + + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + normalizeParams(params) { + var newParams = {}; + for (var key in params) { + if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { + var value = params[key]; + if (this.isFileParam(value) || Array.isArray(value)) { + newParams[key] = value; + } else { + newParams[key] = this.paramToString(value); + } + } + } + + return newParams; + } + + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + buildCollectionParam(param, collectionFormat) { + if (param == null) { + return null; + } + switch (collectionFormat) { + case 'csv': + return param.map(this.paramToString, this).join(','); + case 'ssv': + return param.map(this.paramToString, this).join(' '); + case 'tsv': + return param.map(this.paramToString, this).join('\t'); + case 'pipes': + return param.map(this.paramToString, this).join('|'); + case 'multi': + //return the array directly as SuperAgent will handle it as expected + return param.map(this.paramToString, this); + case 'passthrough': + return param; + default: + throw new Error('Unknown collection format: ' + collectionFormat); + } + } + + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + applyAuthToRequest(request, authNames) { + authNames.forEach((authName) => { + var auth = this.authentications[authName]; + switch (auth.type) { + case 'basic': + if (auth.username || auth.password) { + request.auth(auth.username || '', auth.password || ''); + } + + break; + case 'bearer': + if (auth.accessToken) { + var localVarBearerToken = typeof auth.accessToken === 'function' + ? auth.accessToken() + : auth.accessToken + request.set({'Authorization': 'Bearer ' + localVarBearerToken}); + } + + break; + case 'apiKey': + if (auth.apiKey) { + var data = {}; + if (auth.apiKeyPrefix) { + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + } else { + data[auth.name] = auth.apiKey; + } + + if (auth['in'] === 'header') { + request.set(data); + } else { + request.query(data); + } + } + + break; + case 'oauth2': + if (auth.accessToken) { + request.set({'Authorization': 'Bearer ' + auth.accessToken}); + } + + break; + default: + throw new Error('Unknown authentication type: ' + auth.type); + } + }); + } + + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + deserialize(response, returnType) { + if (response == null || returnType == null || response.status == 204) { + return null; + } + + // Rely on SuperAgent for parsing response body. + // See http://visionmedia.github.io/superagent/#parsing-response-bodies + var data = response.body; + if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { + // SuperAgent does not always produce a body; use the unparsed response as a fallback + data = response.text; + } + + return ApiClient.convertToType(data, returnType); + } + + /** + * Callback function to receive the result of the operation. + * @callback module:ApiClient~callApiCallback + * @param {String} error Error message, if any. + * @param data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @param {module:ApiClient~callApiCallback} callback The callback function. + * @returns {Object} The SuperAgent request object. + */ + callApi(path, httpMethod, pathParams, + queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, + returnType, apiBasePath, callback) { + + var url = this.buildUrl(path, pathParams, apiBasePath); + var request = superagent(httpMethod, url); + + if (this.plugins !== null) { + for (var index in this.plugins) { + if (this.plugins.hasOwnProperty(index)) { + request.use(this.plugins[index]) + } + } + } + + // apply authentications + this.applyAuthToRequest(request, authNames); + + // set query parameters + if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { + queryParams['_'] = new Date().getTime(); + } + + request.query(this.normalizeParams(queryParams)); + + // set header parameters + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); + + // set requestAgent if it is set by user + if (this.requestAgent) { + request.agent(this.requestAgent); + } + + // set request timeout + request.timeout(this.timeout); + + var contentType = this.jsonPreferredMime(contentTypes); + if (contentType) { + // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) + if(contentType != 'multipart/form-data') { + request.type(contentType); + } + } + + if (contentType === 'application/x-www-form-urlencoded') { + request.send(querystring.stringify(this.normalizeParams(formParams))); + } else if (contentType == 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + let _formParamsValue = _formParams[key]; + if (this.isFileParam(_formParamsValue)) { + // file field + request.attach(key, _formParamsValue); + } else if (Array.isArray(_formParamsValue) && _formParamsValue.length + && this.isFileParam(_formParamsValue[0])) { + // multiple files + _formParamsValue.forEach(file => request.attach(key, file)); + } else { + request.field(key, _formParamsValue); + } + } + } + } else if (bodyParam !== null && bodyParam !== undefined) { + if (!request.header['Content-Type']) { + request.type('application/json'); + } + request.send(bodyParam); + } + + var accept = this.jsonPreferredMime(accepts); + if (accept) { + request.accept(accept); + } + + if (returnType === 'Blob') { + request.responseType('blob'); + } else if (returnType === 'String') { + request.responseType('string'); + } + + // Attach previously saved cookies, if enabled + if (this.enableCookies){ + if (typeof window === 'undefined') { + this.agent._attachCookies(request); + } + else { + request.withCredentials(); + } + } + + request.end((error, response) => { + if (callback) { + var data = null; + if (!error) { + try { + data = this.deserialize(response, returnType); + if (this.enableCookies && typeof window === 'undefined'){ + this.agent._saveCookies(response); + } + } catch (err) { + error = err; + } + } + + callback(error, data, response); + } + }); + + return request; + } + + /** + * Parses an ISO-8601 string representation or epoch representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + static parseDate(str) { + if (isNaN(str)) { + return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3')); + } + return new Date(+str); + } + + /** + * Converts a value to the specified type. + * @param {(String|Object)} data The data to convert, as a string or object. + * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns An instance of the specified type or null or undefined if data is null or undefined. + */ + static convertToType(data, type) { + if (data === null || data === undefined) + return data + + switch (type) { + case 'Boolean': + return Boolean(data); + case 'Integer': + return parseInt(data, 10); + case 'Number': + return parseFloat(data); + case 'String': + return String(data); + case 'Date': + return ApiClient.parseDate(String(data)); + case 'Blob': + return data; + default: + if (type === Object) { + // generic object, return directly + return data; + } else if (typeof type.constructFromObject === 'function') { + // for model type like User and enum class + return type.constructFromObject(data); + } else if (Array.isArray(type)) { + // for array type like: ['String'] + var itemType = type[0]; + + return data.map((item) => { + return ApiClient.convertToType(item, itemType); + }); + } else if (typeof type === 'object') { + // for plain object type like: {'String': 'Integer'} + var keyType, valueType; + for (var k in type) { + if (type.hasOwnProperty(k)) { + keyType = k; + valueType = type[k]; + break; + } + } + + var result = {}; + for (var k in data) { + if (data.hasOwnProperty(k)) { + var key = ApiClient.convertToType(k, keyType); + var value = ApiClient.convertToType(data[k], valueType); + result[key] = value; + } + } + + return result; + } else { + // for unknown type, return the data directly + return data; + } + } + } + + /** + * Gets an array of host settings + * @returns An array of host settings + */ + hostSettings() { + return [ + { + 'url': "https://api.flipdish.co", + 'description': "No description provided", + } + ]; + } + + getBasePathFromSettings(index, variables={}) { + var servers = this.hostSettings(); + + // check array index out of bound + if (index < 0 || index >= servers.length) { + throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); + } + + var server = servers[index]; + var url = server['url']; + + // go through variable and assign a value + for (var variable_name in server['variables']) { + if (variable_name in variables) { + let variable = server['variables'][variable_name]; + if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) { + url = url.replace("{" + variable_name + "}", variables[variable_name]); + } else { + throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); + } + } else { + // use default value + url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']) + } + } + return url; + } + + /** + * Constructs a new map or array model from REST data. + * @param data {Object|Array} The REST data. + * @param obj {Object|Array} The target object or array. + */ + static constructFromObject(data, obj, itemType) { + if (Array.isArray(data)) { + for (var i = 0; i < data.length; i++) { + if (data.hasOwnProperty(i)) + obj[i] = ApiClient.convertToType(data[i], itemType); + } + } else { + for (var k in data) { + if (data.hasOwnProperty(k)) + obj[k] = ApiClient.convertToType(data[k], itemType); + } + } + }; +} + +/** + * Enumeration of collection format separator strategies. + * @enum {String} + * @readonly + */ +ApiClient.CollectionFormatEnum = { + /** + * Comma-separated values. Value: csv + * @const + */ + CSV: ',', + + /** + * Space-separated values. Value: ssv + * @const + */ + SSV: ' ', + + /** + * Tab-separated values. Value: tsv + * @const + */ + TSV: '\t', + + /** + * Pipe(|)-separated values. Value: pipes + * @const + */ + PIPES: '|', + + /** + * Native array. Value: multi + * @const + */ + MULTI: 'multi' +}; + +/** +* The default API client implementation. +* @type {module:ApiClient} +*/ +ApiClient.instance = new ApiClient(); +export default ApiClient; diff --git a/src/api/AccountsApi.js b/src/api/AccountsApi.js new file mode 100644 index 00000000..89bb8665 --- /dev/null +++ b/src/api/AccountsApi.js @@ -0,0 +1,749 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import AccountDetailBase from '../model/AccountDetailBase'; +import ChangePasswordModel from '../model/ChangePasswordModel'; +import CreateAccountModel from '../model/CreateAccountModel'; +import CreateBasicAccountModel from '../model/CreateBasicAccountModel'; +import LoginModel from '../model/LoginModel'; +import LoginWithPinModel from '../model/LoginWithPinModel'; +import PasswordResetModel from '../model/PasswordResetModel'; +import RequestLoginPinModel from '../model/RequestLoginPinModel'; +import RequestLoginPinResponse from '../model/RequestLoginPinResponse'; +import RequestPasswordResetModel from '../model/RequestPasswordResetModel'; +import RequestPasswordResetPinResponse from '../model/RequestPasswordResetPinResponse'; +import RestApiArrayResultLocalisedTimeZone from '../model/RestApiArrayResultLocalisedTimeZone'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAccountDetail from '../model/RestApiResultAccountDetail'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import SetPasswordWithPinModel from '../model/SetPasswordWithPinModel'; + +/** +* Accounts service. +* @module api/AccountsApi +* @version 1.0.0 +*/ +export default class AccountsApi { + + /** + * Constructs a new AccountsApi. + * @alias module:api/AccountsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the answerSignUpQuestion operation. + * @callback module:api/AccountsApi~answerSignUpQuestionCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/String} signupStepAction + * @param {Number} answerId + * @param {module:api/AccountsApi~answerSignUpQuestionCallback} callback The callback function, accepting three arguments: error, data, response + */ + answerSignUpQuestion(signupStepAction, answerId, callback) { + let postBody = answerId; + // verify the required parameter 'signupStepAction' is set + if (signupStepAction === undefined || signupStepAction === null) { + throw new Error("Missing the required parameter 'signupStepAction' when calling answerSignUpQuestion"); + } + // verify the required parameter 'answerId' is set + if (answerId === undefined || answerId === null) { + throw new Error("Missing the required parameter 'answerId' when calling answerSignUpQuestion"); + } + + let pathParams = { + 'signupStepAction': signupStepAction + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/signupstep/{signupStepAction}/answer', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the changePassword operation. + * @callback module:api/AccountsApi~changePasswordCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/ChangePasswordModel} changePasswordModel + * @param {module:api/AccountsApi~changePasswordCallback} callback The callback function, accepting three arguments: error, data, response + */ + changePassword(changePasswordModel, callback) { + let postBody = changePasswordModel; + // verify the required parameter 'changePasswordModel' is set + if (changePasswordModel === undefined || changePasswordModel === null) { + throw new Error("Missing the required parameter 'changePasswordModel' when calling changePassword"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/password', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the changePasswordWithPin operation. + * @callback module:api/AccountsApi~changePasswordWithPinCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/SetPasswordWithPinModel} changePasswordModel + * @param {module:api/AccountsApi~changePasswordWithPinCallback} callback The callback function, accepting three arguments: error, data, response + */ + changePasswordWithPin(changePasswordModel, callback) { + let postBody = changePasswordModel; + // verify the required parameter 'changePasswordModel' is set + if (changePasswordModel === undefined || changePasswordModel === null) { + throw new Error("Missing the required parameter 'changePasswordModel' when calling changePasswordWithPin"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/password/pin', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createAccount operation. + * @callback module:api/AccountsApi~createAccountCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/CreateAccountModel} createAccountModel + * @param {module:api/AccountsApi~createAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + createAccount(createAccountModel, callback) { + let postBody = createAccountModel; + // verify the required parameter 'createAccountModel' is set + if (createAccountModel === undefined || createAccountModel === null) { + throw new Error("Missing the required parameter 'createAccountModel' when calling createAccount"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Message', 'ErrorCode', 'StackTrace', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createBasicAccount operation. + * @callback module:api/AccountsApi~createBasicAccountCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/CreateBasicAccountModel} basicAccountModel + * @param {module:api/AccountsApi~createBasicAccountCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + createBasicAccount(basicAccountModel, callback) { + let postBody = basicAccountModel; + // verify the required parameter 'basicAccountModel' is set + if (basicAccountModel === undefined || basicAccountModel === null) { + throw new Error("Missing the required parameter 'basicAccountModel' when calling createBasicAccount"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/accounts/basic-account', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAccountDetails operation. + * @callback module:api/AccountsApi~getAccountDetailsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAccountDetail} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/AccountsApi~getAccountDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAccountDetail} + */ + getAccountDetails(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAccountDetail; + return this.apiClient.callApi( + '/api/v1.0/accounts', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getLocalisedTimeZones operation. + * @callback module:api/AccountsApi~getLocalisedTimeZonesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultLocalisedTimeZone} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/AccountsApi~getLocalisedTimeZonesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultLocalisedTimeZone} + */ + getLocalisedTimeZones(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultLocalisedTimeZone; + return this.apiClient.callApi( + '/api/v1.0/accounts/timezones', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the login operation. + * @callback module:api/AccountsApi~loginCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/LoginModel} loginModel + * @param {module:api/AccountsApi~loginCallback} callback The callback function, accepting three arguments: error, data, response + */ + login(loginModel, callback) { + let postBody = loginModel; + // verify the required parameter 'loginModel' is set + if (loginModel === undefined || loginModel === null) { + throw new Error("Missing the required parameter 'loginModel' when calling login"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/login', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the loginSso operation. + * @callback module:api/AccountsApi~loginSsoCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/AccountsApi~loginSsoCallback} callback The callback function, accepting three arguments: error, data, response + */ + loginSso(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/login/sso', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the loginWithPin operation. + * @callback module:api/AccountsApi~loginWithPinCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/LoginWithPinModel} loginModel + * @param {module:api/AccountsApi~loginWithPinCallback} callback The callback function, accepting three arguments: error, data, response + */ + loginWithPin(loginModel, callback) { + let postBody = loginModel; + // verify the required parameter 'loginModel' is set + if (loginModel === undefined || loginModel === null) { + throw new Error("Missing the required parameter 'loginModel' when calling loginWithPin"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/login/pin', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the logout operation. + * @callback module:api/AccountsApi~logoutCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/AccountsApi~logoutCallback} callback The callback function, accepting three arguments: error, data, response + */ + logout(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/logout', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the passwordResetWithToken operation. + * @callback module:api/AccountsApi~passwordResetWithTokenCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/PasswordResetModel} passwordResetModel + * @param {module:api/AccountsApi~passwordResetWithTokenCallback} callback The callback function, accepting three arguments: error, data, response + */ + passwordResetWithToken(passwordResetModel, callback) { + let postBody = passwordResetModel; + // verify the required parameter 'passwordResetModel' is set + if (passwordResetModel === undefined || passwordResetModel === null) { + throw new Error("Missing the required parameter 'passwordResetModel' when calling passwordResetWithToken"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Message', 'ErrorCode', 'StackTrace', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/password', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the recaptchaValidate operation. + * @callback module:api/AccountsApi~recaptchaValidateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} token + * @param {module:api/AccountsApi~recaptchaValidateCallback} callback The callback function, accepting three arguments: error, data, response + */ + recaptchaValidate(token, callback) { + let postBody = null; + // verify the required parameter 'token' is set + if (token === undefined || token === null) { + throw new Error("Missing the required parameter 'token' when calling recaptchaValidate"); + } + + let pathParams = { + }; + let queryParams = { + 'token': token + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['Message', 'ErrorCode', 'StackTrace', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/recaptcha', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the requestLoginPin operation. + * @callback module:api/AccountsApi~requestLoginPinCallback + * @param {String} error Error message, if any. + * @param {module:model/RequestLoginPinResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/RequestLoginPinModel} requestLoginPinRequest + * @param {module:api/AccountsApi~requestLoginPinCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RequestLoginPinResponse} + */ + requestLoginPin(requestLoginPinRequest, callback) { + let postBody = requestLoginPinRequest; + // verify the required parameter 'requestLoginPinRequest' is set + if (requestLoginPinRequest === undefined || requestLoginPinRequest === null) { + throw new Error("Missing the required parameter 'requestLoginPinRequest' when calling requestLoginPin"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RequestLoginPinResponse; + return this.apiClient.callApi( + '/api/v1.0/accounts/pin', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the requestPasswordReset operation. + * @callback module:api/AccountsApi~requestPasswordResetCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/RequestPasswordResetModel} requestPasswordResetModel + * @param {module:api/AccountsApi~requestPasswordResetCallback} callback The callback function, accepting three arguments: error, data, response + */ + requestPasswordReset(requestPasswordResetModel, callback) { + let postBody = requestPasswordResetModel; + // verify the required parameter 'requestPasswordResetModel' is set + if (requestPasswordResetModel === undefined || requestPasswordResetModel === null) { + throw new Error("Missing the required parameter 'requestPasswordResetModel' when calling requestPasswordReset"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Message', 'ErrorCode', 'StackTrace', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/passwordreset', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the sendPinForPasswordReset operation. + * @callback module:api/AccountsApi~sendPinForPasswordResetCallback + * @param {String} error Error message, if any. + * @param {module:model/RequestPasswordResetPinResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/RequestPasswordResetModel} requestPasswordResetRequest + * @param {module:api/AccountsApi~sendPinForPasswordResetCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RequestPasswordResetPinResponse} + */ + sendPinForPasswordReset(requestPasswordResetRequest, callback) { + let postBody = requestPasswordResetRequest; + // verify the required parameter 'requestPasswordResetRequest' is set + if (requestPasswordResetRequest === undefined || requestPasswordResetRequest === null) { + throw new Error("Missing the required parameter 'requestPasswordResetRequest' when calling sendPinForPasswordReset"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RequestPasswordResetPinResponse; + return this.apiClient.callApi( + '/api/v1.0/accounts/password/resetpin', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the skipSignupStep operation. + * @callback module:api/AccountsApi~skipSignupStepCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/String} signupStepAction + * @param {module:api/AccountsApi~skipSignupStepCallback} callback The callback function, accepting three arguments: error, data, response + */ + skipSignupStep(signupStepAction, callback) { + let postBody = null; + // verify the required parameter 'signupStepAction' is set + if (signupStepAction === undefined || signupStepAction === null) { + throw new Error("Missing the required parameter 'signupStepAction' when calling skipSignupStep"); + } + + let pathParams = { + 'signupStepAction': signupStepAction + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts/signupstep/{signupStepAction}/skip', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateAccount operation. + * @callback module:api/AccountsApi~updateAccountCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/AccountDetailBase} updateAccountModel + * @param {module:api/AccountsApi~updateAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateAccount(updateAccountModel, callback) { + let postBody = updateAccountModel; + // verify the required parameter 'updateAccountModel' is set + if (updateAccountModel === undefined || updateAccountModel === null) { + throw new Error("Missing the required parameter 'updateAccountModel' when calling updateAccount"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Message', 'ErrorCode', 'StackTrace', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/accounts', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AddressApi.js b/src/api/AddressApi.js new file mode 100644 index 00000000..02823a1c --- /dev/null +++ b/src/api/AddressApi.js @@ -0,0 +1,258 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import GoogleAddress from '../model/GoogleAddress'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAddressFormResponse from '../model/RestApiResultAddressFormResponse'; +import RestApiResultCountryFormResponse from '../model/RestApiResultCountryFormResponse'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import StoreAddressForm from '../model/StoreAddressForm'; + +/** +* Address service. +* @module api/AddressApi +* @version 1.0.0 +*/ +export default class AddressApi { + + /** + * Constructs a new AddressApi. + * @alias module:api/AddressApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addressTemplates operation. + * @callback module:api/AddressApi~addressTemplatesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/StoreAddressForm} address + * @param {module:api/AddressApi~addressTemplatesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + addressTemplates(address, callback) { + let postBody = address; + // verify the required parameter 'address' is set + if (address === undefined || address === null) { + throw new Error("Missing the required parameter 'address' when calling addressTemplates"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/address/templates', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the formByApp operation. + * @callback module:api/AddressApi~formByAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAddressFormResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.language + * @param {module:api/AddressApi~formByAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAddressFormResponse} + */ + formByApp(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling formByApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'language': opts['language'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAddressFormResponse; + return this.apiClient.callApi( + '/api/v1.0/app/{appId}/address/form', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the formByCountry operation. + * @callback module:api/AddressApi~formByCountryCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAddressFormResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} countryCode + * @param {Object} opts Optional parameters + * @param {String} opts.language + * @param {module:api/AddressApi~formByCountryCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAddressFormResponse} + */ + formByCountry(countryCode, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'countryCode' is set + if (countryCode === undefined || countryCode === null) { + throw new Error("Missing the required parameter 'countryCode' when calling formByCountry"); + } + + let pathParams = { + 'countryCode': countryCode + }; + let queryParams = { + 'language': opts['language'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAddressFormResponse; + return this.apiClient.callApi( + '/api/v1.0/address/country/{countryCode}/form', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the formatGoogleAddress operation. + * @callback module:api/AddressApi~formatGoogleAddressCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAddressFormResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/GoogleAddress} googleAddress + * @param {Object} opts Optional parameters + * @param {String} opts.language + * @param {module:api/AddressApi~formatGoogleAddressCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAddressFormResponse} + */ + formatGoogleAddress(googleAddress, opts, callback) { + opts = opts || {}; + let postBody = googleAddress; + // verify the required parameter 'googleAddress' is set + if (googleAddress === undefined || googleAddress === null) { + throw new Error("Missing the required parameter 'googleAddress' when calling formatGoogleAddress"); + } + + let pathParams = { + }; + let queryParams = { + 'language': opts['language'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAddressFormResponse; + return this.apiClient.callApi( + '/api/v1.0/address/google', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCountries operation. + * @callback module:api/AddressApi~getCountriesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCountryFormResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Object} opts Optional parameters + * @param {String} opts.language + * @param {module:api/AddressApi~getCountriesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCountryFormResponse} + */ + getCountries(opts, callback) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'language': opts['language'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCountryFormResponse; + return this.apiClient.callApi( + '/api/v1.0/address/countries', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/ApmApi.js b/src/api/ApmApi.js new file mode 100644 index 00000000..9d33d2bd --- /dev/null +++ b/src/api/ApmApi.js @@ -0,0 +1,332 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiArrayResultApmCurrencyDataPoint from '../model/RestApiArrayResultApmCurrencyDataPoint'; +import RestApiArrayResultApmDataPoint from '../model/RestApiArrayResultApmDataPoint'; +import RestApiArrayResultApmHourlyDataPoint from '../model/RestApiArrayResultApmHourlyDataPoint'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultPhoneCall from '../model/RestApiPaginationResultPhoneCall'; +import RestApiResultApmStatistics from '../model/RestApiResultApmStatistics'; +import RestApiResultApmStatus from '../model/RestApiResultApmStatus'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Apm service. +* @module api/ApmApi +* @version 1.0.0 +*/ +export default class ApmApi { + + /** + * Constructs a new ApmApi. + * @alias module:api/ApmApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getApmStatus operation. + * @callback module:api/ApmApi~getApmStatusCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultApmStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/ApmApi~getApmStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApmStatus} + */ + getApmStatus(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getApmStatus"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultApmStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/status', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBasicStatistics operation. + * @callback module:api/ApmApi~getBasicStatisticsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultApmStatistics} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeId + * @param {module:api/ApmApi~getBasicStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApmStatistics} + */ + getBasicStatistics(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getBasicStatistics"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultApmStatistics; + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCalendarWeekStatistics operation. + * @callback module:api/ApmApi~getCalendarWeekStatisticsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultApmHourlyDataPoint} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeId + * @param {module:api/ApmApi~getCalendarWeekStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultApmHourlyDataPoint} + */ + getCalendarWeekStatistics(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCalendarWeekStatistics"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultApmHourlyDataPoint; + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics/calendar', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCallsStatistics operation. + * @callback module:api/ApmApi~getCallsStatisticsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultApmDataPoint} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} aggregateDataBy + * @param {Object} opts Optional parameters + * @param {Number} opts.dataPointLimit + * @param {Array.} opts.storeId + * @param {module:api/ApmApi~getCallsStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultApmDataPoint} + */ + getCallsStatistics(appId, aggregateDataBy, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCallsStatistics"); + } + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy === undefined || aggregateDataBy === null) { + throw new Error("Missing the required parameter 'aggregateDataBy' when calling getCallsStatistics"); + } + + let pathParams = { + 'appId': appId, + 'aggregateDataBy': aggregateDataBy + }; + let queryParams = { + 'dataPointLimit': opts['dataPointLimit'], + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultApmDataPoint; + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrderStatistics operation. + * @callback module:api/ApmApi~getOrderStatisticsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultApmCurrencyDataPoint} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} aggregateDataBy + * @param {Object} opts Optional parameters + * @param {Number} opts.dataPointLimit + * @param {Array.} opts.storeId + * @param {module:api/ApmApi~getOrderStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultApmCurrencyDataPoint} + */ + getOrderStatistics(appId, aggregateDataBy, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOrderStatistics"); + } + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy === undefined || aggregateDataBy === null) { + throw new Error("Missing the required parameter 'aggregateDataBy' when calling getOrderStatistics"); + } + + let pathParams = { + 'appId': appId, + 'aggregateDataBy': aggregateDataBy + }; + let queryParams = { + 'dataPointLimit': opts['dataPointLimit'], + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultApmCurrencyDataPoint; + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPaginatedCallList operation. + * @callback module:api/ApmApi~getPaginatedCallListCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPhoneCall} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Array.} opts.storeId + * @param {module:api/ApmApi~getPaginatedCallListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPhoneCall} + */ + getPaginatedCallList(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPaginatedCallList"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultPhoneCall; + return this.apiClient.callApi( + '/api/v1.0/{appId}/apm/calls', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AppStoreApi.js b/src/api/AppStoreApi.js new file mode 100644 index 00000000..0dec1b2b --- /dev/null +++ b/src/api/AppStoreApi.js @@ -0,0 +1,138 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultAppStoreAppSummary from '../model/RestApiPaginationResultAppStoreAppSummary'; +import RestApiResultAppStoreApp from '../model/RestApiResultAppStoreApp'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* AppStore service. +* @module api/AppStoreApi +* @version 1.0.0 +*/ +export default class AppStoreApi { + + /** + * Constructs a new AppStoreApi. + * @alias module:api/AppStoreApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getAppStoreApp operation. + * @callback module:api/AppStoreApi~getAppStoreAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppStoreApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appStoreAppId + * @param {Object} opts Optional parameters + * @param {String} opts.appId + * @param {module:api/AppStoreApi~getAppStoreAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppStoreApp} + */ + getAppStoreApp(appStoreAppId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling getAppStoreApp"); + } + + let pathParams = { + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + 'appId': opts['appId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAppStoreApp; + return this.apiClient.callApi( + '/api/v1.0/appstore/apps/{appStoreAppId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAppStoreApps operation. + * @callback module:api/AppStoreApi~getAppStoreAppsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultAppStoreAppSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} search + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Boolean} opts.excludeNotOwned + * @param {Boolean} opts.showOnlyVerified + * @param {module:api/AppStoreApi~getAppStoreAppsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultAppStoreAppSummary} + */ + getAppStoreApps(search, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'search' is set + if (search === undefined || search === null) { + throw new Error("Missing the required parameter 'search' when calling getAppStoreApps"); + } + + let pathParams = { + }; + let queryParams = { + 'search': search, + 'page': opts['page'], + 'limit': opts['limit'], + 'excludeNotOwned': opts['excludeNotOwned'], + 'showOnlyVerified': opts['showOnlyVerified'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultAppStoreAppSummary; + return this.apiClient.callApi( + '/api/v1.0/appstore/apps', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AppStoreConfigurationsApi.js b/src/api/AppStoreConfigurationsApi.js new file mode 100644 index 00000000..48cccf9c --- /dev/null +++ b/src/api/AppStoreConfigurationsApi.js @@ -0,0 +1,502 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import ExecuteConfigurationActionRequest from '../model/ExecuteConfigurationActionRequest'; +import RestApiArrayResultAppStoreAppConfigurationSummary from '../model/RestApiArrayResultAppStoreAppConfigurationSummary'; +import RestApiArrayResultAppStoreAppSummary from '../model/RestApiArrayResultAppStoreAppSummary'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAppStoreAppConfiguration from '../model/RestApiResultAppStoreAppConfiguration'; +import RestApiResultExecuteConfigurationActionResult from '../model/RestApiResultExecuteConfigurationActionResult'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateAppStoreAppConfiguration from '../model/UpdateAppStoreAppConfiguration'; +import UpdateAppStoreAppConfigurationValuesBatch from '../model/UpdateAppStoreAppConfigurationValuesBatch'; + +/** +* AppStoreConfigurations service. +* @module api/AppStoreConfigurationsApi +* @version 1.0.0 +*/ +export default class AppStoreConfigurationsApi { + + /** + * Constructs a new AppStoreConfigurationsApi. + * @alias module:api/AppStoreConfigurationsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the appStoreConfigurationsAppStoreHandleOauthResponseCode operation. + * @callback module:api/AppStoreConfigurationsApi~appStoreConfigurationsAppStoreHandleOauthResponseCodeCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appStoreAppId + * @param {module:api/AppStoreConfigurationsApi~appStoreConfigurationsAppStoreHandleOauthResponseCodeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + appStoreConfigurationsAppStoreHandleOauthResponseCode(appStoreAppId, callback) { + let postBody = null; + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling appStoreConfigurationsAppStoreHandleOauthResponseCode"); + } + + let pathParams = { + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/appstore/oauthresponse/{appStoreAppId}/responsecode', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createAppStoreConfig operation. + * @callback module:api/AppStoreConfigurationsApi~createAppStoreConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppStoreAppConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {module:api/AppStoreConfigurationsApi~createAppStoreConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppStoreAppConfiguration} + */ + createAppStoreConfig(appId, appStoreAppId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createAppStoreConfig"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling createAppStoreConfig"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAppStoreAppConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteAppStoreConfig operation. + * @callback module:api/AppStoreConfigurationsApi~deleteAppStoreConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {String} configId + * @param {module:api/AppStoreConfigurationsApi~deleteAppStoreConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + deleteAppStoreConfig(appId, appStoreAppId, configId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteAppStoreConfig"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling deleteAppStoreConfig"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling deleteAppStoreConfig"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the executeConfigurationAction operation. + * @callback module:api/AppStoreConfigurationsApi~executeConfigurationActionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultExecuteConfigurationActionResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {String} configId + * @param {module:model/ExecuteConfigurationActionRequest} executeConfigurationActionRequest + * @param {module:api/AppStoreConfigurationsApi~executeConfigurationActionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultExecuteConfigurationActionResult} + */ + executeConfigurationAction(appId, appStoreAppId, configId, executeConfigurationActionRequest, callback) { + let postBody = executeConfigurationActionRequest; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling executeConfigurationAction"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling executeConfigurationAction"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling executeConfigurationAction"); + } + // verify the required parameter 'executeConfigurationActionRequest' is set + if (executeConfigurationActionRequest === undefined || executeConfigurationActionRequest === null) { + throw new Error("Missing the required parameter 'executeConfigurationActionRequest' when calling executeConfigurationAction"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultExecuteConfigurationActionResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/action', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAppStoreConfig operation. + * @callback module:api/AppStoreConfigurationsApi~getAppStoreConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppStoreAppConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {String} configId + * @param {module:api/AppStoreConfigurationsApi~getAppStoreConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppStoreAppConfiguration} + */ + getAppStoreConfig(appId, appStoreAppId, configId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAppStoreConfig"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling getAppStoreConfig"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling getAppStoreConfig"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAppStoreAppConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getConfiguredAppSingleApp operation. + * @callback module:api/AppStoreConfigurationsApi~getConfiguredAppSingleAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultAppStoreAppConfigurationSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {module:api/AppStoreConfigurationsApi~getConfiguredAppSingleAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultAppStoreAppConfigurationSummary} + */ + getConfiguredAppSingleApp(appId, appStoreAppId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getConfiguredAppSingleApp"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling getConfiguredAppSingleApp"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultAppStoreAppConfigurationSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getConfiguredApps operation. + * @callback module:api/AppStoreConfigurationsApi~getConfiguredAppsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultAppStoreAppSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/AppStoreConfigurationsApi~getConfiguredAppsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultAppStoreAppSummary} + */ + getConfiguredApps(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getConfiguredApps"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultAppStoreAppSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateAppStoreConfig operation. + * @callback module:api/AppStoreConfigurationsApi~updateAppStoreConfigCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {String} configId + * @param {module:model/UpdateAppStoreAppConfiguration} updateAppStoreAppConfiguration + * @param {module:api/AppStoreConfigurationsApi~updateAppStoreConfigCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateAppStoreConfig(appId, appStoreAppId, configId, updateAppStoreAppConfiguration, callback) { + let postBody = updateAppStoreAppConfiguration; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateAppStoreConfig"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling updateAppStoreConfig"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling updateAppStoreConfig"); + } + // verify the required parameter 'updateAppStoreAppConfiguration' is set + if (updateAppStoreAppConfiguration === undefined || updateAppStoreAppConfiguration === null) { + throw new Error("Missing the required parameter 'updateAppStoreAppConfiguration' when calling updateAppStoreConfig"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateAppStoreConfigSettingValues operation. + * @callback module:api/AppStoreConfigurationsApi~updateAppStoreConfigSettingValuesCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {String} configId + * @param {module:model/UpdateAppStoreAppConfigurationValuesBatch} updateAppStoreAppConfigurationValues + * @param {module:api/AppStoreConfigurationsApi~updateAppStoreConfigSettingValuesCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateAppStoreConfigSettingValues(appId, appStoreAppId, configId, updateAppStoreAppConfigurationValues, callback) { + let postBody = updateAppStoreAppConfigurationValues; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateAppStoreConfigSettingValues"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling updateAppStoreConfigSettingValues"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling updateAppStoreConfigSettingValues"); + } + // verify the required parameter 'updateAppStoreAppConfigurationValues' is set + if (updateAppStoreAppConfigurationValues === undefined || updateAppStoreAppConfigurationValues === null) { + throw new Error("Missing the required parameter 'updateAppStoreAppConfigurationValues' when calling updateAppStoreConfigSettingValues"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId}/updatesettings', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AppStoreDeveloperApi.js b/src/api/AppStoreDeveloperApi.js new file mode 100644 index 00000000..9fe71154 --- /dev/null +++ b/src/api/AppStoreDeveloperApi.js @@ -0,0 +1,437 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateAppStoreApp from '../model/CreateAppStoreApp'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAppStoreApp from '../model/RestApiResultAppStoreApp'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateAppStoreApp from '../model/UpdateAppStoreApp'; +import UpdateAppStoreAppExternalProduct from '../model/UpdateAppStoreAppExternalProduct'; + +/** +* AppStoreDeveloper service. +* @module api/AppStoreDeveloperApi +* @version 1.0.0 +*/ +export default class AppStoreDeveloperApi { + + /** + * Constructs a new AppStoreDeveloperApi. + * @alias module:api/AppStoreDeveloperApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the appVerificationUpdate operation. + * @callback module:api/AppStoreDeveloperApi~appVerificationUpdateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appStoreAppId + * @param {module:model/String} verificationStatus + * @param {module:api/AppStoreDeveloperApi~appVerificationUpdateCallback} callback The callback function, accepting three arguments: error, data, response + */ + appVerificationUpdate(oauthAppId, appStoreAppId, verificationStatus, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling appVerificationUpdate"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling appVerificationUpdate"); + } + // verify the required parameter 'verificationStatus' is set + if (verificationStatus === undefined || verificationStatus === null) { + throw new Error("Missing the required parameter 'verificationStatus' when calling appVerificationUpdate"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + 'verificationStatus': verificationStatus + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/verification', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createAppStoreApp operation. + * @callback module:api/AppStoreDeveloperApi~createAppStoreAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppStoreApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {module:model/CreateAppStoreApp} createAppStoreApp + * @param {module:api/AppStoreDeveloperApi~createAppStoreAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppStoreApp} + */ + createAppStoreApp(oauthAppId, createAppStoreApp, callback) { + let postBody = createAppStoreApp; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling createAppStoreApp"); + } + // verify the required parameter 'createAppStoreApp' is set + if (createAppStoreApp === undefined || createAppStoreApp === null) { + throw new Error("Missing the required parameter 'createAppStoreApp' when calling createAppStoreApp"); + } + + let pathParams = { + 'oauthAppId': oauthAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAppStoreApp; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteAppStoreApp operation. + * @callback module:api/AppStoreDeveloperApi~deleteAppStoreAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appStoreAppId + * @param {module:api/AppStoreDeveloperApi~deleteAppStoreAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + deleteAppStoreApp(oauthAppId, appStoreAppId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling deleteAppStoreApp"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling deleteAppStoreApp"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAppExternalProduct operation. + * @callback module:api/AppStoreDeveloperApi~getAppExternalProductCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appStoreAppId + * @param {module:api/AppStoreDeveloperApi~getAppExternalProductCallback} callback The callback function, accepting three arguments: error, data, response + */ + getAppExternalProduct(oauthAppId, appStoreAppId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getAppExternalProduct"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling getAppExternalProduct"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getExternalFunctionSigningKey operation. + * @callback module:api/AppStoreDeveloperApi~getExternalFunctionSigningKeyCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appStoreAppId + * @param {module:api/AppStoreDeveloperApi~getExternalFunctionSigningKeyCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + getExternalFunctionSigningKey(oauthAppId, appStoreAppId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getExternalFunctionSigningKey"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling getExternalFunctionSigningKey"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_function_signing_key', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateAppStoreApp operation. + * @callback module:api/AppStoreDeveloperApi~updateAppStoreAppCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appStoreAppId + * @param {module:model/UpdateAppStoreApp} appStoreApp + * @param {module:api/AppStoreDeveloperApi~updateAppStoreAppCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateAppStoreApp(oauthAppId, appStoreAppId, appStoreApp, callback) { + let postBody = appStoreApp; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling updateAppStoreApp"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling updateAppStoreApp"); + } + // verify the required parameter 'appStoreApp' is set + if (appStoreApp === undefined || appStoreApp === null) { + throw new Error("Missing the required parameter 'appStoreApp' when calling updateAppStoreApp"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateExternalProduct operation. + * @callback module:api/AppStoreDeveloperApi~updateExternalProductCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appStoreAppId + * @param {module:model/UpdateAppStoreAppExternalProduct} appStoreAppExternalProduct + * @param {module:api/AppStoreDeveloperApi~updateExternalProductCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateExternalProduct(oauthAppId, appStoreAppId, appStoreAppExternalProduct, callback) { + let postBody = appStoreAppExternalProduct; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling updateExternalProduct"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling updateExternalProduct"); + } + // verify the required parameter 'appStoreAppExternalProduct' is set + if (appStoreAppExternalProduct === undefined || appStoreAppExternalProduct === null) { + throw new Error("Missing the required parameter 'appStoreAppExternalProduct' when calling updateExternalProduct"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/external_product', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadAppStoreAppLogo operation. + * @callback module:api/AppStoreDeveloperApi~uploadAppStoreAppLogoCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appStoreAppId + * @param {File} Image App Store App Logo + * @param {module:api/AppStoreDeveloperApi~uploadAppStoreAppLogoCallback} callback The callback function, accepting three arguments: error, data, response + */ + uploadAppStoreAppLogo(oauthAppId, appStoreAppId, Image, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling uploadAppStoreAppLogo"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling uploadAppStoreAppLogo"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadAppStoreAppLogo"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AppStoreEntitlementsApi.js b/src/api/AppStoreEntitlementsApi.js new file mode 100644 index 00000000..0b009586 --- /dev/null +++ b/src/api/AppStoreEntitlementsApi.js @@ -0,0 +1,88 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAppStoreAppEntitlements from '../model/RestApiResultAppStoreAppEntitlements'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* AppStoreEntitlements service. +* @module api/AppStoreEntitlementsApi +* @version 1.0.0 +*/ +export default class AppStoreEntitlementsApi { + + /** + * Constructs a new AppStoreEntitlementsApi. + * @alias module:api/AppStoreEntitlementsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getAppStoreAppEntitlements operation. + * @callback module:api/AppStoreEntitlementsApi~getAppStoreAppEntitlementsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppStoreAppEntitlements} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreAppId + * @param {module:api/AppStoreEntitlementsApi~getAppStoreAppEntitlementsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppStoreAppEntitlements} + */ + getAppStoreAppEntitlements(appId, appStoreAppId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAppStoreAppEntitlements"); + } + // verify the required parameter 'appStoreAppId' is set + if (appStoreAppId === undefined || appStoreAppId === null) { + throw new Error("Missing the required parameter 'appStoreAppId' when calling getAppStoreAppEntitlements"); + } + + let pathParams = { + 'appId': appId, + 'appStoreAppId': appStoreAppId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultAppStoreAppEntitlements; + return this.apiClient.callApi( + '/api/v1.0/{appId}/appstore/apps/{appStoreAppId}/entitlements', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AppsApi.js b/src/api/AppsApi.js new file mode 100644 index 00000000..816409d5 --- /dev/null +++ b/src/api/AppsApi.js @@ -0,0 +1,895 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import AppConfigUpdateModel from '../model/AppConfigUpdateModel'; +import AppLookup from '../model/AppLookup'; +import CreateAppParameters from '../model/CreateAppParameters'; +import Language from '../model/Language'; +import RestApiArrayResultSupportedCountry from '../model/RestApiArrayResultSupportedCountry'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultApp from '../model/RestApiPaginationResultApp'; +import RestApiResultApp from '../model/RestApiResultApp'; +import RestApiResultAppCompliance from '../model/RestApiResultAppCompliance'; +import RestApiResultDnsRecordInformation from '../model/RestApiResultDnsRecordInformation'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Apps service. +* @module api/AppsApi +* @version 1.0.0 +*/ +export default class AppsApi { + + /** + * Constructs a new AppsApi. + * @alias module:api/AppsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the appsSetPropertyId operation. + * @callback module:api/AppsApi~appsSetPropertyIdCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} orgId + * @param {module:api/AppsApi~appsSetPropertyIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + appsSetPropertyId(appId, orgId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling appsSetPropertyId"); + } + // verify the required parameter 'orgId' is set + if (orgId === undefined || orgId === null) { + throw new Error("Missing the required parameter 'orgId' when calling appsSetPropertyId"); + } + + let pathParams = { + 'appId': appId, + 'orgId': orgId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/orgId/{orgId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createApp operation. + * @callback module:api/AppsApi~createAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/CreateAppParameters} parameters + * @param {module:api/AppsApi~createAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + createApp(parameters, callback) { + let postBody = parameters; + // verify the required parameter 'parameters' is set + if (parameters === undefined || parameters === null) { + throw new Error("Missing the required parameter 'parameters' when calling createApp"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/apps', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getApp operation. + * @callback module:api/AppsApi~getAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/AppsApi~getAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApp} + */ + getApp(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultApp; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAppHostnameStatus operation. + * @callback module:api/AppsApi~getAppHostnameStatusCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultDnsRecordInformation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/AppsApi~getAppHostnameStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDnsRecordInformation} + */ + getAppHostnameStatus(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAppHostnameStatus"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultDnsRecordInformation; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/hostnamestatus', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAppName operation. + * @callback module:api/AppsApi~getAppNameCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/AppsApi~getAppNameCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + getAppName(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAppName"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/name', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getApps operation. + * @callback module:api/AppsApi~getAppsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Object} opts Optional parameters + * @param {String} opts.nameFilter + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/AppsApi~getAppsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultApp} + */ + getApps(opts, callback) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'nameFilter': opts['nameFilter'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultApp; + return this.apiClient.callApi( + '/api/v1.0/apps', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCompliance operation. + * @callback module:api/AppsApi~getComplianceCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppCompliance} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/AppsApi~getComplianceCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppCompliance} + */ + getCompliance(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCompliance"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultAppCompliance; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/compliance', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPanaceaVanityUrl operation. + * @callback module:api/AppsApi~getPanaceaVanityUrlCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/AppsApi~getPanaceaVanityUrlCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + getPanaceaVanityUrl(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPanaceaVanityUrl"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/panacea/url', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getSupportedCountries operation. + * @callback module:api/AppsApi~getSupportedCountriesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultSupportedCountry} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/AppsApi~getSupportedCountriesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultSupportedCountry} + */ + getSupportedCountries(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultSupportedCountry; + return this.apiClient.callApi( + '/api/v1.0/apps/supportedcountries', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the isPanaceaVanityUrlAvailable operation. + * @callback module:api/AppsApi~isPanaceaVanityUrlAvailableCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} vanityUrl + * @param {String} appId + * @param {module:api/AppsApi~isPanaceaVanityUrlAvailableCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + isPanaceaVanityUrlAvailable(vanityUrl, appId, callback) { + let postBody = null; + // verify the required parameter 'vanityUrl' is set + if (vanityUrl === undefined || vanityUrl === null) { + throw new Error("Missing the required parameter 'vanityUrl' when calling isPanaceaVanityUrlAvailable"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling isPanaceaVanityUrlAvailable"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'vanityUrl': vanityUrl + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/panacea/url/available', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the lookupByWhitelabelId operation. + * @callback module:api/AppsApi~lookupByWhitelabelIdCallback + * @param {String} error Error message, if any. + * @param {module:model/AppLookup} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} whitelabelId + * @param {module:api/AppsApi~lookupByWhitelabelIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/AppLookup} + */ + lookupByWhitelabelId(whitelabelId, callback) { + let postBody = null; + // verify the required parameter 'whitelabelId' is set + if (whitelabelId === undefined || whitelabelId === null) { + throw new Error("Missing the required parameter 'whitelabelId' when calling lookupByWhitelabelId"); + } + + let pathParams = { + 'whitelabelId': whitelabelId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = AppLookup; + return this.apiClient.callApi( + '/api/v1.0/apps/{whitelabelId}/lookup', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setAppConfig operation. + * @callback module:api/AppsApi~setAppConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/AppConfigUpdateModel} appConfigUpdate + * @param {module:api/AppsApi~setAppConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApp} + */ + setAppConfig(appId, appConfigUpdate, callback) { + let postBody = appConfigUpdate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setAppConfig"); + } + // verify the required parameter 'appConfigUpdate' is set + if (appConfigUpdate === undefined || appConfigUpdate === null) { + throw new Error("Missing the required parameter 'appConfigUpdate' when calling setAppConfig"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultApp; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/config', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setAppHostname operation. + * @callback module:api/AppsApi~setAppHostnameCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} hostname + * @param {Object} opts Optional parameters + * @param {Boolean} opts.isEmbed + * @param {module:api/AppsApi~setAppHostnameCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + setAppHostname(appId, hostname, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setAppHostname"); + } + // verify the required parameter 'hostname' is set + if (hostname === undefined || hostname === null) { + throw new Error("Missing the required parameter 'hostname' when calling setAppHostname"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'hostname': hostname, + 'isEmbed': opts['isEmbed'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/hostname', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setAppLanguages operation. + * @callback module:api/AppsApi~setAppLanguagesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Array.} languages + * @param {module:api/AppsApi~setAppLanguagesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultApp} + */ + setAppLanguages(appId, languages, callback) { + let postBody = languages; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setAppLanguages"); + } + // verify the required parameter 'languages' is set + if (languages === undefined || languages === null) { + throw new Error("Missing the required parameter 'languages' when calling setAppLanguages"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultApp; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/config/languages', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setAppStoreName operation. + * @callback module:api/AppsApi~setAppStoreNameCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} appStoreName + * @param {module:api/AppsApi~setAppStoreNameCallback} callback The callback function, accepting three arguments: error, data, response + */ + setAppStoreName(appId, appStoreName, callback) { + let postBody = appStoreName; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setAppStoreName"); + } + // verify the required parameter 'appStoreName' is set + if (appStoreName === undefined || appStoreName === null) { + throw new Error("Missing the required parameter 'appStoreName' when calling setAppStoreName"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/appstorename', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setCompliance operation. + * @callback module:api/AppsApi~setComplianceCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppCompliance} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} complianceType + * @param {module:api/AppsApi~setComplianceCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppCompliance} + */ + setCompliance(appId, complianceType, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setCompliance"); + } + // verify the required parameter 'complianceType' is set + if (complianceType === undefined || complianceType === null) { + throw new Error("Missing the required parameter 'complianceType' when calling setCompliance"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'complianceType': complianceType + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultAppCompliance; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/compliance', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setPanaceaVanityUrl operation. + * @callback module:api/AppsApi~setPanaceaVanityUrlCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} vanityUrl + * @param {module:api/AppsApi~setPanaceaVanityUrlCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + setPanaceaVanityUrl(appId, vanityUrl, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setPanaceaVanityUrl"); + } + // verify the required parameter 'vanityUrl' is set + if (vanityUrl === undefined || vanityUrl === null) { + throw new Error("Missing the required parameter 'vanityUrl' when calling setPanaceaVanityUrl"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'vanityUrl': vanityUrl + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/panacea/url', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the toggleNextGenWeb operation. + * @callback module:api/AppsApi~toggleNextGenWebCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} hostname + * @param {String} vanityUrl + * @param {Boolean} isNextGenWeb + * @param {module:api/AppsApi~toggleNextGenWebCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + toggleNextGenWeb(appId, hostname, vanityUrl, isNextGenWeb, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling toggleNextGenWeb"); + } + // verify the required parameter 'hostname' is set + if (hostname === undefined || hostname === null) { + throw new Error("Missing the required parameter 'hostname' when calling toggleNextGenWeb"); + } + // verify the required parameter 'vanityUrl' is set + if (vanityUrl === undefined || vanityUrl === null) { + throw new Error("Missing the required parameter 'vanityUrl' when calling toggleNextGenWeb"); + } + // verify the required parameter 'isNextGenWeb' is set + if (isNextGenWeb === undefined || isNextGenWeb === null) { + throw new Error("Missing the required parameter 'isNextGenWeb' when calling toggleNextGenWeb"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'hostname': hostname, + 'vanityUrl': vanityUrl, + 'isNextGenWeb': isNextGenWeb + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/nextgenweb', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadAppLogo operation. + * @callback module:api/AppsApi~uploadAppLogoCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {File} Image App Logo + * @param {module:api/AppsApi~uploadAppLogoCallback} callback The callback function, accepting three arguments: error, data, response + */ + uploadAppLogo(appId, Image, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling uploadAppLogo"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadAppLogo"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/apps/{appId}/logo', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AuditLogsApi.js b/src/api/AuditLogsApi.js new file mode 100644 index 00000000..796ba464 --- /dev/null +++ b/src/api/AuditLogsApi.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import ExternalStoreAuditLog from '../model/ExternalStoreAuditLog'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* AuditLogs service. +* @module api/AuditLogsApi +* @version 1.0.0 +*/ +export default class AuditLogsApi { + + /** + * Constructs a new AuditLogsApi. + * @alias module:api/AuditLogsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addOrderAuditLog operation. + * @callback module:api/AuditLogsApi~addOrderAuditLogCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {Array.} externalEventCreate + * @param {module:api/AuditLogsApi~addOrderAuditLogCallback} callback The callback function, accepting three arguments: error, data, response + */ + addOrderAuditLog(orderId, externalEventCreate, callback) { + let postBody = externalEventCreate; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling addOrderAuditLog"); + } + // verify the required parameter 'externalEventCreate' is set + if (externalEventCreate === undefined || externalEventCreate === null) { + throw new Error("Missing the required parameter 'externalEventCreate' when calling addOrderAuditLog"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Message', 'ErrorCode', 'StackTrace', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/auditlogs/orders/{orderId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the addStoreAuditLogEvent operation. + * @callback module:api/AuditLogsApi~addStoreAuditLogEventCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Array.} externalEventCreate + * @param {module:api/AuditLogsApi~addStoreAuditLogEventCallback} callback The callback function, accepting three arguments: error, data, response + */ + addStoreAuditLogEvent(storeId, externalEventCreate, callback) { + let postBody = externalEventCreate; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling addStoreAuditLogEvent"); + } + // verify the required parameter 'externalEventCreate' is set + if (externalEventCreate === undefined || externalEventCreate === null) { + throw new Error("Missing the required parameter 'externalEventCreate' when calling addStoreAuditLogEvent"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/auditlogs/stores/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/AuthorizationTokensApi.js b/src/api/AuthorizationTokensApi.js new file mode 100644 index 00000000..569da7ab --- /dev/null +++ b/src/api/AuthorizationTokensApi.js @@ -0,0 +1,140 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultOAuthTokenModel from '../model/RestApiPaginationResultOAuthTokenModel'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* AuthorizationTokens service. +* @module api/AuthorizationTokensApi +* @version 1.0.0 +*/ +export default class AuthorizationTokensApi { + + /** + * Constructs a new AuthorizationTokensApi. + * @alias module:api/AuthorizationTokensApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getAuthorizationTokens operation. + * @callback module:api/AuthorizationTokensApi~getAuthorizationTokensCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultOAuthTokenModel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/AuthorizationTokensApi~getAuthorizationTokensCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultOAuthTokenModel} + */ + getAuthorizationTokens(oauthAppId, appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getAuthorizationTokens"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAuthorizationTokens"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiPaginationResultOAuthTokenModel; + return this.apiClient.callApi( + '/api/v1.0/{appId}/authorizationtokens/{oauthAppId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the revokeToken operation. + * @callback module:api/AuthorizationTokensApi~revokeTokenCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} key + * @param {String} appId + * @param {module:api/AuthorizationTokensApi~revokeTokenCallback} callback The callback function, accepting three arguments: error, data, response + */ + revokeToken(key, appId, callback) { + let postBody = null; + // verify the required parameter 'key' is set + if (key === undefined || key === null) { + throw new Error("Missing the required parameter 'key' when calling revokeToken"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling revokeToken"); + } + + let pathParams = { + 'key': key, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/authorizationtokens/{key}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/BankAccountApi.js b/src/api/BankAccountApi.js new file mode 100644 index 00000000..0defbc8b --- /dev/null +++ b/src/api/BankAccountApi.js @@ -0,0 +1,467 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import BankAccountCreate from '../model/BankAccountCreate'; +import RestApiArrayResultBankAccountSummary from '../model/RestApiArrayResultBankAccountSummary'; +import RestApiArrayResultCountryWithAccountFieldsDefinitions from '../model/RestApiArrayResultCountryWithAccountFieldsDefinitions'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAccountFieldsDefinitions from '../model/RestApiResultAccountFieldsDefinitions'; +import RestApiResultBankAccountDetail from '../model/RestApiResultBankAccountDetail'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* BankAccount service. +* @module api/BankAccountApi +* @version 1.0.0 +*/ +export default class BankAccountApi { + + /** + * Constructs a new BankAccountApi. + * @alias module:api/BankAccountApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the attachBankAccountToStore operation. + * @callback module:api/BankAccountApi~attachBankAccountToStoreCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} storeId + * @param {module:api/BankAccountApi~attachBankAccountToStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + attachBankAccountToStore(appId, bankAccountId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling attachBankAccountToStore"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling attachBankAccountToStore"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling attachBankAccountToStore"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/store/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createBankAccount operation. + * @callback module:api/BankAccountApi~createBankAccountCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultBankAccountDetail} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/BankAccountCreate} account + * @param {module:api/BankAccountApi~createBankAccountCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBankAccountDetail} + */ + createBankAccount(appId, account, callback) { + let postBody = account; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createBankAccount"); + } + // verify the required parameter 'account' is set + if (account === undefined || account === null) { + throw new Error("Missing the required parameter 'account' when calling createBankAccount"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultBankAccountDetail; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteBankAccount operation. + * @callback module:api/BankAccountApi~deleteBankAccountCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {module:api/BankAccountApi~deleteBankAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteBankAccount(appId, bankAccountId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteBankAccount"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling deleteBankAccount"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBankAccountById operation. + * @callback module:api/BankAccountApi~getBankAccountByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultBankAccountDetail} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} bankAccountId + * @param {String} appId + * @param {module:api/BankAccountApi~getBankAccountByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBankAccountDetail} + */ + getBankAccountById(bankAccountId, appId, callback) { + let postBody = null; + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getBankAccountById"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getBankAccountById"); + } + + let pathParams = { + 'bankAccountId': bankAccountId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultBankAccountDetail; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBankAccounts operation. + * @callback module:api/BankAccountApi~getBankAccountsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultBankAccountSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/BankAccountApi~getBankAccountsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultBankAccountSummary} + */ + getBankAccounts(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getBankAccounts"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultBankAccountSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCountriesWithFieldDefinitions operation. + * @callback module:api/BankAccountApi~getCountriesWithFieldDefinitionsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/BankAccountApi~getCountriesWithFieldDefinitionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions} + */ + getCountriesWithFieldDefinitions(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCountriesWithFieldDefinitions"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultCountryWithAccountFieldsDefinitions; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/countries-field-definitions', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getFieldDefinitions operation. + * @callback module:api/BankAccountApi~getFieldDefinitionsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAccountFieldsDefinitions} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/BankAccountApi~getFieldDefinitionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAccountFieldsDefinitions} + */ + getFieldDefinitions(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getFieldDefinitions"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultAccountFieldsDefinitions; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/field-definitions', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateBankAccount operation. + * @callback module:api/BankAccountApi~updateBankAccountCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {module:model/BankAccountCreate} account + * @param {module:api/BankAccountApi~updateBankAccountCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateBankAccount(appId, bankAccountId, account, callback) { + let postBody = account; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateBankAccount"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling updateBankAccount"); + } + // verify the required parameter 'account' is set + if (account === undefined || account === null) { + throw new Error("Missing the required parameter 'account' when calling updateBankAccount"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateBankAccountState operation. + * @callback module:api/BankAccountApi~updateBankAccountStateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {String} state + * @param {String} reason + * @param {module:api/BankAccountApi~updateBankAccountStateCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateBankAccountState(appId, bankAccountId, state, reason, callback) { + let postBody = reason; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateBankAccountState"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling updateBankAccountState"); + } + // verify the required parameter 'state' is set + if (state === undefined || state === null) { + throw new Error("Missing the required parameter 'state' when calling updateBankAccountState"); + } + // verify the required parameter 'reason' is set + if (reason === undefined || reason === null) { + throw new Error("Missing the required parameter 'reason' when calling updateBankAccountState"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'state': state + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CampaignsApi.js b/src/api/CampaignsApi.js new file mode 100644 index 00000000..92e61344 --- /dev/null +++ b/src/api/CampaignsApi.js @@ -0,0 +1,510 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import LoyaltyCampaignBase from '../model/LoyaltyCampaignBase'; +import RestApiArrayResultLoyaltyCampaign from '../model/RestApiArrayResultLoyaltyCampaign'; +import RestApiArrayResultRetentionCampaign from '../model/RestApiArrayResultRetentionCampaign'; +import RestApiArrayResultStoreListItem from '../model/RestApiArrayResultStoreListItem'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultLoyaltyCampaign from '../model/RestApiResultLoyaltyCampaign'; +import RestApiResultRetentionCampaign from '../model/RestApiResultRetentionCampaign'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import RetentionCampaignBase from '../model/RetentionCampaignBase'; + +/** +* Campaigns service. +* @module api/CampaignsApi +* @version 1.0.0 +*/ +export default class CampaignsApi { + + /** + * Constructs a new CampaignsApi. + * @alias module:api/CampaignsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createLoyaltyCampaign operation. + * @callback module:api/CampaignsApi~createLoyaltyCampaignCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultLoyaltyCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/LoyaltyCampaignBase} campaign + * @param {module:api/CampaignsApi~createLoyaltyCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLoyaltyCampaign} + */ + createLoyaltyCampaign(appId, campaign, callback) { + let postBody = campaign; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createLoyaltyCampaign"); + } + // verify the required parameter 'campaign' is set + if (campaign === undefined || campaign === null) { + throw new Error("Missing the required parameter 'campaign' when calling createLoyaltyCampaign"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultLoyaltyCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createRetentionCampaign operation. + * @callback module:api/CampaignsApi~createRetentionCampaignCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRetentionCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/RetentionCampaignBase} campaign + * @param {module:api/CampaignsApi~createRetentionCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRetentionCampaign} + */ + createRetentionCampaign(appId, campaign, callback) { + let postBody = campaign; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createRetentionCampaign"); + } + // verify the required parameter 'campaign' is set + if (campaign === undefined || campaign === null) { + throw new Error("Missing the required parameter 'campaign' when calling createRetentionCampaign"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultRetentionCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getLoyaltyCampaignsForApp operation. + * @callback module:api/CampaignsApi~getLoyaltyCampaignsForAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultLoyaltyCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/CampaignsApi~getLoyaltyCampaignsForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultLoyaltyCampaign} + */ + getLoyaltyCampaignsForApp(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getLoyaltyCampaignsForApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultLoyaltyCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getLoyaltyCampaignsForStore operation. + * @callback module:api/CampaignsApi~getLoyaltyCampaignsForStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultLoyaltyCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:api/CampaignsApi~getLoyaltyCampaignsForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultLoyaltyCampaign} + */ + getLoyaltyCampaignsForStore(appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getLoyaltyCampaignsForStore"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getLoyaltyCampaignsForStore"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultLoyaltyCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRetentionCampaignsForApp operation. + * @callback module:api/CampaignsApi~getRetentionCampaignsForAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRetentionCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/CampaignsApi~getRetentionCampaignsForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRetentionCampaign} + */ + getRetentionCampaignsForApp(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getRetentionCampaignsForApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultRetentionCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRetentionCampaignsForStore operation. + * @callback module:api/CampaignsApi~getRetentionCampaignsForStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRetentionCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:api/CampaignsApi~getRetentionCampaignsForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRetentionCampaign} + */ + getRetentionCampaignsForStore(appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getRetentionCampaignsForStore"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getRetentionCampaignsForStore"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultRetentionCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreList operation. + * @callback module:api/CampaignsApi~getStoreListCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultStoreListItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Boolean} opts.onlyPublished + * @param {module:api/CampaignsApi~getStoreListCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultStoreListItem} + */ + getStoreList(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoreList"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'onlyPublished': opts['onlyPublished'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultStoreListItem; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the removeCampaign operation. + * @callback module:api/CampaignsApi~removeCampaignCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} campaignId + * @param {module:api/CampaignsApi~removeCampaignCallback} callback The callback function, accepting three arguments: error, data, response + */ + removeCampaign(appId, campaignId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling removeCampaign"); + } + // verify the required parameter 'campaignId' is set + if (campaignId === undefined || campaignId === null) { + throw new Error("Missing the required parameter 'campaignId' when calling removeCampaign"); + } + + let pathParams = { + 'appId': appId, + 'campaignId': campaignId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/{campaignId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateLoyaltyCampaign operation. + * @callback module:api/CampaignsApi~updateLoyaltyCampaignCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultLoyaltyCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} campaignId + * @param {module:model/LoyaltyCampaignBase} campaign + * @param {module:api/CampaignsApi~updateLoyaltyCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLoyaltyCampaign} + */ + updateLoyaltyCampaign(appId, campaignId, campaign, callback) { + let postBody = campaign; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateLoyaltyCampaign"); + } + // verify the required parameter 'campaignId' is set + if (campaignId === undefined || campaignId === null) { + throw new Error("Missing the required parameter 'campaignId' when calling updateLoyaltyCampaign"); + } + // verify the required parameter 'campaign' is set + if (campaign === undefined || campaign === null) { + throw new Error("Missing the required parameter 'campaign' when calling updateLoyaltyCampaign"); + } + + let pathParams = { + 'appId': appId, + 'campaignId': campaignId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultLoyaltyCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/loyalty/{campaignId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateRetentionCampaign operation. + * @callback module:api/CampaignsApi~updateRetentionCampaignCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRetentionCampaign} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} campaignId + * @param {module:model/RetentionCampaignBase} campaign + * @param {module:api/CampaignsApi~updateRetentionCampaignCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRetentionCampaign} + */ + updateRetentionCampaign(appId, campaignId, campaign, callback) { + let postBody = campaign; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateRetentionCampaign"); + } + // verify the required parameter 'campaignId' is set + if (campaignId === undefined || campaignId === null) { + throw new Error("Missing the required parameter 'campaignId' when calling updateRetentionCampaign"); + } + // verify the required parameter 'campaign' is set + if (campaign === undefined || campaign === null) { + throw new Error("Missing the required parameter 'campaign' when calling updateRetentionCampaign"); + } + + let pathParams = { + 'appId': appId, + 'campaignId': campaignId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultRetentionCampaign; + return this.apiClient.callApi( + '/api/v1.0/{appId}/campaigns/retention/{campaignId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CardReadersApi.js b/src/api/CardReadersApi.js new file mode 100644 index 00000000..4f423567 --- /dev/null +++ b/src/api/CardReadersApi.js @@ -0,0 +1,674 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CardReaderRegistrationRequest from '../model/CardReaderRegistrationRequest'; +import GeoPointRequest from '../model/GeoPointRequest'; +import ProcessPaymentIntentRequest from '../model/ProcessPaymentIntentRequest'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultBluetoothTerminalStatus from '../model/RestApiResultBluetoothTerminalStatus'; +import RestApiResultCardReader from '../model/RestApiResultCardReader'; +import RestApiResultStripeTerminalConnectionToken from '../model/RestApiResultStripeTerminalConnectionToken'; +import RestApiResultStripeTerminalLocation from '../model/RestApiResultStripeTerminalLocation'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UnRegisterCardReaderRequest from '../model/UnRegisterCardReaderRequest'; + +/** +* CardReaders service. +* @module api/CardReadersApi +* @version 1.0.0 +*/ +export default class CardReadersApi { + + /** + * Constructs a new CardReadersApi. + * @alias module:api/CardReadersApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the cancelCurrentlyInitiatedBluetoothDeviceUpdate operation. + * @callback module:api/CardReadersApi~cancelCurrentlyInitiatedBluetoothDeviceUpdateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:model/String} terminalType + * @param {module:api/CardReadersApi~cancelCurrentlyInitiatedBluetoothDeviceUpdateCallback} callback The callback function, accepting three arguments: error, data, response + */ + cancelCurrentlyInitiatedBluetoothDeviceUpdate(appId, deviceId, terminalType, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling cancelCurrentlyInitiatedBluetoothDeviceUpdate"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling cancelCurrentlyInitiatedBluetoothDeviceUpdate"); + } + // verify the required parameter 'terminalType' is set + if (terminalType === undefined || terminalType === null) { + throw new Error("Missing the required parameter 'terminalType' when calling cancelCurrentlyInitiatedBluetoothDeviceUpdate"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'terminalType': terminalType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the cancelReaderAction operation. + * @callback module:api/CardReadersApi~cancelReaderActionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCardReader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} readerId + * @param {String} appId + * @param {module:api/CardReadersApi~cancelReaderActionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCardReader} + */ + cancelReaderAction(readerId, appId, callback) { + let postBody = null; + // verify the required parameter 'readerId' is set + if (readerId === undefined || readerId === null) { + throw new Error("Missing the required parameter 'readerId' when calling cancelReaderAction"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling cancelReaderAction"); + } + + let pathParams = { + 'readerId': readerId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCardReader; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the cardReadersGetReader operation. + * @callback module:api/CardReadersApi~cardReadersGetReaderCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCardReader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} readerId + * @param {String} appId + * @param {module:api/CardReadersApi~cardReadersGetReaderCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCardReader} + */ + cardReadersGetReader(readerId, appId, callback) { + let postBody = null; + // verify the required parameter 'readerId' is set + if (readerId === undefined || readerId === null) { + throw new Error("Missing the required parameter 'readerId' when calling cardReadersGetReader"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling cardReadersGetReader"); + } + + let pathParams = { + 'readerId': readerId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCardReader; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payments/terminals/stripe/{readerId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the generateStripeTerminalLocation operation. + * @callback module:api/CardReadersApi~generateStripeTerminalLocationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeTerminalLocation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/GeoPointRequest} geoPointRequest + * @param {module:api/CardReadersApi~generateStripeTerminalLocationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeTerminalLocation} + */ + generateStripeTerminalLocation(appId, geoPointRequest, callback) { + let postBody = geoPointRequest; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling generateStripeTerminalLocation"); + } + // verify the required parameter 'geoPointRequest' is set + if (geoPointRequest === undefined || geoPointRequest === null) { + throw new Error("Missing the required parameter 'geoPointRequest' when calling generateStripeTerminalLocation"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStripeTerminalLocation; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stripeterminal/location', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBluetoothTerminalStatus operation. + * @callback module:api/CardReadersApi~getBluetoothTerminalStatusCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultBluetoothTerminalStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:api/CardReadersApi~getBluetoothTerminalStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBluetoothTerminalStatus} + */ + getBluetoothTerminalStatus(appId, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getBluetoothTerminalStatus"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling getBluetoothTerminalStatus"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultBluetoothTerminalStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStripeConnectionToken operation. + * @callback module:api/CardReadersApi~getStripeConnectionTokenCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeTerminalConnectionToken} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/CardReadersApi~getStripeConnectionTokenCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeTerminalConnectionToken} + */ + getStripeConnectionToken(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStripeConnectionToken"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStripeTerminalConnectionToken; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stripeterminal/connectiontoken', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the initiateBluetoothTerminalDeviceUpdateCheck operation. + * @callback module:api/CardReadersApi~initiateBluetoothTerminalDeviceUpdateCheckCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {String} terminalType + * @param {module:api/CardReadersApi~initiateBluetoothTerminalDeviceUpdateCheckCallback} callback The callback function, accepting three arguments: error, data, response + */ + initiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling initiateBluetoothTerminalDeviceUpdateCheck"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling initiateBluetoothTerminalDeviceUpdateCheck"); + } + // verify the required parameter 'terminalType' is set + if (terminalType === undefined || terminalType === null) { + throw new Error("Missing the required parameter 'terminalType' when calling initiateBluetoothTerminalDeviceUpdateCheck"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'terminalType': terminalType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the initiateKioskBluetoothPairingMode operation. + * @callback module:api/CardReadersApi~initiateKioskBluetoothPairingModeCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:model/String} terminalType + * @param {module:api/CardReadersApi~initiateKioskBluetoothPairingModeCallback} callback The callback function, accepting three arguments: error, data, response + */ + initiateKioskBluetoothPairingMode(appId, deviceId, terminalType, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling initiateKioskBluetoothPairingMode"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling initiateKioskBluetoothPairingMode"); + } + // verify the required parameter 'terminalType' is set + if (terminalType === undefined || terminalType === null) { + throw new Error("Missing the required parameter 'terminalType' when calling initiateKioskBluetoothPairingMode"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'terminalType': terminalType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the initiateKioskBluetoothUpdateInstall operation. + * @callback module:api/CardReadersApi~initiateKioskBluetoothUpdateInstallCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:model/String} terminalType + * @param {module:api/CardReadersApi~initiateKioskBluetoothUpdateInstallCallback} callback The callback function, accepting three arguments: error, data, response + */ + initiateKioskBluetoothUpdateInstall(appId, deviceId, terminalType, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling initiateKioskBluetoothUpdateInstall"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling initiateKioskBluetoothUpdateInstall"); + } + // verify the required parameter 'terminalType' is set + if (terminalType === undefined || terminalType === null) { + throw new Error("Missing the required parameter 'terminalType' when calling initiateKioskBluetoothUpdateInstall"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'terminalType': terminalType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the initiateReaderProcessPaymentIntent operation. + * @callback module:api/CardReadersApi~initiateReaderProcessPaymentIntentCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCardReader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} readerId + * @param {String} appId + * @param {module:model/ProcessPaymentIntentRequest} request + * @param {module:api/CardReadersApi~initiateReaderProcessPaymentIntentCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCardReader} + */ + initiateReaderProcessPaymentIntent(readerId, appId, request, callback) { + let postBody = request; + // verify the required parameter 'readerId' is set + if (readerId === undefined || readerId === null) { + throw new Error("Missing the required parameter 'readerId' when calling initiateReaderProcessPaymentIntent"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling initiateReaderProcessPaymentIntent"); + } + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling initiateReaderProcessPaymentIntent"); + } + + let pathParams = { + 'readerId': readerId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCardReader; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the registerStripeTerminal operation. + * @callback module:api/CardReadersApi~registerStripeTerminalCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCardReader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/CardReaderRegistrationRequest} request + * @param {module:api/CardReadersApi~registerStripeTerminalCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCardReader} + */ + registerStripeTerminal(appId, request, callback) { + let postBody = request; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling registerStripeTerminal"); + } + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling registerStripeTerminal"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCardReader; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payments/terminals/stripe/register', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unRegisterTerminal operation. + * @callback module:api/CardReadersApi~unRegisterTerminalCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCardReader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/UnRegisterCardReaderRequest} request + * @param {module:api/CardReadersApi~unRegisterTerminalCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCardReader} + */ + unRegisterTerminal(appId, request, callback) { + let postBody = request; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling unRegisterTerminal"); + } + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling unRegisterTerminal"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCardReader; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payments/terminals/stripe/unregister', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unpairCurrentlyPairedBluetoothDevice operation. + * @callback module:api/CardReadersApi~unpairCurrentlyPairedBluetoothDeviceCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:api/CardReadersApi~unpairCurrentlyPairedBluetoothDeviceCallback} callback The callback function, accepting three arguments: error, data, response + */ + unpairCurrentlyPairedBluetoothDevice(appId, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling unpairCurrentlyPairedBluetoothDevice"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling unpairCurrentlyPairedBluetoothDevice"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CatalogChangesApi.js b/src/api/CatalogChangesApi.js new file mode 100644 index 00000000..9bf27233 --- /dev/null +++ b/src/api/CatalogChangesApi.js @@ -0,0 +1,185 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import PublishMenuChanges from '../model/PublishMenuChanges'; +import RestApiArrayResultPendingMenuChangesSummaries from '../model/RestApiArrayResultPendingMenuChangesSummaries'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultPendingMenuChanges from '../model/RestApiPaginationResultPendingMenuChanges'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* CatalogChanges service. +* @module api/CatalogChangesApi +* @version 1.0.0 +*/ +export default class CatalogChangesApi { + + /** + * Constructs a new CatalogChangesApi. + * @alias module:api/CatalogChangesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getPendingMenuChanges operation. + * @callback module:api/CatalogChangesApi~getPendingMenuChangesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPendingMenuChanges} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu pending changes from Catalog groups and items + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.menuId + * @param {String} opts.catalogItemId + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/CatalogChangesApi~getPendingMenuChangesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPendingMenuChanges} + */ + getPendingMenuChanges(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPendingMenuChanges"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'menuId': opts['menuId'], + 'catalogItemId': opts['catalogItemId'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultPendingMenuChanges; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/catalog-changes', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPendingMenuChangesSummaries operation. + * @callback module:api/CatalogChangesApi~getPendingMenuChangesSummariesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultPendingMenuChangesSummaries} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu pending changes summaries by appId + * @param {String} appId + * @param {module:api/CatalogChangesApi~getPendingMenuChangesSummariesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultPendingMenuChangesSummaries} + */ + getPendingMenuChangesSummaries(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPendingMenuChangesSummaries"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultPendingMenuChangesSummaries; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/catalog-changes/summaries', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the publishPendingMenuChanges operation. + * @callback module:api/CatalogChangesApi~publishPendingMenuChangesCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menus with the pending changes from Catalog groups and items + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {module:model/PublishMenuChanges} publishMenuChanges + * @param {module:api/CatalogChangesApi~publishPendingMenuChangesCallback} callback The callback function, accepting three arguments: error, data, response + */ + publishPendingMenuChanges(appId, publishMenuChanges, callback) { + let postBody = publishMenuChanges; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling publishPendingMenuChanges"); + } + // verify the required parameter 'publishMenuChanges' is set + if (publishMenuChanges === undefined || publishMenuChanges === null) { + throw new Error("Missing the required parameter 'publishMenuChanges' when calling publishPendingMenuChanges"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/catalog-changes/publish', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CatalogGroupsApi.js b/src/api/CatalogGroupsApi.js new file mode 100644 index 00000000..836883b7 --- /dev/null +++ b/src/api/CatalogGroupsApi.js @@ -0,0 +1,348 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateGroup from '../model/CreateGroup'; +import Group from '../model/Group'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultGroup from '../model/RestApiPaginationResultGroup'; +import RestApiResultGroup from '../model/RestApiResultGroup'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateGroup from '../model/UpdateGroup'; + +/** +* CatalogGroups service. +* @module api/CatalogGroupsApi +* @version 1.0.0 +*/ +export default class CatalogGroupsApi { + + /** + * Constructs a new CatalogGroupsApi. + * @alias module:api/CatalogGroupsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the archiveGroup operation. + * @callback module:api/CatalogGroupsApi~archiveGroupCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Archive Catalog Group + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogGroupsApi~archiveGroupCallback} callback The callback function, accepting three arguments: error, data, response + */ + archiveGroup(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling archiveGroup"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling archiveGroup"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/groups/{catalogItemId}/archive', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createGroup operation. + * @callback module:api/CatalogGroupsApi~createGroupCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultGroup} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create a Catalog Group + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {module:model/CreateGroup} createGroup + * @param {module:api/CatalogGroupsApi~createGroupCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultGroup} + */ + createGroup(appId, createGroup, callback) { + let postBody = createGroup; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createGroup"); + } + // verify the required parameter 'createGroup' is set + if (createGroup === undefined || createGroup === null) { + throw new Error("Missing the required parameter 'createGroup' when calling createGroup"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'MinSelectCount', 'MaxSelectCount', 'Products', 'GroupType', 'Sku', 'Name', 'AutogenerateDisplayText', 'ImageFileName']; + let returnType = RestApiResultGroup; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/groups', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the duplicateGroup operation. + * @callback module:api/CatalogGroupsApi~duplicateGroupCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Duplicate Catalog Group + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogGroupsApi~duplicateGroupCallback} callback The callback function, accepting three arguments: error, data, response + */ + duplicateGroup(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling duplicateGroup"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling duplicateGroup"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/groups/{catalogItemId}/duplicate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getGroupById operation. + * @callback module:api/CatalogGroupsApi~getGroupByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/Group} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get group by Id + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogGroupsApi~getGroupByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Group} + */ + getGroupById(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getGroupById"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling getGroupById"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'CatalogGroupId', 'CatalogItemId', 'IsArchived', 'MinSelectCount', 'Products', 'GroupType', 'Sku', 'Name', 'AutogenerateDisplayText', 'ImageFileName']; + let returnType = Group; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/groups/{catalogItemId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getGroups operation. + * @callback module:api/CatalogGroupsApi~getGroupsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultGroup} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get paginated groups by app name id filtered by types + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {Array.} groupTypes + * @param {Object} opts Optional parameters + * @param {String} opts.searchTerm + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/CatalogGroupsApi~getGroupsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultGroup} + */ + getGroups(appId, groupTypes, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getGroups"); + } + // verify the required parameter 'groupTypes' is set + if (groupTypes === undefined || groupTypes === null) { + throw new Error("Missing the required parameter 'groupTypes' when calling getGroups"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'groupTypes': this.apiClient.buildCollectionParam(groupTypes, 'multi'), + 'searchTerm': opts['searchTerm'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultGroup; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/groups', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateGroup operation. + * @callback module:api/CatalogGroupsApi~updateGroupCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update Catalog Group + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:model/UpdateGroup} updateGroup + * @param {module:api/CatalogGroupsApi~updateGroupCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateGroup(appId, catalogItemId, updateGroup, callback) { + let postBody = updateGroup; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateGroup"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling updateGroup"); + } + // verify the required parameter 'updateGroup' is set + if (updateGroup === undefined || updateGroup === null) { + throw new Error("Missing the required parameter 'updateGroup' when calling updateGroup"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/groups/{catalogItemId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CatalogImagesApi.js b/src/api/CatalogImagesApi.js new file mode 100644 index 00000000..d4a2be67 --- /dev/null +++ b/src/api/CatalogImagesApi.js @@ -0,0 +1,90 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CatalogImage from '../model/CatalogImage'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* CatalogImages service. +* @module api/CatalogImagesApi +* @version 1.0.0 +*/ +export default class CatalogImagesApi { + + /** + * Constructs a new CatalogImagesApi. + * @alias module:api/CatalogImagesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the uploadCatalogImage operation. + * @callback module:api/CatalogImagesApi~uploadCatalogImageCallback + * @param {String} error Error message, if any. + * @param {module:model/CatalogImage} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Upload a Catalog Image + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {File} Image Catalog image + * @param {module:api/CatalogImagesApi~uploadCatalogImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/CatalogImage} + */ + uploadCatalogImage(appId, Image, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling uploadCatalogImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadCatalogImage"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'ImageUri']; + let returnType = CatalogImage; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/images', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CatalogItemsApi.js b/src/api/CatalogItemsApi.js new file mode 100644 index 00000000..aae0e844 --- /dev/null +++ b/src/api/CatalogItemsApi.js @@ -0,0 +1,348 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CatalogItem from '../model/CatalogItem'; +import CreateCatalogItem from '../model/CreateCatalogItem'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultCatalogItem from '../model/RestApiPaginationResultCatalogItem'; +import RestApiResultCatalogItem from '../model/RestApiResultCatalogItem'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateCatalogItem from '../model/UpdateCatalogItem'; + +/** +* CatalogItems service. +* @module api/CatalogItemsApi +* @version 1.0.0 +*/ +export default class CatalogItemsApi { + + /** + * Constructs a new CatalogItemsApi. + * @alias module:api/CatalogItemsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the archiveCatalogItem operation. + * @callback module:api/CatalogItemsApi~archiveCatalogItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Archive Catalog Item + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogItemsApi~archiveCatalogItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + archiveCatalogItem(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling archiveCatalogItem"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling archiveCatalogItem"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/items/{catalogItemId}/archive', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createCatalogItem operation. + * @callback module:api/CatalogItemsApi~createCatalogItemCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCatalogItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create a Catalog Item + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {module:model/CreateCatalogItem} createCatalogItem + * @param {module:api/CatalogItemsApi~createCatalogItemCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCatalogItem} + */ + createCatalogItem(appId, createCatalogItem, callback) { + let postBody = createCatalogItem; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createCatalogItem"); + } + // verify the required parameter 'createCatalogItem' is set + if (createCatalogItem === undefined || createCatalogItem === null) { + throw new Error("Missing the required parameter 'createCatalogItem' when calling createCatalogItem"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'CatalogItemId', 'IsArchived', 'Groups', 'ItemType', 'Sku', 'Name', 'Description', 'Price', 'ImageFileName', 'Alcohol']; + let returnType = RestApiResultCatalogItem; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/items', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the duplicateCatalogItem operation. + * @callback module:api/CatalogItemsApi~duplicateCatalogItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Duplicate Catalog Item + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogItemsApi~duplicateCatalogItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + duplicateCatalogItem(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling duplicateCatalogItem"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling duplicateCatalogItem"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/items/{catalogItemId}/duplicate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCatalogItemById operation. + * @callback module:api/CatalogItemsApi~getCatalogItemByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/CatalogItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get item by Id + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogItemsApi~getCatalogItemByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/CatalogItem} + */ + getCatalogItemById(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCatalogItemById"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling getCatalogItemById"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'CatalogItemId', 'IsArchived', 'Groups', 'ItemType', 'Sku', 'Name', 'Description', 'Price', 'ImageFileName', 'Alcohol']; + let returnType = CatalogItem; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/items/{catalogItemId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getItems operation. + * @callback module:api/CatalogItemsApi~getItemsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultCatalogItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get paginated items by app name id filtered by types + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {Array.} itemTypes + * @param {Object} opts Optional parameters + * @param {String} opts.searchTerm + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/CatalogItemsApi~getItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultCatalogItem} + */ + getItems(appId, itemTypes, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getItems"); + } + // verify the required parameter 'itemTypes' is set + if (itemTypes === undefined || itemTypes === null) { + throw new Error("Missing the required parameter 'itemTypes' when calling getItems"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'itemTypes': this.apiClient.buildCollectionParam(itemTypes, 'multi'), + 'searchTerm': opts['searchTerm'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultCatalogItem; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/items', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateCatalogItem operation. + * @callback module:api/CatalogItemsApi~updateCatalogItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update Catalog Item + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:model/UpdateCatalogItem} updateCatalogItem + * @param {module:api/CatalogItemsApi~updateCatalogItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateCatalogItem(appId, catalogItemId, updateCatalogItem, callback) { + let postBody = updateCatalogItem; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateCatalogItem"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling updateCatalogItem"); + } + // verify the required parameter 'updateCatalogItem' is set + if (updateCatalogItem === undefined || updateCatalogItem === null) { + throw new Error("Missing the required parameter 'updateCatalogItem' when calling updateCatalogItem"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/items/{catalogItemId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CatalogProductsApi.js b/src/api/CatalogProductsApi.js new file mode 100644 index 00000000..1101c79a --- /dev/null +++ b/src/api/CatalogProductsApi.js @@ -0,0 +1,348 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateProduct from '../model/CreateProduct'; +import Product from '../model/Product'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultProduct from '../model/RestApiPaginationResultProduct'; +import RestApiResultProduct from '../model/RestApiResultProduct'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateProduct from '../model/UpdateProduct'; + +/** +* CatalogProducts service. +* @module api/CatalogProductsApi +* @version 1.0.0 +*/ +export default class CatalogProductsApi { + + /** + * Constructs a new CatalogProductsApi. + * @alias module:api/CatalogProductsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the archiveProduct operation. + * @callback module:api/CatalogProductsApi~archiveProductCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Archive Product + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogProductsApi~archiveProductCallback} callback The callback function, accepting three arguments: error, data, response + */ + archiveProduct(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling archiveProduct"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling archiveProduct"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/products/{catalogItemId}/archive', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createProduct operation. + * @callback module:api/CatalogProductsApi~createProductCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultProduct} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create a Product + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {module:model/CreateProduct} createProduct + * @param {module:api/CatalogProductsApi~createProductCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultProduct} + */ + createProduct(appId, createProduct, callback) { + let postBody = createProduct; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createProduct"); + } + // verify the required parameter 'createProduct' is set + if (createProduct === undefined || createProduct === null) { + throw new Error("Missing the required parameter 'createProduct' when calling createProduct"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'CatalogItemId', 'IsArchived', 'Groups', 'ProductType', 'Sku', 'Name', 'Description', 'Price', 'ImageFileName', 'Alcohol']; + let returnType = RestApiResultProduct; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/products', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the duplicateProduct operation. + * @callback module:api/CatalogProductsApi~duplicateProductCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Duplicate Product + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogProductsApi~duplicateProductCallback} callback The callback function, accepting three arguments: error, data, response + */ + duplicateProduct(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling duplicateProduct"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling duplicateProduct"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/products/{catalogItemId}/duplicate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getProductById operation. + * @callback module:api/CatalogProductsApi~getProductByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/Product} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get Product by Id + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:api/CatalogProductsApi~getProductByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Product} + */ + getProductById(appId, catalogItemId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getProductById"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling getProductById"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'CatalogItemId', 'IsArchived', 'Groups', 'ProductType', 'Sku', 'Name', 'Description', 'Price', 'ImageFileName', 'Alcohol']; + let returnType = Product; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/products/{catalogItemId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getProducts operation. + * @callback module:api/CatalogProductsApi~getProductsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultProduct} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get paginated products by app name id filtered by types + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {Array.} productTypes + * @param {Object} opts Optional parameters + * @param {String} opts.searchTerm + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/CatalogProductsApi~getProductsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultProduct} + */ + getProducts(appId, productTypes, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getProducts"); + } + // verify the required parameter 'productTypes' is set + if (productTypes === undefined || productTypes === null) { + throw new Error("Missing the required parameter 'productTypes' when calling getProducts"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'productTypes': this.apiClient.buildCollectionParam(productTypes, 'multi'), + 'searchTerm': opts['searchTerm'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultProduct; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/products', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateProduct operation. + * @callback module:api/CatalogProductsApi~updateProductCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update Product + * [BETA - this endpoint is under development, do not use it in your production system] + * @param {String} appId + * @param {String} catalogItemId + * @param {module:model/UpdateProduct} updateProduct + * @param {module:api/CatalogProductsApi~updateProductCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateProduct(appId, catalogItemId, updateProduct, callback) { + let postBody = updateProduct; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateProduct"); + } + // verify the required parameter 'catalogItemId' is set + if (catalogItemId === undefined || catalogItemId === null) { + throw new Error("Missing the required parameter 'catalogItemId' when calling updateProduct"); + } + // verify the required parameter 'updateProduct' is set + if (updateProduct === undefined || updateProduct === null) { + throw new Error("Missing the required parameter 'updateProduct' when calling updateProduct"); + } + + let pathParams = { + 'appId': appId, + 'catalogItemId': catalogItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/catalog/products/{catalogItemId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/ChannelsApi.js b/src/api/ChannelsApi.js new file mode 100644 index 00000000..fe57e11c --- /dev/null +++ b/src/api/ChannelsApi.js @@ -0,0 +1,616 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import Response from '../model/Response'; +import RestApiArrayResultChannel from '../model/RestApiArrayResultChannel'; +import RestApiArrayResultStoreChannelAssignment from '../model/RestApiArrayResultStoreChannelAssignment'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAppChannelAssignment from '../model/RestApiResultAppChannelAssignment'; +import RestApiResultChannel from '../model/RestApiResultChannel'; +import RestApiResultStoreChannelAssignment from '../model/RestApiResultStoreChannelAssignment'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Channels service. +* @module api/ChannelsApi +* @version 1.0.0 +*/ +export default class ChannelsApi { + + /** + * Constructs a new ChannelsApi. + * @alias module:api/ChannelsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the assignAppIdToSalesChannel operation. + * @callback module:api/ChannelsApi~assignAppIdToSalesChannelCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} channelId + * @param {module:api/ChannelsApi~assignAppIdToSalesChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + assignAppIdToSalesChannel(appId, channelId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling assignAppIdToSalesChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling assignAppIdToSalesChannel"); + } + + let pathParams = { + 'appId': appId, + 'channelId': channelId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/{channelId}/assign-appId', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the assignStoreToChannel operation. + * @callback module:api/ChannelsApi~assignStoreToChannelCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {String} appId + * @param {Number} channelId + * @param {module:api/ChannelsApi~assignStoreToChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + assignStoreToChannel(storeId, appId, channelId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling assignStoreToChannel"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling assignStoreToChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling assignStoreToChannel"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': storeId, + 'channelId': channelId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/assign-store', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the attachStoreToSalesChannel operation. + * @callback module:api/ChannelsApi~attachStoreToSalesChannelCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} channelId + * @param {Number} storeId + * @param {module:api/ChannelsApi~attachStoreToSalesChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + attachStoreToSalesChannel(appId, channelId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling attachStoreToSalesChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling attachStoreToSalesChannel"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling attachStoreToSalesChannel"); + } + + let pathParams = { + 'appId': appId, + 'channelId': channelId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/{channelId}/stores/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the detachAllStoresFromSalesChannel operation. + * @callback module:api/ChannelsApi~detachAllStoresFromSalesChannelCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} channelId + * @param {module:api/ChannelsApi~detachAllStoresFromSalesChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + detachAllStoresFromSalesChannel(appId, channelId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling detachAllStoresFromSalesChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling detachAllStoresFromSalesChannel"); + } + + let pathParams = { + 'appId': appId, + 'channelId': channelId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/{channelId}/stores', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the detachStoreFromSalesChannel operation. + * @callback module:api/ChannelsApi~detachStoreFromSalesChannelCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} channelId + * @param {Number} storeId + * @param {module:api/ChannelsApi~detachStoreFromSalesChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + detachStoreFromSalesChannel(appId, channelId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling detachStoreFromSalesChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling detachStoreFromSalesChannel"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling detachStoreFromSalesChannel"); + } + + let pathParams = { + 'appId': appId, + 'channelId': channelId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/{channelId}/stores/{storeId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAssignedChannels operation. + * @callback module:api/ChannelsApi~getAssignedChannelsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultChannel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/ChannelsApi~getAssignedChannelsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultChannel} + */ + getAssignedChannels(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAssignedChannels"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultChannel; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/assigned-channels', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAvailableChannels operation. + * @callback module:api/ChannelsApi~getAvailableChannelsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultChannel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/ChannelsApi~getAvailableChannelsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultChannel} + */ + getAvailableChannels(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAvailableChannels"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultChannel; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/available-channels', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getChannel operation. + * @callback module:api/ChannelsApi~getChannelCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultChannel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} id + * @param {String} appId + * @param {module:api/ChannelsApi~getChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultChannel} + */ + getChannel(id, appId, callback) { + let postBody = null; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getChannel"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getChannel"); + } + + let pathParams = { + 'id': id, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultChannel; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getChannels operation. + * @callback module:api/ChannelsApi~getChannelsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultChannel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/ChannelsApi~getChannelsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultChannel} + */ + getChannels(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getChannels"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultChannel; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoresAssignedToChannel operation. + * @callback module:api/ChannelsApi~getStoresAssignedToChannelCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultStoreChannelAssignment} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} channelId + * @param {module:api/ChannelsApi~getStoresAssignedToChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultStoreChannelAssignment} + */ + getStoresAssignedToChannel(appId, channelId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoresAssignedToChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling getStoresAssignedToChannel"); + } + + let pathParams = { + 'appId': appId, + 'channelId': channelId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultStoreChannelAssignment; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/{channelId}/assigned-stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoresBySalesChannel operation. + * @callback module:api/ChannelsApi~getStoresBySalesChannelCallback + * @param {String} error Error message, if any. + * @param {module:model/Response} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} channelId + * @param {module:api/ChannelsApi~getStoresBySalesChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/Response} + */ + getStoresBySalesChannel(appId, channelId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoresBySalesChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling getStoresBySalesChannel"); + } + + let pathParams = { + 'appId': appId, + 'channelId': channelId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Response; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/{channelId}/stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unassignStoreFromChannel operation. + * @callback module:api/ChannelsApi~unassignStoreFromChannelCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {String} appId + * @param {Number} channelId + * @param {module:api/ChannelsApi~unassignStoreFromChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + unassignStoreFromChannel(storeId, appId, channelId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling unassignStoreFromChannel"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling unassignStoreFromChannel"); + } + // verify the required parameter 'channelId' is set + if (channelId === undefined || channelId === null) { + throw new Error("Missing the required parameter 'channelId' when calling unassignStoreFromChannel"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': storeId, + 'channelId': channelId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/channels/unassign-store', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/ClientsApi.js b/src/api/ClientsApi.js new file mode 100644 index 00000000..b7ad1d4d --- /dev/null +++ b/src/api/ClientsApi.js @@ -0,0 +1,169 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; + +/** +* Clients service. +* @module api/ClientsApi +* @version 1.0.0 +*/ +export default class ClientsApi { + + /** + * Constructs a new ClientsApi. + * @alias module:api/ClientsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getClient operation. + * @callback module:api/ClientsApi~getClientCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} clientId + * @param {module:api/ClientsApi~getClientCallback} callback The callback function, accepting three arguments: error, data, response + */ + getClient(clientId, callback) { + let postBody = null; + // verify the required parameter 'clientId' is set + if (clientId === undefined || clientId === null) { + throw new Error("Missing the required parameter 'clientId' when calling getClient"); + } + + let pathParams = { + 'clientId': clientId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/clients/{clientId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setSalesForceContactId operation. + * @callback module:api/ClientsApi~setSalesForceContactIdCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} clientId + * @param {String} salesForceContactId + * @param {module:api/ClientsApi~setSalesForceContactIdCallback} callback The callback function, accepting three arguments: error, data, response + */ + setSalesForceContactId(clientId, salesForceContactId, callback) { + let postBody = salesForceContactId; + // verify the required parameter 'clientId' is set + if (clientId === undefined || clientId === null) { + throw new Error("Missing the required parameter 'clientId' when calling setSalesForceContactId"); + } + // verify the required parameter 'salesForceContactId' is set + if (salesForceContactId === undefined || salesForceContactId === null) { + throw new Error("Missing the required parameter 'salesForceContactId' when calling setSalesForceContactId"); + } + + let pathParams = { + 'clientId': clientId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/clients/{clientId}/salesforcecontactid', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setStripeCustomerId operation. + * @callback module:api/ClientsApi~setStripeCustomerIdCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} clientId + * @param {String} stripeCustomerId + * @param {module:api/ClientsApi~setStripeCustomerIdCallback} callback The callback function, accepting three arguments: error, data, response + */ + setStripeCustomerId(clientId, stripeCustomerId, callback) { + let postBody = stripeCustomerId; + // verify the required parameter 'clientId' is set + if (clientId === undefined || clientId === null) { + throw new Error("Missing the required parameter 'clientId' when calling setStripeCustomerId"); + } + // verify the required parameter 'stripeCustomerId' is set + if (stripeCustomerId === undefined || stripeCustomerId === null) { + throw new Error("Missing the required parameter 'stripeCustomerId' when calling setStripeCustomerId"); + } + + let pathParams = { + 'clientId': clientId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/clients/{clientId}/stripecustomerid', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/ContentSecurityPolicyApi.js b/src/api/ContentSecurityPolicyApi.js new file mode 100644 index 00000000..626169fb --- /dev/null +++ b/src/api/ContentSecurityPolicyApi.js @@ -0,0 +1,81 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CspReportRequest from '../model/CspReportRequest'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* ContentSecurityPolicy service. +* @module api/ContentSecurityPolicyApi +* @version 1.0.0 +*/ +export default class ContentSecurityPolicyApi { + + /** + * Constructs a new ContentSecurityPolicyApi. + * @alias module:api/ContentSecurityPolicyApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the contentSecurityPolicyReport operation. + * @callback module:api/ContentSecurityPolicyApi~contentSecurityPolicyReportCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/CspReportRequest} request + * @param {module:api/ContentSecurityPolicyApi~contentSecurityPolicyReportCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + contentSecurityPolicyReport(request, callback) { + let postBody = request; + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling contentSecurityPolicyReport"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/csp/report', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CrossSellApi.js b/src/api/CrossSellApi.js new file mode 100644 index 00000000..ede7709b --- /dev/null +++ b/src/api/CrossSellApi.js @@ -0,0 +1,106 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultCrossSellMenuItems from '../model/RestApiResultCrossSellMenuItems'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* CrossSell service. +* @module api/CrossSellApi +* @version 1.0.0 +*/ +export default class CrossSellApi { + + /** + * Constructs a new CrossSellApi. + * @alias module:api/CrossSellApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getCrossSellMenuItems operation. + * @callback module:api/CrossSellApi~getCrossSellMenuItemsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCrossSellMenuItems} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} menuId + * @param {Array.} menuItemId + * @param {Number} limit + * @param {Number} totalValue + * @param {String} appId + * @param {module:api/CrossSellApi~getCrossSellMenuItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCrossSellMenuItems} + */ + getCrossSellMenuItems(menuId, menuItemId, limit, totalValue, appId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getCrossSellMenuItems"); + } + // verify the required parameter 'menuItemId' is set + if (menuItemId === undefined || menuItemId === null) { + throw new Error("Missing the required parameter 'menuItemId' when calling getCrossSellMenuItems"); + } + // verify the required parameter 'limit' is set + if (limit === undefined || limit === null) { + throw new Error("Missing the required parameter 'limit' when calling getCrossSellMenuItems"); + } + // verify the required parameter 'totalValue' is set + if (totalValue === undefined || totalValue === null) { + throw new Error("Missing the required parameter 'totalValue' when calling getCrossSellMenuItems"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCrossSellMenuItems"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'menuId': menuId, + 'menuItemId': this.apiClient.buildCollectionParam(menuItemId, 'multi'), + 'limit': limit, + 'totalValue': totalValue + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCrossSellMenuItems; + return this.apiClient.callApi( + '/api/v1.0/{appId}/crossSell/menuItems', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/CustomersApi.js b/src/api/CustomersApi.js new file mode 100644 index 00000000..1a0b3479 --- /dev/null +++ b/src/api/CustomersApi.js @@ -0,0 +1,236 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CustomerCreateModel from '../model/CustomerCreateModel'; +import CustomerUpdateModel from '../model/CustomerUpdateModel'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultCustomer from '../model/RestApiResultCustomer'; +import RestApiResultCustomers from '../model/RestApiResultCustomers'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Customers service. +* @module api/CustomersApi +* @version 1.0.0 +*/ +export default class CustomersApi { + + /** + * Constructs a new CustomersApi. + * @alias module:api/CustomersApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createCustomer operation. + * @callback module:api/CustomersApi~createCustomerCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCustomer} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/CustomerCreateModel} customerCreateModel + * @param {module:api/CustomersApi~createCustomerCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCustomer} + */ + createCustomer(appId, customerCreateModel, callback) { + let postBody = customerCreateModel; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createCustomer"); + } + // verify the required parameter 'customerCreateModel' is set + if (customerCreateModel === undefined || customerCreateModel === null) { + throw new Error("Missing the required parameter 'customerCreateModel' when calling createCustomer"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCustomer; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customers', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCustomerById operation. + * @callback module:api/CustomersApi~getCustomerByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCustomer} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} customerId + * @param {module:api/CustomersApi~getCustomerByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCustomer} + */ + getCustomerById(appId, customerId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCustomerById"); + } + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error("Missing the required parameter 'customerId' when calling getCustomerById"); + } + + let pathParams = { + 'appId': appId, + 'customerId': customerId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultCustomer; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customers/{customerId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCustomers operation. + * @callback module:api/CustomersApi~getCustomersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCustomers} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} phoneNumber + * @param {module:api/CustomersApi~getCustomersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCustomers} + */ + getCustomers(appId, phoneNumber, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCustomers"); + } + // verify the required parameter 'phoneNumber' is set + if (phoneNumber === undefined || phoneNumber === null) { + throw new Error("Missing the required parameter 'phoneNumber' when calling getCustomers"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'phoneNumber': phoneNumber + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultCustomers; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customers', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateCustomerById operation. + * @callback module:api/CustomersApi~updateCustomerByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCustomer} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} customerId + * @param {module:model/CustomerUpdateModel} updateCustomer + * @param {module:api/CustomersApi~updateCustomerByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCustomer} + */ + updateCustomerById(appId, customerId, updateCustomer, callback) { + let postBody = updateCustomer; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateCustomerById"); + } + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error("Missing the required parameter 'customerId' when calling updateCustomerById"); + } + // verify the required parameter 'updateCustomer' is set + if (updateCustomer === undefined || updateCustomer === null) { + throw new Error("Missing the required parameter 'updateCustomer' when calling updateCustomerById"); + } + + let pathParams = { + 'appId': appId, + 'customerId': customerId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultCustomer; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customers/{customerId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/DeliveryZoneApi.js b/src/api/DeliveryZoneApi.js new file mode 100644 index 00000000..b9fda154 --- /dev/null +++ b/src/api/DeliveryZoneApi.js @@ -0,0 +1,228 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import DeliveryZoneBase from '../model/DeliveryZoneBase'; +import RestApiArrayResultDeliveryZone from '../model/RestApiArrayResultDeliveryZone'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultDeliveryZone from '../model/RestApiResultDeliveryZone'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* DeliveryZone service. +* @module api/DeliveryZoneApi +* @version 1.0.0 +*/ +export default class DeliveryZoneApi { + + /** + * Constructs a new DeliveryZoneApi. + * @alias module:api/DeliveryZoneApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addDeliveryZone operation. + * @callback module:api/DeliveryZoneApi~addDeliveryZoneCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultDeliveryZone} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/DeliveryZoneBase} deliveryZoneBase + * @param {module:api/DeliveryZoneApi~addDeliveryZoneCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDeliveryZone} + */ + addDeliveryZone(storeId, deliveryZoneBase, callback) { + let postBody = deliveryZoneBase; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling addDeliveryZone"); + } + // verify the required parameter 'deliveryZoneBase' is set + if (deliveryZoneBase === undefined || deliveryZoneBase === null) { + throw new Error("Missing the required parameter 'deliveryZoneBase' when calling addDeliveryZone"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultDeliveryZone; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getDeliveryZones operation. + * @callback module:api/DeliveryZoneApi~getDeliveryZonesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultDeliveryZone} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/DeliveryZoneApi~getDeliveryZonesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultDeliveryZone} + */ + getDeliveryZones(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getDeliveryZones"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultDeliveryZone; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the removeDeliveryZone operation. + * @callback module:api/DeliveryZoneApi~removeDeliveryZoneCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Number} deliveryZoneId + * @param {module:api/DeliveryZoneApi~removeDeliveryZoneCallback} callback The callback function, accepting three arguments: error, data, response + */ + removeDeliveryZone(storeId, deliveryZoneId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling removeDeliveryZone"); + } + // verify the required parameter 'deliveryZoneId' is set + if (deliveryZoneId === undefined || deliveryZoneId === null) { + throw new Error("Missing the required parameter 'deliveryZoneId' when calling removeDeliveryZone"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryZoneId': deliveryZoneId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateDeliveryZone operation. + * @callback module:api/DeliveryZoneApi~updateDeliveryZoneCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultDeliveryZone} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Number} deliveryZoneId + * @param {module:model/DeliveryZoneBase} deliveryZone + * @param {module:api/DeliveryZoneApi~updateDeliveryZoneCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultDeliveryZone} + */ + updateDeliveryZone(storeId, deliveryZoneId, deliveryZone, callback) { + let postBody = deliveryZone; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateDeliveryZone"); + } + // verify the required parameter 'deliveryZoneId' is set + if (deliveryZoneId === undefined || deliveryZoneId === null) { + throw new Error("Missing the required parameter 'deliveryZoneId' when calling updateDeliveryZone"); + } + // verify the required parameter 'deliveryZone' is set + if (deliveryZone === undefined || deliveryZone === null) { + throw new Error("Missing the required parameter 'deliveryZone' when calling updateDeliveryZone"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryZoneId': deliveryZoneId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultDeliveryZone; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/DeviceApi.js b/src/api/DeviceApi.js new file mode 100644 index 00000000..fd947aa2 --- /dev/null +++ b/src/api/DeviceApi.js @@ -0,0 +1,237 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import ClientDeviceAssignEnrolledDevice from '../model/ClientDeviceAssignEnrolledDevice'; +import ClientDeviceEnroll from '../model/ClientDeviceEnroll'; +import RestApiArrayResultClientDeviceSummary from '../model/RestApiArrayResultClientDeviceSummary'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultClientDevice from '../model/RestApiResultClientDevice'; +import RestApiResultClientDeviceEnrollmentResult from '../model/RestApiResultClientDeviceEnrollmentResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Device service. +* @module api/DeviceApi +* @version 1.0.0 +*/ +export default class DeviceApi { + + /** + * Constructs a new DeviceApi. + * @alias module:api/DeviceApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the assignDevice operation. + * @callback module:api/DeviceApi~assignDeviceCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultClientDeviceEnrollmentResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/ClientDeviceAssignEnrolledDevice} assignDeviceRequest + * @param {module:api/DeviceApi~assignDeviceCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultClientDeviceEnrollmentResult} + */ + assignDevice(appId, assignDeviceRequest, callback) { + let postBody = assignDeviceRequest; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling assignDevice"); + } + // verify the required parameter 'assignDeviceRequest' is set + if (assignDeviceRequest === undefined || assignDeviceRequest === null) { + throw new Error("Missing the required parameter 'assignDeviceRequest' when calling assignDevice"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultClientDeviceEnrollmentResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/devices/assign', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the enrollDevice operation. + * @callback module:api/DeviceApi~enrollDeviceCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultClientDeviceEnrollmentResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/ClientDeviceEnroll} deviceEnrollmentRequest + * @param {module:api/DeviceApi~enrollDeviceCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultClientDeviceEnrollmentResult} + */ + enrollDevice(appId, deviceEnrollmentRequest, callback) { + let postBody = deviceEnrollmentRequest; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling enrollDevice"); + } + // verify the required parameter 'deviceEnrollmentRequest' is set + if (deviceEnrollmentRequest === undefined || deviceEnrollmentRequest === null) { + throw new Error("Missing the required parameter 'deviceEnrollmentRequest' when calling enrollDevice"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultClientDeviceEnrollmentResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/devices/enroll', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getDeviceDetails operation. + * @callback module:api/DeviceApi~getDeviceDetailsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultClientDevice} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceModel + * @param {String} deviceId + * @param {module:api/DeviceApi~getDeviceDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultClientDevice} + */ + getDeviceDetails(appId, deviceModel, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getDeviceDetails"); + } + // verify the required parameter 'deviceModel' is set + if (deviceModel === undefined || deviceModel === null) { + throw new Error("Missing the required parameter 'deviceModel' when calling getDeviceDetails"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling getDeviceDetails"); + } + + let pathParams = { + 'appId': appId, + 'deviceModel': deviceModel, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultClientDevice; + return this.apiClient.callApi( + '/api/v1.0/{appId}/devices/device/{deviceModel}/{deviceId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the searchDevices operation. + * @callback module:api/DeviceApi~searchDevicesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultClientDeviceSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.storeId + * @param {String} opts.deviceModel + * @param {module:api/DeviceApi~searchDevicesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultClientDeviceSummary} + */ + searchDevices(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling searchDevices"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': opts['storeId'], + 'deviceModel': opts['deviceModel'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultClientDeviceSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/devices/search', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/DriversApi.js b/src/api/DriversApi.js new file mode 100644 index 00000000..fdc8ab13 --- /dev/null +++ b/src/api/DriversApi.js @@ -0,0 +1,478 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import DriverLoginModel from '../model/DriverLoginModel'; +import DriverRequestLoginPinModel from '../model/DriverRequestLoginPinModel'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateDriverNotificationToken from '../model/UpdateDriverNotificationToken'; +import UpdateDriverProfileModel from '../model/UpdateDriverProfileModel'; + +/** +* Drivers service. +* @module api/DriversApi +* @version 1.0.0 +*/ +export default class DriversApi { + + /** + * Constructs a new DriversApi. + * @alias module:api/DriversApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the driversAddDriverNotificationToken operation. + * @callback module:api/DriversApi~driversAddDriverNotificationTokenCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/UpdateDriverNotificationToken} updateDriverToken + * @param {module:api/DriversApi~driversAddDriverNotificationTokenCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversAddDriverNotificationToken(updateDriverToken, callback) { + let postBody = updateDriverToken; + // verify the required parameter 'updateDriverToken' is set + if (updateDriverToken === undefined || updateDriverToken === null) { + throw new Error("Missing the required parameter 'updateDriverToken' when calling driversAddDriverNotificationToken"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/token', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversDeleteDriverProfileImage operation. + * @callback module:api/DriversApi~driversDeleteDriverProfileImageCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/DriversApi~driversDeleteDriverProfileImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversDeleteDriverProfileImage(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/profile/image', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversDriverLogin operation. + * @callback module:api/DriversApi~driversDriverLoginCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/DriverLoginModel} driverLoginModel + * @param {module:api/DriversApi~driversDriverLoginCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversDriverLogin(driverLoginModel, callback) { + let postBody = driverLoginModel; + // verify the required parameter 'driverLoginModel' is set + if (driverLoginModel === undefined || driverLoginModel === null) { + throw new Error("Missing the required parameter 'driverLoginModel' when calling driversDriverLogin"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/login', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversDriverRequestLoginCodeSms operation. + * @callback module:api/DriversApi~driversDriverRequestLoginCodeSmsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/DriverRequestLoginPinModel} driverRequestLoginPinModel + * @param {module:api/DriversApi~driversDriverRequestLoginCodeSmsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversDriverRequestLoginCodeSms(driverRequestLoginPinModel, callback) { + let postBody = driverRequestLoginPinModel; + // verify the required parameter 'driverRequestLoginPinModel' is set + if (driverRequestLoginPinModel === undefined || driverRequestLoginPinModel === null) { + throw new Error("Missing the required parameter 'driverRequestLoginPinModel' when calling driversDriverRequestLoginCodeSms"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/pin', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversGetDriverProfile operation. + * @callback module:api/DriversApi~driversGetDriverProfileCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/DriversApi~driversGetDriverProfileCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversGetDriverProfile(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/profile', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversGetStoresForDriver operation. + * @callback module:api/DriversApi~driversGetStoresForDriverCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/DriversApi~driversGetStoresForDriverCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversGetStoresForDriver(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/assignedstores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversRemoveDriverNotificationToken operation. + * @callback module:api/DriversApi~driversRemoveDriverNotificationTokenCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/UpdateDriverNotificationToken} removeDriverToken + * @param {module:api/DriversApi~driversRemoveDriverNotificationTokenCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversRemoveDriverNotificationToken(removeDriverToken, callback) { + let postBody = removeDriverToken; + // verify the required parameter 'removeDriverToken' is set + if (removeDriverToken === undefined || removeDriverToken === null) { + throw new Error("Missing the required parameter 'removeDriverToken' when calling driversRemoveDriverNotificationToken"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/token', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversSetDriverPresenceForStore operation. + * @callback module:api/DriversApi~driversSetDriverPresenceForStoreCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} presence + * @param {module:api/DriversApi~driversSetDriverPresenceForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversSetDriverPresenceForStore(storeId, presence, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling driversSetDriverPresenceForStore"); + } + // verify the required parameter 'presence' is set + if (presence === undefined || presence === null) { + throw new Error("Missing the required parameter 'presence' when calling driversSetDriverPresenceForStore"); + } + + let pathParams = { + 'storeId': storeId, + 'presence': presence + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/stores/{storeId}/presence/{presence}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversSetDriverProfileImage operation. + * @callback module:api/DriversApi~driversSetDriverProfileImageCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/DriversApi~driversSetDriverProfileImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversSetDriverProfileImage(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/profile/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversUpdateDeliveryTrackingStatus operation. + * @callback module:api/DriversApi~driversUpdateDeliveryTrackingStatusCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:model/String} deliveryTrackingStatus + * @param {module:api/DriversApi~driversUpdateDeliveryTrackingStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversUpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling driversUpdateDeliveryTrackingStatus"); + } + // verify the required parameter 'deliveryTrackingStatus' is set + if (deliveryTrackingStatus === undefined || deliveryTrackingStatus === null) { + throw new Error("Missing the required parameter 'deliveryTrackingStatus' when calling driversUpdateDeliveryTrackingStatus"); + } + + let pathParams = { + 'orderId': orderId, + 'deliveryTrackingStatus': deliveryTrackingStatus + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the driversUpdateDriverProfile operation. + * @callback module:api/DriversApi~driversUpdateDriverProfileCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/UpdateDriverProfileModel} updateDriverProfile + * @param {module:api/DriversApi~driversUpdateDriverProfileCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + driversUpdateDriverProfile(updateDriverProfile, callback) { + let postBody = updateDriverProfile; + // verify the required parameter 'updateDriverProfile' is set + if (updateDriverProfile === undefined || updateDriverProfile === null) { + throw new Error("Missing the required parameter 'updateDriverProfile' when calling driversUpdateDriverProfile"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/drivers/profile', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/EventsApi.js b/src/api/EventsApi.js new file mode 100644 index 00000000..47ffcad3 --- /dev/null +++ b/src/api/EventsApi.js @@ -0,0 +1,735 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import EventSearchResult from '../model/EventSearchResult'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiEventSearchPaginationResult from '../model/RestApiEventSearchPaginationResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Events service. +* @module api/EventsApi +* @version 1.0.0 +*/ +export default class EventsApi { + + /** + * Constructs a new EventsApi. + * @alias module:api/EventsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getCustomerEvents operation. + * @callback module:api/EventsApi~getCustomerEventsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} customerId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User Id + * @param {Number} opts.menuId Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getCustomerEventsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getCustomerEvents(appId, customerId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCustomerEvents"); + } + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error("Missing the required parameter 'customerId' when calling getCustomerEvents"); + } + + let pathParams = { + 'appId': appId, + 'customerId': customerId + }; + let queryParams = { + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'menuId': opts['menuId'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/customer/{customerId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getEvents operation. + * @callback module:api/EventsApi~getEventsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.whiteLabelId + * @param {Number} opts.customerId + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User Id + * @param {Number} opts.menuId Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getEventsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getEvents(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getEvents"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'whiteLabelId': opts['whiteLabelId'], + 'customerId': opts['customerId'], + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'menuId': opts['menuId'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getEventsById operation. + * @callback module:api/EventsApi~getEventsByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/EventSearchResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} eventId + * @param {String} appId + * @param {module:api/EventsApi~getEventsByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/EventSearchResult} + */ + getEventsById(eventId, appId, callback) { + let postBody = null; + // verify the required parameter 'eventId' is set + if (eventId === undefined || eventId === null) { + throw new Error("Missing the required parameter 'eventId' when calling getEventsById"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getEventsById"); + } + + let pathParams = { + 'eventId': eventId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'AnalyticsClientEvent', 'OrderAcceptedEvent', 'OrderCustomerTrackingCreatedEvent', 'OrderDeliveryTrackingStatusUpdatedEvent', 'OrderBatchPublishedEvent', 'OrderCreatedEvent', 'OrderRatingUpdatedEvent', 'OrderRefundedEvent', 'OrderRejectedEvent', 'OrderTipUpdatedEvent', 'StoreCreatedEvent', 'StoreDeletedEvent', 'StoreAddressUpdatedEvent', 'StoreKioskSettingUpdatedEvent', 'DeliveryZoneCreatedEvent', 'DeliveryZoneUpdatedEvent', 'DeliveryZoneDeletedEvent', 'StoreOpeningHoursUpdatedEvent', 'StoreMenuAssignedEvent', 'StoreBusinessHoursOverrideCreatedEvent', 'StoreBusinessHoursOverrideDeletedEvent', 'StoreArchivedEvent', 'StoreUnarchivedEvent', 'StorePublishedEvent', 'StoreUnpublishedEvent', 'StoreUpdatedEvent', 'StorePreOrderConfigUpdatedEvent', 'StoreLogoCreatedEvent', 'StoreLogoUpdatedEvent', 'StoreLogoDeletedEvent', 'MenuCreatedEvent', 'MenuAsyncCreationCompletedEvent', 'MenuUpdatedEvent', 'MenuUploadedEvent', 'MenuBulkEditEvent', 'MenuCheckpointCreatedEvent', 'CustomerCreatedEvent', 'CustomerUpdatedEvent', 'CustomerConsentUpdatedEvent', 'WebhookSubscriptionCreatedEvent', 'WebhookSubscriptionUpdatedEvent', 'WebhookSubscriptionDeletedEvent', 'PrinterTurnedOnEvent', 'PrinterTurnedOffEvent', 'PrinterAssignedToStoreEvent', 'PrinterUnassignedFromStoreEvent', 'PhoneCallStartedEvent', 'PhoneCallEndedEvent', 'TelephonyConfigUpdatedEvent', 'LoyaltyCampaignCreatedEvent', 'LoyaltyCampaignDeletedEvent', 'LoyaltyCampaignUpdatedEvent', 'RetentionCampaignCreatedEvent', 'RetentionCampaignDeletedEvent', 'RetentionCampaignUpdatedEvent', 'SmsReceivedEvent', 'UserLoginEvent', 'UserCreatedEvent', 'UserUpdatedEvent', 'UserDeletedEvent', 'UserCreatedPasswordEvent', 'UserAnsweredSignupQuestionsEvent', 'VoucherCreatedEvent', 'VoucherUpdatedEvent', 'VoucherDeletedEvent', 'VoucherAppliedEvent', 'TeammateInviteSentEvent', 'TeammateInviteAcceptedEvent', 'TeammateUpdatedEvent', 'TeammateDeletedEvent', 'BankAccountCreatedEvent', 'BankAccountUpdatedEvent', 'BankAccountDeletedEvent', 'BankAccountAssignedEvent', 'HydraAssignedEvent', 'HydraRequestResetEvent', 'HydraSettingChangedEvent', 'HydraUnAssignedEvent', 'KioskBluetoothPairingModeEvent', 'KioskBluetoothUnpairingModeEvent', 'KioskBluetoothTerminalUnpairedEvent', 'KioskTerminalActionStateChangedEvent', 'KioskBluetoothTerminalUpdatedEvent', 'KioskBluetoothTerminalInitiateUpdateCheckEvent', 'KioskBluetoothInstallUpdateInitiateEvent', 'KioskBluetoothTerminalCancelUpdateEvent', 'KioskBluetoothTerminalFirmwareVersionStatusEvent', 'KioskBluetoothTerminalInstallationStatusEvent', 'PushNotificationScheduledEvent', 'PushNotificationSentEvent', 'PushNotificationDeletedEvent', 'DnsVerifiedEvent', 'CertificateCreatedEvent', 'CertificateRenewedEvent', 'WebsiteVanityUrlUpdatedEvent', 'WebsiteUpdatedEvent', 'OrderCapacityUpdatedEvent', 'ExternalStoreEvent', 'AppStoreConfigCreatedEvent', 'AppStoreConfigUpdatedEvent', 'AppStoreConfigDeletedEvent', 'AppStoreSubscriptionChangeJobUpdatedEvent', 'CatalogItemCreatedEvent', 'CatalogItemUpdatedEvent', 'CatalogItemArchivedEvent', 'CatalogGroupCreatedEvent', 'CatalogGroupUpdatedEvent', 'CatalogGroupArchivedEvent', 'StoreTipUpdatedEvent', 'LocationAreaCreatedEvent', 'LocationAreaUpdatedEvent', 'LocationCreatedEvent', 'LocationDeletedEvent', 'StoreServiceChargeUpdatedEvent', 'MobileAppsSubmissionStatusUpdatedEvent', 'MobileAppsSubmissionUpdatedEvent', 'StoreFeeConfigUpdatedEvent']; + let returnType = EventSearchResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/{eventId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuEvents operation. + * @callback module:api/EventsApi~getMenuEventsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} menuId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User Id + * @param {Number} opts.menuId2 Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getMenuEventsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getMenuEvents(appId, menuId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getMenuEvents"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuEvents"); + } + + let pathParams = { + 'appId': appId, + 'menuId': menuId + }; + let queryParams = { + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'menuId': opts['menuId2'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/menu/{menuId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrderEvents operation. + * @callback module:api/EventsApi~getOrderEventsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} orderId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId2 Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User Id + * @param {Number} opts.menuId Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getOrderEventsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getOrderEvents(appId, orderId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOrderEvents"); + } + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling getOrderEvents"); + } + + let pathParams = { + 'appId': appId, + 'orderId': orderId + }; + let queryParams = { + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId2'], + 'storeId': opts['storeId'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'menuId': opts['menuId'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/order/{orderId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrderEventsByCustomer operation. + * @callback module:api/EventsApi~getOrderEventsByCustomerCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} customerId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User Id + * @param {Number} opts.menuId Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getOrderEventsByCustomerCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getOrderEventsByCustomer(appId, customerId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOrderEventsByCustomer"); + } + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error("Missing the required parameter 'customerId' when calling getOrderEventsByCustomer"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'customerId': customerId, + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'menuId': opts['menuId'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/order', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreEvents operation. + * @callback module:api/EventsApi~getStoreEventsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId2 Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User Id + * @param {Number} opts.menuId Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getStoreEventsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getStoreEvents(appId, storeId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoreEvents"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreEvents"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId2'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'menuId': opts['menuId'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/store/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getUserEvents operation. + * @callback module:api/EventsApi~getUserEventsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} userId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId2 Events that have User Id + * @param {Number} opts.menuId Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getUserEventsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getUserEvents(appId, userId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getUserEvents"); + } + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getUserEvents"); + } + + let pathParams = { + 'appId': appId, + 'userId': userId + }; + let queryParams = { + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId2'], + 'menuId': opts['menuId'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/user/{userId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getWhiteLabelEvents operation. + * @callback module:api/EventsApi~getWhiteLabelEventsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiEventSearchPaginationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} whitelabelId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit The maximum elements to return + * @param {Number} opts.page The index of the page to return, starting by 1 + * @param {Date} opts.start Start date + * @param {Date} opts.end End date + * @param {Number} opts.orderId Events that have Order Id + * @param {Number} opts.storeId Events that have Store Id + * @param {Array.} opts.storeIdList Events that have Store Id List + * @param {Number} opts.storeGroupId Events that have Store Group Id + * @param {Number} opts.userId Events that have User Id + * @param {Number} opts.menuId Events that have Menu Id + * @param {Number} opts.campaignId Events that have Campaign Id + * @param {String} opts.userEmail Events that have User Email + * @param {String} opts.userName Events that have User Name + * @param {String} opts.voucherCode Events that have voucher code + * @param {Array.} opts.eventType Events that have event type\\s + * @param {String} opts.flipdishEventId Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @param {module:api/EventsApi~getWhiteLabelEventsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiEventSearchPaginationResult} + */ + getWhiteLabelEvents(appId, whitelabelId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getWhiteLabelEvents"); + } + // verify the required parameter 'whitelabelId' is set + if (whitelabelId === undefined || whitelabelId === null) { + throw new Error("Missing the required parameter 'whitelabelId' when calling getWhiteLabelEvents"); + } + + let pathParams = { + 'appId': appId, + 'whitelabelId': whitelabelId + }; + let queryParams = { + 'limit': opts['limit'], + 'page': opts['page'], + 'start': opts['start'], + 'end': opts['end'], + 'orderId': opts['orderId'], + 'storeId': opts['storeId'], + 'storeIdList': this.apiClient.buildCollectionParam(opts['storeIdList'], 'multi'), + 'storeGroupId': opts['storeGroupId'], + 'userId': opts['userId'], + 'menuId': opts['menuId'], + 'campaignId': opts['campaignId'], + 'userEmail': opts['userEmail'], + 'userName': opts['userName'], + 'voucherCode': opts['voucherCode'], + 'eventType': this.apiClient.buildCollectionParam(opts['eventType'], 'multi'), + 'flipdishEventId': opts['flipdishEventId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Page', 'Limit', 'TotalRecordCount']; + let returnType = RestApiEventSearchPaginationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/events/whitelabel/{whitelabelId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/FeaturesApi.js b/src/api/FeaturesApi.js new file mode 100644 index 00000000..9bce8f9e --- /dev/null +++ b/src/api/FeaturesApi.js @@ -0,0 +1,133 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiStringArrayResult from '../model/RestApiStringArrayResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Features service. +* @module api/FeaturesApi +* @version 1.0.0 +*/ +export default class FeaturesApi { + + /** + * Constructs a new FeaturesApi. + * @alias module:api/FeaturesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the disableFeatures operation. + * @callback module:api/FeaturesApi~disableFeaturesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringArrayResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Array.} features + * @param {module:api/FeaturesApi~disableFeaturesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringArrayResult} + */ + disableFeatures(appId, features, callback) { + let postBody = features; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling disableFeatures"); + } + // verify the required parameter 'features' is set + if (features === undefined || features === null) { + throw new Error("Missing the required parameter 'features' when calling disableFeatures"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiStringArrayResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/features/disable', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the enableFeatures operation. + * @callback module:api/FeaturesApi~enableFeaturesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringArrayResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Array.} features + * @param {module:api/FeaturesApi~enableFeaturesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringArrayResult} + */ + enableFeatures(appId, features, callback) { + let postBody = features; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling enableFeatures"); + } + // verify the required parameter 'features' is set + if (features === undefined || features === null) { + throw new Error("Missing the required parameter 'features' when calling enableFeatures"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiStringArrayResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/features/enable', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/FilesApi.js b/src/api/FilesApi.js new file mode 100644 index 00000000..a55ba42b --- /dev/null +++ b/src/api/FilesApi.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultFileDownloadResult from '../model/RestApiResultFileDownloadResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Files service. +* @module api/FilesApi +* @version 1.0.0 +*/ +export default class FilesApi { + + /** + * Constructs a new FilesApi. + * @alias module:api/FilesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the downloadFile operation. + * @callback module:api/FilesApi~downloadFileCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultFileDownloadResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} fileId + * @param {module:api/FilesApi~downloadFileCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultFileDownloadResult} + */ + downloadFile(appId, fileId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling downloadFile"); + } + // verify the required parameter 'fileId' is set + if (fileId === undefined || fileId === null) { + throw new Error("Missing the required parameter 'fileId' when calling downloadFile"); + } + + let pathParams = { + 'appId': appId, + 'fileId': fileId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultFileDownloadResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/files/download/{fileId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/FirebaseAppsApi.js b/src/api/FirebaseAppsApi.js new file mode 100644 index 00000000..b517ac2f --- /dev/null +++ b/src/api/FirebaseAppsApi.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import FirebaseApp from '../model/FirebaseApp'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* FirebaseApps service. +* @module api/FirebaseAppsApi +* @version 1.0.0 +*/ +export default class FirebaseAppsApi { + + /** + * Constructs a new FirebaseAppsApi. + * @alias module:api/FirebaseAppsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the firebaseAppsAddFirebaseApp operation. + * @callback module:api/FirebaseAppsApi~firebaseAppsAddFirebaseAppCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:model/FirebaseApp} firebaseApp + * @param {module:api/FirebaseAppsApi~firebaseAppsAddFirebaseAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + firebaseAppsAddFirebaseApp(firebaseApp, callback) { + let postBody = firebaseApp; + // verify the required parameter 'firebaseApp' is set + if (firebaseApp === undefined || firebaseApp === null) { + throw new Error("Missing the required parameter 'firebaseApp' when calling firebaseAppsAddFirebaseApp"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/FirebaseApp', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the firebaseAppsDeleteFirebaseApp operation. + * @callback module:api/FirebaseAppsApi~firebaseAppsDeleteFirebaseAppCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} whiteLabelId + * @param {module:api/FirebaseAppsApi~firebaseAppsDeleteFirebaseAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + firebaseAppsDeleteFirebaseApp(whiteLabelId, callback) { + let postBody = null; + // verify the required parameter 'whiteLabelId' is set + if (whiteLabelId === undefined || whiteLabelId === null) { + throw new Error("Missing the required parameter 'whiteLabelId' when calling firebaseAppsDeleteFirebaseApp"); + } + + let pathParams = { + 'whiteLabelId': whiteLabelId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/FirebaseApp/{whiteLabelId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the firebaseAppsGetFirebaseApp operation. + * @callback module:api/FirebaseAppsApi~firebaseAppsGetFirebaseAppCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} whitelabelId + * @param {module:api/FirebaseAppsApi~firebaseAppsGetFirebaseAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + firebaseAppsGetFirebaseApp(whitelabelId, callback) { + let postBody = null; + // verify the required parameter 'whitelabelId' is set + if (whitelabelId === undefined || whitelabelId === null) { + throw new Error("Missing the required parameter 'whitelabelId' when calling firebaseAppsGetFirebaseApp"); + } + + let pathParams = { + 'whitelabelId': whitelabelId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/FirebaseApp/{whitelabelId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/FpmApi.js b/src/api/FpmApi.js new file mode 100644 index 00000000..5d19c8b1 --- /dev/null +++ b/src/api/FpmApi.js @@ -0,0 +1,173 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import TelephonyConfig from '../model/TelephonyConfig'; + +/** +* Fpm service. +* @module api/FpmApi +* @version 1.0.0 +*/ +export default class FpmApi { + + /** + * Constructs a new FpmApi. + * @alias module:api/FpmApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createFpmForStore operation. + * @callback module:api/FpmApi~createFpmForStoreCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {String} phoneNumber + * @param {module:api/FpmApi~createFpmForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createFpmForStore(storeId, phoneNumber, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling createFpmForStore"); + } + // verify the required parameter 'phoneNumber' is set + if (phoneNumber === undefined || phoneNumber === null) { + throw new Error("Missing the required parameter 'phoneNumber' when calling createFpmForStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + 'phoneNumber': phoneNumber + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'TelephonyConfigId', 'ApmEnabled', 'Type', 'ConsentEnabled', 'SendAppLinkSms', 'UseCustomAppLinkSmsMessage', 'UseCustomVoiceMessage', 'ResendApmMessageAfterDays']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{storeId}/fpm', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the editFpmForStore operation. + * @callback module:api/FpmApi~editFpmForStoreCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/TelephonyConfig} telephonyConfig + * @param {module:api/FpmApi~editFpmForStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + editFpmForStore(storeId, telephonyConfig, callback) { + let postBody = telephonyConfig; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling editFpmForStore"); + } + // verify the required parameter 'telephonyConfig' is set + if (telephonyConfig === undefined || telephonyConfig === null) { + throw new Error("Missing the required parameter 'telephonyConfig' when calling editFpmForStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{storeId}/fpm/edit', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getFpmForStore operation. + * @callback module:api/FpmApi~getFpmForStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/TelephonyConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/FpmApi~getFpmForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/TelephonyConfig} + */ + getFpmForStore(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getFpmForStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'TelephonyConfigId', 'ApmEnabled', 'Type', 'ConsentEnabled', 'SendAppLinkSms', 'UseCustomAppLinkSmsMessage', 'UseCustomVoiceMessage', 'ResendApmMessageAfterDays']; + let returnType = TelephonyConfig; + return this.apiClient.callApi( + '/api/v1.0/{storeId}/fpm', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/FulfillmentStateConfigurationApi.js b/src/api/FulfillmentStateConfigurationApi.js new file mode 100644 index 00000000..80ac3bde --- /dev/null +++ b/src/api/FulfillmentStateConfigurationApi.js @@ -0,0 +1,319 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateFulfillmentStatesConfiguration from '../model/CreateFulfillmentStatesConfiguration'; +import FulfillmentStatesConfiguration from '../model/FulfillmentStatesConfiguration'; +import RestApiArrayResultFulfillmentStatesConfigurationSummary from '../model/RestApiArrayResultFulfillmentStatesConfigurationSummary'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultFulfillmentStatesConfiguration from '../model/RestApiResultFulfillmentStatesConfiguration'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateFulfillmentStatesConfiguration from '../model/UpdateFulfillmentStatesConfiguration'; + +/** +* FulfillmentStateConfiguration service. +* @module api/FulfillmentStateConfigurationApi +* @version 1.0.0 +*/ +export default class FulfillmentStateConfigurationApi { + + /** + * Constructs a new FulfillmentStateConfigurationApi. + * @alias module:api/FulfillmentStateConfigurationApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createFulfillmentStatesConfig operation. + * @callback module:api/FulfillmentStateConfigurationApi~createFulfillmentStatesConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultFulfillmentStatesConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/CreateFulfillmentStatesConfiguration} fulfillmentStateConfiguration + * @param {module:api/FulfillmentStateConfigurationApi~createFulfillmentStatesConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultFulfillmentStatesConfiguration} + */ + createFulfillmentStatesConfig(appId, fulfillmentStateConfiguration, callback) { + let postBody = fulfillmentStateConfiguration; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createFulfillmentStatesConfig"); + } + // verify the required parameter 'fulfillmentStateConfiguration' is set + if (fulfillmentStateConfiguration === undefined || fulfillmentStateConfiguration === null) { + throw new Error("Missing the required parameter 'fulfillmentStateConfiguration' when calling createFulfillmentStatesConfig"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultFulfillmentStatesConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/fulfillment/configuration/states', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteFulfillmentStatesConfig operation. + * @callback module:api/FulfillmentStateConfigurationApi~deleteFulfillmentStatesConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} configId + * @param {module:api/FulfillmentStateConfigurationApi~deleteFulfillmentStatesConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + deleteFulfillmentStatesConfig(appId, configId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteFulfillmentStatesConfig"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling deleteFulfillmentStatesConfig"); + } + + let pathParams = { + 'appId': appId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/fulfillment/configuration/states/{configId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getFulfillmentStatesConfiguration operation. + * @callback module:api/FulfillmentStateConfigurationApi~getFulfillmentStatesConfigurationCallback + * @param {String} error Error message, if any. + * @param {module:model/FulfillmentStatesConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} configId + * @param {module:api/FulfillmentStateConfigurationApi~getFulfillmentStatesConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/FulfillmentStatesConfiguration} + */ + getFulfillmentStatesConfiguration(appId, configId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getFulfillmentStatesConfiguration"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling getFulfillmentStatesConfiguration"); + } + + let pathParams = { + 'appId': appId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'States', 'StoreSelectorType', 'StoreIds', 'Name', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = FulfillmentStatesConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/fulfillment/configuration/states/{configId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getFulfillmentStatesConfigurationTemplate operation. + * @callback module:api/FulfillmentStateConfigurationApi~getFulfillmentStatesConfigurationTemplateCallback + * @param {String} error Error message, if any. + * @param {module:model/FulfillmentStatesConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/FulfillmentStateConfigurationApi~getFulfillmentStatesConfigurationTemplateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/FulfillmentStatesConfiguration} + */ + getFulfillmentStatesConfigurationTemplate(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getFulfillmentStatesConfigurationTemplate"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'States', 'StoreSelectorType', 'StoreIds', 'Name', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = FulfillmentStatesConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/fulfillment/configuration/states_template', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the searchFulfillmentStatesConfigurations operation. + * @callback module:api/FulfillmentStateConfigurationApi~searchFulfillmentStatesConfigurationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultFulfillmentStatesConfigurationSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/FulfillmentStateConfigurationApi~searchFulfillmentStatesConfigurationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultFulfillmentStatesConfigurationSummary} + */ + searchFulfillmentStatesConfigurations(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling searchFulfillmentStatesConfigurations"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultFulfillmentStatesConfigurationSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/fulfillment/configuration/states', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateFulfillmentStatesConfig operation. + * @callback module:api/FulfillmentStateConfigurationApi~updateFulfillmentStatesConfigCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} configId + * @param {module:model/UpdateFulfillmentStatesConfiguration} updateFulfillmentStatesConfiguration + * @param {module:api/FulfillmentStateConfigurationApi~updateFulfillmentStatesConfigCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateFulfillmentStatesConfig(appId, configId, updateFulfillmentStatesConfiguration, callback) { + let postBody = updateFulfillmentStatesConfiguration; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateFulfillmentStatesConfig"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling updateFulfillmentStatesConfig"); + } + // verify the required parameter 'updateFulfillmentStatesConfiguration' is set + if (updateFulfillmentStatesConfiguration === undefined || updateFulfillmentStatesConfiguration === null) { + throw new Error("Missing the required parameter 'updateFulfillmentStatesConfiguration' when calling updateFulfillmentStatesConfig"); + } + + let pathParams = { + 'appId': appId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/fulfillment/configuration/states/{configId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/HeartbeatApi.js b/src/api/HeartbeatApi.js new file mode 100644 index 00000000..02361945 --- /dev/null +++ b/src/api/HeartbeatApi.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Heartbeat service. +* @module api/HeartbeatApi +* @version 1.0.0 +*/ +export default class HeartbeatApi { + + /** + * Constructs a new HeartbeatApi. + * @alias module:api/HeartbeatApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the headHostname operation. + * @callback module:api/HeartbeatApi~headHostnameCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HeartbeatApi~headHostnameCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + headHostname(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/heartbeat/Hostname', 'HEAD', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the headPing operation. + * @callback module:api/HeartbeatApi~headPingCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HeartbeatApi~headPingCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + headPing(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/heartbeat', 'HEAD', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the hostname operation. + * @callback module:api/HeartbeatApi~hostnameCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HeartbeatApi~hostnameCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + hostname(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/heartbeat/Hostname', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the ping operation. + * @callback module:api/HeartbeatApi~pingCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HeartbeatApi~pingCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + ping(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/heartbeat', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/HomeApi.js b/src/api/HomeApi.js new file mode 100644 index 00000000..16ff73fc --- /dev/null +++ b/src/api/HomeApi.js @@ -0,0 +1,213 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiArrayResultHomeAction from '../model/RestApiArrayResultHomeAction'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultHomeStatistics from '../model/RestApiResultHomeStatistics'; +import RestApiResultOktaPortalFeatureFlag from '../model/RestApiResultOktaPortalFeatureFlag'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Home service. +* @module api/HomeApi +* @version 1.0.0 +*/ +export default class HomeApi { + + /** + * Constructs a new HomeApi. + * @alias module:api/HomeApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the completeHomeAction operation. + * @callback module:api/HomeApi~completeHomeActionCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} homeActionId + * @param {Boolean} isDismissed + * @param {module:api/HomeApi~completeHomeActionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + completeHomeAction(appId, homeActionId, isDismissed, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling completeHomeAction"); + } + // verify the required parameter 'homeActionId' is set + if (homeActionId === undefined || homeActionId === null) { + throw new Error("Missing the required parameter 'homeActionId' when calling completeHomeAction"); + } + // verify the required parameter 'isDismissed' is set + if (isDismissed === undefined || isDismissed === null) { + throw new Error("Missing the required parameter 'isDismissed' when calling completeHomeAction"); + } + + let pathParams = { + 'appId': appId, + 'homeActionId': homeActionId + }; + let queryParams = { + 'isDismissed': isDismissed + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/home/{homeActionId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getHomeActions operation. + * @callback module:api/HomeApi~getHomeActionsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultHomeAction} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/HomeApi~getHomeActionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultHomeAction} + */ + getHomeActions(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getHomeActions"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultHomeAction; + return this.apiClient.callApi( + '/api/v1.0/{appId}/home', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getHomeStatistics operation. + * @callback module:api/HomeApi~getHomeStatisticsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHomeStatistics} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/HomeApi~getHomeStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHomeStatistics} + */ + getHomeStatistics(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getHomeStatistics"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultHomeStatistics; + return this.apiClient.callApi( + '/api/v1.0/{appId}/home/stats', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOktaPortalFeatureFlag operation. + * @callback module:api/HomeApi~getOktaPortalFeatureFlagCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOktaPortalFeatureFlag} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HomeApi~getOktaPortalFeatureFlagCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOktaPortalFeatureFlag} + */ + getOktaPortalFeatureFlag(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultOktaPortalFeatureFlag; + return this.apiClient.callApi( + '/api/v1.0/home/okta-portal', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/HydraApi.js b/src/api/HydraApi.js new file mode 100644 index 00000000..d82a6839 --- /dev/null +++ b/src/api/HydraApi.js @@ -0,0 +1,1181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import EmvTerminal from '../model/EmvTerminal'; +import HydraRegistrationRequest from '../model/HydraRegistrationRequest'; +import KioskSettings from '../model/KioskSettings'; +import RestApiArrayResultEmvTerminalWithAssignments from '../model/RestApiArrayResultEmvTerminalWithAssignments'; +import RestApiArrayResultKioskCashPaymentSettings from '../model/RestApiArrayResultKioskCashPaymentSettings'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultHydraDeviceDetails from '../model/RestApiPaginationResultHydraDeviceDetails'; +import RestApiResultHydraConfig from '../model/RestApiResultHydraConfig'; +import RestApiResultHydraDeviceDetails from '../model/RestApiResultHydraDeviceDetails'; +import RestApiResultHydraStatus from '../model/RestApiResultHydraStatus'; +import RestApiResultKioskSettings from '../model/RestApiResultKioskSettings'; +import RestApiResultPaymentTerminalDetails from '../model/RestApiResultPaymentTerminalDetails'; +import RestApiResultPaymentTerminalTransactionDetails from '../model/RestApiResultPaymentTerminalTransactionDetails'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Hydra service. +* @module api/HydraApi +* @version 1.0.0 +*/ +export default class HydraApi { + + /** + * Constructs a new HydraApi. + * @alias module:api/HydraApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the assignEmv operation. + * @callback module:api/HydraApi~assignEmvCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} hydraConfigId + * @param {Number} emvTerminalId + * @param {module:api/HydraApi~assignEmvCallback} callback The callback function, accepting three arguments: error, data, response + */ + assignEmv(appId, hydraConfigId, emvTerminalId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling assignEmv"); + } + // verify the required parameter 'hydraConfigId' is set + if (hydraConfigId === undefined || hydraConfigId === null) { + throw new Error("Missing the required parameter 'hydraConfigId' when calling assignEmv"); + } + // verify the required parameter 'emvTerminalId' is set + if (emvTerminalId === undefined || emvTerminalId === null) { + throw new Error("Missing the required parameter 'emvTerminalId' when calling assignEmv"); + } + + let pathParams = { + 'appId': appId, + 'hydraConfigId': hydraConfigId, + 'emvTerminalId': emvTerminalId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvterminal/assign/{hydraConfigId}/{emvTerminalId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the attachStoreToKiosk operation. + * @callback module:api/HydraApi~attachStoreToKioskCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {String} deviceId + * @param {module:api/HydraApi~attachStoreToKioskCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraStatus} + */ + attachStoreToKiosk(appId, storeId, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling attachStoreToKiosk"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling attachStoreToKiosk"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling attachStoreToKiosk"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the attachStoreToTerminal operation. + * @callback module:api/HydraApi~attachStoreToTerminalCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {Number} storeId + * @param {module:api/HydraApi~attachStoreToTerminalCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraStatus} + */ + attachStoreToTerminal(appId, deviceId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling attachStoreToTerminal"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling attachStoreToTerminal"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling attachStoreToTerminal"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the cancelEmvPayment operation. + * @callback module:api/HydraApi~cancelEmvPaymentCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {String} appId + * @param {module:api/HydraApi~cancelEmvPaymentCallback} callback The callback function, accepting three arguments: error, data, response + */ + cancelEmvPayment(orderId, appId, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling cancelEmvPayment"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling cancelEmvPayment"); + } + + let pathParams = { + 'orderId': orderId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/cancelemvpayment/{orderId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the detachStoreFromTerminal operation. + * @callback module:api/HydraApi~detachStoreFromTerminalCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {Number} storeId + * @param {module:api/HydraApi~detachStoreFromTerminalCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraStatus} + */ + detachStoreFromTerminal(appId, deviceId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling detachStoreFromTerminal"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling detachStoreFromTerminal"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling detachStoreFromTerminal"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceId}/detach/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAblyToken operation. + * @callback module:api/HydraApi~getAblyTokenCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HydraApi~getAblyTokenCallback} callback The callback function, accepting three arguments: error, data, response + */ + getAblyToken(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/hydra/ably_token', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAttachedDevice operation. + * @callback module:api/HydraApi~getAttachedDeviceCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraDeviceDetails} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} deviceType + * @param {String} deviceId + * @param {module:api/HydraApi~getAttachedDeviceCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraDeviceDetails} + */ + getAttachedDevice(appId, deviceType, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAttachedDevice"); + } + // verify the required parameter 'deviceType' is set + if (deviceType === undefined || deviceType === null) { + throw new Error("Missing the required parameter 'deviceType' when calling getAttachedDevice"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling getAttachedDevice"); + } + + let pathParams = { + 'appId': appId, + 'deviceType': deviceType, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraDeviceDetails; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceType}/{deviceId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAttachedDevices operation. + * @callback module:api/HydraApi~getAttachedDevicesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultHydraDeviceDetails} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} deviceType + * @param {Object} opts Optional parameters + * @param {Number} opts.pageIndex + * @param {Number} opts.pageSize + * @param {Number} opts.storeId + * @param {String} opts.deviceName + * @param {String} opts.deviceSerial + * @param {module:api/HydraApi~getAttachedDevicesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultHydraDeviceDetails} + */ + getAttachedDevices(appId, deviceType, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAttachedDevices"); + } + // verify the required parameter 'deviceType' is set + if (deviceType === undefined || deviceType === null) { + throw new Error("Missing the required parameter 'deviceType' when calling getAttachedDevices"); + } + + let pathParams = { + 'appId': appId, + 'deviceType': deviceType + }; + let queryParams = { + 'pageIndex': opts['pageIndex'], + 'pageSize': opts['pageSize'], + 'storeId': opts['storeId'], + 'deviceName': opts['deviceName'], + 'deviceSerial': opts['deviceSerial'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultHydraDeviceDetails; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceType}/list', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getEMVTerminalDetails operation. + * @callback module:api/HydraApi~getEMVTerminalDetailsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPaymentTerminalDetails} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/HydraApi~getEMVTerminalDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPaymentTerminalDetails} + */ + getEMVTerminalDetails(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getEMVTerminalDetails"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultPaymentTerminalDetails; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvterminal', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getEmvOrderState operation. + * @callback module:api/HydraApi~getEmvOrderStateCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPaymentTerminalTransactionDetails} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {String} appId + * @param {module:api/HydraApi~getEmvOrderStateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPaymentTerminalTransactionDetails} + */ + getEmvOrderState(orderId, appId, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling getEmvOrderState"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getEmvOrderState"); + } + + let pathParams = { + 'orderId': orderId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultPaymentTerminalTransactionDetails; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvorderstate/{orderId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getKioskCashPaymentSettings operation. + * @callback module:api/HydraApi~getKioskCashPaymentSettingsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultKioskCashPaymentSettings} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:api/HydraApi~getKioskCashPaymentSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultKioskCashPaymentSettings} + */ + getKioskCashPaymentSettings(appId, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getKioskCashPaymentSettings"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling getKioskCashPaymentSettings"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultKioskCashPaymentSettings; + return this.apiClient.callApi( + '/api/v1.0/{appId}/kioskcashsettings/{deviceId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getKioskSettings operation. + * @callback module:api/HydraApi~getKioskSettingsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultKioskSettings} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:api/HydraApi~getKioskSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultKioskSettings} + */ + getKioskSettings(appId, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getKioskSettings"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling getKioskSettings"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultKioskSettings; + return this.apiClient.callApi( + '/api/v1.0/{appId}/kiosksettings/{deviceId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRegistration operation. + * @callback module:api/HydraApi~getRegistrationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HydraApi~getRegistrationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraStatus} + */ + getRegistration(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraStatus; + return this.apiClient.callApi( + '/api/v1.0/hydra/registration', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getSettings operation. + * @callback module:api/HydraApi~getSettingsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/HydraApi~getSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraConfig} + */ + getSettings(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraConfig; + return this.apiClient.callApi( + '/api/v1.0/hydra/settings', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the hydraCreateEmv operation. + * @callback module:api/HydraApi~hydraCreateEmvCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/EmvTerminal} emv + * @param {module:api/HydraApi~hydraCreateEmvCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + hydraCreateEmv(appId, emv, callback) { + let postBody = emv; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling hydraCreateEmv"); + } + // verify the required parameter 'emv' is set + if (emv === undefined || emv === null) { + throw new Error("Missing the required parameter 'emv' when calling hydraCreateEmv"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/emvterminals', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the hydraDeleteEmv operation. + * @callback module:api/HydraApi~hydraDeleteEmvCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} id + * @param {module:api/HydraApi~hydraDeleteEmvCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + hydraDeleteEmv(appId, id, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling hydraDeleteEmv"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling hydraDeleteEmv"); + } + + let pathParams = { + 'appId': appId, + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/emvterminals/{id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the hydraDetachStoreFromKiosk operation. + * @callback module:api/HydraApi~hydraDetachStoreFromKioskCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {String} deviceId + * @param {module:api/HydraApi~hydraDetachStoreFromKioskCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraStatus} + */ + hydraDetachStoreFromKiosk(appId, storeId, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling hydraDetachStoreFromKiosk"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling hydraDetachStoreFromKiosk"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling hydraDetachStoreFromKiosk"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the hydraGetEmvsForAppId operation. + * @callback module:api/HydraApi~hydraGetEmvsForAppIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultEmvTerminalWithAssignments} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/HydraApi~hydraGetEmvsForAppIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultEmvTerminalWithAssignments} + */ + hydraGetEmvsForAppId(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling hydraGetEmvsForAppId"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultEmvTerminalWithAssignments; + return this.apiClient.callApi( + '/api/v1.0/{appId}/emvterminals', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the loginWithDeviceId operation. + * @callback module:api/HydraApi~loginWithDeviceIdCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} deviceId + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.hydraUserType + * @param {String} opts.serialNumber + * @param {module:api/HydraApi~loginWithDeviceIdCallback} callback The callback function, accepting three arguments: error, data, response + */ + loginWithDeviceId(deviceId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling loginWithDeviceId"); + } + + let pathParams = { + 'deviceId': deviceId + }; + let queryParams = { + 'hydraUserType': opts['hydraUserType'], + 'serialNumber': opts['serialNumber'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/hydra/{deviceId}/login', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the register operation. + * @callback module:api/HydraApi~registerCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHydraStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/HydraRegistrationRequest} hydraRegistration + * @param {module:api/HydraApi~registerCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHydraStatus} + */ + register(appId, hydraRegistration, callback) { + let postBody = hydraRegistration; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling register"); + } + // verify the required parameter 'hydraRegistration' is set + if (hydraRegistration === undefined || hydraRegistration === null) { + throw new Error("Missing the required parameter 'hydraRegistration' when calling register"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultHydraStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/registration', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unAssign operation. + * @callback module:api/HydraApi~unAssignCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:api/HydraApi~unAssignCallback} callback The callback function, accepting three arguments: error, data, response + */ + unAssign(appId, deviceId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling unAssign"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling unAssign"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/{deviceId}/registration', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unassignEmv operation. + * @callback module:api/HydraApi~unassignEmvCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} hydraConfigId + * @param {module:api/HydraApi~unassignEmvCallback} callback The callback function, accepting three arguments: error, data, response + */ + unassignEmv(appId, hydraConfigId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling unassignEmv"); + } + // verify the required parameter 'hydraConfigId' is set + if (hydraConfigId === undefined || hydraConfigId === null) { + throw new Error("Missing the required parameter 'hydraConfigId' when calling unassignEmv"); + } + + let pathParams = { + 'appId': appId, + 'hydraConfigId': hydraConfigId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateKioskCashVisibilitySettings operation. + * @callback module:api/HydraApi~updateKioskCashVisibilitySettingsCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {Boolean} isCashEnabled + * @param {module:api/HydraApi~updateKioskCashVisibilitySettingsCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateKioskCashVisibilitySettings(appId, deviceId, isCashEnabled, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateKioskCashVisibilitySettings"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling updateKioskCashVisibilitySettings"); + } + // verify the required parameter 'isCashEnabled' is set + if (isCashEnabled === undefined || isCashEnabled === null) { + throw new Error("Missing the required parameter 'isCashEnabled' when calling updateKioskCashVisibilitySettings"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'deviceId': deviceId, + 'isCashEnabled': isCashEnabled + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/kioskupdatecashsettings', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateKioskSettings operation. + * @callback module:api/HydraApi~updateKioskSettingsCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} deviceId + * @param {module:model/KioskSettings} settings + * @param {module:api/HydraApi~updateKioskSettingsCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateKioskSettings(appId, deviceId, settings, callback) { + let postBody = settings; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateKioskSettings"); + } + // verify the required parameter 'deviceId' is set + if (deviceId === undefined || deviceId === null) { + throw new Error("Missing the required parameter 'deviceId' when calling updateKioskSettings"); + } + // verify the required parameter 'settings' is set + if (settings === undefined || settings === null) { + throw new Error("Missing the required parameter 'settings' when calling updateKioskSettings"); + } + + let pathParams = { + 'appId': appId, + 'deviceId': deviceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/kiosksettings/{deviceId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/IntercomApi.js b/src/api/IntercomApi.js new file mode 100644 index 00000000..c30cb487 --- /dev/null +++ b/src/api/IntercomApi.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultIntercomUserHash from '../model/RestApiResultIntercomUserHash'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Intercom service. +* @module api/IntercomApi +* @version 1.0.0 +*/ +export default class IntercomApi { + + /** + * Constructs a new IntercomApi. + * @alias module:api/IntercomApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the userHash operation. + * @callback module:api/IntercomApi~userHashCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultIntercomUserHash} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/IntercomApi~userHashCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultIntercomUserHash} + */ + userHash(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultIntercomUserHash; + return this.apiClient.callApi( + '/api/v1.0/intercom/userHash', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/InvoicesApi.js b/src/api/InvoicesApi.js new file mode 100644 index 00000000..ebaeb046 --- /dev/null +++ b/src/api/InvoicesApi.js @@ -0,0 +1,259 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiFinanceSearchPaginationResultInvoice from '../model/RestApiFinanceSearchPaginationResultInvoice'; +import RestApiFinanceSearchPaginationResultSubscriptionInvoice from '../model/RestApiFinanceSearchPaginationResultSubscriptionInvoice'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Invoices service. +* @module api/InvoicesApi +* @version 1.0.0 +*/ +export default class InvoicesApi { + + /** + * Constructs a new InvoicesApi. + * @alias module:api/InvoicesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getInvoices operation. + * @callback module:api/InvoicesApi~getInvoicesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.subscriptionId + * @param {Number} opts.limit + * @param {String} opts.pageId + * @param {Boolean} opts.excludeNotOwnedInvoices + * @param {Date} opts.dateFrom + * @param {Date} opts.dateTo + * @param {String} opts.invoiceNumber + * @param {Array.} opts.storeId + * @param {module:api/InvoicesApi~getInvoicesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice} + */ + getInvoices(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getInvoices"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'subscriptionId': opts['subscriptionId'], + 'limit': opts['limit'], + 'pageId': opts['pageId'], + 'excludeNotOwnedInvoices': opts['excludeNotOwnedInvoices'], + 'dateFrom': opts['dateFrom'], + 'dateTo': opts['dateTo'], + 'invoiceNumber': opts['invoiceNumber'], + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiFinanceSearchPaginationResultSubscriptionInvoice; + return this.apiClient.callApi( + '/api/v1.0/{appId}/invoices', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the invoicePdf operation. + * @callback module:api/InvoicesApi~invoicePdfCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} invoiceNumber + * @param {String} appId + * @param {module:api/InvoicesApi~invoicePdfCallback} callback The callback function, accepting three arguments: error, data, response + */ + invoicePdf(invoiceNumber, appId, callback) { + let postBody = null; + // verify the required parameter 'invoiceNumber' is set + if (invoiceNumber === undefined || invoiceNumber === null) { + throw new Error("Missing the required parameter 'invoiceNumber' when calling invoicePdf"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling invoicePdf"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'invoiceNumber': invoiceNumber + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/invoices/InvoicePdf', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the listInvoices operation. + * @callback module:api/InvoicesApi~listInvoicesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiFinanceSearchPaginationResultInvoice} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.limit + * @param {Number} opts.page + * @param {module:api/InvoicesApi~listInvoicesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiFinanceSearchPaginationResultInvoice} + */ + listInvoices(storeId, appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling listInvoices"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling listInvoices"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': storeId, + 'limit': opts['limit'], + 'page': opts['page'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiFinanceSearchPaginationResultInvoice; + return this.apiClient.callApi( + '/api/v1.0/{appId}/invoices/ListInvoices', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the listSubscriptionInvoices operation. + * @callback module:api/InvoicesApi~listSubscriptionInvoicesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.subscriptionId + * @param {Number} opts.limit + * @param {String} opts.pageId + * @param {Boolean} opts.excludeNotOwnedInvoices + * @param {Date} opts.dateFrom + * @param {Date} opts.dateTo + * @param {String} opts.invoiceNumber + * @param {Array.} opts.storeId + * @param {module:api/InvoicesApi~listSubscriptionInvoicesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice} + */ + listSubscriptionInvoices(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling listSubscriptionInvoices"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'subscriptionId': opts['subscriptionId'], + 'limit': opts['limit'], + 'pageId': opts['pageId'], + 'excludeNotOwnedInvoices': opts['excludeNotOwnedInvoices'], + 'dateFrom': opts['dateFrom'], + 'dateTo': opts['dateTo'], + 'invoiceNumber': opts['invoiceNumber'], + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiFinanceSearchPaginationResultSubscriptionInvoice; + return this.apiClient.callApi( + '/api/v1.0/{appId}/invoices/ListSubscriptionInvoices', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/KioskEntitlementsApi.js b/src/api/KioskEntitlementsApi.js new file mode 100644 index 00000000..3d40041d --- /dev/null +++ b/src/api/KioskEntitlementsApi.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultKioskEntitlementsResult from '../model/RestApiResultKioskEntitlementsResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* KioskEntitlements service. +* @module api/KioskEntitlementsApi +* @version 1.0.0 +*/ +export default class KioskEntitlementsApi { + + /** + * Constructs a new KioskEntitlementsApi. + * @alias module:api/KioskEntitlementsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the queryKioskEntitlementsByOrgId operation. + * @callback module:api/KioskEntitlementsApi~queryKioskEntitlementsByOrgIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultKioskEntitlementsResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} orgId + * @param {module:api/KioskEntitlementsApi~queryKioskEntitlementsByOrgIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultKioskEntitlementsResult} + */ + queryKioskEntitlementsByOrgId(orgId, callback) { + let postBody = null; + // verify the required parameter 'orgId' is set + if (orgId === undefined || orgId === null) { + throw new Error("Missing the required parameter 'orgId' when calling queryKioskEntitlementsByOrgId"); + } + + let pathParams = { + 'orgId': orgId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultKioskEntitlementsResult; + return this.apiClient.callApi( + '/api/v1.0/orgs/{orgId}/kiosk/entitlements', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/LightspeedApi.js b/src/api/LightspeedApi.js new file mode 100644 index 00000000..43adb00c --- /dev/null +++ b/src/api/LightspeedApi.js @@ -0,0 +1,170 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import LightspeedSettings from '../model/LightspeedSettings'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultLightspeedSettings from '../model/RestApiResultLightspeedSettings'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Lightspeed service. +* @module api/LightspeedApi +* @version 1.0.0 +*/ +export default class LightspeedApi { + + /** + * Constructs a new LightspeedApi. + * @alias module:api/LightspeedApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the lightspeedGenerateMenu operation. + * @callback module:api/LightspeedApi~lightspeedGenerateMenuCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/LightspeedApi~lightspeedGenerateMenuCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + lightspeedGenerateMenu(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling lightspeedGenerateMenu"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/lightspeed/{storeId}/menu/generate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the lightspeedGetStoreSettings operation. + * @callback module:api/LightspeedApi~lightspeedGetStoreSettingsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultLightspeedSettings} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/LightspeedApi~lightspeedGetStoreSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLightspeedSettings} + */ + lightspeedGetStoreSettings(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling lightspeedGetStoreSettings"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultLightspeedSettings; + return this.apiClient.callApi( + '/api/v1.0/lightspeed/{storeId}/settings', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the lightspeedSaveStoreSettings operation. + * @callback module:api/LightspeedApi~lightspeedSaveStoreSettingsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultLightspeedSettings} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/LightspeedSettings} lightspeedSettings + * @param {module:api/LightspeedApi~lightspeedSaveStoreSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLightspeedSettings} + */ + lightspeedSaveStoreSettings(storeId, lightspeedSettings, callback) { + let postBody = lightspeedSettings; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling lightspeedSaveStoreSettings"); + } + // verify the required parameter 'lightspeedSettings' is set + if (lightspeedSettings === undefined || lightspeedSettings === null) { + throw new Error("Missing the required parameter 'lightspeedSettings' when calling lightspeedSaveStoreSettings"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultLightspeedSettings; + return this.apiClient.callApi( + '/api/v1.0/lightspeed/{storeId}/settings', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/LocationApi.js b/src/api/LocationApi.js new file mode 100644 index 00000000..4124cfc9 --- /dev/null +++ b/src/api/LocationApi.js @@ -0,0 +1,353 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateLocation from '../model/CreateLocation'; +import RestApiArrayResultLocationAreaLocation from '../model/RestApiArrayResultLocationAreaLocation'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultLocationAreaLocation from '../model/RestApiResultLocationAreaLocation'; +import RestApiResultMappedLocation from '../model/RestApiResultMappedLocation'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Location service. +* @module api/LocationApi +* @version 1.0.0 +*/ +export default class LocationApi { + + /** + * Constructs a new LocationApi. + * @alias module:api/LocationApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createLocation operation. + * @callback module:api/LocationApi~createLocationCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} locationAreaId + * @param {String} appId + * @param {Number} storeId + * @param {Array.} createLocationInput + * @param {module:api/LocationApi~createLocationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createLocation(locationAreaId, appId, storeId, createLocationInput, callback) { + let postBody = createLocationInput; + // verify the required parameter 'locationAreaId' is set + if (locationAreaId === undefined || locationAreaId === null) { + throw new Error("Missing the required parameter 'locationAreaId' when calling createLocation"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createLocation"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling createLocation"); + } + // verify the required parameter 'createLocationInput' is set + if (createLocationInput === undefined || createLocationInput === null) { + throw new Error("Missing the required parameter 'createLocationInput' when calling createLocation"); + } + + let pathParams = { + 'locationAreaId': locationAreaId, + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteLocation operation. + * @callback module:api/LocationApi~deleteLocationCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} locationId + * @param {Number} locationAreaId + * @param {String} appId + * @param {Number} storeId + * @param {module:api/LocationApi~deleteLocationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + deleteLocation(locationId, locationAreaId, appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'locationId' is set + if (locationId === undefined || locationId === null) { + throw new Error("Missing the required parameter 'locationId' when calling deleteLocation"); + } + // verify the required parameter 'locationAreaId' is set + if (locationAreaId === undefined || locationAreaId === null) { + throw new Error("Missing the required parameter 'locationAreaId' when calling deleteLocation"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteLocation"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling deleteLocation"); + } + + let pathParams = { + 'locationId': locationId, + 'locationAreaId': locationAreaId, + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the mapLocationToExternalId operation. + * @callback module:api/LocationApi~mapLocationToExternalIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMappedLocation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} locationId + * @param {Number} locationAreaId + * @param {String} appId + * @param {Number} storeId + * @param {Object} opts Optional parameters + * @param {String} opts.externalLocationId + * @param {module:api/LocationApi~mapLocationToExternalIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMappedLocation} + */ + mapLocationToExternalId(locationId, locationAreaId, appId, storeId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'locationId' is set + if (locationId === undefined || locationId === null) { + throw new Error("Missing the required parameter 'locationId' when calling mapLocationToExternalId"); + } + // verify the required parameter 'locationAreaId' is set + if (locationAreaId === undefined || locationAreaId === null) { + throw new Error("Missing the required parameter 'locationAreaId' when calling mapLocationToExternalId"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling mapLocationToExternalId"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling mapLocationToExternalId"); + } + + let pathParams = { + 'locationId': locationId, + 'locationAreaId': locationAreaId, + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + 'externalLocationId': opts['externalLocationId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultMappedLocation; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/map-external', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the moveLocation operation. + * @callback module:api/LocationApi~moveLocationCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} locationId + * @param {Number} locationAreaId + * @param {Number} newLocationAreaId + * @param {String} appId + * @param {Number} storeId + * @param {module:api/LocationApi~moveLocationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + moveLocation(locationId, locationAreaId, newLocationAreaId, appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'locationId' is set + if (locationId === undefined || locationId === null) { + throw new Error("Missing the required parameter 'locationId' when calling moveLocation"); + } + // verify the required parameter 'locationAreaId' is set + if (locationAreaId === undefined || locationAreaId === null) { + throw new Error("Missing the required parameter 'locationAreaId' when calling moveLocation"); + } + // verify the required parameter 'newLocationAreaId' is set + if (newLocationAreaId === undefined || newLocationAreaId === null) { + throw new Error("Missing the required parameter 'newLocationAreaId' when calling moveLocation"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling moveLocation"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling moveLocation"); + } + + let pathParams = { + 'locationId': locationId, + 'locationAreaId': locationAreaId, + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + 'newLocationAreaId': newLocationAreaId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateLocation operation. + * @callback module:api/LocationApi~updateLocationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultLocationAreaLocation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} locationAreaId + * @param {Number} locationId + * @param {String} appId + * @param {Number} storeId + * @param {module:model/CreateLocation} updateLocationInput + * @param {module:api/LocationApi~updateLocationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLocationAreaLocation} + */ + updateLocation(locationAreaId, locationId, appId, storeId, updateLocationInput, callback) { + let postBody = updateLocationInput; + // verify the required parameter 'locationAreaId' is set + if (locationAreaId === undefined || locationAreaId === null) { + throw new Error("Missing the required parameter 'locationAreaId' when calling updateLocation"); + } + // verify the required parameter 'locationId' is set + if (locationId === undefined || locationId === null) { + throw new Error("Missing the required parameter 'locationId' when calling updateLocation"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateLocation"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateLocation"); + } + // verify the required parameter 'updateLocationInput' is set + if (updateLocationInput === undefined || updateLocationInput === null) { + throw new Error("Missing the required parameter 'updateLocationInput' when calling updateLocation"); + } + + let pathParams = { + 'locationAreaId': locationAreaId, + 'locationId': locationId, + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultLocationAreaLocation; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/update', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/LocationAreasApi.js b/src/api/LocationAreasApi.js new file mode 100644 index 00000000..3c4c1f0f --- /dev/null +++ b/src/api/LocationAreasApi.js @@ -0,0 +1,255 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateLocationArea from '../model/CreateLocationArea'; +import RestApiArrayResultLocationAreaWithLocations from '../model/RestApiArrayResultLocationAreaWithLocations'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultLocationArea from '../model/RestApiResultLocationArea'; +import RestApiResultLocationAreaWithLocations from '../model/RestApiResultLocationAreaWithLocations'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateLocationArea from '../model/UpdateLocationArea'; + +/** +* LocationAreas service. +* @module api/LocationAreasApi +* @version 1.0.0 +*/ +export default class LocationAreasApi { + + /** + * Constructs a new LocationAreasApi. + * @alias module:api/LocationAreasApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createLocationArea operation. + * @callback module:api/LocationAreasApi~createLocationAreaCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:model/CreateLocationArea} locationAreaInput + * @param {module:api/LocationAreasApi~createLocationAreaCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createLocationArea(appId, storeId, locationAreaInput, callback) { + let postBody = locationAreaInput; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createLocationArea"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling createLocationArea"); + } + // verify the required parameter 'locationAreaInput' is set + if (locationAreaInput === undefined || locationAreaInput === null) { + throw new Error("Missing the required parameter 'locationAreaInput' when calling createLocationArea"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getLocationArea operation. + * @callback module:api/LocationAreasApi~getLocationAreaCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultLocationAreaWithLocations} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} locationAreaId + * @param {String} appId + * @param {Number} storeId + * @param {module:api/LocationAreasApi~getLocationAreaCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLocationAreaWithLocations} + */ + getLocationArea(locationAreaId, appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'locationAreaId' is set + if (locationAreaId === undefined || locationAreaId === null) { + throw new Error("Missing the required parameter 'locationAreaId' when calling getLocationArea"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getLocationArea"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getLocationArea"); + } + + let pathParams = { + 'locationAreaId': locationAreaId, + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultLocationAreaWithLocations; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getLocationAreasForStore operation. + * @callback module:api/LocationAreasApi~getLocationAreasForStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultLocationAreaWithLocations} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:api/LocationAreasApi~getLocationAreasForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultLocationAreaWithLocations} + */ + getLocationAreasForStore(appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getLocationAreasForStore"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getLocationAreasForStore"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultLocationAreaWithLocations; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateLocationArea operation. + * @callback module:api/LocationAreasApi~updateLocationAreaCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultLocationArea} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {String} locationAreaId + * @param {module:model/UpdateLocationArea} locationAreaInput + * @param {module:api/LocationAreasApi~updateLocationAreaCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultLocationArea} + */ + updateLocationArea(appId, storeId, locationAreaId, locationAreaInput, callback) { + let postBody = locationAreaInput; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateLocationArea"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateLocationArea"); + } + // verify the required parameter 'locationAreaId' is set + if (locationAreaId === undefined || locationAreaId === null) { + throw new Error("Missing the required parameter 'locationAreaId' when calling updateLocationArea"); + } + // verify the required parameter 'locationAreaInput' is set + if (locationAreaInput === undefined || locationAreaInput === null) { + throw new Error("Missing the required parameter 'locationAreaInput' when calling updateLocationArea"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId, + 'locationAreaId': locationAreaId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultLocationArea; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/LookerDashboardApi.js b/src/api/LookerDashboardApi.js new file mode 100644 index 00000000..96391861 --- /dev/null +++ b/src/api/LookerDashboardApi.js @@ -0,0 +1,80 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* LookerDashboard service. +* @module api/LookerDashboardApi +* @version 1.0.0 +*/ +export default class LookerDashboardApi { + + /** + * Constructs a new LookerDashboardApi. + * @alias module:api/LookerDashboardApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the lookerDashboardGetAll operation. + * @callback module:api/LookerDashboardApi~lookerDashboardGetAllCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/LookerDashboardApi~lookerDashboardGetAllCallback} callback The callback function, accepting three arguments: error, data, response + */ + lookerDashboardGetAll(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling lookerDashboardGetAll"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/looker/dashboards', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/LookerSingleSignOnApi.js b/src/api/LookerSingleSignOnApi.js new file mode 100644 index 00000000..84ae3863 --- /dev/null +++ b/src/api/LookerSingleSignOnApi.js @@ -0,0 +1,92 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import DashboardEmbed from '../model/DashboardEmbed'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* LookerSingleSignOn service. +* @module api/LookerSingleSignOnApi +* @version 1.0.0 +*/ +export default class LookerSingleSignOnApi { + + /** + * Constructs a new LookerSingleSignOnApi. + * @alias module:api/LookerSingleSignOnApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getSSOEndpoint operation. + * @callback module:api/LookerSingleSignOnApi~getSSOEndpointCallback + * @param {String} error Error message, if any. + * @param {module:model/DashboardEmbed} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} embedPath + * @param {Object} opts Optional parameters + * @param {String} opts.filters + * @param {module:api/LookerSingleSignOnApi~getSSOEndpointCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/DashboardEmbed} + */ + getSSOEndpoint(appId, embedPath, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getSSOEndpoint"); + } + // verify the required parameter 'embedPath' is set + if (embedPath === undefined || embedPath === null) { + throw new Error("Missing the required parameter 'embedPath' when calling getSSOEndpoint"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'embedPath': embedPath, + 'filters': opts['filters'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'EmbedUrl']; + let returnType = DashboardEmbed; + return this.apiClient.callApi( + '/api/v1.0/{appId}/looker/sso', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenuOptionSetItemsApi.js b/src/api/MenuOptionSetItemsApi.js new file mode 100644 index 00000000..b3c93752 --- /dev/null +++ b/src/api/MenuOptionSetItemsApi.js @@ -0,0 +1,582 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import MenuItemOptionSetItemBase from '../model/MenuItemOptionSetItemBase'; +import RestApiArrayResultMenuItemOptionSetItem from '../model/RestApiArrayResultMenuItemOptionSetItem'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultMenuItemOptionSetItem from '../model/RestApiResultMenuItemOptionSetItem'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* MenuOptionSetItems service. +* @module api/MenuOptionSetItemsApi +* @version 1.0.0 +*/ +export default class MenuOptionSetItemsApi { + + /** + * Constructs a new MenuOptionSetItemsApi. + * @alias module:api/MenuOptionSetItemsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addMenuItemOptionSetItem operation. + * @callback module:api/MenuOptionSetItemsApi~addMenuItemOptionSetItemCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create menu item option set item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {module:model/MenuItemOptionSetItemBase} menuItemOptionSetItem Option set item + * @param {module:api/MenuOptionSetItemsApi~addMenuItemOptionSetItemCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + addMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItem, callback) { + let postBody = menuItemOptionSetItem; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling addMenuItemOptionSetItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling addMenuItemOptionSetItem"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling addMenuItemOptionSetItem"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling addMenuItemOptionSetItem"); + } + // verify the required parameter 'menuItemOptionSetItem' is set + if (menuItemOptionSetItem === undefined || menuItemOptionSetItem === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItem' when calling addMenuItemOptionSetItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteOptionSetItemImage operation. + * @callback module:api/MenuOptionSetItemsApi~deleteOptionSetItemImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu item option set item image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {Number} menuItemOptionSetItemId Option set item identifier + * @param {module:api/MenuOptionSetItemsApi~deleteOptionSetItemImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteOptionSetItemImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling deleteOptionSetItemImage"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling deleteOptionSetItemImage"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling deleteOptionSetItemImage"); + } + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId === undefined || menuItemOptionSetItemId === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItemId' when calling deleteOptionSetItemImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId, + 'menuItemOptionSetItemId': menuItemOptionSetItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemOptionSetItemById operation. + * @callback module:api/MenuOptionSetItemsApi~getMenuItemOptionSetItemByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuItemOptionSetItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item option set item by identifier + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {Number} menuItemOptionSetItemId Option set item identifier + * @param {module:api/MenuOptionSetItemsApi~getMenuItemOptionSetItemByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuItemOptionSetItem} + */ + getMenuItemOptionSetItemById(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemOptionSetItemById"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling getMenuItemOptionSetItemById"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling getMenuItemOptionSetItemById"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling getMenuItemOptionSetItemById"); + } + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId === undefined || menuItemOptionSetItemId === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItemId' when calling getMenuItemOptionSetItemById"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId, + 'menuItemOptionSetItemId': menuItemOptionSetItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMenuItemOptionSetItem; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemOptionSetItems operation. + * @callback module:api/MenuOptionSetItemsApi~getMenuItemOptionSetItemsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuItemOptionSetItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item option set items + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {module:api/MenuOptionSetItemsApi~getMenuItemOptionSetItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuItemOptionSetItem} + */ + getMenuItemOptionSetItems(menuId, menuSectionId, menuSectionItemId, optionSetId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemOptionSetItems"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling getMenuItemOptionSetItems"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling getMenuItemOptionSetItems"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling getMenuItemOptionSetItems"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMenuItemOptionSetItem; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the removeMenuItemOptionSetItem operation. + * @callback module:api/MenuOptionSetItemsApi~removeMenuItemOptionSetItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu item option set item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {Number} menuItemOptionSetItemId Option set item identifier + * @param {module:api/MenuOptionSetItemsApi~removeMenuItemOptionSetItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + removeMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling removeMenuItemOptionSetItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling removeMenuItemOptionSetItem"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling removeMenuItemOptionSetItem"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling removeMenuItemOptionSetItem"); + } + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId === undefined || menuItemOptionSetItemId === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItemId' when calling removeMenuItemOptionSetItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId, + 'menuItemOptionSetItemId': menuItemOptionSetItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setOptionSetItemTax operation. + * @callback module:api/MenuOptionSetItemsApi~setOptionSetItemTaxCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Set Tax Rate on OptionSetItem + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId + * @param {Number} menuSectionItemId + * @param {Number} optionSetId + * @param {Number} menuItemOptionSetItemId Option set item identifier + * @param {Number} taxRateId Tax Rate to use + * @param {module:api/MenuOptionSetItemsApi~setOptionSetItemTaxCallback} callback The callback function, accepting three arguments: error, data, response + */ + setOptionSetItemTax(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setOptionSetItemTax"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling setOptionSetItemTax"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling setOptionSetItemTax"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling setOptionSetItemTax"); + } + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId === undefined || menuItemOptionSetItemId === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItemId' when calling setOptionSetItemTax"); + } + // verify the required parameter 'taxRateId' is set + if (taxRateId === undefined || taxRateId === null) { + throw new Error("Missing the required parameter 'taxRateId' when calling setOptionSetItemTax"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId, + 'menuItemOptionSetItemId': menuItemOptionSetItemId, + 'taxRateId': taxRateId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/taxrate/{taxRateId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateMenuItemOptionSetItem operation. + * @callback module:api/MenuOptionSetItemsApi~updateMenuItemOptionSetItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menu item option set item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {Number} menuItemOptionSetItemId Option set item identifier + * @param {module:model/MenuItemOptionSetItemBase} menuItemOptionSetItem Option set item (delta) + * @param {Object} opts Optional parameters + * @param {Number} opts.undoAfter An optional time period, in hours, after which the hide-section operation will be undone. + * @param {module:api/MenuOptionSetItemsApi~updateMenuItemOptionSetItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateMenuItemOptionSetItem(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, menuItemOptionSetItem, opts, callback) { + opts = opts || {}; + let postBody = menuItemOptionSetItem; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling updateMenuItemOptionSetItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling updateMenuItemOptionSetItem"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling updateMenuItemOptionSetItem"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling updateMenuItemOptionSetItem"); + } + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId === undefined || menuItemOptionSetItemId === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItemId' when calling updateMenuItemOptionSetItem"); + } + // verify the required parameter 'menuItemOptionSetItem' is set + if (menuItemOptionSetItem === undefined || menuItemOptionSetItem === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItem' when calling updateMenuItemOptionSetItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId, + 'menuItemOptionSetItemId': menuItemOptionSetItemId + }; + let queryParams = { + 'undoAfter': opts['undoAfter'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadOptionSetItemImage operation. + * @callback module:api/MenuOptionSetItemsApi~uploadOptionSetItemImageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Upload menu item option set item image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {Number} menuItemOptionSetItemId Option set item identifier + * @param {File} Image Option set item image + * @param {module:api/MenuOptionSetItemsApi~uploadOptionSetItemImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + uploadOptionSetItemImage(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, Image, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling uploadOptionSetItemImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling uploadOptionSetItemImage"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling uploadOptionSetItemImage"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling uploadOptionSetItemImage"); + } + // verify the required parameter 'menuItemOptionSetItemId' is set + if (menuItemOptionSetItemId === undefined || menuItemOptionSetItemId === null) { + throw new Error("Missing the required parameter 'menuItemOptionSetItemId' when calling uploadOptionSetItemImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadOptionSetItemImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId, + 'menuItemOptionSetItemId': menuItemOptionSetItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/optionsetitems/{menuItemOptionSetItemId}/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenuOptionSetsApi.js b/src/api/MenuOptionSetsApi.js new file mode 100644 index 00000000..3e336a33 --- /dev/null +++ b/src/api/MenuOptionSetsApi.js @@ -0,0 +1,465 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import MenuItemOptionSetBase from '../model/MenuItemOptionSetBase'; +import RestApiArrayResultMenuItemOptionSet from '../model/RestApiArrayResultMenuItemOptionSet'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultMenuItemOptionSet from '../model/RestApiResultMenuItemOptionSet'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* MenuOptionSets service. +* @module api/MenuOptionSetsApi +* @version 1.0.0 +*/ +export default class MenuOptionSetsApi { + + /** + * Constructs a new MenuOptionSetsApi. + * @alias module:api/MenuOptionSetsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createMenuItemOptionSet operation. + * @callback module:api/MenuOptionSetsApi~createMenuItemOptionSetCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create menu item option set + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {module:model/MenuItemOptionSetBase} menuItemOptionSet Menu item option set + * @param {module:api/MenuOptionSetsApi~createMenuItemOptionSetCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, menuItemOptionSet, callback) { + let postBody = menuItemOptionSet; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling createMenuItemOptionSet"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling createMenuItemOptionSet"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling createMenuItemOptionSet"); + } + // verify the required parameter 'menuItemOptionSet' is set + if (menuItemOptionSet === undefined || menuItemOptionSet === null) { + throw new Error("Missing the required parameter 'menuItemOptionSet' when calling createMenuItemOptionSet"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuItemOptionSet operation. + * @callback module:api/MenuOptionSetsApi~deleteMenuItemOptionSetCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu item option set + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} optionSetId Option set identifier + * @param {module:api/MenuOptionSetsApi~deleteMenuItemOptionSetCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuItemOptionSet(menuId, menuSectionItemId, menuSectionId, optionSetId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuItemOptionSet"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling deleteMenuItemOptionSet"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling deleteMenuItemOptionSet"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling deleteMenuItemOptionSet"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionItemId': menuSectionItemId, + 'menuSectionId': menuSectionId, + 'optionSetId': optionSetId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteOptionSetImage operation. + * @callback module:api/MenuOptionSetsApi~deleteOptionSetImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete option set image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {module:api/MenuOptionSetsApi~deleteOptionSetImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteOptionSetImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling deleteOptionSetImage"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling deleteOptionSetImage"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling deleteOptionSetImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemOptionSetById operation. + * @callback module:api/MenuOptionSetsApi~getMenuItemOptionSetByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuItemOptionSet} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item option set by identifier + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Menu item option set identifier + * @param {module:api/MenuOptionSetsApi~getMenuItemOptionSetByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuItemOptionSet} + */ + getMenuItemOptionSetById(menuId, menuSectionId, menuSectionItemId, optionSetId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemOptionSetById"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling getMenuItemOptionSetById"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling getMenuItemOptionSetById"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling getMenuItemOptionSetById"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMenuItemOptionSet; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemOptionSets operation. + * @callback module:api/MenuOptionSetsApi~getMenuItemOptionSetsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuItemOptionSet} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item option sets + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {module:api/MenuOptionSetsApi~getMenuItemOptionSetsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuItemOptionSet} + */ + getMenuItemOptionSets(menuId, menuSectionId, menuSectionItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemOptionSets"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling getMenuItemOptionSets"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling getMenuItemOptionSets"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMenuItemOptionSet; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateMenuItemOptionSet operation. + * @callback module:api/MenuOptionSetsApi~updateMenuItemOptionSetCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menu item option set + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {module:model/MenuItemOptionSetBase} menuItemOptionSet Menu item option set (delta) + * @param {module:api/MenuOptionSetsApi~updateMenuItemOptionSetCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateMenuItemOptionSet(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSet, callback) { + let postBody = menuItemOptionSet; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling updateMenuItemOptionSet"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling updateMenuItemOptionSet"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling updateMenuItemOptionSet"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling updateMenuItemOptionSet"); + } + // verify the required parameter 'menuItemOptionSet' is set + if (menuItemOptionSet === undefined || menuItemOptionSet === null) { + throw new Error("Missing the required parameter 'menuItemOptionSet' when calling updateMenuItemOptionSet"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadOptionSetImage operation. + * @callback module:api/MenuOptionSetsApi~uploadOptionSetImageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Upload menu item option set image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {Number} optionSetId Option set identifier + * @param {File} Image Option set image + * @param {module:api/MenuOptionSetsApi~uploadOptionSetImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + uploadOptionSetImage(menuId, menuSectionId, menuSectionItemId, optionSetId, Image, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling uploadOptionSetImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling uploadOptionSetImage"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling uploadOptionSetImage"); + } + // verify the required parameter 'optionSetId' is set + if (optionSetId === undefined || optionSetId === null) { + throw new Error("Missing the required parameter 'optionSetId' when calling uploadOptionSetImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadOptionSetImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'optionSetId': optionSetId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/optionsets/{optionSetId}/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenuSectionItemsApi.js b/src/api/MenuSectionItemsApi.js new file mode 100644 index 00000000..1a668b0e --- /dev/null +++ b/src/api/MenuSectionItemsApi.js @@ -0,0 +1,655 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateMenuSectionItemFromCatalogItems from '../model/CreateMenuSectionItemFromCatalogItems'; +import MenuSectionItemBase from '../model/MenuSectionItemBase'; +import RestApiArrayResultMenuSectionItem from '../model/RestApiArrayResultMenuSectionItem'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultCreatedMenuSectionItems from '../model/RestApiResultCreatedMenuSectionItems'; +import RestApiResultMenuSectionItem from '../model/RestApiResultMenuSectionItem'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* MenuSectionItems service. +* @module api/MenuSectionItemsApi +* @version 1.0.0 +*/ +export default class MenuSectionItemsApi { + + /** + * Constructs a new MenuSectionItemsApi. + * @alias module:api/MenuSectionItemsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the cloneMenuSectionItem operation. + * @callback module:api/MenuSectionItemsApi~cloneMenuSectionItemCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuSectionItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Clone menu section item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {module:api/MenuSectionItemsApi~cloneMenuSectionItemCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuSectionItem} + */ + cloneMenuSectionItem(menuId, menuSectionId, menuSectionItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling cloneMenuSectionItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling cloneMenuSectionItem"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling cloneMenuSectionItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultMenuSectionItem; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/clone', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createMenuSectionItem operation. + * @callback module:api/MenuSectionItemsApi~createMenuSectionItemCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create menu section item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:model/MenuSectionItemBase} menuSectionItem Menu section item + * @param {module:api/MenuSectionItemsApi~createMenuSectionItemCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createMenuSectionItem(menuId, menuSectionId, menuSectionItem, callback) { + let postBody = menuSectionItem; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling createMenuSectionItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling createMenuSectionItem"); + } + // verify the required parameter 'menuSectionItem' is set + if (menuSectionItem === undefined || menuSectionItem === null) { + throw new Error("Missing the required parameter 'menuSectionItem' when calling createMenuSectionItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createMenuSectionItemFromCatalogItems operation. + * @callback module:api/MenuSectionItemsApi~createMenuSectionItemFromCatalogItemsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create menu section items from a list of Catalog Items + * BETA - this endpoint is under development, do not use it in your production system + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:model/CreateMenuSectionItemFromCatalogItems} createFromCatalogItems Information to create the new MenuSectionItems + * @param {module:api/MenuSectionItemsApi~createMenuSectionItemFromCatalogItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createMenuSectionItemFromCatalogItems(menuId, menuSectionId, createFromCatalogItems, callback) { + let postBody = createFromCatalogItems; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling createMenuSectionItemFromCatalogItems"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling createMenuSectionItemFromCatalogItems"); + } + // verify the required parameter 'createFromCatalogItems' is set + if (createFromCatalogItems === undefined || createFromCatalogItems === null) { + throw new Error("Missing the required parameter 'createFromCatalogItems' when calling createMenuSectionItemFromCatalogItems"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/add-catalogitems', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuSectionItem operation. + * @callback module:api/MenuSectionItemsApi~deleteMenuSectionItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu section item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {module:api/MenuSectionItemsApi~deleteMenuSectionItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuSectionItem(menuId, menuSectionId, menuSectionItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuSectionItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling deleteMenuSectionItem"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling deleteMenuSectionItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuSectionItemImage operation. + * @callback module:api/MenuSectionItemsApi~deleteMenuSectionItemImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu section item image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {module:api/MenuSectionItemsApi~deleteMenuSectionItemImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuSectionItemImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling deleteMenuSectionItemImage"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling deleteMenuSectionItemImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemById operation. + * @callback module:api/MenuSectionItemsApi~getMenuItemByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuSectionItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item by identifier + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu item identifier + * @param {module:api/MenuSectionItemsApi~getMenuItemByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuSectionItem} + */ + getMenuItemById(menuId, menuSectionId, menuSectionItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemById"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling getMenuItemById"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling getMenuItemById"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMenuSectionItem; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItems operation. + * @callback module:api/MenuSectionItemsApi~getMenuItemsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuSectionItem} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu items + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:api/MenuSectionItemsApi~getMenuItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuSectionItem} + */ + getMenuItems(menuId, menuSectionId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItems"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling getMenuItems"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMenuSectionItem; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the moveMenuItem operation. + * @callback module:api/MenuSectionItemsApi~moveMenuItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Move an Item within a menu + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Section to put item in (will usually be original section) + * @param {Number} menuSectionItemId ID of Item to be moved + * @param {Number} destinationDisplayOrder New Display Order of item + * @param {module:api/MenuSectionItemsApi~moveMenuItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + moveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling moveMenuItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling moveMenuItem"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling moveMenuItem"); + } + // verify the required parameter 'destinationDisplayOrder' is set + if (destinationDisplayOrder === undefined || destinationDisplayOrder === null) { + throw new Error("Missing the required parameter 'destinationDisplayOrder' when calling moveMenuItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'destinationDisplayOrder': destinationDisplayOrder + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/setorder/{destinationDisplayOrder}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setSectionItemTax operation. + * @callback module:api/MenuSectionItemsApi~setSectionItemTaxCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Set tax rate for menu item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Section to put item in (will usually be original section) + * @param {Number} menuSectionItemId ID of Item to be moved + * @param {Number} taxRateId tax rate to be set against item + * @param {module:api/MenuSectionItemsApi~setSectionItemTaxCallback} callback The callback function, accepting three arguments: error, data, response + */ + setSectionItemTax(menuId, menuSectionId, menuSectionItemId, taxRateId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setSectionItemTax"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling setSectionItemTax"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling setSectionItemTax"); + } + // verify the required parameter 'taxRateId' is set + if (taxRateId === undefined || taxRateId === null) { + throw new Error("Missing the required parameter 'taxRateId' when calling setSectionItemTax"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId, + 'taxRateId': taxRateId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateMenuSectionItem operation. + * @callback module:api/MenuSectionItemsApi~updateMenuSectionItemCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menu section item + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {module:model/MenuSectionItemBase} menuSectionItem Menu section item (delta) + * @param {Object} opts Optional parameters + * @param {Number} opts.undoAfter An optional time period, in hours, after which the hide-section operation will be undone + * @param {module:api/MenuSectionItemsApi~updateMenuSectionItemCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateMenuSectionItem(menuId, menuSectionId, menuSectionItemId, menuSectionItem, opts, callback) { + opts = opts || {}; + let postBody = menuSectionItem; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling updateMenuSectionItem"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling updateMenuSectionItem"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling updateMenuSectionItem"); + } + // verify the required parameter 'menuSectionItem' is set + if (menuSectionItem === undefined || menuSectionItem === null) { + throw new Error("Missing the required parameter 'menuSectionItem' when calling updateMenuSectionItem"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + 'undoAfter': opts['undoAfter'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadMenuSectionItemImage operation. + * @callback module:api/MenuSectionItemsApi~uploadMenuSectionItemImageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Upload menu section item image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {Number} menuSectionItemId Menu section item identifier + * @param {File} Image Menu section item image + * @param {module:api/MenuSectionItemsApi~uploadMenuSectionItemImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + uploadMenuSectionItemImage(menuId, menuSectionId, menuSectionItemId, Image, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling uploadMenuSectionItemImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling uploadMenuSectionItemImage"); + } + // verify the required parameter 'menuSectionItemId' is set + if (menuSectionItemId === undefined || menuSectionItemId === null) { + throw new Error("Missing the required parameter 'menuSectionItemId' when calling uploadMenuSectionItemImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadMenuSectionItemImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'menuSectionItemId': menuSectionItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenuSectionsApi.js b/src/api/MenuSectionsApi.js new file mode 100644 index 00000000..4ccd17a0 --- /dev/null +++ b/src/api/MenuSectionsApi.js @@ -0,0 +1,602 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import BusinessHoursPeriodBase from '../model/BusinessHoursPeriodBase'; +import MenuObjectDisplayOrders from '../model/MenuObjectDisplayOrders'; +import MenuSectionAvailabilityBase from '../model/MenuSectionAvailabilityBase'; +import MenuSectionBase from '../model/MenuSectionBase'; +import RestApiArrayResultMenuSection from '../model/RestApiArrayResultMenuSection'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultBusinessHoursPeriod from '../model/RestApiResultBusinessHoursPeriod'; +import RestApiResultMenuSection from '../model/RestApiResultMenuSection'; +import RestApiResultMenuSectionAvailability from '../model/RestApiResultMenuSectionAvailability'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* MenuSections service. +* @module api/MenuSectionsApi +* @version 1.0.0 +*/ +export default class MenuSectionsApi { + + /** + * Constructs a new MenuSectionsApi. + * @alias module:api/MenuSectionsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the cloneMenuSection operation. + * @callback module:api/MenuSectionsApi~cloneMenuSectionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuSection} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Clone menu section + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:api/MenuSectionsApi~cloneMenuSectionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuSection} + */ + cloneMenuSection(menuId, menuSectionId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling cloneMenuSection"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling cloneMenuSection"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultMenuSection; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createMenuAvailabilityForDay operation. + * @callback module:api/MenuSectionsApi~createMenuAvailabilityForDayCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Set/update menu section availability hours. + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:model/String} dayOfWeek Day of the week + * @param {module:model/BusinessHoursPeriodBase} businessHoursPeriod Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. + * @param {module:api/MenuSectionsApi~createMenuAvailabilityForDayCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod, callback) { + let postBody = businessHoursPeriod; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling createMenuAvailabilityForDay"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling createMenuAvailabilityForDay"); + } + // verify the required parameter 'dayOfWeek' is set + if (dayOfWeek === undefined || dayOfWeek === null) { + throw new Error("Missing the required parameter 'dayOfWeek' when calling createMenuAvailabilityForDay"); + } + // verify the required parameter 'businessHoursPeriod' is set + if (businessHoursPeriod === undefined || businessHoursPeriod === null) { + throw new Error("Missing the required parameter 'businessHoursPeriod' when calling createMenuAvailabilityForDay"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId, + 'dayOfWeek': dayOfWeek + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createMenuSection operation. + * @callback module:api/MenuSectionsApi~createMenuSectionCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create menu section + * @param {Number} menuId Menu identifier + * @param {module:model/MenuSectionBase} menuSection Menu section + * @param {module:api/MenuSectionsApi~createMenuSectionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createMenuSection(menuId, menuSection, callback) { + let postBody = menuSection; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling createMenuSection"); + } + // verify the required parameter 'menuSection' is set + if (menuSection === undefined || menuSection === null) { + throw new Error("Missing the required parameter 'menuSection' when calling createMenuSection"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createMenuSectionAvailability operation. + * @callback module:api/MenuSectionsApi~createMenuSectionAvailabilityCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create menu availability type + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:model/MenuSectionAvailabilityBase} menuSectionAvailability DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes + * @param {module:api/MenuSectionsApi~createMenuSectionAvailabilityCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability, callback) { + let postBody = menuSectionAvailability; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling createMenuSectionAvailability"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling createMenuSectionAvailability"); + } + // verify the required parameter 'menuSectionAvailability' is set + if (menuSectionAvailability === undefined || menuSectionAvailability === null) { + throw new Error("Missing the required parameter 'menuSectionAvailability' when calling createMenuSectionAvailability"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuSection operation. + * @callback module:api/MenuSectionsApi~deleteMenuSectionCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu section + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:api/MenuSectionsApi~deleteMenuSectionCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuSection(menuId, menuSectionId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuSection"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling deleteMenuSection"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuSectionImage operation. + * @callback module:api/MenuSectionsApi~deleteMenuSectionImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu section image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:api/MenuSectionsApi~deleteMenuSectionImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuSectionImage(menuId, menuSectionId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuSectionImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling deleteMenuSectionImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/image', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuSectionById operation. + * @callback module:api/MenuSectionsApi~getMenuSectionByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuSection} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu section by identifier + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:api/MenuSectionsApi~getMenuSectionByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuSection} + */ + getMenuSectionById(menuId, menuSectionId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuSectionById"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling getMenuSectionById"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMenuSection; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuSections operation. + * @callback module:api/MenuSectionsApi~getMenuSectionsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuSection} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu sections + * @param {Number} menuId Menu identifier + * @param {module:api/MenuSectionsApi~getMenuSectionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuSection} + */ + getMenuSections(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuSections"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMenuSection; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menuSectionsSetItemDisplayOrders operation. + * @callback module:api/MenuSectionsApi~menuSectionsSetItemDisplayOrdersCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Re-arrange Items within a Section + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:model/MenuObjectDisplayOrders} displayOrders Item Ids and their new display order + * @param {module:api/MenuSectionsApi~menuSectionsSetItemDisplayOrdersCallback} callback The callback function, accepting three arguments: error, data, response + */ + menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders, callback) { + let postBody = displayOrders; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menuSectionsSetItemDisplayOrders"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling menuSectionsSetItemDisplayOrders"); + } + // verify the required parameter 'displayOrders' is set + if (displayOrders === undefined || displayOrders === null) { + throw new Error("Missing the required parameter 'displayOrders' when calling menuSectionsSetItemDisplayOrders"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateMenuSection operation. + * @callback module:api/MenuSectionsApi~updateMenuSectionCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menu section + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {module:model/MenuSectionBase} menuSection Menu section changes (delta) + * @param {Object} opts Optional parameters + * @param {Number} opts.undoAfter An optional time period, in hours, after which the hide-section operation will be undone. + * @param {module:api/MenuSectionsApi~updateMenuSectionCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateMenuSection(menuId, menuSectionId, menuSection, opts, callback) { + opts = opts || {}; + let postBody = menuSection; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling updateMenuSection"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling updateMenuSection"); + } + // verify the required parameter 'menuSection' is set + if (menuSection === undefined || menuSection === null) { + throw new Error("Missing the required parameter 'menuSection' when calling updateMenuSection"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + 'undoAfter': opts['undoAfter'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadMenuSectionImage operation. + * @callback module:api/MenuSectionsApi~uploadMenuSectionImageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Upload menu section image + * @param {Number} menuId Menu identifier + * @param {Number} menuSectionId Menu section identifier + * @param {File} Image Menu section image + * @param {module:api/MenuSectionsApi~uploadMenuSectionImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + uploadMenuSectionImage(menuId, menuSectionId, Image, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling uploadMenuSectionImage"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling uploadMenuSectionImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadMenuSectionImage"); + } + + let pathParams = { + 'menuId': menuId, + 'menuSectionId': menuSectionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sections/{menuSectionId}/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenuZonesApi.js b/src/api/MenuZonesApi.js new file mode 100644 index 00000000..7eac8f93 --- /dev/null +++ b/src/api/MenuZonesApi.js @@ -0,0 +1,590 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import HttpPostedFileBase from '../model/HttpPostedFileBase'; +import MenuZone from '../model/MenuZone'; +import RestApiArrayResultMenuZone from '../model/RestApiArrayResultMenuZone'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultMenuZone from '../model/RestApiResultMenuZone'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* MenuZones service. +* @module api/MenuZonesApi +* @version 1.0.0 +*/ +export default class MenuZonesApi { + + /** + * Constructs a new MenuZonesApi. + * @alias module:api/MenuZonesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addMenuZone operation. + * @callback module:api/MenuZonesApi~addMenuZoneCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuZone} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Adds a new menu zone to a menu. + * @param {Number} menuId The menu id. + * @param {module:model/MenuZone} menuZone The object containing the new zone. This is optional and not supplying it will generate an empty default zone. + * @param {module:api/MenuZonesApi~addMenuZoneCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuZone} + */ + addMenuZone(menuId, menuZone, callback) { + let postBody = menuZone; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling addMenuZone"); + } + // verify the required parameter 'menuZone' is set + if (menuZone === undefined || menuZone === null) { + throw new Error("Missing the required parameter 'menuZone' when calling addMenuZone"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMenuZone; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuZone operation. + * @callback module:api/MenuZonesApi~deleteMenuZoneCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Deletes a menu zone. + * @param {Number} menuZoneId The menu zone id. + * @param {String} menuId + * @param {module:api/MenuZonesApi~deleteMenuZoneCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuZone(menuZoneId, menuId, callback) { + let postBody = null; + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling deleteMenuZone"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuZone"); + } + + let pathParams = { + 'menuZoneId': menuZoneId, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuZoneImage operation. + * @callback module:api/MenuZonesApi~deleteMenuZoneImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Deletes a menu zone image. + * @param {Number} menuZoneId The zone Id/ + * @param {String} menuId + * @param {module:api/MenuZonesApi~deleteMenuZoneImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuZoneImage(menuZoneId, menuId, callback) { + let postBody = null; + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling deleteMenuZoneImage"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuZoneImage"); + } + + let pathParams = { + 'menuZoneId': menuZoneId, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}/image', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the flipMenuZones operation. + * @callback module:api/MenuZonesApi~flipMenuZonesCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Flips the order of two menu zones. + * @param {Number} menuZoneId Source. + * @param {Number} menuZoneI2 Destination. + * @param {String} menuId + * @param {module:api/MenuZonesApi~flipMenuZonesCallback} callback The callback function, accepting three arguments: error, data, response + */ + flipMenuZones(menuZoneId, menuZoneI2, menuId, callback) { + let postBody = null; + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling flipMenuZones"); + } + // verify the required parameter 'menuZoneI2' is set + if (menuZoneI2 === undefined || menuZoneI2 === null) { + throw new Error("Missing the required parameter 'menuZoneI2' when calling flipMenuZones"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling flipMenuZones"); + } + + let pathParams = { + 'menuZoneId': menuZoneId, + 'menuZoneI2': menuZoneI2, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}/flip/{menuZoneI2}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuZone operation. + * @callback module:api/MenuZonesApi~getMenuZoneCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuZone} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Gets a specific menu zone for a given zone id + * @param {Number} menuId The menu id. + * @param {Number} menuZoneId The menu zone id. + * @param {module:api/MenuZonesApi~getMenuZoneCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuZone} + */ + getMenuZone(menuId, menuZoneId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuZone"); + } + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling getMenuZone"); + } + + let pathParams = { + 'menuId': menuId, + 'menuZoneId': menuZoneId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMenuZone; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuZonesForMenuId operation. + * @callback module:api/MenuZonesApi~getMenuZonesForMenuIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuZone} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Gets all the menu zones for a menu + * @param {Number} menuId The menu id to load zones for + * @param {module:api/MenuZonesApi~getMenuZonesForMenuIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuZone} + */ + getMenuZonesForMenuId(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuZonesForMenuId"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMenuZone; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setMenuSectionMenuZone operation. + * @callback module:api/MenuZonesApi~setMenuSectionMenuZoneCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Assigns a zone to a menu section. + * @param {Number} menuZoneId The menu id. + * @param {Number} menuSectionId The menu section id. + * @param {String} menuId + * @param {module:api/MenuZonesApi~setMenuSectionMenuZoneCallback} callback The callback function, accepting three arguments: error, data, response + */ + setMenuSectionMenuZone(menuZoneId, menuSectionId, menuId, callback) { + let postBody = null; + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling setMenuSectionMenuZone"); + } + // verify the required parameter 'menuSectionId' is set + if (menuSectionId === undefined || menuSectionId === null) { + throw new Error("Missing the required parameter 'menuSectionId' when calling setMenuSectionMenuZone"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setMenuSectionMenuZone"); + } + + let pathParams = { + 'menuZoneId': menuZoneId, + 'menuSectionId': menuSectionId, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}/section/{menuSectionId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setMenuZoneDescription operation. + * @callback module:api/MenuZonesApi~setMenuZoneDescriptionCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Sets the description of a menu zone. + * @param {Number} menuZoneId The zone id. + * @param {String} menuId + * @param {String} description The new description. Add as a raw string in the request, without any JSON wrapper. + * @param {module:api/MenuZonesApi~setMenuZoneDescriptionCallback} callback The callback function, accepting three arguments: error, data, response + */ + setMenuZoneDescription(menuZoneId, menuId, description, callback) { + let postBody = description; + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling setMenuZoneDescription"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setMenuZoneDescription"); + } + // verify the required parameter 'description' is set + if (description === undefined || description === null) { + throw new Error("Missing the required parameter 'description' when calling setMenuZoneDescription"); + } + + let pathParams = { + 'menuZoneId': menuZoneId, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}/description', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setMenuZoneName operation. + * @callback module:api/MenuZonesApi~setMenuZoneNameCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Sets the name of a menu zone. + * @param {Number} menuZoneId The menu zone id. + * @param {String} menuZoneName The new name. + * @param {String} menuId + * @param {module:api/MenuZonesApi~setMenuZoneNameCallback} callback The callback function, accepting three arguments: error, data, response + */ + setMenuZoneName(menuZoneId, menuZoneName, menuId, callback) { + let postBody = null; + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling setMenuZoneName"); + } + // verify the required parameter 'menuZoneName' is set + if (menuZoneName === undefined || menuZoneName === null) { + throw new Error("Missing the required parameter 'menuZoneName' when calling setMenuZoneName"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setMenuZoneName"); + } + + let pathParams = { + 'menuZoneId': menuZoneId, + 'menuZoneName': menuZoneName, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}/name/{menuZoneName}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateMenuZone operation. + * @callback module:api/MenuZonesApi~updateMenuZoneCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Updates a menu zone. + * @param {Number} menuId The menu id. + * @param {Number} menuZoneId The menu zone id. + * @param {module:model/MenuZone} menuZone The object containing the updated values. + * @param {module:api/MenuZonesApi~updateMenuZoneCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateMenuZone(menuId, menuZoneId, menuZone, callback) { + let postBody = menuZone; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling updateMenuZone"); + } + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling updateMenuZone"); + } + // verify the required parameter 'menuZone' is set + if (menuZone === undefined || menuZone === null) { + throw new Error("Missing the required parameter 'menuZone' when calling updateMenuZone"); + } + + let pathParams = { + 'menuId': menuId, + 'menuZoneId': menuZoneId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadMenuZoneImage operation. + * @callback module:api/MenuZonesApi~uploadMenuZoneImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Uploads an image for a menu zone. + * @param {Number} menuZoneId The zone id. + * @param {String} menuId + * @param {Array.} file The file to upload. + * @param {module:api/MenuZonesApi~uploadMenuZoneImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + uploadMenuZoneImage(menuZoneId, menuId, file, callback) { + let postBody = file; + // verify the required parameter 'menuZoneId' is set + if (menuZoneId === undefined || menuZoneId === null) { + throw new Error("Missing the required parameter 'menuZoneId' when calling uploadMenuZoneImage"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling uploadMenuZoneImage"); + } + // verify the required parameter 'file' is set + if (file === undefined || file === null) { + throw new Error("Missing the required parameter 'file' when calling uploadMenuZoneImage"); + } + + let pathParams = { + 'menuZoneId': menuZoneId, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/zones/{menuZoneId}/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenusApi.js b/src/api/MenusApi.js new file mode 100644 index 00000000..751eafe4 --- /dev/null +++ b/src/api/MenusApi.js @@ -0,0 +1,1668 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateFullMenu from '../model/CreateFullMenu'; +import MenuBase from '../model/MenuBase'; +import MenuElementHide from '../model/MenuElementHide'; +import MenuObjectDisplayOrders from '../model/MenuObjectDisplayOrders'; +import MenuTaxRate from '../model/MenuTaxRate'; +import Metadata from '../model/Metadata'; +import RestApiArrayResultAllMetadataResult from '../model/RestApiArrayResultAllMetadataResult'; +import RestApiArrayResultMenuCheckpoint from '../model/RestApiArrayResultMenuCheckpoint'; +import RestApiArrayResultMenuElementEditResponse from '../model/RestApiArrayResultMenuElementEditResponse'; +import RestApiArrayResultMenuElementListResponse from '../model/RestApiArrayResultMenuElementListResponse'; +import RestApiArrayResultMenuStoreNames from '../model/RestApiArrayResultMenuStoreNames'; +import RestApiArrayResultMenuSummary from '../model/RestApiArrayResultMenuSummary'; +import RestApiArrayResultMenuTaxDetails from '../model/RestApiArrayResultMenuTaxDetails'; +import RestApiArrayResultMetadata from '../model/RestApiArrayResultMetadata'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultMenu from '../model/RestApiResultMenu'; +import RestApiResultMetadata from '../model/RestApiResultMetadata'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Menus service. +* @module api/MenusApi +* @version 1.0.0 +*/ +export default class MenusApi { + + /** + * Constructs a new MenusApi. + * @alias module:api/MenusApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createDraftMenuFromExistingMenu operation. + * @callback module:api/MenusApi~createDraftMenuFromExistingMenuCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenu} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Clone a menu, (without attaching stores) + * @param {Number} menuId Menu identifier + * @param {String} newName Name of the new Menu + * @param {module:api/MenusApi~createDraftMenuFromExistingMenuCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenu} + */ + createDraftMenuFromExistingMenu(menuId, newName, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling createDraftMenuFromExistingMenu"); + } + // verify the required parameter 'newName' is set + if (newName === undefined || newName === null) { + throw new Error("Missing the required parameter 'newName' when calling createDraftMenuFromExistingMenu"); + } + + let pathParams = { + 'menuId': menuId, + 'newName': newName + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultMenu; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/clone/{newName}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createNewMenuAsync operation. + * @callback module:api/MenusApi~createNewMenuAsyncCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create a new menu asynchronously + * You must listen to the webhook menu.async_creation.completed to know when the menu is ready + * @param {String} appId App id + * @param {module:model/CreateFullMenu} menu Menu + * @param {module:api/MenusApi~createNewMenuAsyncCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + createNewMenuAsync(appId, menu, callback) { + let postBody = menu; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createNewMenuAsync"); + } + // verify the required parameter 'menu' is set + if (menu === undefined || menu === null) { + throw new Error("Missing the required parameter 'menu' when calling createNewMenuAsync"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/async', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createNewMenuForApp operation. + * @callback module:api/MenusApi~createNewMenuForAppCallback + * @param {String} error Error message, if any. + * @param {Number} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create a new menu + * [DEPRECATED] - Please use the async version as this endpoint may timeout for large menus + * @param {String} appId App identifier + * @param {module:model/CreateFullMenu} menu Menu. If empty the system will create a menu with default items + * @param {module:api/MenusApi~createNewMenuForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Number} + */ + createNewMenuForApp(appId, menu, callback) { + let postBody = menu; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createNewMenuForApp"); + } + // verify the required parameter 'menu' is set + if (menu === undefined || menu === null) { + throw new Error("Missing the required parameter 'menu' when calling createNewMenuForApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'Number'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenu operation. + * @callback module:api/MenusApi~deleteMenuCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Mark a Menu as Deleted + * @param {Number} menuId Menu Identifier + * @param {module:api/MenusApi~deleteMenuCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenu(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenu"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuImage operation. + * @callback module:api/MenusApi~deleteMenuImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu image + * @param {Number} menuId Menu identifier + * @param {module:api/MenusApi~deleteMenuImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuImage(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuImage"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/image', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuItemMetadata operation. + * @callback module:api/MenusApi~deleteMenuItemMetadataCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu item metadata + * @param {Number} menuId Menu identifier + * @param {Number} storeId Store identifier + * @param {Number} menuItemId Menu item identifier + * @param {String} key Metadata key + * @param {module:api/MenusApi~deleteMenuItemMetadataCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteMenuItemMetadata(menuId, storeId, menuItemId, key, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuItemMetadata"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling deleteMenuItemMetadata"); + } + // verify the required parameter 'menuItemId' is set + if (menuItemId === undefined || menuItemId === null) { + throw new Error("Missing the required parameter 'menuItemId' when calling deleteMenuItemMetadata"); + } + // verify the required parameter 'key' is set + if (key === undefined || key === null) { + throw new Error("Missing the required parameter 'key' when calling deleteMenuItemMetadata"); + } + + let pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'menuItemId': menuItemId, + 'key': key + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAllMenuMetadataByMenuIdAndStoreId operation. + * @callback module:api/MenusApi~getAllMenuMetadataByMenuIdAndStoreIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultAllMetadataResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get all menu metadata by menu ID and store ID + * @param {Number} menuId Menu identifier + * @param {Number} storeId Store identifier + * @param {module:api/MenusApi~getAllMenuMetadataByMenuIdAndStoreIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultAllMetadataResult} + */ + getAllMenuMetadataByMenuIdAndStoreId(menuId, storeId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getAllMenuMetadataByMenuIdAndStoreId"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getAllMenuMetadataByMenuIdAndStoreId"); + } + + let pathParams = { + 'menuId': menuId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultAllMetadataResult; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/metadata/store/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuById operation. + * @callback module:api/MenusApi~getMenuByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenu} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu by identifier + * @param {Number} menuId Menu identifier + * @param {module:api/MenusApi~getMenuByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenu} + */ + getMenuById(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuById"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultMenu; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemMetadata operation. + * @callback module:api/MenusApi~getMenuItemMetadataCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMetadata} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item metadata + * @param {Number} menuId Menu identifier + * @param {Number} storeId Store identifier + * @param {Number} menuItemId Menu item identifier + * @param {module:api/MenusApi~getMenuItemMetadataCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMetadata} + */ + getMenuItemMetadata(menuId, storeId, menuItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemMetadata"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getMenuItemMetadata"); + } + // verify the required parameter 'menuItemId' is set + if (menuItemId === undefined || menuItemId === null) { + throw new Error("Missing the required parameter 'menuItemId' when calling getMenuItemMetadata"); + } + + let pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'menuItemId': menuItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMetadata; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemMetadataByKey operation. + * @callback module:api/MenusApi~getMenuItemMetadataByKeyCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMetadata} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item metadata by key + * @param {Number} menuId Menu identifier + * @param {Number} storeId Store identifier + * @param {Number} menuItemId Menu item identifier + * @param {String} key Metadata key + * @param {module:api/MenusApi~getMenuItemMetadataByKeyCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMetadata} + */ + getMenuItemMetadataByKey(menuId, storeId, menuItemId, key, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemMetadataByKey"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getMenuItemMetadataByKey"); + } + // verify the required parameter 'menuItemId' is set + if (menuItemId === undefined || menuItemId === null) { + throw new Error("Missing the required parameter 'menuItemId' when calling getMenuItemMetadataByKey"); + } + // verify the required parameter 'key' is set + if (key === undefined || key === null) { + throw new Error("Missing the required parameter 'key' when calling getMenuItemMetadataByKey"); + } + + let pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'menuItemId': menuItemId, + 'key': key + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultMetadata; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/{key}/store/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuItemOptionSetItemMetadata operation. + * @callback module:api/MenusApi~getMenuItemOptionSetItemMetadataCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMetadata} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu item option set item metadata by key + * @param {Number} menuId Menu identifier + * @param {Number} storeId Store identifier + * @param {Number} optionSetItemId Menu item option set item identifier + * @param {module:api/MenusApi~getMenuItemOptionSetItemMetadataCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMetadata} + */ + getMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuItemOptionSetItemMetadata"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getMenuItemOptionSetItemMetadata"); + } + // verify the required parameter 'optionSetItemId' is set + if (optionSetItemId === undefined || optionSetItemId === null) { + throw new Error("Missing the required parameter 'optionSetItemId' when calling getMenuItemOptionSetItemMetadata"); + } + + let pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'optionSetItemId': optionSetItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMetadata; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuName operation. + * @callback module:api/MenusApi~getMenuNameCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get Menus Name + * @param {Number} menuId Menu identifier + * @param {module:api/MenusApi~getMenuNameCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + getMenuName(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuName"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/name', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuStoreNames operation. + * @callback module:api/MenusApi~getMenuStoreNamesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuStoreNames} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menus store names + * @param {Number} menuId Menu identifier + * @param {module:api/MenusApi~getMenuStoreNamesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuStoreNames} + */ + getMenuStoreNames(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuStoreNames"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultMenuStoreNames; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuTaxDetails operation. + * @callback module:api/MenusApi~getMenuTaxDetailsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuTaxDetails} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menus tax details + * @param {Number} menuId Menu identifier + * @param {module:api/MenusApi~getMenuTaxDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuTaxDetails} + */ + getMenuTaxDetails(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuTaxDetails"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMenuTaxDetails; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/tax', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenusByAppId operation. + * @callback module:api/MenusApi~getMenusByAppIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menus by appId + * @param {String} appId Get Menus for this appId + * @param {module:api/MenusApi~getMenusByAppIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuSummary} + */ + getMenusByAppId(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getMenusByAppId"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultMenuSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenusCheckpoints operation. + * @callback module:api/MenusApi~getMenusCheckpointsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuCheckpoint} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get a Menus Checkpoints + * @param {Number} menuId Menu identifier + * @param {module:api/MenusApi~getMenusCheckpointsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuCheckpoint} + */ + getMenusCheckpoints(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenusCheckpoints"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultMenuCheckpoint; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/checkpoints', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusDeleteTaxRate operation. + * @callback module:api/MenusApi~menusDeleteTaxRateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + * @param {Number} menuId Menu identifier + * @param {Number} taxId Id of Menu Tax to be removed + * @param {module:api/MenusApi~menusDeleteTaxRateCallback} callback The callback function, accepting three arguments: error, data, response + */ + menusDeleteTaxRate(menuId, taxId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menusDeleteTaxRate"); + } + // verify the required parameter 'taxId' is set + if (taxId === undefined || taxId === null) { + throw new Error("Missing the required parameter 'taxId' when calling menusDeleteTaxRate"); + } + + let pathParams = { + 'menuId': menuId, + 'taxId': taxId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/tax/{taxId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusGetMenuBulkShowHide operation. + * @callback module:api/MenusApi~menusGetMenuBulkShowHideCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuElementListResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get bulk show/hide menu items and option set items + * @param {Number} menuId Menu id + * @param {Boolean} isAvailable Is available flag + * @param {module:api/MenusApi~menusGetMenuBulkShowHideCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuElementListResponse} + */ + menusGetMenuBulkShowHide(menuId, isAvailable, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menusGetMenuBulkShowHide"); + } + // verify the required parameter 'isAvailable' is set + if (isAvailable === undefined || isAvailable === null) { + throw new Error("Missing the required parameter 'isAvailable' when calling menusGetMenuBulkShowHide"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + 'isAvailable': isAvailable + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultMenuElementListResponse; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/bulkshowhide/list', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusIsWhiteLabelMigratedToRms operation. + * @callback module:api/MenusApi~menusIsWhiteLabelMigratedToRmsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * PRIVATE API, TEMPORARY ENDPOINT RMS can check if a white label is migrated to RMS + * @param {Object} opts Optional parameters + * @param {Number} opts.whiteLabelId white label id (integer) + * @param {String} opts.appId appId (string) + * @param {module:api/MenusApi~menusIsWhiteLabelMigratedToRmsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + menusIsWhiteLabelMigratedToRms(opts, callback) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'whiteLabelId': opts['whiteLabelId'], + 'appId': opts['appId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/isWhiteLabelMigratedToRms', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusMarkWhiteLabelAsMigratedToRms operation. + * @callback module:api/MenusApi~menusMarkWhiteLabelAsMigratedToRmsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as migrated to RMS, which will block all Menu editing operations via Zeus + * @param {Object} opts Optional parameters + * @param {Number} opts.whiteLabelId white label id (integer) + * @param {String} opts.appId appId (string) + * @param {module:api/MenusApi~menusMarkWhiteLabelAsMigratedToRmsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + menusMarkWhiteLabelAsMigratedToRms(opts, callback) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'whiteLabelId': opts['whiteLabelId'], + 'appId': opts['appId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/markWhiteLabelAsMigratedToRms', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusMarkWhiteLabelAsNotMigratedToRms operation. + * @callback module:api/MenusApi~menusMarkWhiteLabelAsNotMigratedToRmsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * PRIVATE API, TEMPORARY ENDPOINT RMS can set the white label as NOT migrated to RMS, which will unblock all Menu editing operations via Zeus + * @param {Object} opts Optional parameters + * @param {Number} opts.whiteLabelId white label id (integer) + * @param {String} opts.appId appId (string) + * @param {module:api/MenusApi~menusMarkWhiteLabelAsNotMigratedToRmsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + menusMarkWhiteLabelAsNotMigratedToRms(opts, callback) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'whiteLabelId': opts['whiteLabelId'], + 'appId': opts['appId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/markWhiteLabelAsNotMigratedToRms', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusSetDisplayOnMenuTax operation. + * @callback module:api/MenusApi~menusSetDisplayOnMenuTaxCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Set if tax shows for a Menu + * @param {Number} menuId Menu identifier + * @param {Boolean} show Boolean show or dont show tax (Exclusive tax type can only ever be TRUE) + * @param {module:api/MenusApi~menusSetDisplayOnMenuTaxCallback} callback The callback function, accepting three arguments: error, data, response + */ + menusSetDisplayOnMenuTax(menuId, show, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menusSetDisplayOnMenuTax"); + } + // verify the required parameter 'show' is set + if (show === undefined || show === null) { + throw new Error("Missing the required parameter 'show' when calling menusSetDisplayOnMenuTax"); + } + + let pathParams = { + 'menuId': menuId, + 'show': show + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/tax/show/{show}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusSetItemDisplayOrders operation. + * @callback module:api/MenusApi~menusSetItemDisplayOrdersCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Re-arrange Sections within a Menu + * @param {Number} menuId Menu identifier + * @param {module:model/MenuObjectDisplayOrders} displayOrders Section Ids and their new display order + * @param {module:api/MenusApi~menusSetItemDisplayOrdersCallback} callback The callback function, accepting three arguments: error, data, response + */ + menusSetItemDisplayOrders(menuId, displayOrders, callback) { + let postBody = displayOrders; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menusSetItemDisplayOrders"); + } + // verify the required parameter 'displayOrders' is set + if (displayOrders === undefined || displayOrders === null) { + throw new Error("Missing the required parameter 'displayOrders' when calling menusSetItemDisplayOrders"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/sectiondisplayorders', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusShowHideBulkItems operation. + * @callback module:api/MenusApi~menusShowHideBulkItemsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMenuElementEditResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Bulk show/hide menu items or option set items + * @param {Number} menuId Menu id + * @param {Boolean} isAvailable Is available flag + * @param {Array.} menuElements Elements to be show/hide + * @param {module:api/MenusApi~menusShowHideBulkItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMenuElementEditResponse} + */ + menusShowHideBulkItems(menuId, isAvailable, menuElements, callback) { + let postBody = menuElements; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menusShowHideBulkItems"); + } + // verify the required parameter 'isAvailable' is set + if (isAvailable === undefined || isAvailable === null) { + throw new Error("Missing the required parameter 'isAvailable' when calling menusShowHideBulkItems"); + } + // verify the required parameter 'menuElements' is set + if (menuElements === undefined || menuElements === null) { + throw new Error("Missing the required parameter 'menuElements' when calling menusShowHideBulkItems"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + 'isAvailable': isAvailable + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultMenuElementEditResponse; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/bulkshowhide', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusUpdateTaxType operation. + * @callback module:api/MenusApi~menusUpdateTaxTypeCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Set the type of Tax on a Menu + * @param {Number} menuId Menu identifier + * @param {module:model/String} type Type of Tax + * @param {module:api/MenusApi~menusUpdateTaxTypeCallback} callback The callback function, accepting three arguments: error, data, response + */ + menusUpdateTaxType(menuId, type, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menusUpdateTaxType"); + } + // verify the required parameter 'type' is set + if (type === undefined || type === null) { + throw new Error("Missing the required parameter 'type' when calling menusUpdateTaxType"); + } + + let pathParams = { + 'menuId': menuId, + 'type': type + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/tax/type/{type}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the menusUpsertTaxRate operation. + * @callback module:api/MenusApi~menusUpsertTaxRateCallback + * @param {String} error Error message, if any. + * @param {module:model/MenuTaxRate} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Add/Update a Tax Rate + * @param {Number} menuId Menu identifier + * @param {module:model/MenuTaxRate} taxRate Tax rate to add/update + * @param {module:api/MenusApi~menusUpsertTaxRateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/MenuTaxRate} + */ + menusUpsertTaxRate(menuId, taxRate, callback) { + let postBody = taxRate; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling menusUpsertTaxRate"); + } + // verify the required parameter 'taxRate' is set + if (taxRate === undefined || taxRate === null) { + throw new Error("Missing the required parameter 'taxRate' when calling menusUpsertTaxRate"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = MenuTaxRate; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/taxrate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the restoreAMenuCheckpoint operation. + * @callback module:api/MenusApi~restoreAMenuCheckpointCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Restore a Menu to a checkpoint + * @param {Number} menuId Menu identifier + * @param {Number} checkpointId Checkpoint to restore menu to + * @param {module:api/MenusApi~restoreAMenuCheckpointCallback} callback The callback function, accepting three arguments: error, data, response + */ + restoreAMenuCheckpoint(menuId, checkpointId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling restoreAMenuCheckpoint"); + } + // verify the required parameter 'checkpointId' is set + if (checkpointId === undefined || checkpointId === null) { + throw new Error("Missing the required parameter 'checkpointId' when calling restoreAMenuCheckpoint"); + } + + let pathParams = { + 'menuId': menuId, + 'checkpointId': checkpointId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setMenuItemMetadata operation. + * @callback module:api/MenusApi~setMenuItemMetadataCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menu item metadata + * @param {Number} menuId Menu identifier + * @param {Number} storeId Store identifier + * @param {Number} menuItemId Menu item identifier + * @param {module:model/Metadata} metadata Metadata object + * @param {module:api/MenusApi~setMenuItemMetadataCallback} callback The callback function, accepting three arguments: error, data, response + */ + setMenuItemMetadata(menuId, storeId, menuItemId, metadata, callback) { + let postBody = metadata; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setMenuItemMetadata"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling setMenuItemMetadata"); + } + // verify the required parameter 'menuItemId' is set + if (menuItemId === undefined || menuItemId === null) { + throw new Error("Missing the required parameter 'menuItemId' when calling setMenuItemMetadata"); + } + // verify the required parameter 'metadata' is set + if (metadata === undefined || metadata === null) { + throw new Error("Missing the required parameter 'metadata' when calling setMenuItemMetadata"); + } + + let pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'menuItemId': menuItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuitem/{menuItemId}/metadata/store/{storeId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setMenuItemOptionSetItemMetadata operation. + * @callback module:api/MenusApi~setMenuItemOptionSetItemMetadataCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menu item option set item metadata + * @param {Number} menuId Menu identifier + * @param {Number} storeId Store identifier + * @param {Number} optionSetItemId Menu item option set item identifier + * @param {module:model/Metadata} metadata Metadata object + * @param {module:api/MenusApi~setMenuItemOptionSetItemMetadataCallback} callback The callback function, accepting three arguments: error, data, response + */ + setMenuItemOptionSetItemMetadata(menuId, storeId, optionSetItemId, metadata, callback) { + let postBody = metadata; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setMenuItemOptionSetItemMetadata"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling setMenuItemOptionSetItemMetadata"); + } + // verify the required parameter 'optionSetItemId' is set + if (optionSetItemId === undefined || optionSetItemId === null) { + throw new Error("Missing the required parameter 'optionSetItemId' when calling setMenuItemOptionSetItemMetadata"); + } + // verify the required parameter 'metadata' is set + if (metadata === undefined || metadata === null) { + throw new Error("Missing the required parameter 'metadata' when calling setMenuItemOptionSetItemMetadata"); + } + + let pathParams = { + 'menuId': menuId, + 'storeId': storeId, + 'optionSetItemId': optionSetItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/optionsetitem/{optionSetItemId}/metadata/store/{storeId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setMenuLock operation. + * @callback module:api/MenusApi~setMenuLockCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Lock/Unlock a Menu for Editing + * @param {Number} menuId Menu identifier + * @param {Boolean} locked True: Locks menu for editing, False: Unlocks for editing + * @param {module:api/MenusApi~setMenuLockCallback} callback The callback function, accepting three arguments: error, data, response + */ + setMenuLock(menuId, locked, callback) { + let postBody = locked; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setMenuLock"); + } + // verify the required parameter 'locked' is set + if (locked === undefined || locked === null) { + throw new Error("Missing the required parameter 'locked' when calling setMenuLock"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/lock', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setMenuName operation. + * @callback module:api/MenusApi~setMenuNameCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Set Menus Name + * @param {Number} menuId Menu identifier + * @param {String} name Name to set for this Menu + * @param {module:api/MenusApi~setMenuNameCallback} callback The callback function, accepting three arguments: error, data, response + */ + setMenuName(menuId, name, callback) { + let postBody = name; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling setMenuName"); + } + // verify the required parameter 'name' is set + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling setMenuName"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/name', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateMenu operation. + * @callback module:api/MenusApi~updateMenuCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * Update menu + * @param {Number} menuId Menu identifier + * @param {module:model/MenuBase} menu Full menu data + * @param {module:api/MenusApi~updateMenuCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateMenu(menuId, menu, callback) { + let postBody = menu; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling updateMenu"); + } + // verify the required parameter 'menu' is set + if (menu === undefined || menu === null) { + throw new Error("Missing the required parameter 'menu' when calling updateMenu"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadMenuImage operation. + * @callback module:api/MenusApi~uploadMenuImageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Upload menu image + * @param {Number} menuId Menu identifier + * @param {File} Image Menu image + * @param {module:api/MenusApi~uploadMenuImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + uploadMenuImage(menuId, Image, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling uploadMenuImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadMenuImage"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadNewMenuForApp operation. + * @callback module:api/MenusApi~uploadNewMenuForAppCallback + * @param {String} error Error message, if any. + * @param {Number} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Create a new menu from xlsx file. + * @param {String} appId App identifier + * @param {File} Menu Uploaded xlsx menu + * @param {module:api/MenusApi~uploadNewMenuForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Number} + */ + uploadNewMenuForApp(appId, Menu, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling uploadNewMenuForApp"); + } + // verify the required parameter 'Menu' is set + if (Menu === undefined || Menu === null) { + throw new Error("Missing the required parameter 'Menu' when calling uploadNewMenuForApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Menu': Menu + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'Number'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/xlsx', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenusNutritionInfoApi.js b/src/api/MenusNutritionInfoApi.js new file mode 100644 index 00000000..2216de62 --- /dev/null +++ b/src/api/MenusNutritionInfoApi.js @@ -0,0 +1,322 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import ItemNutritionInfoAddUpdateModel from '../model/ItemNutritionInfoAddUpdateModel'; +import RestApiArrayResultAllergen from '../model/RestApiArrayResultAllergen'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultMenuNutritionInfoHeader from '../model/RestApiResultMenuNutritionInfoHeader'; +import RestApiResultNutritionInfo from '../model/RestApiResultNutritionInfo'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* MenusNutritionInfo service. +* @module api/MenusNutritionInfoApi +* @version 1.0.0 +*/ +export default class MenusNutritionInfoApi { + + /** + * Constructs a new MenusNutritionInfoApi. + * @alias module:api/MenusNutritionInfoApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addOrUpdateMenuItemNutritionInfo operation. + * @callback module:api/MenusNutritionInfoApi~addOrUpdateMenuItemNutritionInfoCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuNutritionInfoHeader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Add or update menuitem nutrition info by menu item's publicId + * @param {Number} menuId Menu identifier + * @param {String} publicId Menu item's publicId + * @param {module:model/ItemNutritionInfoAddUpdateModel} addOrUpdateModel + * @param {module:api/MenusNutritionInfoApi~addOrUpdateMenuItemNutritionInfoCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuNutritionInfoHeader} + */ + addOrUpdateMenuItemNutritionInfo(menuId, publicId, addOrUpdateModel, callback) { + let postBody = addOrUpdateModel; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling addOrUpdateMenuItemNutritionInfo"); + } + // verify the required parameter 'publicId' is set + if (publicId === undefined || publicId === null) { + throw new Error("Missing the required parameter 'publicId' when calling addOrUpdateMenuItemNutritionInfo"); + } + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel === undefined || addOrUpdateModel === null) { + throw new Error("Missing the required parameter 'addOrUpdateModel' when calling addOrUpdateMenuItemNutritionInfo"); + } + + let pathParams = { + 'menuId': menuId, + 'publicId': publicId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultMenuNutritionInfoHeader; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuItem/{publicId}/nutrition', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the addOrUpdateMenuItemOptionSetItemNutritionInfo operation. + * @callback module:api/MenusNutritionInfoApi~addOrUpdateMenuItemOptionSetItemNutritionInfoCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuNutritionInfoHeader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Add or update menuitem optionsetitem nutrition info its publicId + * @param {Number} menuId Menu identifier + * @param {String} publicId Menu item's publicId + * @param {module:model/ItemNutritionInfoAddUpdateModel} addOrUpdateModel + * @param {module:api/MenusNutritionInfoApi~addOrUpdateMenuItemOptionSetItemNutritionInfoCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuNutritionInfoHeader} + */ + addOrUpdateMenuItemOptionSetItemNutritionInfo(menuId, publicId, addOrUpdateModel, callback) { + let postBody = addOrUpdateModel; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling addOrUpdateMenuItemOptionSetItemNutritionInfo"); + } + // verify the required parameter 'publicId' is set + if (publicId === undefined || publicId === null) { + throw new Error("Missing the required parameter 'publicId' when calling addOrUpdateMenuItemOptionSetItemNutritionInfo"); + } + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel === undefined || addOrUpdateModel === null) { + throw new Error("Missing the required parameter 'addOrUpdateModel' when calling addOrUpdateMenuItemOptionSetItemNutritionInfo"); + } + + let pathParams = { + 'menuId': menuId, + 'publicId': publicId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultMenuNutritionInfoHeader; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/menuItemOption/{publicId}/nutrition', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the addOrUpdateMenuNutritionInfoByMenuId operation. + * @callback module:api/MenusNutritionInfoApi~addOrUpdateMenuNutritionInfoByMenuIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMenuNutritionInfoHeader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Add or update menu nutrition by identifier + * @param {Number} menuId Menu identifier + * @param {module:api/MenusNutritionInfoApi~addOrUpdateMenuNutritionInfoByMenuIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMenuNutritionInfoHeader} + */ + addOrUpdateMenuNutritionInfoByMenuId(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling addOrUpdateMenuNutritionInfoByMenuId"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultMenuNutritionInfoHeader; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/nutrition', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteMenuNutritionInfoByMenuId operation. + * @callback module:api/MenusNutritionInfoApi~deleteMenuNutritionInfoByMenuIdCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Delete menu nutrition information by menuId + * @param {Number} menuId Menu identifier + * @param {module:api/MenusNutritionInfoApi~deleteMenuNutritionInfoByMenuIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + deleteMenuNutritionInfoByMenuId(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling deleteMenuNutritionInfoByMenuId"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/nutrition', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAllergens operation. + * @callback module:api/MenusNutritionInfoApi~getAllergensCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultAllergen} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get allergens + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.languageId + * @param {module:api/MenusNutritionInfoApi~getAllergensCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultAllergen} + */ + getAllergens(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAllergens"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'languageId': opts['languageId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultAllergen; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/nutrition/allergens', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuNutritionInfoByMenuId operation. + * @callback module:api/MenusNutritionInfoApi~getMenuNutritionInfoByMenuIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultNutritionInfo} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu nutrition by menuId + * @param {Number} menuId Menu identifier + * @param {module:api/MenusNutritionInfoApi~getMenuNutritionInfoByMenuIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultNutritionInfo} + */ + getMenuNutritionInfoByMenuId(menuId, callback) { + let postBody = null; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuNutritionInfoByMenuId"); + } + + let pathParams = { + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultNutritionInfo; + return this.apiClient.callApi( + '/api/v1.0/menus/{menuId}/nutrition', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MenusNutritionInfoV2Api.js b/src/api/MenusNutritionInfoV2Api.js new file mode 100644 index 00000000..34a70c28 --- /dev/null +++ b/src/api/MenusNutritionInfoV2Api.js @@ -0,0 +1,259 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import ItemNutritionInfoV2AddUpdateModel from '../model/ItemNutritionInfoV2AddUpdateModel'; +import RestApiArrayResultAllergen from '../model/RestApiArrayResultAllergen'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultNutritionInfoV2 from '../model/RestApiResultNutritionInfoV2'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* MenusNutritionInfoV2 service. +* @module api/MenusNutritionInfoV2Api +* @version 1.0.0 +*/ +export default class MenusNutritionInfoV2Api { + + /** + * Constructs a new MenusNutritionInfoV2Api. + * @alias module:api/MenusNutritionInfoV2Api + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addOrUpdateMenuItemNutritionInfoV2 operation. + * @callback module:api/MenusNutritionInfoV2Api~addOrUpdateMenuItemNutritionInfoV2Callback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Add or update menuitem nutrition info by menu item's publicId + * @param {Number} menuId Menu identifier + * @param {String} publicId Menu item's publicId + * @param {String} appId + * @param {module:model/ItemNutritionInfoV2AddUpdateModel} addOrUpdateModel Allergen ids + * @param {module:api/MenusNutritionInfoV2Api~addOrUpdateMenuItemNutritionInfoV2Callback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + addOrUpdateMenuItemNutritionInfoV2(menuId, publicId, appId, addOrUpdateModel, callback) { + let postBody = addOrUpdateModel; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling addOrUpdateMenuItemNutritionInfoV2"); + } + // verify the required parameter 'publicId' is set + if (publicId === undefined || publicId === null) { + throw new Error("Missing the required parameter 'publicId' when calling addOrUpdateMenuItemNutritionInfoV2"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling addOrUpdateMenuItemNutritionInfoV2"); + } + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel === undefined || addOrUpdateModel === null) { + throw new Error("Missing the required parameter 'addOrUpdateModel' when calling addOrUpdateMenuItemNutritionInfoV2"); + } + + let pathParams = { + 'menuId': menuId, + 'publicId': publicId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/{menuId}/menuItem/{publicId}/nutritionv2', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the addOrUpdateMenuItemOptionSetItemNutritionInfoV2 operation. + * @callback module:api/MenusNutritionInfoV2Api~addOrUpdateMenuItemOptionSetItemNutritionInfoV2Callback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Add or update menuitem option set item's nutrition info by its publicId + * @param {Number} menuId Menu identifier + * @param {String} publicId Menu item option set item's publicId + * @param {String} appId + * @param {module:model/ItemNutritionInfoV2AddUpdateModel} addOrUpdateModel Allergen ids + * @param {module:api/MenusNutritionInfoV2Api~addOrUpdateMenuItemOptionSetItemNutritionInfoV2Callback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + addOrUpdateMenuItemOptionSetItemNutritionInfoV2(menuId, publicId, appId, addOrUpdateModel, callback) { + let postBody = addOrUpdateModel; + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling addOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + } + // verify the required parameter 'publicId' is set + if (publicId === undefined || publicId === null) { + throw new Error("Missing the required parameter 'publicId' when calling addOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling addOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + } + // verify the required parameter 'addOrUpdateModel' is set + if (addOrUpdateModel === undefined || addOrUpdateModel === null) { + throw new Error("Missing the required parameter 'addOrUpdateModel' when calling addOrUpdateMenuItemOptionSetItemNutritionInfoV2"); + } + + let pathParams = { + 'menuId': menuId, + 'publicId': publicId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/{menuId}/menuItemOption/{publicId}/nutritionv2', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getAllergensV2 operation. + * @callback module:api/MenusNutritionInfoV2Api~getAllergensV2Callback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultAllergen} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get allergens + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.languageId + * @param {module:api/MenusNutritionInfoV2Api~getAllergensV2Callback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultAllergen} + */ + getAllergensV2(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAllergensV2"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'languageId': opts['languageId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultAllergen; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/nutritionv2/allergens', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMenuNutritionInfoV2ByMenuId operation. + * @callback module:api/MenusNutritionInfoV2Api~getMenuNutritionInfoV2ByMenuIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultNutritionInfoV2} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * Get menu nutrition by menuId + * @param {String} appId + * @param {Number} menuId Menu identifier + * @param {Object} opts Optional parameters + * @param {String} opts.languageId + * @param {module:api/MenusNutritionInfoV2Api~getMenuNutritionInfoV2ByMenuIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultNutritionInfoV2} + */ + getMenuNutritionInfoV2ByMenuId(appId, menuId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getMenuNutritionInfoV2ByMenuId"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling getMenuNutritionInfoV2ByMenuId"); + } + + let pathParams = { + 'appId': appId, + 'menuId': menuId + }; + let queryParams = { + 'languageId': opts['languageId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultNutritionInfoV2; + return this.apiClient.callApi( + '/api/v1.0/{appId}/menus/{menuId}/nutritionv2', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MetafieldDefinitionsApi.js b/src/api/MetafieldDefinitionsApi.js new file mode 100644 index 00000000..5c922a90 --- /dev/null +++ b/src/api/MetafieldDefinitionsApi.js @@ -0,0 +1,360 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateMetafieldDefinition from '../model/CreateMetafieldDefinition'; +import OwnerEntityConfigurations from '../model/OwnerEntityConfigurations'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultMetafieldDefinition from '../model/RestApiPaginationResultMetafieldDefinition'; +import RestApiPaginationResultMetafieldDefinitionRecommendation from '../model/RestApiPaginationResultMetafieldDefinitionRecommendation'; +import RestApiResultMetafieldDefinition from '../model/RestApiResultMetafieldDefinition'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateMetafieldDefinition from '../model/UpdateMetafieldDefinition'; + +/** +* MetafieldDefinitions service. +* @module api/MetafieldDefinitionsApi +* @version 1.0.0 +*/ +export default class MetafieldDefinitionsApi { + + /** + * Constructs a new MetafieldDefinitionsApi. + * @alias module:api/MetafieldDefinitionsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createMetafieldDefinition operation. + * @callback module:api/MetafieldDefinitionsApi~createMetafieldDefinitionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMetafieldDefinition} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} ownerEntity + * @param {module:model/CreateMetafieldDefinition} createMetafieldDefinition + * @param {module:api/MetafieldDefinitionsApi~createMetafieldDefinitionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMetafieldDefinition} + */ + createMetafieldDefinition(appId, ownerEntity, createMetafieldDefinition, callback) { + let postBody = createMetafieldDefinition; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createMetafieldDefinition"); + } + // verify the required parameter 'ownerEntity' is set + if (ownerEntity === undefined || ownerEntity === null) { + throw new Error("Missing the required parameter 'ownerEntity' when calling createMetafieldDefinition"); + } + // verify the required parameter 'createMetafieldDefinition' is set + if (createMetafieldDefinition === undefined || createMetafieldDefinition === null) { + throw new Error("Missing the required parameter 'createMetafieldDefinition' when calling createMetafieldDefinition"); + } + + let pathParams = { + 'appId': appId, + 'ownerEntity': ownerEntity + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'IsReadOnly', 'OwnerEntity', 'Key', 'ValueType', 'Name', 'Description', 'Behaviors']; + let returnType = RestApiResultMetafieldDefinition; + return this.apiClient.callApi( + '/api/v1.0/{appId}/metafields/definitions/{ownerEntity}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMetafieldDefinitionByKey operation. + * @callback module:api/MetafieldDefinitionsApi~getMetafieldDefinitionByKeyCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMetafieldDefinition} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} ownerEntity + * @param {String} key + * @param {module:api/MetafieldDefinitionsApi~getMetafieldDefinitionByKeyCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMetafieldDefinition} + */ + getMetafieldDefinitionByKey(appId, ownerEntity, key, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getMetafieldDefinitionByKey"); + } + // verify the required parameter 'ownerEntity' is set + if (ownerEntity === undefined || ownerEntity === null) { + throw new Error("Missing the required parameter 'ownerEntity' when calling getMetafieldDefinitionByKey"); + } + // verify the required parameter 'key' is set + if (key === undefined || key === null) { + throw new Error("Missing the required parameter 'key' when calling getMetafieldDefinitionByKey"); + } + + let pathParams = { + 'appId': appId, + 'ownerEntity': ownerEntity, + 'key': key + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'IsReadOnly', 'OwnerEntity', 'Key', 'ValueType', 'Name', 'Description', 'Behaviors']; + let returnType = RestApiResultMetafieldDefinition; + return this.apiClient.callApi( + '/api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getMetafieldDefinitions operation. + * @callback module:api/MetafieldDefinitionsApi~getMetafieldDefinitionsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultMetafieldDefinition} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} ownerEntity + * @param {Object} opts Optional parameters + * @param {String} opts.searchTerm + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/MetafieldDefinitionsApi~getMetafieldDefinitionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultMetafieldDefinition} + */ + getMetafieldDefinitions(appId, ownerEntity, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getMetafieldDefinitions"); + } + // verify the required parameter 'ownerEntity' is set + if (ownerEntity === undefined || ownerEntity === null) { + throw new Error("Missing the required parameter 'ownerEntity' when calling getMetafieldDefinitions"); + } + + let pathParams = { + 'appId': appId, + 'ownerEntity': ownerEntity + }; + let queryParams = { + 'searchTerm': opts['searchTerm'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultMetafieldDefinition; + return this.apiClient.callApi( + '/api/v1.0/{appId}/metafields/definitions/{ownerEntity}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOwnerEntityConfigurations operation. + * @callback module:api/MetafieldDefinitionsApi~getOwnerEntityConfigurationsCallback + * @param {String} error Error message, if any. + * @param {module:model/OwnerEntityConfigurations} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/MetafieldDefinitionsApi~getOwnerEntityConfigurationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/OwnerEntityConfigurations} + */ + getOwnerEntityConfigurations(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOwnerEntityConfigurations"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Configurations']; + let returnType = OwnerEntityConfigurations; + return this.apiClient.callApi( + '/api/v1.0/{appId}/metafields/definitions', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOwnerEntityRecommendations operation. + * @callback module:api/MetafieldDefinitionsApi~getOwnerEntityRecommendationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultMetafieldDefinitionRecommendation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} ownerEntity + * @param {Object} opts Optional parameters + * @param {String} opts.searchTerm + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/MetafieldDefinitionsApi~getOwnerEntityRecommendationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultMetafieldDefinitionRecommendation} + */ + getOwnerEntityRecommendations(appId, ownerEntity, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOwnerEntityRecommendations"); + } + // verify the required parameter 'ownerEntity' is set + if (ownerEntity === undefined || ownerEntity === null) { + throw new Error("Missing the required parameter 'ownerEntity' when calling getOwnerEntityRecommendations"); + } + + let pathParams = { + 'appId': appId, + 'ownerEntity': ownerEntity + }; + let queryParams = { + 'searchTerm': opts['searchTerm'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultMetafieldDefinitionRecommendation; + return this.apiClient.callApi( + '/api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateMetafieldDefinition operation. + * @callback module:api/MetafieldDefinitionsApi~updateMetafieldDefinitionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMetafieldDefinition} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} ownerEntity + * @param {String} key + * @param {module:model/UpdateMetafieldDefinition} updateMetafieldDefinition + * @param {module:api/MetafieldDefinitionsApi~updateMetafieldDefinitionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMetafieldDefinition} + */ + updateMetafieldDefinition(appId, ownerEntity, key, updateMetafieldDefinition, callback) { + let postBody = updateMetafieldDefinition; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateMetafieldDefinition"); + } + // verify the required parameter 'ownerEntity' is set + if (ownerEntity === undefined || ownerEntity === null) { + throw new Error("Missing the required parameter 'ownerEntity' when calling updateMetafieldDefinition"); + } + // verify the required parameter 'key' is set + if (key === undefined || key === null) { + throw new Error("Missing the required parameter 'key' when calling updateMetafieldDefinition"); + } + // verify the required parameter 'updateMetafieldDefinition' is set + if (updateMetafieldDefinition === undefined || updateMetafieldDefinition === null) { + throw new Error("Missing the required parameter 'updateMetafieldDefinition' when calling updateMetafieldDefinition"); + } + + let pathParams = { + 'appId': appId, + 'ownerEntity': ownerEntity, + 'key': key + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'IsReadOnly', 'OwnerEntity', 'Key', 'ValueType', 'Name', 'Description', 'Behaviors']; + let returnType = RestApiResultMetafieldDefinition; + return this.apiClient.callApi( + '/api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/MobileAppsApi.js b/src/api/MobileAppsApi.js new file mode 100644 index 00000000..8e058de9 --- /dev/null +++ b/src/api/MobileAppsApi.js @@ -0,0 +1,567 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import AppConfigSalesChannel from '../model/AppConfigSalesChannel'; +import MobileAppsSubmission from '../model/MobileAppsSubmission'; +import RestApiArrayResultMobileAppsStatistics from '../model/RestApiArrayResultMobileAppsStatistics'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiIntegerResult from '../model/RestApiIntegerResult'; +import RestApiResultAppConfigSalesChannel from '../model/RestApiResultAppConfigSalesChannel'; +import RestApiResultMobileAppsImage from '../model/RestApiResultMobileAppsImage'; +import RestApiResultMobileAppsSubmission from '../model/RestApiResultMobileAppsSubmission'; +import RestApiResultMobileAppsSubmissionDetails from '../model/RestApiResultMobileAppsSubmissionDetails'; +import RestApiResultMobileAppsSubmissionStatus from '../model/RestApiResultMobileAppsSubmissionStatus'; +import RestApiResultRestApiIntegerResult from '../model/RestApiResultRestApiIntegerResult'; +import RestApiResultUpdateMobileAppsSubmissionStatus from '../model/RestApiResultUpdateMobileAppsSubmissionStatus'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateMobileAppsSubmissionStatus from '../model/UpdateMobileAppsSubmissionStatus'; + +/** +* MobileApps service. +* @module api/MobileAppsApi +* @version 1.0.0 +*/ +export default class MobileAppsApi { + + /** + * Constructs a new MobileAppsApi. + * @alias module:api/MobileAppsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getAppConfigSalesChannel operation. + * @callback module:api/MobileAppsApi~getAppConfigSalesChannelCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppConfigSalesChannel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/MobileAppsApi~getAppConfigSalesChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppConfigSalesChannel} + */ + getAppConfigSalesChannel(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAppConfigSalesChannel"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultAppConfigSalesChannel; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/saleschannel/details', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStatistics operation. + * @callback module:api/MobileAppsApi~getStatisticsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultMobileAppsStatistics} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Array.} platformTypes + * @param {module:api/MobileAppsApi~getStatisticsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultMobileAppsStatistics} + */ + getStatistics(appId, platformTypes, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStatistics"); + } + // verify the required parameter 'platformTypes' is set + if (platformTypes === undefined || platformTypes === null) { + throw new Error("Missing the required parameter 'platformTypes' when calling getStatistics"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'platformTypes': this.apiClient.buildCollectionParam(platformTypes, 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultMobileAppsStatistics; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/statistics', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getSubmissionDetails operation. + * @callback module:api/MobileAppsApi~getSubmissionDetailsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMobileAppsSubmissionDetails} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/MobileAppsApi~getSubmissionDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMobileAppsSubmissionDetails} + */ + getSubmissionDetails(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getSubmissionDetails"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMobileAppsSubmissionDetails; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/submission/details', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getSubmissionStatus operation. + * @callback module:api/MobileAppsApi~getSubmissionStatusCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMobileAppsSubmissionStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} submissionId + * @param {module:api/MobileAppsApi~getSubmissionStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMobileAppsSubmissionStatus} + */ + getSubmissionStatus(appId, submissionId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getSubmissionStatus"); + } + // verify the required parameter 'submissionId' is set + if (submissionId === undefined || submissionId === null) { + throw new Error("Missing the required parameter 'submissionId' when calling getSubmissionStatus"); + } + + let pathParams = { + 'appId': appId, + 'submissionId': submissionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMobileAppsSubmissionStatus; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/submission/{submissionId}/status', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the publish operation. + * @callback module:api/MobileAppsApi~publishCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRestApiIntegerResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} submissionId + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.platformType + * @param {module:api/MobileAppsApi~publishCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRestApiIntegerResult} + */ + publish(appId, submissionId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling publish"); + } + // verify the required parameter 'submissionId' is set + if (submissionId === undefined || submissionId === null) { + throw new Error("Missing the required parameter 'submissionId' when calling publish"); + } + + let pathParams = { + 'appId': appId, + 'submissionId': submissionId + }; + let queryParams = { + 'platformType': opts['platformType'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultRestApiIntegerResult; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/submission/{submissionId}/publish', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the resubmission operation. + * @callback module:api/MobileAppsApi~resubmissionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMobileAppsSubmission} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/MobileAppsSubmission} mobileAppsSubmission + * @param {module:api/MobileAppsApi~resubmissionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMobileAppsSubmission} + */ + resubmission(appId, mobileAppsSubmission, callback) { + let postBody = mobileAppsSubmission; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling resubmission"); + } + // verify the required parameter 'mobileAppsSubmission' is set + if (mobileAppsSubmission === undefined || mobileAppsSubmission === null) { + throw new Error("Missing the required parameter 'mobileAppsSubmission' when calling resubmission"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMobileAppsSubmission; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/resubmission', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the submission operation. + * @callback module:api/MobileAppsApi~submissionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMobileAppsSubmission} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/MobileAppsSubmission} mobileAppsSubmission + * @param {module:api/MobileAppsApi~submissionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMobileAppsSubmission} + */ + submission(appId, mobileAppsSubmission, callback) { + let postBody = mobileAppsSubmission; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling submission"); + } + // verify the required parameter 'mobileAppsSubmission' is set + if (mobileAppsSubmission === undefined || mobileAppsSubmission === null) { + throw new Error("Missing the required parameter 'mobileAppsSubmission' when calling submission"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMobileAppsSubmission; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/submission', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unpublish operation. + * @callback module:api/MobileAppsApi~unpublishCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiIntegerResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} submissionId + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.platformType + * @param {module:api/MobileAppsApi~unpublishCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiIntegerResult} + */ + unpublish(appId, submissionId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling unpublish"); + } + // verify the required parameter 'submissionId' is set + if (submissionId === undefined || submissionId === null) { + throw new Error("Missing the required parameter 'submissionId' when calling unpublish"); + } + + let pathParams = { + 'appId': appId, + 'submissionId': submissionId + }; + let queryParams = { + 'platformType': opts['platformType'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiIntegerResult; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/submission/{submissionId}/unpublish', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateAppConfigSalesChannel operation. + * @callback module:api/MobileAppsApi~updateAppConfigSalesChannelCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAppConfigSalesChannel} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/AppConfigSalesChannel} appConfigSalesChannel + * @param {module:api/MobileAppsApi~updateAppConfigSalesChannelCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAppConfigSalesChannel} + */ + updateAppConfigSalesChannel(appId, appConfigSalesChannel, callback) { + let postBody = appConfigSalesChannel; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateAppConfigSalesChannel"); + } + // verify the required parameter 'appConfigSalesChannel' is set + if (appConfigSalesChannel === undefined || appConfigSalesChannel === null) { + throw new Error("Missing the required parameter 'appConfigSalesChannel' when calling updateAppConfigSalesChannel"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultAppConfigSalesChannel; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/saleschannel', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateSubmissionStatus operation. + * @callback module:api/MobileAppsApi~updateSubmissionStatusCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultUpdateMobileAppsSubmissionStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} submissionId + * @param {module:model/UpdateMobileAppsSubmissionStatus} updateSubmissionStatus + * @param {module:api/MobileAppsApi~updateSubmissionStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultUpdateMobileAppsSubmissionStatus} + */ + updateSubmissionStatus(appId, submissionId, updateSubmissionStatus, callback) { + let postBody = updateSubmissionStatus; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateSubmissionStatus"); + } + // verify the required parameter 'submissionId' is set + if (submissionId === undefined || submissionId === null) { + throw new Error("Missing the required parameter 'submissionId' when calling updateSubmissionStatus"); + } + // verify the required parameter 'updateSubmissionStatus' is set + if (updateSubmissionStatus === undefined || updateSubmissionStatus === null) { + throw new Error("Missing the required parameter 'updateSubmissionStatus' when calling updateSubmissionStatus"); + } + + let pathParams = { + 'appId': appId, + 'submissionId': submissionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultUpdateMobileAppsSubmissionStatus; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/submission/{submissionId}/status', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadImage operation. + * @callback module:api/MobileAppsApi~uploadImageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultMobileAppsImage} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {File} Image Mobile Apps image + * @param {module:api/MobileAppsApi~uploadImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultMobileAppsImage} + */ + uploadImage(appId, Image, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling uploadImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadImage"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultMobileAppsImage; + return this.apiClient.callApi( + '/api/v1.0/mobileapps/{appId}/submission/image', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/OAuthClientsApi.js b/src/api/OAuthClientsApi.js new file mode 100644 index 00000000..a2e977e0 --- /dev/null +++ b/src/api/OAuthClientsApi.js @@ -0,0 +1,566 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import OAuthApp from '../model/OAuthApp'; +import RestApiArrayResultOAuthApp from '../model/RestApiArrayResultOAuthApp'; +import RestApiArrayResultOauthClientRedirectUri from '../model/RestApiArrayResultOauthClientRedirectUri'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultOAuthApp from '../model/RestApiResultOAuthApp'; +import RestApiResultOauthClientRedirectUri from '../model/RestApiResultOauthClientRedirectUri'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* OAuthClients service. +* @module api/OAuthClientsApi +* @version 1.0.0 +*/ +export default class OAuthClientsApi { + + /** + * Constructs a new OAuthClientsApi. + * @alias module:api/OAuthClientsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addRedirectUri operation. + * @callback module:api/OAuthClientsApi~addRedirectUriCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOauthClientRedirectUri} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {String} uri + * @param {module:api/OAuthClientsApi~addRedirectUriCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOauthClientRedirectUri} + */ + addRedirectUri(oauthAppId, appId, uri, callback) { + let postBody = uri; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling addRedirectUri"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling addRedirectUri"); + } + // verify the required parameter 'uri' is set + if (uri === undefined || uri === null) { + throw new Error("Missing the required parameter 'uri' when calling addRedirectUri"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultOauthClientRedirectUri; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createOAuthApp operation. + * @callback module:api/OAuthClientsApi~createOAuthAppCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/OAuthApp} oAuthApp + * @param {module:api/OAuthClientsApi~createOAuthAppCallback} callback The callback function, accepting three arguments: error, data, response + */ + createOAuthApp(appId, oAuthApp, callback) { + let postBody = oAuthApp; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createOAuthApp"); + } + // verify the required parameter 'oAuthApp' is set + if (oAuthApp === undefined || oAuthApp === null) { + throw new Error("Missing the required parameter 'oAuthApp' when calling createOAuthApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteOAuthApp operation. + * @callback module:api/OAuthClientsApi~deleteOAuthAppCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {module:api/OAuthClientsApi~deleteOAuthAppCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteOAuthApp(oauthAppId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling deleteOAuthApp"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteOAuthApp"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOAuthApps operation. + * @callback module:api/OAuthClientsApi~getOAuthAppsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultOAuthApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.oauthAppName + * @param {module:api/OAuthClientsApi~getOAuthAppsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultOAuthApp} + */ + getOAuthApps(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOAuthApps"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'oauthAppName': opts['oauthAppName'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultOAuthApp; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOAuthClientByClientId operation. + * @callback module:api/OAuthClientsApi~getOAuthClientByClientIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOAuthApp} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {module:api/OAuthClientsApi~getOAuthClientByClientIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOAuthApp} + */ + getOAuthClientByClientId(oauthAppId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getOAuthClientByClientId"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOAuthClientByClientId"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultOAuthApp; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOAuthClientSecret operation. + * @callback module:api/OAuthClientsApi~getOAuthClientSecretCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {module:api/OAuthClientsApi~getOAuthClientSecretCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + getOAuthClientSecret(oauthAppId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getOAuthClientSecret"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOAuthClientSecret"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/secret', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOauthAccessToken operation. + * @callback module:api/OAuthClientsApi~getOauthAccessTokenCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {module:api/OAuthClientsApi~getOauthAccessTokenCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + getOauthAccessToken(oauthAppId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getOauthAccessToken"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOauthAccessToken"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRedirectUris operation. + * @callback module:api/OAuthClientsApi~getRedirectUrisCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultOauthClientRedirectUri} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {module:api/OAuthClientsApi~getRedirectUrisCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultOauthClientRedirectUri} + */ + getRedirectUris(oauthAppId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getRedirectUris"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getRedirectUris"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultOauthClientRedirectUri; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the oAuthClientsGetApplications operation. + * @callback module:api/OAuthClientsApi~oAuthClientsGetApplicationsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/OAuthClientsApi~oAuthClientsGetApplicationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + oAuthClientsGetApplications(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling oAuthClientsGetApplications"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/appnames', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the removeRedirectUri operation. + * @callback module:api/OAuthClientsApi~removeRedirectUriCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {Number} uriId + * @param {String} appId + * @param {module:api/OAuthClientsApi~removeRedirectUriCallback} callback The callback function, accepting three arguments: error, data, response + */ + removeRedirectUri(oauthAppId, uriId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling removeRedirectUri"); + } + // verify the required parameter 'uriId' is set + if (uriId === undefined || uriId === null) { + throw new Error("Missing the required parameter 'uriId' when calling removeRedirectUri"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling removeRedirectUri"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'uriId': uriId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis/{uriId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateOAuthApp operation. + * @callback module:api/OAuthClientsApi~updateOAuthAppCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {module:model/OAuthApp} oAuthApp + * @param {module:api/OAuthClientsApi~updateOAuthAppCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateOAuthApp(oauthAppId, appId, oAuthApp, callback) { + let postBody = oAuthApp; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling updateOAuthApp"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateOAuthApp"); + } + // verify the required parameter 'oAuthApp' is set + if (oAuthApp === undefined || oAuthApp === null) { + throw new Error("Missing the required parameter 'oAuthApp' when calling updateOAuthApp"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/oauthclients/{oauthAppId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/OnboardingApi.js b/src/api/OnboardingApi.js new file mode 100644 index 00000000..bc901566 --- /dev/null +++ b/src/api/OnboardingApi.js @@ -0,0 +1,434 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import OnboardingConfigUpdate from '../model/OnboardingConfigUpdate'; +import OnboardingItemUpdate from '../model/OnboardingItemUpdate'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Onboarding service. +* @module api/OnboardingApi +* @version 1.0.0 +*/ +export default class OnboardingApi { + + /** + * Constructs a new OnboardingApi. + * @alias module:api/OnboardingApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the onboardingGetOnboardingConfig operation. + * @callback module:api/OnboardingApi~onboardingGetOnboardingConfigCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/OnboardingApi~onboardingGetOnboardingConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingGetOnboardingConfig(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingGetOnboardingConfig"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/config', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the onboardingGetOnboardingConfigs operation. + * @callback module:api/OnboardingApi~onboardingGetOnboardingConfigsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/OnboardingApi~onboardingGetOnboardingConfigsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingGetOnboardingConfigs(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingGetOnboardingConfigs"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/configs', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the onboardingGetOnboardingItems operation. + * @callback module:api/OnboardingApi~onboardingGetOnboardingItemsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {Object} opts Optional parameters + * @param {Number} opts.milestoneId + * @param {module:api/OnboardingApi~onboardingGetOnboardingItemsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingGetOnboardingItems(appId, storeId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingGetOnboardingItems"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling onboardingGetOnboardingItems"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + 'milestoneId': opts['milestoneId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/stores/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the onboardingGetOnboardingItemsV2 operation. + * @callback module:api/OnboardingApi~onboardingGetOnboardingItemsV2Callback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.storeId + * @param {Number} opts.milestoneId + * @param {module:api/OnboardingApi~onboardingGetOnboardingItemsV2Callback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingGetOnboardingItemsV2(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingGetOnboardingItemsV2"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': opts['storeId'], + 'milestoneId': opts['milestoneId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the onboardingUpdateOnboardingConfig operation. + * @callback module:api/OnboardingApi~onboardingUpdateOnboardingConfigCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/OnboardingConfigUpdate} configUpdate + * @param {module:api/OnboardingApi~onboardingUpdateOnboardingConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingUpdateOnboardingConfig(appId, configUpdate, callback) { + let postBody = configUpdate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingUpdateOnboardingConfig"); + } + // verify the required parameter 'configUpdate' is set + if (configUpdate === undefined || configUpdate === null) { + throw new Error("Missing the required parameter 'configUpdate' when calling onboardingUpdateOnboardingConfig"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/config', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the onboardingUpdateOnboardingConfigById operation. + * @callback module:api/OnboardingApi~onboardingUpdateOnboardingConfigByIdCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} configId + * @param {module:model/OnboardingConfigUpdate} configUpdate + * @param {module:api/OnboardingApi~onboardingUpdateOnboardingConfigByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingUpdateOnboardingConfigById(appId, configId, configUpdate, callback) { + let postBody = configUpdate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingUpdateOnboardingConfigById"); + } + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling onboardingUpdateOnboardingConfigById"); + } + // verify the required parameter 'configUpdate' is set + if (configUpdate === undefined || configUpdate === null) { + throw new Error("Missing the required parameter 'configUpdate' when calling onboardingUpdateOnboardingConfigById"); + } + + let pathParams = { + 'appId': appId, + 'configId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/config/{configId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the onboardingUpdateOnboardingItem operation. + * @callback module:api/OnboardingApi~onboardingUpdateOnboardingItemCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {Number} onboardingItemId + * @param {module:model/OnboardingItemUpdate} itemUpdate + * @param {module:api/OnboardingApi~onboardingUpdateOnboardingItemCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingUpdateOnboardingItem(appId, storeId, onboardingItemId, itemUpdate, callback) { + let postBody = itemUpdate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingUpdateOnboardingItem"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling onboardingUpdateOnboardingItem"); + } + // verify the required parameter 'onboardingItemId' is set + if (onboardingItemId === undefined || onboardingItemId === null) { + throw new Error("Missing the required parameter 'onboardingItemId' when calling onboardingUpdateOnboardingItem"); + } + // verify the required parameter 'itemUpdate' is set + if (itemUpdate === undefined || itemUpdate === null) { + throw new Error("Missing the required parameter 'itemUpdate' when calling onboardingUpdateOnboardingItem"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId, + 'onboardingItemId': onboardingItemId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/stores/{storeId}/items/{onboardingItemId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the onboardingUpdateOnboardingItemV2 operation. + * @callback module:api/OnboardingApi~onboardingUpdateOnboardingItemV2Callback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} onboardingItemId + * @param {module:model/OnboardingItemUpdate} itemUpdate + * @param {Object} opts Optional parameters + * @param {Number} opts.storeId + * @param {module:api/OnboardingApi~onboardingUpdateOnboardingItemV2Callback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + onboardingUpdateOnboardingItemV2(appId, onboardingItemId, itemUpdate, opts, callback) { + opts = opts || {}; + let postBody = itemUpdate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling onboardingUpdateOnboardingItemV2"); + } + // verify the required parameter 'onboardingItemId' is set + if (onboardingItemId === undefined || onboardingItemId === null) { + throw new Error("Missing the required parameter 'onboardingItemId' when calling onboardingUpdateOnboardingItemV2"); + } + // verify the required parameter 'itemUpdate' is set + if (itemUpdate === undefined || itemUpdate === null) { + throw new Error("Missing the required parameter 'itemUpdate' when calling onboardingUpdateOnboardingItemV2"); + } + + let pathParams = { + 'appId': appId, + 'onboardingItemId': onboardingItemId + }; + let queryParams = { + 'storeId': opts['storeId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/clients/{appId}/onboarding/stores/items/{onboardingItemId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/OrderBatchesApi.js b/src/api/OrderBatchesApi.js new file mode 100644 index 00000000..81ee4efc --- /dev/null +++ b/src/api/OrderBatchesApi.js @@ -0,0 +1,138 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiArrayResultOrderBatch from '../model/RestApiArrayResultOrderBatch'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultOrderBatch from '../model/RestApiResultOrderBatch'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* OrderBatches service. +* @module api/OrderBatchesApi +* @version 1.0.0 +*/ +export default class OrderBatchesApi { + + /** + * Constructs a new OrderBatchesApi. + * @alias module:api/OrderBatchesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getAllOrderBatches operation. + * @callback module:api/OrderBatchesApi~getAllOrderBatchesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultOrderBatch} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {Date} opts.createdFrom + * @param {Date} opts.createdTo + * @param {module:api/OrderBatchesApi~getAllOrderBatchesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultOrderBatch} + */ + getAllOrderBatches(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getAllOrderBatches"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi'), + 'createdFrom': opts['createdFrom'], + 'createdTo': opts['createdTo'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultOrderBatch; + return this.apiClient.callApi( + '/api/v1.0/{appId}/order-batches', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrderBatch operation. + * @callback module:api/OrderBatchesApi~getOrderBatchCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderBatch} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} orderBatchId + * @param {module:api/OrderBatchesApi~getOrderBatchCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderBatch} + */ + getOrderBatch(appId, orderBatchId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOrderBatch"); + } + // verify the required parameter 'orderBatchId' is set + if (orderBatchId === undefined || orderBatchId === null) { + throw new Error("Missing the required parameter 'orderBatchId' when calling getOrderBatch"); + } + + let pathParams = { + 'appId': appId, + 'orderBatchId': orderBatchId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultOrderBatch; + return this.apiClient.callApi( + '/api/v1.0/{appId}/order-batches/{orderBatchId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/OrderBatchingConfigurationApi.js b/src/api/OrderBatchingConfigurationApi.js new file mode 100644 index 00000000..2492ae79 --- /dev/null +++ b/src/api/OrderBatchingConfigurationApi.js @@ -0,0 +1,128 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultOrderBatchingConfiguration from '../model/RestApiResultOrderBatchingConfiguration'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import SetOrderBatchingConfiguration from '../model/SetOrderBatchingConfiguration'; + +/** +* OrderBatchingConfiguration service. +* @module api/OrderBatchingConfigurationApi +* @version 1.0.0 +*/ +export default class OrderBatchingConfigurationApi { + + /** + * Constructs a new OrderBatchingConfigurationApi. + * @alias module:api/OrderBatchingConfigurationApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the get operation. + * @callback module:api/OrderBatchingConfigurationApi~getCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderBatchingConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/OrderBatchingConfigurationApi~getCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderBatchingConfiguration} + */ + get(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling get"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultOrderBatchingConfiguration; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/order-batching-configuration', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the post operation. + * @callback module:api/OrderBatchingConfigurationApi~postCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/SetOrderBatchingConfiguration} setOrderBatchingConfiguration + * @param {module:api/OrderBatchingConfigurationApi~postCallback} callback The callback function, accepting three arguments: error, data, response + */ + post(storeId, setOrderBatchingConfiguration, callback) { + let postBody = setOrderBatchingConfiguration; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling post"); + } + // verify the required parameter 'setOrderBatchingConfiguration' is set + if (setOrderBatchingConfiguration === undefined || setOrderBatchingConfiguration === null) { + throw new Error("Missing the required parameter 'setOrderBatchingConfiguration' when calling post"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/order-batching-configuration', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/OrdersApi.js b/src/api/OrdersApi.js new file mode 100644 index 00000000..b700deb1 --- /dev/null +++ b/src/api/OrdersApi.js @@ -0,0 +1,753 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import Accept from '../model/Accept'; +import OrderDeliveryInformationBase from '../model/OrderDeliveryInformationBase'; +import OrderFulfillmentStatusUpdate from '../model/OrderFulfillmentStatusUpdate'; +import OrderList from '../model/OrderList'; +import Refund from '../model/Refund'; +import Reject from '../model/Reject'; +import RestApiArrayResultOrderFulfillmentStatus from '../model/RestApiArrayResultOrderFulfillmentStatus'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultOrder from '../model/RestApiPaginationResultOrder'; +import RestApiPaginationResultOrderSummary from '../model/RestApiPaginationResultOrderSummary'; +import RestApiResultOrder from '../model/RestApiResultOrder'; +import RestApiResultOrderDeliveryInformation from '../model/RestApiResultOrderDeliveryInformation'; +import RestApiResultOrderFulfillmentStatus from '../model/RestApiResultOrderFulfillmentStatus'; +import RestApiResultOrderFulfillmentStatusWithConfigurationActions from '../model/RestApiResultOrderFulfillmentStatusWithConfigurationActions'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Orders service. +* @module api/OrdersApi +* @version 1.0.0 +*/ +export default class OrdersApi { + + /** + * Constructs a new OrdersApi. + * @alias module:api/OrdersApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the acceptOrder operation. + * @callback module:api/OrdersApi~acceptOrderCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} id + * @param {module:model/Accept} acceptObject + * @param {module:api/OrdersApi~acceptOrderCallback} callback The callback function, accepting three arguments: error, data, response + */ + acceptOrder(id, acceptObject, callback) { + let postBody = acceptObject; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling acceptOrder"); + } + // verify the required parameter 'acceptObject' is set + if (acceptObject === undefined || acceptObject === null) { + throw new Error("Missing the required parameter 'acceptObject' when calling acceptOrder"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/orders/{id}/accept', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the dispatchOrder operation. + * @callback module:api/OrdersApi~dispatchOrderCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} id + * @param {module:api/OrdersApi~dispatchOrderCallback} callback The callback function, accepting three arguments: error, data, response + */ + dispatchOrder(id, callback) { + let postBody = null; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling dispatchOrder"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/orders/{id}/dispatch', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getDeliveryInformation operation. + * @callback module:api/OrdersApi~getDeliveryInformationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderDeliveryInformation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:api/OrdersApi~getDeliveryInformationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderDeliveryInformation} + */ + getDeliveryInformation(orderId, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling getDeliveryInformation"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultOrderDeliveryInformation; + return this.apiClient.callApi( + '/api/v1.0/orders/{orderId}/deliveryinfo', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getFulfillmentState operation. + * @callback module:api/OrdersApi~getFulfillmentStateCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderFulfillmentStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:api/OrdersApi~getFulfillmentStateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderFulfillmentStatus} + */ + getFulfillmentState(orderId, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling getFulfillmentState"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultOrderFulfillmentStatus; + return this.apiClient.callApi( + '/api/v1.0/orders/{orderId}/fulfillment/state', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getFulfillmentStatusWithDetailsAndActions operation. + * @callback module:api/OrdersApi~getFulfillmentStatusWithDetailsAndActionsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderFulfillmentStatusWithConfigurationActions} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:api/OrdersApi~getFulfillmentStatusWithDetailsAndActionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderFulfillmentStatusWithConfigurationActions} + */ + getFulfillmentStatusWithDetailsAndActions(orderId, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling getFulfillmentStatusWithDetailsAndActions"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultOrderFulfillmentStatusWithConfigurationActions; + return this.apiClient.callApi( + '/api/v1.0/orders/{orderId}/fulfillment/state/details', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrderById operation. + * @callback module:api/OrdersApi~getOrderByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrder} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} id + * @param {module:api/OrdersApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrder} + */ + getOrderById(id, callback) { + let postBody = null; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getOrderById"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiResultOrder; + return this.apiClient.callApi( + '/api/v1.0/orders/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrders operation. + * @callback module:api/OrdersApi~getOrdersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultOrder} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Object} opts Optional parameters + * @param {Array.} opts.physicalRestaurantId + * @param {Array.} opts.state + * @param {Date} opts.from + * @param {Date} opts.to + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/OrdersApi~getOrdersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultOrder} + */ + getOrders(opts, callback) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'physicalRestaurantId': this.apiClient.buildCollectionParam(opts['physicalRestaurantId'], 'multi'), + 'state': this.apiClient.buildCollectionParam(opts['state'], 'multi'), + 'from': opts['from'], + 'to': opts['to'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiPaginationResultOrder; + return this.apiClient.callApi( + '/api/v1.0/orders', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrdersSummary operation. + * @callback module:api/OrdersApi~getOrdersSummaryCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultOrderSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery + * @param {Array.} opts.physicalRestaurantId + * @param {Array.} opts.state + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Boolean} opts.orderByRequestedForTime + * @param {Array.} opts.channels + * @param {Array.} opts.orderIds + * @param {Date} opts.from + * @param {Date} opts.to + * @param {Boolean} opts.logSql + * @param {module:api/OrdersApi~getOrdersSummaryCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultOrderSummary} + */ + getOrdersSummary(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOrdersSummary"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'searchQuery': opts['searchQuery'], + 'physicalRestaurantId': this.apiClient.buildCollectionParam(opts['physicalRestaurantId'], 'multi'), + 'state': this.apiClient.buildCollectionParam(opts['state'], 'multi'), + 'page': opts['page'], + 'limit': opts['limit'], + 'orderByRequestedForTime': opts['orderByRequestedForTime'], + 'channels': this.apiClient.buildCollectionParam(opts['channels'], 'multi'), + 'orderIds': this.apiClient.buildCollectionParam(opts['orderIds'], 'multi'), + 'from': opts['from'], + 'to': opts['to'], + 'logSql': opts['logSql'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiPaginationResultOrderSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/orders/summaries', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getOrdersSummaryNew operation. + * @callback module:api/OrdersApi~getOrdersSummaryNewCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultOrderSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery + * @param {Array.} opts.physicalRestaurantId + * @param {Array.} opts.state + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Boolean} opts.orderByRequestedForTime + * @param {Array.} opts.channels + * @param {Array.} opts.orderIds + * @param {Date} opts.from + * @param {Date} opts.to + * @param {Boolean} opts.logSql + * @param {module:api/OrdersApi~getOrdersSummaryNewCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultOrderSummary} + */ + getOrdersSummaryNew(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getOrdersSummaryNew"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'searchQuery': opts['searchQuery'], + 'physicalRestaurantId': this.apiClient.buildCollectionParam(opts['physicalRestaurantId'], 'multi'), + 'state': this.apiClient.buildCollectionParam(opts['state'], 'multi'), + 'page': opts['page'], + 'limit': opts['limit'], + 'orderByRequestedForTime': opts['orderByRequestedForTime'], + 'channels': this.apiClient.buildCollectionParam(opts['channels'], 'multi'), + 'orderIds': this.apiClient.buildCollectionParam(opts['orderIds'], 'multi'), + 'from': opts['from'], + 'to': opts['to'], + 'logSql': opts['logSql'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiPaginationResultOrderSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/orders/summariesNew', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getReadyToProcess operation. + * @callback module:api/OrdersApi~getReadyToProcessCallback + * @param {String} error Error message, if any. + * @param {module:model/OrderList} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeId + * @param {module:api/OrdersApi~getReadyToProcessCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/OrderList} + */ + getReadyToProcess(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getReadyToProcess"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message']; + let returnType = OrderList; + return this.apiClient.callApi( + '/api/v1.0/{appId}/orders/ready_to_process', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the refundOrder operation. + * @callback module:api/OrdersApi~refundOrderCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} id + * @param {module:model/Refund} refundObject + * @param {module:api/OrdersApi~refundOrderCallback} callback The callback function, accepting three arguments: error, data, response + */ + refundOrder(id, refundObject, callback) { + let postBody = refundObject; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling refundOrder"); + } + // verify the required parameter 'refundObject' is set + if (refundObject === undefined || refundObject === null) { + throw new Error("Missing the required parameter 'refundObject' when calling refundOrder"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/orders/{id}/refund', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the rejectOrder operation. + * @callback module:api/OrdersApi~rejectOrderCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} id + * @param {module:model/Reject} rejectObject + * @param {module:api/OrdersApi~rejectOrderCallback} callback The callback function, accepting three arguments: error, data, response + */ + rejectOrder(id, rejectObject, callback) { + let postBody = rejectObject; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling rejectOrder"); + } + // verify the required parameter 'rejectObject' is set + if (rejectObject === undefined || rejectObject === null) { + throw new Error("Missing the required parameter 'rejectObject' when calling rejectOrder"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/orders/{id}/reject', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the searchFulfillmentStatuses operation. + * @callback module:api/OrdersApi~searchFulfillmentStatusesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultOrderFulfillmentStatus} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} orderIds + * @param {module:api/OrdersApi~searchFulfillmentStatusesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultOrderFulfillmentStatus} + */ + searchFulfillmentStatuses(appId, orderIds, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling searchFulfillmentStatuses"); + } + // verify the required parameter 'orderIds' is set + if (orderIds === undefined || orderIds === null) { + throw new Error("Missing the required parameter 'orderIds' when calling searchFulfillmentStatuses"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'orderIds': orderIds + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultOrderFulfillmentStatus; + return this.apiClient.callApi( + '/api/v1.0/{appId}/orders/fulfillmentstatuses', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateDeliveryInformation operation. + * @callback module:api/OrdersApi~updateDeliveryInformationCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:model/OrderDeliveryInformationBase} deliveryInformation + * @param {module:api/OrdersApi~updateDeliveryInformationCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateDeliveryInformation(orderId, deliveryInformation, callback) { + let postBody = deliveryInformation; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling updateDeliveryInformation"); + } + // verify the required parameter 'deliveryInformation' is set + if (deliveryInformation === undefined || deliveryInformation === null) { + throw new Error("Missing the required parameter 'deliveryInformation' when calling updateDeliveryInformation"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/orders/{orderId}/deliveryinfo', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateFulfillmentState operation. + * @callback module:api/OrdersApi~updateFulfillmentStateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:model/OrderFulfillmentStatusUpdate} fulfillmentStatusRequest + * @param {module:api/OrdersApi~updateFulfillmentStateCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateFulfillmentState(orderId, fulfillmentStatusRequest, callback) { + let postBody = fulfillmentStatusRequest; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling updateFulfillmentState"); + } + // verify the required parameter 'fulfillmentStatusRequest' is set + if (fulfillmentStatusRequest === undefined || fulfillmentStatusRequest === null) { + throw new Error("Missing the required parameter 'fulfillmentStatusRequest' when calling updateFulfillmentState"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/orders/{orderId}/fulfillment/state', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/PaymentIntentsApi.js b/src/api/PaymentIntentsApi.js new file mode 100644 index 00000000..9b7a555d --- /dev/null +++ b/src/api/PaymentIntentsApi.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultPaymentIntent from '../model/RestApiResultPaymentIntent'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* PaymentIntents service. +* @module api/PaymentIntentsApi +* @version 1.0.0 +*/ +export default class PaymentIntentsApi { + + /** + * Constructs a new PaymentIntentsApi. + * @alias module:api/PaymentIntentsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getPaymentIntent operation. + * @callback module:api/PaymentIntentsApi~getPaymentIntentCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPaymentIntent} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} paymentIntentId + * @param {module:api/PaymentIntentsApi~getPaymentIntentCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPaymentIntent} + */ + getPaymentIntent(paymentIntentId, callback) { + let postBody = null; + // verify the required parameter 'paymentIntentId' is set + if (paymentIntentId === undefined || paymentIntentId === null) { + throw new Error("Missing the required parameter 'paymentIntentId' when calling getPaymentIntent"); + } + + let pathParams = { + 'paymentIntentId': paymentIntentId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultPaymentIntent; + return this.apiClient.callApi( + '/api/v1.0/payment_intents/{paymentIntentId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/PaymentsApi.js b/src/api/PaymentsApi.js new file mode 100644 index 00000000..7ac74cf3 --- /dev/null +++ b/src/api/PaymentsApi.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultOrderPaymentInformation from '../model/RestApiResultOrderPaymentInformation'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Payments service. +* @module api/PaymentsApi +* @version 1.0.0 +*/ +export default class PaymentsApi { + + /** + * Constructs a new PaymentsApi. + * @alias module:api/PaymentsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getOrderPaymentInformation operation. + * @callback module:api/PaymentsApi~getOrderPaymentInformationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderPaymentInformation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:api/PaymentsApi~getOrderPaymentInformationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderPaymentInformation} + */ + getOrderPaymentInformation(orderId, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling getOrderPaymentInformation"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiResultOrderPaymentInformation; + return this.apiClient.callApi( + '/api/v1.0/payments/payment/{orderId}/refundable', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/PayoutReportsApi.js b/src/api/PayoutReportsApi.js new file mode 100644 index 00000000..fe58299d --- /dev/null +++ b/src/api/PayoutReportsApi.js @@ -0,0 +1,442 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultPayoutReport3RefundedOrder from '../model/RestApiPaginationResultPayoutReport3RefundedOrder'; +import RestApiResultFileCreationResult from '../model/RestApiResultFileCreationResult'; +import RestApiResultPayoutReport3Details from '../model/RestApiResultPayoutReport3Details'; +import RestApiResultPayoutReport3Overview from '../model/RestApiResultPayoutReport3Overview'; + +/** +* PayoutReports service. +* @module api/PayoutReportsApi +* @version 1.0.0 +*/ +export default class PayoutReportsApi { + + /** + * Constructs a new PayoutReportsApi. + * @alias module:api/PayoutReportsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getPayoutReport3Details operation. + * @callback module:api/PayoutReportsApi~getPayoutReport3DetailsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPayoutReport3Details} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutReportsApi~getPayoutReport3DetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPayoutReport3Details} + */ + getPayoutReport3Details(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutReport3Details"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayoutReport3Details"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayoutReport3Details"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultPayoutReport3Details; + return this.apiClient.callApi( + '/api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/details', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayoutReport3Overview operation. + * @callback module:api/PayoutReportsApi~getPayoutReport3OverviewCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPayoutReport3Overview} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {module:api/PayoutReportsApi~getPayoutReport3OverviewCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPayoutReport3Overview} + */ + getPayoutReport3Overview(appId, bankAccountId, payoutId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutReport3Overview"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayoutReport3Overview"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayoutReport3Overview"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultPayoutReport3Overview; + return this.apiClient.callApi( + '/api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/overview', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayoutReport3RefundedOrders operation. + * @callback module:api/PayoutReportsApi~getPayoutReport3RefundedOrdersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPayoutReport3RefundedOrder} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/PayoutReportsApi~getPayoutReport3RefundedOrdersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPayoutReport3RefundedOrder} + */ + getPayoutReport3RefundedOrders(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutReport3RefundedOrders"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayoutReport3RefundedOrders"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayoutReport3RefundedOrders"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi'), + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiPaginationResultPayoutReport3RefundedOrder; + return this.apiClient.callApi( + '/api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/refundedOrders', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the payoutReport3ExportPayoutChargebacks operation. + * @callback module:api/PayoutReportsApi~payoutReport3ExportPayoutChargebacksCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultFileCreationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.stores + * @param {module:api/PayoutReportsApi~payoutReport3ExportPayoutChargebacksCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultFileCreationResult} + */ + payoutReport3ExportPayoutChargebacks(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling payoutReport3ExportPayoutChargebacks"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling payoutReport3ExportPayoutChargebacks"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling payoutReport3ExportPayoutChargebacks"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'stores': this.apiClient.buildCollectionParam(opts['stores'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultFileCreationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/chargebacks', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the payoutReport3ExportPayoutOrders operation. + * @callback module:api/PayoutReportsApi~payoutReport3ExportPayoutOrdersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultFileCreationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.stores + * @param {module:api/PayoutReportsApi~payoutReport3ExportPayoutOrdersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultFileCreationResult} + */ + payoutReport3ExportPayoutOrders(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling payoutReport3ExportPayoutOrders"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling payoutReport3ExportPayoutOrders"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling payoutReport3ExportPayoutOrders"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'stores': this.apiClient.buildCollectionParam(opts['stores'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultFileCreationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/orders', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the payoutReport3ExportPayoutPosSales operation. + * @callback module:api/PayoutReportsApi~payoutReport3ExportPayoutPosSalesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultFileCreationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.stores + * @param {module:api/PayoutReportsApi~payoutReport3ExportPayoutPosSalesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultFileCreationResult} + */ + payoutReport3ExportPayoutPosSales(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling payoutReport3ExportPayoutPosSales"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling payoutReport3ExportPayoutPosSales"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling payoutReport3ExportPayoutPosSales"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'stores': this.apiClient.buildCollectionParam(opts['stores'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultFileCreationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/possales', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the payoutReport3ExportPayoutRefundedOrders operation. + * @callback module:api/PayoutReportsApi~payoutReport3ExportPayoutRefundedOrdersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultFileCreationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.stores + * @param {module:api/PayoutReportsApi~payoutReport3ExportPayoutRefundedOrdersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultFileCreationResult} + */ + payoutReport3ExportPayoutRefundedOrders(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling payoutReport3ExportPayoutRefundedOrders"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling payoutReport3ExportPayoutRefundedOrders"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling payoutReport3ExportPayoutRefundedOrders"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'stores': this.apiClient.buildCollectionParam(opts['stores'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultFileCreationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/reporting/reports/payouts3/{bankAccountId}/{payoutId}/export/refundedOrders', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/PayoutsApi.js b/src/api/PayoutsApi.js new file mode 100644 index 00000000..61a83c18 --- /dev/null +++ b/src/api/PayoutsApi.js @@ -0,0 +1,450 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import PayoutDetail from '../model/PayoutDetail'; +import RestApiArrayResultPayoutSummary from '../model/RestApiArrayResultPayoutSummary'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultPayout from '../model/RestApiPaginationResultPayout'; +import RestApiPaginationResultPayoutChargeback from '../model/RestApiPaginationResultPayoutChargeback'; +import RestApiPaginationResultPayoutOrder from '../model/RestApiPaginationResultPayoutOrder'; +import RestApiPaginationResultPayoutOtherCharge from '../model/RestApiPaginationResultPayoutOtherCharge'; +import RestApiPaginationResultPayoutRefund from '../model/RestApiPaginationResultPayoutRefund'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Payouts service. +* @module api/PayoutsApi +* @version 1.0.0 +*/ +export default class PayoutsApi { + + /** + * Constructs a new PayoutsApi. + * @alias module:api/PayoutsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getPayout operation. + * @callback module:api/PayoutsApi~getPayoutCallback + * @param {String} error Error message, if any. + * @param {module:model/PayoutDetail} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {module:api/PayoutsApi~getPayoutCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/PayoutDetail} + */ + getPayout(appId, bankAccountId, payoutId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayout"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayout"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayout"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'PayoutId', 'BankAccountId', 'AccountName', 'PayoutStatus', 'CreatedDate', 'PeriodStartTime', 'PeriodEndTime', 'DestinationBank', 'DestinationAccount', 'PayoutType', 'Currency', 'PayoutStores', 'Amount', 'CutoffDate']; + let returnType = PayoutDetail; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayoutChargebacks operation. + * @callback module:api/PayoutsApi~getPayoutChargebacksCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPayoutChargeback} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~getPayoutChargebacksCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPayoutChargeback} + */ + getPayoutChargebacks(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutChargebacks"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayoutChargebacks"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayoutChargebacks"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultPayoutChargeback; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayoutOrders operation. + * @callback module:api/PayoutsApi~getPayoutOrdersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPayoutOrder} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~getPayoutOrdersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPayoutOrder} + */ + getPayoutOrders(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutOrders"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayoutOrders"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayoutOrders"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultPayoutOrder; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayoutOtherCharges operation. + * @callback module:api/PayoutsApi~getPayoutOtherChargesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPayoutOtherCharge} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~getPayoutOtherChargesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPayoutOtherCharge} + */ + getPayoutOtherCharges(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutOtherCharges"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayoutOtherCharges"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayoutOtherCharges"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultPayoutOtherCharge; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayoutRefunds operation. + * @callback module:api/PayoutsApi~getPayoutRefundsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPayoutRefund} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsApi~getPayoutRefundsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPayoutRefund} + */ + getPayoutRefunds(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutRefunds"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling getPayoutRefunds"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling getPayoutRefunds"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'], + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultPayoutRefund; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayoutSummaries operation. + * @callback module:api/PayoutsApi~getPayoutSummariesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultPayoutSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Date} opts.startDate + * @param {Date} opts.endDate + * @param {Array.} opts.payoutRequestIds_bankAccountIds List of bank account ids to search for + * @param {Array.} opts.payoutRequestIds_states List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for + * @param {module:api/PayoutsApi~getPayoutSummariesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultPayoutSummary} + */ + getPayoutSummaries(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayoutSummaries"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'startDate': opts['startDate'], + 'endDate': opts['endDate'], + 'payoutRequestIds.bankAccountIds': this.apiClient.buildCollectionParam(opts['payoutRequestIds_bankAccountIds'], 'multi'), + 'payoutRequestIds.states': this.apiClient.buildCollectionParam(opts['payoutRequestIds_states'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultPayoutSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payouts/summaries', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayouts operation. + * @callback module:api/PayoutsApi~getPayoutsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPayout} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Date} opts.startDate + * @param {Date} opts.endDate + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Array.} opts.payoutRequestIds_bankAccountIds List of bank account ids to search for + * @param {Array.} opts.payoutRequestIds_states List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for + * @param {module:api/PayoutsApi~getPayoutsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPayout} + */ + getPayouts(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayouts"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'startDate': opts['startDate'], + 'endDate': opts['endDate'], + 'page': opts['page'], + 'limit': opts['limit'], + 'payoutRequestIds.bankAccountIds': this.apiClient.buildCollectionParam(opts['payoutRequestIds_bankAccountIds'], 'multi'), + 'payoutRequestIds.states': this.apiClient.buildCollectionParam(opts['payoutRequestIds_states'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultPayout; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payouts', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/PayoutsExportApi.js b/src/api/PayoutsExportApi.js new file mode 100644 index 00000000..6d52e02c --- /dev/null +++ b/src/api/PayoutsExportApi.js @@ -0,0 +1,376 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* PayoutsExport service. +* @module api/PayoutsExportApi +* @version 1.0.0 +*/ +export default class PayoutsExportApi { + + /** + * Constructs a new PayoutsExportApi. + * @alias module:api/PayoutsExportApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the exportPayoutChargebacks operation. + * @callback module:api/PayoutsExportApi~exportPayoutChargebacksCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsExportApi~exportPayoutChargebacksCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + exportPayoutChargebacks(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling exportPayoutChargebacks"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling exportPayoutChargebacks"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling exportPayoutChargebacks"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutOrders operation. + * @callback module:api/PayoutsExportApi~exportPayoutOrdersCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsExportApi~exportPayoutOrdersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + exportPayoutOrders(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling exportPayoutOrders"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling exportPayoutOrders"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling exportPayoutOrders"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutOtherCharges operation. + * @callback module:api/PayoutsExportApi~exportPayoutOtherChargesCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsExportApi~exportPayoutOtherChargesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + exportPayoutOtherCharges(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling exportPayoutOtherCharges"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling exportPayoutOtherCharges"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling exportPayoutOtherCharges"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutRefunds operation. + * @callback module:api/PayoutsExportApi~exportPayoutRefundsCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsExportApi~exportPayoutRefundsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + exportPayoutRefunds(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling exportPayoutRefunds"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling exportPayoutRefunds"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling exportPayoutRefunds"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the exportPayoutStores operation. + * @callback module:api/PayoutsExportApi~exportPayoutStoresCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {Number} payoutId + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeIds + * @param {module:api/PayoutsExportApi~exportPayoutStoresCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + exportPayoutStores(appId, bankAccountId, payoutId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling exportPayoutStores"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling exportPayoutStores"); + } + // verify the required parameter 'payoutId' is set + if (payoutId === undefined || payoutId === null) { + throw new Error("Missing the required parameter 'payoutId' when calling exportPayoutStores"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId, + 'payoutId': payoutId + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the exportPayouts operation. + * @callback module:api/PayoutsExportApi~exportPayoutsCallback + * @param {String} error Error message, if any. + * @param {String} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Date} opts.startDate + * @param {Date} opts.endDate + * @param {Array.} opts.payoutRequestIds_bankAccountIds List of bank account ids to search for + * @param {Array.} opts.payoutRequestIds_states List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for + * @param {module:api/PayoutsExportApi~exportPayoutsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link String} + */ + exportPayouts(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling exportPayouts"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'startDate': opts['startDate'], + 'endDate': opts['endDate'], + 'payoutRequestIds.bankAccountIds': this.apiClient.buildCollectionParam(opts['payoutRequestIds_bankAccountIds'], 'multi'), + 'payoutRequestIds.states': this.apiClient.buildCollectionParam(opts['payoutRequestIds_states'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = 'String'; + return this.apiClient.callApi( + '/api/v1.0/{appId}/payouts/export', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/ProcessingFeeConfigsApi.js b/src/api/ProcessingFeeConfigsApi.js new file mode 100644 index 00000000..d325e466 --- /dev/null +++ b/src/api/ProcessingFeeConfigsApi.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiArrayResultProcessingFeeConfig from '../model/RestApiArrayResultProcessingFeeConfig'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* ProcessingFeeConfigs service. +* @module api/ProcessingFeeConfigsApi +* @version 1.0.0 +*/ +export default class ProcessingFeeConfigsApi { + + /** + * Constructs a new ProcessingFeeConfigsApi. + * @alias module:api/ProcessingFeeConfigsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getProcessingFeeConfigsByStoreIds operation. + * @callback module:api/ProcessingFeeConfigsApi~getProcessingFeeConfigsByStoreIdsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultProcessingFeeConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Array.} storeIds + * @param {module:api/ProcessingFeeConfigsApi~getProcessingFeeConfigsByStoreIdsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultProcessingFeeConfig} + */ + getProcessingFeeConfigsByStoreIds(storeIds, callback) { + let postBody = null; + // verify the required parameter 'storeIds' is set + if (storeIds === undefined || storeIds === null) { + throw new Error("Missing the required parameter 'storeIds' when calling getProcessingFeeConfigsByStoreIds"); + } + + let pathParams = { + }; + let queryParams = { + 'storeIds': this.apiClient.buildCollectionParam(storeIds, 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultProcessingFeeConfig; + return this.apiClient.callApi( + '/api/v1.0/processingfeeconfigs', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/PushNotificationsApi.js b/src/api/PushNotificationsApi.js new file mode 100644 index 00000000..da6647a4 --- /dev/null +++ b/src/api/PushNotificationsApi.js @@ -0,0 +1,233 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import PushNotificationRequest from '../model/PushNotificationRequest'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultPushNotificationResponse from '../model/RestApiPaginationResultPushNotificationResponse'; +import RestApiResultPushNotificationResponse from '../model/RestApiResultPushNotificationResponse'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* PushNotifications service. +* @module api/PushNotificationsApi +* @version 1.0.0 +*/ +export default class PushNotificationsApi { + + /** + * Constructs a new PushNotificationsApi. + * @alias module:api/PushNotificationsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the deletePushNotification operation. + * @callback module:api/PushNotificationsApi~deletePushNotificationCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} scheduledPushNotificationId + * @param {module:api/PushNotificationsApi~deletePushNotificationCallback} callback The callback function, accepting three arguments: error, data, response + */ + deletePushNotification(appId, scheduledPushNotificationId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deletePushNotification"); + } + // verify the required parameter 'scheduledPushNotificationId' is set + if (scheduledPushNotificationId === undefined || scheduledPushNotificationId === null) { + throw new Error("Missing the required parameter 'scheduledPushNotificationId' when calling deletePushNotification"); + } + + let pathParams = { + 'appId': appId, + 'scheduledPushNotificationId': scheduledPushNotificationId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPushNotifications operation. + * @callback module:api/PushNotificationsApi~getPushNotificationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultPushNotificationResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/PushNotificationsApi~getPushNotificationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultPushNotificationResponse} + */ + getPushNotifications(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPushNotifications"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiPaginationResultPushNotificationResponse; + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the schedulePushNotification operation. + * @callback module:api/PushNotificationsApi~schedulePushNotificationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPushNotificationResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/PushNotificationRequest} notification + * @param {module:api/PushNotificationsApi~schedulePushNotificationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPushNotificationResponse} + */ + schedulePushNotification(appId, notification, callback) { + let postBody = notification; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling schedulePushNotification"); + } + // verify the required parameter 'notification' is set + if (notification === undefined || notification === null) { + throw new Error("Missing the required parameter 'notification' when calling schedulePushNotification"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultPushNotificationResponse; + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updatePushNotification operation. + * @callback module:api/PushNotificationsApi~updatePushNotificationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPushNotificationResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} scheduledPushNotificationId + * @param {module:model/PushNotificationRequest} notification + * @param {module:api/PushNotificationsApi~updatePushNotificationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPushNotificationResponse} + */ + updatePushNotification(appId, scheduledPushNotificationId, notification, callback) { + let postBody = notification; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updatePushNotification"); + } + // verify the required parameter 'scheduledPushNotificationId' is set + if (scheduledPushNotificationId === undefined || scheduledPushNotificationId === null) { + throw new Error("Missing the required parameter 'scheduledPushNotificationId' when calling updatePushNotification"); + } + // verify the required parameter 'notification' is set + if (notification === undefined || notification === null) { + throw new Error("Missing the required parameter 'notification' when calling updatePushNotification"); + } + + let pathParams = { + 'appId': appId, + 'scheduledPushNotificationId': scheduledPushNotificationId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiResultPushNotificationResponse; + return this.apiClient.callApi( + '/api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/ReceiptsApi.js b/src/api/ReceiptsApi.js new file mode 100644 index 00000000..66bfc2b4 --- /dev/null +++ b/src/api/ReceiptsApi.js @@ -0,0 +1,81 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import GetReceiptByOrderIdQueryResponse from '../model/GetReceiptByOrderIdQueryResponse'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; + +/** +* Receipts service. +* @module api/ReceiptsApi +* @version 1.0.0 +*/ +export default class ReceiptsApi { + + /** + * Constructs a new ReceiptsApi. + * @alias module:api/ReceiptsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getReceipt operation. + * @callback module:api/ReceiptsApi~getReceiptCallback + * @param {String} error Error message, if any. + * @param {module:model/GetReceiptByOrderIdQueryResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} orderId + * @param {module:api/ReceiptsApi~getReceiptCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/GetReceiptByOrderIdQueryResponse} + */ + getReceipt(orderId, callback) { + let postBody = null; + // verify the required parameter 'orderId' is set + if (orderId === undefined || orderId === null) { + throw new Error("Missing the required parameter 'orderId' when calling getReceipt"); + } + + let pathParams = { + 'orderId': orderId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = GetReceiptByOrderIdQueryResponse; + return this.apiClient.callApi( + '/api/v1.0/receipts/{orderId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/RestaurantVouchersPayGreenApi.js b/src/api/RestaurantVouchersPayGreenApi.js new file mode 100644 index 00000000..a7281fb1 --- /dev/null +++ b/src/api/RestaurantVouchersPayGreenApi.js @@ -0,0 +1,468 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreatePayGreenConfigurationRequest from '../model/CreatePayGreenConfigurationRequest'; +import RestApiArrayResultRestaurantVoucherEligibleStore from '../model/RestApiArrayResultRestaurantVoucherEligibleStore'; +import RestApiArrayResultRestaurantVoucherPayGreenConfiguration from '../model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration'; +import RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary from '../model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultRestaurantVoucherPayGreenConfiguration from '../model/RestApiResultRestaurantVoucherPayGreenConfiguration'; +import RestApiResultRestaurantVoucherPayGreenStoreConfiguration from '../model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdatePayGreenConfigurationRequest from '../model/UpdatePayGreenConfigurationRequest'; +import UpdateStorePayGreenConfigurationRequest from '../model/UpdateStorePayGreenConfigurationRequest'; + +/** +* RestaurantVouchersPayGreen service. +* @module api/RestaurantVouchersPayGreenApi +* @version 1.0.0 +*/ +export default class RestaurantVouchersPayGreenApi { + + /** + * Constructs a new RestaurantVouchersPayGreenApi. + * @alias module:api/RestaurantVouchersPayGreenApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createPayGreenConfiguration operation. + * @callback module:api/RestaurantVouchersPayGreenApi~createPayGreenConfigurationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/CreatePayGreenConfigurationRequest} request + * @param {module:api/RestaurantVouchersPayGreenApi~createPayGreenConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} + */ + createPayGreenConfiguration(appId, request, callback) { + let postBody = request; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createPayGreenConfiguration"); + } + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling createPayGreenConfiguration"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultRestaurantVoucherPayGreenConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deletePayGreenConfiguration operation. + * @callback module:api/RestaurantVouchersPayGreenApi~deletePayGreenConfigurationCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} paygreenConfigurationId + * @param {module:api/RestaurantVouchersPayGreenApi~deletePayGreenConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + deletePayGreenConfiguration(appId, paygreenConfigurationId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deletePayGreenConfiguration"); + } + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId === undefined || paygreenConfigurationId === null) { + throw new Error("Missing the required parameter 'paygreenConfigurationId' when calling deletePayGreenConfiguration"); + } + + let pathParams = { + 'appId': appId, + 'paygreenConfigurationId': paygreenConfigurationId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getElegibleStores operation. + * @callback module:api/RestaurantVouchersPayGreenApi~getElegibleStoresCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRestaurantVoucherEligibleStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/RestaurantVouchersPayGreenApi~getElegibleStoresCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestaurantVoucherEligibleStore} + */ + getElegibleStores(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getElegibleStores"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultRestaurantVoucherEligibleStore; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen/stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPayGreenConfigurations operation. + * @callback module:api/RestaurantVouchersPayGreenApi~getPayGreenConfigurationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/RestaurantVouchersPayGreenApi~getPayGreenConfigurationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration} + */ + getPayGreenConfigurations(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getPayGreenConfigurations"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultRestaurantVoucherPayGreenConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreAvailablePayGreenConfigurations operation. + * @callback module:api/RestaurantVouchersPayGreenApi~getStoreAvailablePayGreenConfigurationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:api/RestaurantVouchersPayGreenApi~getStoreAvailablePayGreenConfigurationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary} + */ + getStoreAvailablePayGreenConfigurations(appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoreAvailablePayGreenConfigurations"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreAvailablePayGreenConfigurations"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}/available-configurations', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStorePayGreenConfiguration operation. + * @callback module:api/RestaurantVouchersPayGreenApi~getStorePayGreenConfigurationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:api/RestaurantVouchersPayGreenApi~getStorePayGreenConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration} + */ + getStorePayGreenConfiguration(appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStorePayGreenConfiguration"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStorePayGreenConfiguration"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultRestaurantVoucherPayGreenStoreConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the listPayGreenConfigurations operation. + * @callback module:api/RestaurantVouchersPayGreenApi~listPayGreenConfigurationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} paygreenConfigurationId + * @param {module:api/RestaurantVouchersPayGreenApi~listPayGreenConfigurationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} + */ + listPayGreenConfigurations(appId, paygreenConfigurationId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling listPayGreenConfigurations"); + } + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId === undefined || paygreenConfigurationId === null) { + throw new Error("Missing the required parameter 'paygreenConfigurationId' when calling listPayGreenConfigurations"); + } + + let pathParams = { + 'appId': appId, + 'paygreenConfigurationId': paygreenConfigurationId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultRestaurantVoucherPayGreenConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updatePayGreenConfiguration operation. + * @callback module:api/RestaurantVouchersPayGreenApi~updatePayGreenConfigurationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} paygreenConfigurationId + * @param {module:model/UpdatePayGreenConfigurationRequest} request + * @param {module:api/RestaurantVouchersPayGreenApi~updatePayGreenConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} + */ + updatePayGreenConfiguration(appId, paygreenConfigurationId, request, callback) { + let postBody = request; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updatePayGreenConfiguration"); + } + // verify the required parameter 'paygreenConfigurationId' is set + if (paygreenConfigurationId === undefined || paygreenConfigurationId === null) { + throw new Error("Missing the required parameter 'paygreenConfigurationId' when calling updatePayGreenConfiguration"); + } + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling updatePayGreenConfiguration"); + } + + let pathParams = { + 'appId': appId, + 'paygreenConfigurationId': paygreenConfigurationId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultRestaurantVoucherPayGreenConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen/{paygreenConfigurationId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateStorePayGreenConfiguration operation. + * @callback module:api/RestaurantVouchersPayGreenApi~updateStorePayGreenConfigurationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:model/UpdateStorePayGreenConfigurationRequest} request + * @param {module:api/RestaurantVouchersPayGreenApi~updateStorePayGreenConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration} + */ + updateStorePayGreenConfiguration(appId, storeId, request, callback) { + let postBody = request; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateStorePayGreenConfiguration"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateStorePayGreenConfiguration"); + } + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling updateStorePayGreenConfiguration"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultRestaurantVoucherPayGreenStoreConfiguration; + return this.apiClient.callApi( + '/api/v1.0/{appId}/restaurant-vouchers/paygreen/stores/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/SearchApi.js b/src/api/SearchApi.js new file mode 100644 index 00000000..867a263c --- /dev/null +++ b/src/api/SearchApi.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultRestaurant from '../model/RestApiPaginationResultRestaurant'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Search service. +* @module api/SearchApi +* @version 1.0.0 +*/ +export default class SearchApi { + + /** + * Constructs a new SearchApi. + * @alias module:api/SearchApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the searchRestaurants operation. + * @callback module:api/SearchApi~searchRestaurantsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultRestaurant} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} query + * @param {String} countryId + * @param {Object} opts Optional parameters + * @param {module:model/String} opts.includeArchivedStores + * @param {module:model/String} opts.searchType + * @param {module:model/String} opts.publishedStatus + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/SearchApi~searchRestaurantsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultRestaurant} + */ + searchRestaurants(query, countryId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'query' is set + if (query === undefined || query === null) { + throw new Error("Missing the required parameter 'query' when calling searchRestaurants"); + } + // verify the required parameter 'countryId' is set + if (countryId === undefined || countryId === null) { + throw new Error("Missing the required parameter 'countryId' when calling searchRestaurants"); + } + + let pathParams = { + }; + let queryParams = { + 'query': query, + 'countryId': countryId, + 'includeArchivedStores': opts['includeArchivedStores'], + 'searchType': opts['searchType'], + 'publishedStatus': opts['publishedStatus'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultRestaurant; + return this.apiClient.callApi( + '/api/v1.0/search/restaurants', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/SmsProviderCredentialsApi.js b/src/api/SmsProviderCredentialsApi.js new file mode 100644 index 00000000..3a68415c --- /dev/null +++ b/src/api/SmsProviderCredentialsApi.js @@ -0,0 +1,299 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiArrayResultSmsProviderCredential from '../model/RestApiArrayResultSmsProviderCredential'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultSmsProviderCredential from '../model/RestApiResultSmsProviderCredential'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import SmsProviderCredential from '../model/SmsProviderCredential'; +import SmsProviderCredentialUpdateRequest from '../model/SmsProviderCredentialUpdateRequest'; + +/** +* SmsProviderCredentials service. +* @module api/SmsProviderCredentialsApi +* @version 1.0.0 +*/ +export default class SmsProviderCredentialsApi { + + /** + * Constructs a new SmsProviderCredentialsApi. + * @alias module:api/SmsProviderCredentialsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getBrandSmsProviderCredentialByServiceType operation. + * @callback module:api/SmsProviderCredentialsApi~getBrandSmsProviderCredentialByServiceTypeCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultSmsProviderCredential} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} orgId + * @param {String} brandId + * @param {module:model/String} serviceType + * @param {Object} opts Optional parameters + * @param {Boolean} opts.withFallback + * @param {module:api/SmsProviderCredentialsApi~getBrandSmsProviderCredentialByServiceTypeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultSmsProviderCredential} + */ + getBrandSmsProviderCredentialByServiceType(orgId, brandId, serviceType, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'orgId' is set + if (orgId === undefined || orgId === null) { + throw new Error("Missing the required parameter 'orgId' when calling getBrandSmsProviderCredentialByServiceType"); + } + // verify the required parameter 'brandId' is set + if (brandId === undefined || brandId === null) { + throw new Error("Missing the required parameter 'brandId' when calling getBrandSmsProviderCredentialByServiceType"); + } + // verify the required parameter 'serviceType' is set + if (serviceType === undefined || serviceType === null) { + throw new Error("Missing the required parameter 'serviceType' when calling getBrandSmsProviderCredentialByServiceType"); + } + + let pathParams = { + 'orgId': orgId, + 'brandId': brandId, + 'serviceType': serviceType + }; + let queryParams = { + 'withFallback': opts['withFallback'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultSmsProviderCredential; + return this.apiClient.callApi( + '/api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBrandSmsProviderCredentials operation. + * @callback module:api/SmsProviderCredentialsApi~getBrandSmsProviderCredentialsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultSmsProviderCredential} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} orgId + * @param {String} brandId + * @param {module:api/SmsProviderCredentialsApi~getBrandSmsProviderCredentialsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultSmsProviderCredential} + */ + getBrandSmsProviderCredentials(orgId, brandId, callback) { + let postBody = null; + // verify the required parameter 'orgId' is set + if (orgId === undefined || orgId === null) { + throw new Error("Missing the required parameter 'orgId' when calling getBrandSmsProviderCredentials"); + } + // verify the required parameter 'brandId' is set + if (brandId === undefined || brandId === null) { + throw new Error("Missing the required parameter 'brandId' when calling getBrandSmsProviderCredentials"); + } + + let pathParams = { + 'orgId': orgId, + 'brandId': brandId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultSmsProviderCredential; + return this.apiClient.callApi( + '/api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the smsProviderCredentialDelete operation. + * @callback module:api/SmsProviderCredentialsApi~smsProviderCredentialDeleteCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultSmsProviderCredential} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} orgId + * @param {String} brandId + * @param {module:model/String} serviceType + * @param {module:api/SmsProviderCredentialsApi~smsProviderCredentialDeleteCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultSmsProviderCredential} + */ + smsProviderCredentialDelete(orgId, brandId, serviceType, callback) { + let postBody = null; + // verify the required parameter 'orgId' is set + if (orgId === undefined || orgId === null) { + throw new Error("Missing the required parameter 'orgId' when calling smsProviderCredentialDelete"); + } + // verify the required parameter 'brandId' is set + if (brandId === undefined || brandId === null) { + throw new Error("Missing the required parameter 'brandId' when calling smsProviderCredentialDelete"); + } + // verify the required parameter 'serviceType' is set + if (serviceType === undefined || serviceType === null) { + throw new Error("Missing the required parameter 'serviceType' when calling smsProviderCredentialDelete"); + } + + let pathParams = { + 'orgId': orgId, + 'brandId': brandId, + 'serviceType': serviceType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultSmsProviderCredential; + return this.apiClient.callApi( + '/api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the smsProviderCredentialUpdate operation. + * @callback module:api/SmsProviderCredentialsApi~smsProviderCredentialUpdateCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultSmsProviderCredential} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} orgId + * @param {String} brandId + * @param {module:model/String} serviceType + * @param {module:model/SmsProviderCredentialUpdateRequest} credential + * @param {module:api/SmsProviderCredentialsApi~smsProviderCredentialUpdateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultSmsProviderCredential} + */ + smsProviderCredentialUpdate(orgId, brandId, serviceType, credential, callback) { + let postBody = credential; + // verify the required parameter 'orgId' is set + if (orgId === undefined || orgId === null) { + throw new Error("Missing the required parameter 'orgId' when calling smsProviderCredentialUpdate"); + } + // verify the required parameter 'brandId' is set + if (brandId === undefined || brandId === null) { + throw new Error("Missing the required parameter 'brandId' when calling smsProviderCredentialUpdate"); + } + // verify the required parameter 'serviceType' is set + if (serviceType === undefined || serviceType === null) { + throw new Error("Missing the required parameter 'serviceType' when calling smsProviderCredentialUpdate"); + } + // verify the required parameter 'credential' is set + if (credential === undefined || credential === null) { + throw new Error("Missing the required parameter 'credential' when calling smsProviderCredentialUpdate"); + } + + let pathParams = { + 'orgId': orgId, + 'brandId': brandId, + 'serviceType': serviceType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultSmsProviderCredential; + return this.apiClient.callApi( + '/api/v1.0/sms-providers/orgs/{orgId}/brands/{brandId}/provider-credentials/{serviceType}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the smsProviderCredentialsBulkUpsert operation. + * @callback module:api/SmsProviderCredentialsApi~smsProviderCredentialsBulkUpsertCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultSmsProviderCredential} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Array.} credentials + * @param {module:api/SmsProviderCredentialsApi~smsProviderCredentialsBulkUpsertCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultSmsProviderCredential} + */ + smsProviderCredentialsBulkUpsert(credentials, callback) { + let postBody = credentials; + // verify the required parameter 'credentials' is set + if (credentials === undefined || credentials === null) { + throw new Error("Missing the required parameter 'credentials' when calling smsProviderCredentialsBulkUpsert"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultSmsProviderCredential; + return this.apiClient.callApi( + '/api/v1.0/sms-providers/bulk-upsert', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/StoreGroupsApi.js b/src/api/StoreGroupsApi.js new file mode 100644 index 00000000..78007686 --- /dev/null +++ b/src/api/StoreGroupsApi.js @@ -0,0 +1,415 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CustomerMessages from '../model/CustomerMessages'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultStoreGroup from '../model/RestApiPaginationResultStoreGroup'; +import RestApiPaginationResultStoreGroupExtended from '../model/RestApiPaginationResultStoreGroupExtended'; +import RestApiResultStoreGroup from '../model/RestApiResultStoreGroup'; +import RestApiResultStoreGroupBase from '../model/RestApiResultStoreGroupBase'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import StoreGroupBase from '../model/StoreGroupBase'; + +/** +* StoreGroups service. +* @module api/StoreGroupsApi +* @version 1.0.0 +*/ +export default class StoreGroupsApi { + + /** + * Constructs a new StoreGroupsApi. + * @alias module:api/StoreGroupsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the assignStoresToStoreGroup operation. + * @callback module:api/StoreGroupsApi~assignStoresToStoreGroupCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeGroupId + * @param {Array.} storeIds + * @param {module:api/StoreGroupsApi~assignStoresToStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + */ + assignStoresToStoreGroup(appId, storeGroupId, storeIds, callback) { + let postBody = storeIds; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling assignStoresToStoreGroup"); + } + // verify the required parameter 'storeGroupId' is set + if (storeGroupId === undefined || storeGroupId === null) { + throw new Error("Missing the required parameter 'storeGroupId' when calling assignStoresToStoreGroup"); + } + // verify the required parameter 'storeIds' is set + if (storeIds === undefined || storeIds === null) { + throw new Error("Missing the required parameter 'storeIds' when calling assignStoresToStoreGroup"); + } + + let pathParams = { + 'appId': appId, + 'storeGroupId': storeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/storegroups/{storeGroupId}/assignStores', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createStoreGroup operation. + * @callback module:api/StoreGroupsApi~createStoreGroupCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStoreGroup} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appNameId + * @param {module:model/StoreGroupBase} storeGroup + * @param {module:api/StoreGroupsApi~createStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreGroup} + */ + createStoreGroup(appNameId, storeGroup, callback) { + let postBody = storeGroup; + // verify the required parameter 'appNameId' is set + if (appNameId === undefined || appNameId === null) { + throw new Error("Missing the required parameter 'appNameId' when calling createStoreGroup"); + } + // verify the required parameter 'storeGroup' is set + if (storeGroup === undefined || storeGroup === null) { + throw new Error("Missing the required parameter 'storeGroup' when calling createStoreGroup"); + } + + let pathParams = { + 'appNameId': appNameId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStoreGroup; + return this.apiClient.callApi( + '/api/v1.0/{appNameId}/storegroups', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreGroup operation. + * @callback module:api/StoreGroupsApi~getStoreGroupCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStoreGroup} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeGroupId + * @param {module:api/StoreGroupsApi~getStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreGroup} + */ + getStoreGroup(storeGroupId, callback) { + let postBody = null; + // verify the required parameter 'storeGroupId' is set + if (storeGroupId === undefined || storeGroupId === null) { + throw new Error("Missing the required parameter 'storeGroupId' when calling getStoreGroup"); + } + + let pathParams = { + 'storeGroupId': storeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStoreGroup; + return this.apiClient.callApi( + '/api/v1.0/storegroups/{storeGroupId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreGroups operation. + * @callback module:api/StoreGroupsApi~getStoreGroupsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultStoreGroup} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appNameId + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/StoreGroupsApi~getStoreGroupsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStoreGroup} + */ + getStoreGroups(appNameId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appNameId' is set + if (appNameId === undefined || appNameId === null) { + throw new Error("Missing the required parameter 'appNameId' when calling getStoreGroups"); + } + + let pathParams = { + 'appNameId': appNameId + }; + let queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultStoreGroup; + return this.apiClient.callApi( + '/api/v1.0/{appNameId}/storegroups', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreGroupsExtended operation. + * @callback module:api/StoreGroupsApi~getStoreGroupsExtendedCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultStoreGroupExtended} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appNameId + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Number} opts.groupingRadius + * @param {module:api/StoreGroupsApi~getStoreGroupsExtendedCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStoreGroupExtended} + */ + getStoreGroupsExtended(appNameId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appNameId' is set + if (appNameId === undefined || appNameId === null) { + throw new Error("Missing the required parameter 'appNameId' when calling getStoreGroupsExtended"); + } + + let pathParams = { + 'appNameId': appNameId + }; + let queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + 'groupingRadius': opts['groupingRadius'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultStoreGroupExtended; + return this.apiClient.callApi( + '/api/v1.0/{appNameId}/storegroups/extended', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the removeStoreGroup operation. + * @callback module:api/StoreGroupsApi~removeStoreGroupCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeGroupId + * @param {module:api/StoreGroupsApi~removeStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + */ + removeStoreGroup(storeGroupId, callback) { + let postBody = null; + // verify the required parameter 'storeGroupId' is set + if (storeGroupId === undefined || storeGroupId === null) { + throw new Error("Missing the required parameter 'storeGroupId' when calling removeStoreGroup"); + } + + let pathParams = { + 'storeGroupId': storeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/storegroups/{storeGroupId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setCustomerMessages operation. + * @callback module:api/StoreGroupsApi~setCustomerMessagesCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeGroupId + * @param {module:model/CustomerMessages} customerMessages + * @param {module:api/StoreGroupsApi~setCustomerMessagesCallback} callback The callback function, accepting three arguments: error, data, response + */ + setCustomerMessages(storeGroupId, customerMessages, callback) { + let postBody = customerMessages; + // verify the required parameter 'storeGroupId' is set + if (storeGroupId === undefined || storeGroupId === null) { + throw new Error("Missing the required parameter 'storeGroupId' when calling setCustomerMessages"); + } + // verify the required parameter 'customerMessages' is set + if (customerMessages === undefined || customerMessages === null) { + throw new Error("Missing the required parameter 'customerMessages' when calling setCustomerMessages"); + } + + let pathParams = { + 'storeGroupId': storeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/storegroups/{storeGroupId}/CustomerMessages', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateStoreGroup operation. + * @callback module:api/StoreGroupsApi~updateStoreGroupCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStoreGroupBase} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeGroupId + * @param {module:model/StoreGroupBase} storeGroup + * @param {module:api/StoreGroupsApi~updateStoreGroupCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreGroupBase} + */ + updateStoreGroup(storeGroupId, storeGroup, callback) { + let postBody = storeGroup; + // verify the required parameter 'storeGroupId' is set + if (storeGroupId === undefined || storeGroupId === null) { + throw new Error("Missing the required parameter 'storeGroupId' when calling updateStoreGroup"); + } + // verify the required parameter 'storeGroup' is set + if (storeGroup === undefined || storeGroup === null) { + throw new Error("Missing the required parameter 'storeGroup' when calling updateStoreGroup"); + } + + let pathParams = { + 'storeGroupId': storeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStoreGroupBase; + return this.apiClient.callApi( + '/api/v1.0/storegroups/{storeGroupId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/StoreOrderCapacityApi.js b/src/api/StoreOrderCapacityApi.js new file mode 100644 index 00000000..9f5a285b --- /dev/null +++ b/src/api/StoreOrderCapacityApi.js @@ -0,0 +1,152 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultStoreOrderCapacityConfig from '../model/RestApiResultStoreOrderCapacityConfig'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import StoreOrderCapacityConfigEditModel from '../model/StoreOrderCapacityConfigEditModel'; + +/** +* StoreOrderCapacity service. +* @module api/StoreOrderCapacityApi +* @version 1.0.0 +*/ +export default class StoreOrderCapacityApi { + + /** + * Constructs a new StoreOrderCapacityApi. + * @alias module:api/StoreOrderCapacityApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getStoreOrderCapacity operation. + * @callback module:api/StoreOrderCapacityApi~getStoreOrderCapacityCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStoreOrderCapacityConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {module:api/StoreOrderCapacityApi~getStoreOrderCapacityCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreOrderCapacityConfig} + */ + getStoreOrderCapacity(appId, storeId, deliveryType, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoreOrderCapacity"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreOrderCapacity"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling getStoreOrderCapacity"); + } + + let pathParams = { + 'appId': appId, + 'storeId': storeId, + 'deliveryType': deliveryType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStoreOrderCapacityConfig; + return this.apiClient.callApi( + '/api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateStoreOrderCapacityConfig operation. + * @callback module:api/StoreOrderCapacityApi~updateStoreOrderCapacityConfigCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {String} appId + * @param {module:model/StoreOrderCapacityConfigEditModel} newOrderCapacityConfig + * @param {module:api/StoreOrderCapacityApi~updateStoreOrderCapacityConfigCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateStoreOrderCapacityConfig(storeId, deliveryType, appId, newOrderCapacityConfig, callback) { + let postBody = newOrderCapacityConfig; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateStoreOrderCapacityConfig"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling updateStoreOrderCapacityConfig"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateStoreOrderCapacityConfig"); + } + // verify the required parameter 'newOrderCapacityConfig' is set + if (newOrderCapacityConfig === undefined || newOrderCapacityConfig === null) { + throw new Error("Missing the required parameter 'newOrderCapacityConfig' when calling updateStoreOrderCapacityConfig"); + } + + let pathParams = { + 'storeId': storeId, + 'appId': appId + }; + let queryParams = { + 'deliveryType': deliveryType + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/storeordercapacity/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/StoresApi.js b/src/api/StoresApi.js new file mode 100644 index 00000000..2023a906 --- /dev/null +++ b/src/api/StoresApi.js @@ -0,0 +1,1962 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import BusinessHoursOverrideBase from '../model/BusinessHoursOverrideBase'; +import BusinessHoursPeriodBase from '../model/BusinessHoursPeriodBase'; +import Coordinates from '../model/Coordinates'; +import LeadTime from '../model/LeadTime'; +import PreOrderConfig from '../model/PreOrderConfig'; +import RestApiArrayResultBusinessHoursPeriod from '../model/RestApiArrayResultBusinessHoursPeriod'; +import RestApiArrayResultPreOrderTime from '../model/RestApiArrayResultPreOrderTime'; +import RestApiArrayResultProcessingFeeConfig from '../model/RestApiArrayResultProcessingFeeConfig'; +import RestApiArrayResultRestApiDefaultResponse from '../model/RestApiArrayResultRestApiDefaultResponse'; +import RestApiArrayResultStoreDeliveryZoneFeeConfig from '../model/RestApiArrayResultStoreDeliveryZoneFeeConfig'; +import RestApiArrayResultStoreStatistics from '../model/RestApiArrayResultStoreStatistics'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultBusinessHoursOverride from '../model/RestApiPaginationResultBusinessHoursOverride'; +import RestApiPaginationResultStore from '../model/RestApiPaginationResultStore'; +import RestApiPaginationResultStoreHeader from '../model/RestApiPaginationResultStoreHeader'; +import RestApiPaginationResultStoreValidationConfig from '../model/RestApiPaginationResultStoreValidationConfig'; +import RestApiResultAssignedBankAccount from '../model/RestApiResultAssignedBankAccount'; +import RestApiResultBusinessHoursOverride from '../model/RestApiResultBusinessHoursOverride'; +import RestApiResultBusinessHoursPeriod from '../model/RestApiResultBusinessHoursPeriod'; +import RestApiResultCoordinates from '../model/RestApiResultCoordinates'; +import RestApiResultOrderLeadTimes from '../model/RestApiResultOrderLeadTimes'; +import RestApiResultPreOrderConfig from '../model/RestApiResultPreOrderConfig'; +import RestApiResultProcessingFeeConfig from '../model/RestApiResultProcessingFeeConfig'; +import RestApiResultRestApiDefaultResponse from '../model/RestApiResultRestApiDefaultResponse'; +import RestApiResultServiceCharge from '../model/RestApiResultServiceCharge'; +import RestApiResultStore from '../model/RestApiResultStore'; +import RestApiResultStoreAddress from '../model/RestApiResultStoreAddress'; +import RestApiResultStoreEndOfDayReport from '../model/RestApiResultStoreEndOfDayReport'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import ServiceCharge from '../model/ServiceCharge'; +import StoreAddressBase from '../model/StoreAddressBase'; +import StoreAddressForm from '../model/StoreAddressForm'; +import StoreBase from '../model/StoreBase'; +import StoreCloneSettings from '../model/StoreCloneSettings'; +import StoreCollectionSettings from '../model/StoreCollectionSettings'; +import StoreCreateBase from '../model/StoreCreateBase'; +import StoreDeliveryZoneFeeConfigUpdateRequest from '../model/StoreDeliveryZoneFeeConfigUpdateRequest'; +import StoreFeeConfig from '../model/StoreFeeConfig'; + +/** +* Stores service. +* @module api/StoresApi +* @version 1.0.0 +*/ +export default class StoresApi { + + /** + * Constructs a new StoresApi. + * @alias module:api/StoresApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the archiveStore operation. + * @callback module:api/StoresApi~archiveStoreCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~archiveStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + archiveStore(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling archiveStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/archive', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the assignMenu operation. + * @callback module:api/StoresApi~assignMenuCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Number} menuId + * @param {module:api/StoresApi~assignMenuCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + */ + assignMenu(storeId, menuId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling assignMenu"); + } + // verify the required parameter 'menuId' is set + if (menuId === undefined || menuId === null) { + throw new Error("Missing the required parameter 'menuId' when calling assignMenu"); + } + + let pathParams = { + 'storeId': storeId, + 'menuId': menuId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultRestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/menu/{menuId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the cloneStore operation. + * @callback module:api/StoresApi~cloneStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/StoreCloneSettings} settings + * @param {module:api/StoresApi~cloneStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + cloneStore(storeId, settings, callback) { + let postBody = settings; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling cloneStore"); + } + // verify the required parameter 'settings' is set + if (settings === undefined || settings === null) { + throw new Error("Missing the required parameter 'settings' when calling cloneStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStore; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/clone', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the configureStoreServiceCharge operation. + * @callback module:api/StoresApi~configureStoreServiceChargeCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultServiceCharge} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/ServiceCharge} serviceCharge + * @param {module:api/StoresApi~configureStoreServiceChargeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultServiceCharge} + */ + configureStoreServiceCharge(storeId, serviceCharge, callback) { + let postBody = serviceCharge; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling configureStoreServiceCharge"); + } + // verify the required parameter 'serviceCharge' is set + if (serviceCharge === undefined || serviceCharge === null) { + throw new Error("Missing the required parameter 'serviceCharge' when calling configureStoreServiceCharge"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultServiceCharge; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/servicecharge', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createBusinessHoursOverrideByStoreId operation. + * @callback module:api/StoresApi~createBusinessHoursOverrideByStoreIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultBusinessHoursOverride} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/BusinessHoursOverrideBase} businessHoursOverride + * @param {module:api/StoresApi~createBusinessHoursOverrideByStoreIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBusinessHoursOverride} + */ + createBusinessHoursOverrideByStoreId(storeId, businessHoursOverride, callback) { + let postBody = businessHoursOverride; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling createBusinessHoursOverrideByStoreId"); + } + // verify the required parameter 'businessHoursOverride' is set + if (businessHoursOverride === undefined || businessHoursOverride === null) { + throw new Error("Missing the required parameter 'businessHoursOverride' when calling createBusinessHoursOverrideByStoreId"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultBusinessHoursOverride; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/businesshoursoverrides', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createStore operation. + * @callback module:api/StoresApi~createStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeGroupId + * @param {module:model/StoreCreateBase} store + * @param {module:api/StoresApi~createStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + createStore(storeGroupId, store, callback) { + let postBody = store; + // verify the required parameter 'storeGroupId' is set + if (storeGroupId === undefined || storeGroupId === null) { + throw new Error("Missing the required parameter 'storeGroupId' when calling createStore"); + } + // verify the required parameter 'store' is set + if (store === undefined || store === null) { + throw new Error("Missing the required parameter 'store' when calling createStore"); + } + + let pathParams = { + }; + let queryParams = { + 'storeGroupId': storeGroupId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStore; + return this.apiClient.callApi( + '/api/v1.0/stores', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createStoreInProperty operation. + * @callback module:api/StoresApi~createStoreInPropertyCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeGroupId + * @param {String} propertyId + * @param {module:model/StoreCreateBase} store + * @param {Object} opts Optional parameters + * @param {Boolean} opts.autoAssignMenu + * @param {module:api/StoresApi~createStoreInPropertyCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + createStoreInProperty(storeGroupId, propertyId, store, opts, callback) { + opts = opts || {}; + let postBody = store; + // verify the required parameter 'storeGroupId' is set + if (storeGroupId === undefined || storeGroupId === null) { + throw new Error("Missing the required parameter 'storeGroupId' when calling createStoreInProperty"); + } + // verify the required parameter 'propertyId' is set + if (propertyId === undefined || propertyId === null) { + throw new Error("Missing the required parameter 'propertyId' when calling createStoreInProperty"); + } + // verify the required parameter 'store' is set + if (store === undefined || store === null) { + throw new Error("Missing the required parameter 'store' when calling createStoreInProperty"); + } + + let pathParams = { + 'propertyId': propertyId + }; + let queryParams = { + 'storeGroupId': storeGroupId, + 'autoAssignMenu': opts['autoAssignMenu'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStore; + return this.apiClient.callApi( + '/api/v1.0/properties/{propertyId}/stores', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteBusinessHoursOverride operation. + * @callback module:api/StoresApi~deleteBusinessHoursOverrideCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Number} businessHoursOverrideId + * @param {module:api/StoresApi~deleteBusinessHoursOverrideCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + */ + deleteBusinessHoursOverride(storeId, businessHoursOverrideId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling deleteBusinessHoursOverride"); + } + // verify the required parameter 'businessHoursOverrideId' is set + if (businessHoursOverrideId === undefined || businessHoursOverrideId === null) { + throw new Error("Missing the required parameter 'businessHoursOverrideId' when calling deleteBusinessHoursOverride"); + } + + let pathParams = { + 'storeId': storeId, + 'businessHoursOverrideId': businessHoursOverrideId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultRestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBankAccountForStore operation. + * @callback module:api/StoresApi~getBankAccountForStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAssignedBankAccount} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~getBankAccountForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAssignedBankAccount} + */ + getBankAccountForStore(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getBankAccountForStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultAssignedBankAccount; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/bankaccount', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBusinessHours operation. + * @callback module:api/StoresApi~getBusinessHoursCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultBusinessHoursPeriod} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {module:api/StoresApi~getBusinessHoursCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultBusinessHoursPeriod} + */ + getBusinessHours(storeId, deliveryType, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getBusinessHours"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling getBusinessHours"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultBusinessHoursPeriod; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/availability/{deliveryType}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getBusinessHoursOverrideByStoreId operation. + * @callback module:api/StoresApi~getBusinessHoursOverrideByStoreIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultBusinessHoursOverride} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Object} opts Optional parameters + * @param {Date} opts.after + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/StoresApi~getBusinessHoursOverrideByStoreIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultBusinessHoursOverride} + */ + getBusinessHoursOverrideByStoreId(storeId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getBusinessHoursOverrideByStoreId"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + 'after': opts['after'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultBusinessHoursOverride; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/businesshoursoverrides', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getEndOfDayReport operation. + * @callback module:api/StoresApi~getEndOfDayReportCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStoreEndOfDayReport} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Object} opts Optional parameters + * @param {Date} opts.date + * @param {module:api/StoresApi~getEndOfDayReportCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreEndOfDayReport} + */ + getEndOfDayReport(storeId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getEndOfDayReport"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + 'date': opts['date'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStoreEndOfDayReport; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/endofdayreport', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPreOrderConfig operation. + * @callback module:api/StoresApi~getPreOrderConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultPreOrderConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {module:api/StoresApi~getPreOrderConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultPreOrderConfig} + */ + getPreOrderConfig(storeId, deliveryType, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getPreOrderConfig"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling getPreOrderConfig"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultPreOrderConfig; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPreOrderPreview operation. + * @callback module:api/StoresApi~getPreOrderPreviewCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultPreOrderTime} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {Object} opts Optional parameters + * @param {Number} opts.preOrderConfig_leadTimeMinutes Lead Time in Minutes + * @param {Number} opts.preOrderConfig_intervalMinutes Interval in minutes + * @param {Number} opts.preOrderConfig_maxOrderAheadDays Max Days to order ahead + * @param {Boolean} opts.preOrderConfig_includeAsap Show ASAP as option + * @param {Boolean} opts.preOrderConfig_includeMoreGranularInitialTime Granual Init' Time + * @param {String} opts.preOrderConfig_cutOffTimePreviousDayBasic Cut off time previous day + * @param {String} opts.preOrderConfig_cutOffTimeCurrentDayBasic Cut off time current day + * @param {module:model/String} opts.preOrderConfig_preOrderTimeDisplayType Type of time displayed. + * @param {Boolean} opts.preOrderConfig_alwaysAppearOpen Specifies whether a customer can pre-order outside the store opening hours or not. + * @param {Boolean} opts.preOrderConfig_requireExplicitSelectAlways Force customer to select collection time. + * @param {module:api/StoresApi~getPreOrderPreviewCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultPreOrderTime} + */ + getPreOrderPreview(storeId, deliveryType, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getPreOrderPreview"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling getPreOrderPreview"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + let queryParams = { + 'preOrderConfig.leadTimeMinutes': opts['preOrderConfig_leadTimeMinutes'], + 'preOrderConfig.intervalMinutes': opts['preOrderConfig_intervalMinutes'], + 'preOrderConfig.maxOrderAheadDays': opts['preOrderConfig_maxOrderAheadDays'], + 'preOrderConfig.includeAsap': opts['preOrderConfig_includeAsap'], + 'preOrderConfig.includeMoreGranularInitialTime': opts['preOrderConfig_includeMoreGranularInitialTime'], + 'preOrderConfig.cutOffTimePreviousDayBasic': opts['preOrderConfig_cutOffTimePreviousDayBasic'], + 'preOrderConfig.cutOffTimeCurrentDayBasic': opts['preOrderConfig_cutOffTimeCurrentDayBasic'], + 'preOrderConfig.preOrderTimeDisplayType': opts['preOrderConfig_preOrderTimeDisplayType'], + 'preOrderConfig.alwaysAppearOpen': opts['preOrderConfig_alwaysAppearOpen'], + 'preOrderConfig.requireExplicitSelectAlways': opts['preOrderConfig_requireExplicitSelectAlways'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultPreOrderTime; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getProcessingFeeConfigsByStoreId operation. + * @callback module:api/StoresApi~getProcessingFeeConfigsByStoreIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultProcessingFeeConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {Object} opts Optional parameters + * @param {String} opts.appNameId + * @param {module:api/StoresApi~getProcessingFeeConfigsByStoreIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultProcessingFeeConfig} + */ + getProcessingFeeConfigsByStoreId(storeId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getProcessingFeeConfigsByStoreId"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + 'appNameId': opts['appNameId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultProcessingFeeConfig; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/processingfeeconfigs', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getProcessingFeeConfigsByStoreIdAndPaymentAccountType operation. + * @callback module:api/StoresApi~getProcessingFeeConfigsByStoreIdAndPaymentAccountTypeCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultProcessingFeeConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} paymentAccountType + * @param {Object} opts Optional parameters + * @param {String} opts.appNameId + * @param {module:api/StoresApi~getProcessingFeeConfigsByStoreIdAndPaymentAccountTypeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultProcessingFeeConfig} + */ + getProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getProcessingFeeConfigsByStoreIdAndPaymentAccountType"); + } + // verify the required parameter 'paymentAccountType' is set + if (paymentAccountType === undefined || paymentAccountType === null) { + throw new Error("Missing the required parameter 'paymentAccountType' when calling getProcessingFeeConfigsByStoreIdAndPaymentAccountType"); + } + + let pathParams = { + 'storeId': storeId, + 'paymentAccountType': paymentAccountType + }; + let queryParams = { + 'appNameId': opts['appNameId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultProcessingFeeConfig; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreById operation. + * @callback module:api/StoresApi~getStoreByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~getStoreByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + getStoreById(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreById"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStore; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreDeliveryFeeConfig operation. + * @callback module:api/StoresApi~getStoreDeliveryFeeConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultStoreDeliveryZoneFeeConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~getStoreDeliveryFeeConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultStoreDeliveryZoneFeeConfig} + */ + getStoreDeliveryFeeConfig(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreDeliveryFeeConfig"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultStoreDeliveryZoneFeeConfig; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/feeConfig/deliveryZones', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreFeeConfig operation. + * @callback module:api/StoresApi~getStoreFeeConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/StoreFeeConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~getStoreFeeConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/StoreFeeConfig} + */ + getStoreFeeConfig(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreFeeConfig"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'FeeConfigId', 'StoreId', 'StartTime', 'PercentFeeCardOrders', 'PercentFeeCashOrders', 'PercentFeeCardOrdersWeb', 'PercentFeeCashOrdersWeb', 'PercentFeeCardOrdersKiosk', 'PercentFeeCashOrdersKiosk', 'FixedFeeCardOrdersKiosk', 'FixedFeeCashOrdersKiosk', 'PercentFeeCardOrdersKioskChargedToCustomerIncludingVat', 'FixedFeeCardOrdersKioskChargedToCustomerIncludingVat', 'PercentFeeCashOrdersKioskChargedToCustomerIncludingVat', 'FixedFeeCashOrdersKioskChargedToCustomerIncludingVat', 'FixedFeeCardOrders', 'FixedFeeCashOrders', 'PercentFeeCardOrdersChargedToCustomerIncludingVat', 'FixedFeeCardOrdersChargedToCustomerIncludingVat', 'PercentFeeCashOrdersChargedToCustomerIncludingVat', 'FixedFeeCashOrdersChargedToCustomerIncludingVat', 'PercentFeeTips', 'PercentFeeTipsCollection', 'PercentFeeTipsDelivery', 'TaxRatePercent', 'PercentFeeCardOrdersLocationService', 'PercentFeeCashOrdersLocationService', 'FixedFeeCardOrdersLocationService', 'FixedFeeCashOrdersLocationService', 'PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat', 'PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat', 'FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat', 'FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat', 'PercentFeeDelivery', 'FixedFeeDelivery', 'PercentFeeCardPosTransaction', 'FixedFeeCardPosTransaction', 'PercentFeeOrderWithGoogle', 'FixedFeeOrderWithGoogle']; + let returnType = StoreFeeConfig; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/feeConfig', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreHeadersByAppId operation. + * @callback module:api/StoresApi~getStoreHeadersByAppIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultStoreHeader} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.storeNameQuery + * @param {module:model/String} opts.salesChannelType + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/StoresApi~getStoreHeadersByAppIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStoreHeader} + */ + getStoreHeadersByAppId(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoreHeadersByAppId"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeNameQuery': opts['storeNameQuery'], + 'salesChannelType': opts['salesChannelType'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultStoreHeader; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/header', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreLeadTimes operation. + * @callback module:api/StoresApi~getStoreLeadTimesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderLeadTimes} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~getStoreLeadTimesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderLeadTimes} + */ + getStoreLeadTimes(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreLeadTimes"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultOrderLeadTimes; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/leadTimes', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreNetSales operation. + * @callback module:api/StoresApi~getStoreNetSalesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultStoreStatistics} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Array.} storeId + * @param {module:api/StoresApi~getStoreNetSalesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultStoreStatistics} + */ + getStoreNetSales(appId, storeId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoreNetSales"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreNetSales"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': this.apiClient.buildCollectionParam(storeId, 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultStoreStatistics; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores/stats', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoreServiceCharge operation. + * @callback module:api/StoresApi~getStoreServiceChargeCallback + * @param {String} error Error message, if any. + * @param {module:model/ServiceCharge} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~getStoreServiceChargeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/ServiceCharge} + */ + getStoreServiceCharge(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoreServiceCharge"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'StoreId', 'PercentageValue', 'Enabled', 'IsOptional', 'DisplayWithProcessingFee', 'IncludesVouchers']; + let returnType = ServiceCharge; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/servicecharge', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStores operation. + * @callback module:api/StoresApi~getStoresCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {Number} opts.storeGroupId + * @param {module:api/StoresApi~getStoresCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStore} + */ + getStores(opts, callback) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'searchQuery': opts['searchQuery'], + 'page': opts['page'], + 'limit': opts['limit'], + 'storeGroupId': opts['storeGroupId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultStore; + return this.apiClient.callApi( + '/api/v1.0/stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoresByAppId operation. + * @callback module:api/StoresApi~getStoresByAppIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.searchQuery + * @param {module:model/String} opts.salesChannelType + * @param {Boolean} opts.excludeUnpublished + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/StoresApi~getStoresByAppIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStore} + */ + getStoresByAppId(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoresByAppId"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'searchQuery': opts['searchQuery'], + 'salesChannelType': opts['salesChannelType'], + 'excludeUnpublished': opts['excludeUnpublished'], + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultStore; + return this.apiClient.callApi( + '/api/v1.0/{appId}/stores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getStoresByStoreIdWithValidations operation. + * @callback module:api/StoresApi~getStoresByStoreIdWithValidationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultStoreValidationConfig} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Array.} storeId + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/StoresApi~getStoresByStoreIdWithValidationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultStoreValidationConfig} + */ + getStoresByStoreIdWithValidations(storeId, appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getStoresByStoreIdWithValidations"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getStoresByStoreIdWithValidations"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'storeId': this.apiClient.buildCollectionParam(storeId, 'multi'), + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiPaginationResultStoreValidationConfig; + return this.apiClient.callApi( + '/api/v1.0/{appId}/storevalidation/kiosk', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the publishStore operation. + * @callback module:api/StoresApi~publishStoreCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~publishStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + publishStore(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling publishStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/publish', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the putStoreDeliveryFeeConfig operation. + * @callback module:api/StoresApi~putStoreDeliveryFeeConfigCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/StoreDeliveryZoneFeeConfigUpdateRequest} feeConfigUpdateRequest + * @param {module:api/StoresApi~putStoreDeliveryFeeConfigCallback} callback The callback function, accepting three arguments: error, data, response + */ + putStoreDeliveryFeeConfig(storeId, feeConfigUpdateRequest, callback) { + let postBody = feeConfigUpdateRequest; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling putStoreDeliveryFeeConfig"); + } + // verify the required parameter 'feeConfigUpdateRequest' is set + if (feeConfigUpdateRequest === undefined || feeConfigUpdateRequest === null) { + throw new Error("Missing the required parameter 'feeConfigUpdateRequest' when calling putStoreDeliveryFeeConfig"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Message', 'ErrorCode', 'StackTrace', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/feeConfig/deliveryZones', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setBusinessHours operation. + * @callback module:api/StoresApi~setBusinessHoursCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultBusinessHoursPeriod} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {module:model/BusinessHoursPeriodBase} businessHoursPeriod + * @param {module:api/StoresApi~setBusinessHoursCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBusinessHoursPeriod} + */ + setBusinessHours(storeId, deliveryType, businessHoursPeriod, callback) { + let postBody = businessHoursPeriod; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling setBusinessHours"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling setBusinessHours"); + } + // verify the required parameter 'businessHoursPeriod' is set + if (businessHoursPeriod === undefined || businessHoursPeriod === null) { + throw new Error("Missing the required parameter 'businessHoursPeriod' when calling setBusinessHours"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultBusinessHoursPeriod; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/availability/{deliveryType}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setPreOrdeEnabled operation. + * @callback module:api/StoresApi~setPreOrdeEnabledCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {Boolean} enabled + * @param {module:api/StoresApi~setPreOrdeEnabledCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + */ + setPreOrdeEnabled(storeId, deliveryType, enabled, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling setPreOrdeEnabled"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling setPreOrdeEnabled"); + } + // verify the required parameter 'enabled' is set + if (enabled === undefined || enabled === null) { + throw new Error("Missing the required parameter 'enabled' when calling setPreOrdeEnabled"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + let queryParams = { + 'enabled': enabled + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultRestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setStoreCollectionSettings operation. + * @callback module:api/StoresApi~setStoreCollectionSettingsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/StoreCollectionSettings} settings + * @param {Object} opts Optional parameters + * @param {Boolean} opts.inheritFromProperty + * @param {module:api/StoresApi~setStoreCollectionSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRestApiDefaultResponse} + */ + setStoreCollectionSettings(storeId, settings, opts, callback) { + opts = opts || {}; + let postBody = settings; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling setStoreCollectionSettings"); + } + // verify the required parameter 'settings' is set + if (settings === undefined || settings === null) { + throw new Error("Missing the required parameter 'settings' when calling setStoreCollectionSettings"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + 'inheritFromProperty': opts['inheritFromProperty'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultRestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/collectionsettings', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setStoreLeadTimes operation. + * @callback module:api/StoresApi~setStoreLeadTimesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultOrderLeadTimes} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/LeadTime} leadTime + * @param {module:api/StoresApi~setStoreLeadTimesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultOrderLeadTimes} + */ + setStoreLeadTimes(storeId, leadTime, callback) { + let postBody = leadTime; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling setStoreLeadTimes"); + } + // verify the required parameter 'leadTime' is set + if (leadTime === undefined || leadTime === null) { + throw new Error("Missing the required parameter 'leadTime' when calling setStoreLeadTimes"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultOrderLeadTimes; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/leadTimes', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the storesSetPropertyId operation. + * @callback module:api/StoresApi~storesSetPropertyIdCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {String} propertyId + * @param {module:api/StoresApi~storesSetPropertyIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + storesSetPropertyId(storeId, propertyId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling storesSetPropertyId"); + } + // verify the required parameter 'propertyId' is set + if (propertyId === undefined || propertyId === null) { + throw new Error("Missing the required parameter 'propertyId' when calling storesSetPropertyId"); + } + + let pathParams = { + 'storeId': storeId, + 'propertyId': propertyId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/propertyId/{propertyId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the supportedSalesChannelsTypes operation. + * @callback module:api/StoresApi~supportedSalesChannelsTypesCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} propertyId + * @param {Number} storeId + * @param {Array.} salesChannelTypes + * @param {module:api/StoresApi~supportedSalesChannelsTypesCallback} callback The callback function, accepting three arguments: error, data, response + */ + supportedSalesChannelsTypes(propertyId, storeId, salesChannelTypes, callback) { + let postBody = salesChannelTypes; + // verify the required parameter 'propertyId' is set + if (propertyId === undefined || propertyId === null) { + throw new Error("Missing the required parameter 'propertyId' when calling supportedSalesChannelsTypes"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling supportedSalesChannelsTypes"); + } + // verify the required parameter 'salesChannelTypes' is set + if (salesChannelTypes === undefined || salesChannelTypes === null) { + throw new Error("Missing the required parameter 'salesChannelTypes' when calling supportedSalesChannelsTypes"); + } + + let pathParams = { + 'propertyId': propertyId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/properties/{propertyId}/stores/{storeId}/supportedSalesChannels', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unpublishStore operation. + * @callback module:api/StoresApi~unpublishStoreCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StoresApi~unpublishStoreCallback} callback The callback function, accepting three arguments: error, data, response + */ + unpublishStore(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling unpublishStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/unpublish', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updatePreOrderConfig operation. + * @callback module:api/StoresApi~updatePreOrderConfigCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/String} deliveryType + * @param {module:model/PreOrderConfig} preOrderConfig + * @param {module:api/StoresApi~updatePreOrderConfigCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRestApiDefaultResponse} + */ + updatePreOrderConfig(storeId, deliveryType, preOrderConfig, callback) { + let postBody = preOrderConfig; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updatePreOrderConfig"); + } + // verify the required parameter 'deliveryType' is set + if (deliveryType === undefined || deliveryType === null) { + throw new Error("Missing the required parameter 'deliveryType' when calling updatePreOrderConfig"); + } + // verify the required parameter 'preOrderConfig' is set + if (preOrderConfig === undefined || preOrderConfig === null) { + throw new Error("Missing the required parameter 'preOrderConfig' when calling updatePreOrderConfig"); + } + + let pathParams = { + 'storeId': storeId, + 'deliveryType': deliveryType + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = RestApiArrayResultRestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateStore operation. + * @callback module:api/StoresApi~updateStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStore} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/StoreBase} store + * @param {module:api/StoresApi~updateStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStore} + */ + updateStore(storeId, store, callback) { + let postBody = store; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateStore"); + } + // verify the required parameter 'store' is set + if (store === undefined || store === null) { + throw new Error("Missing the required parameter 'store' when calling updateStore"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStore; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateStoreAddress operation. + * @callback module:api/StoresApi~updateStoreAddressCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStoreAddress} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/StoreAddressBase} storeAddress + * @param {module:api/StoresApi~updateStoreAddressCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStoreAddress} + */ + updateStoreAddress(storeId, storeAddress, callback) { + let postBody = storeAddress; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateStoreAddress"); + } + // verify the required parameter 'storeAddress' is set + if (storeAddress === undefined || storeAddress === null) { + throw new Error("Missing the required parameter 'storeAddress' when calling updateStoreAddress"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStoreAddress; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/address', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateStoreAddressCoordinates operation. + * @callback module:api/StoresApi~updateStoreAddressCoordinatesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultCoordinates} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/Coordinates} coordinates + * @param {Object} opts Optional parameters + * @param {String} opts.appNameId + * @param {module:api/StoresApi~updateStoreAddressCoordinatesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultCoordinates} + */ + updateStoreAddressCoordinates(storeId, coordinates, opts, callback) { + opts = opts || {}; + let postBody = coordinates; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateStoreAddressCoordinates"); + } + // verify the required parameter 'coordinates' is set + if (coordinates === undefined || coordinates === null) { + throw new Error("Missing the required parameter 'coordinates' when calling updateStoreAddressCoordinates"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + 'appNameId': opts['appNameId'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultCoordinates; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/address/coordinates', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateStoreAddressForm operation. + * @callback module:api/StoresApi~updateStoreAddressFormCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/StoreAddressForm} address + * @param {module:api/StoresApi~updateStoreAddressFormCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + updateStoreAddressForm(storeId, address, callback) { + let postBody = address; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling updateStoreAddressForm"); + } + // verify the required parameter 'address' is set + if (address === undefined || address === null) { + throw new Error("Missing the required parameter 'address' when calling updateStoreAddressForm"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/addressform', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/StripeCustomConnectApi.js b/src/api/StripeCustomConnectApi.js new file mode 100644 index 00000000..50a089ad --- /dev/null +++ b/src/api/StripeCustomConnectApi.js @@ -0,0 +1,490 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import BankAccountCreate from '../model/BankAccountCreate'; +import BankAccountDetailsUpdateRequest from '../model/BankAccountDetailsUpdateRequest'; +import RestApiArrayResultStripeCustomConnectedAccount from '../model/RestApiArrayResultStripeCustomConnectedAccount'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultBankAccountDetail from '../model/RestApiResultBankAccountDetail'; +import RestApiResultModelBase from '../model/RestApiResultModelBase'; +import RestApiResultStripeConnectedAccount from '../model/RestApiResultStripeConnectedAccount'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import StripeAccountLinkRequest from '../model/StripeAccountLinkRequest'; + +/** +* StripeCustomConnect service. +* @module api/StripeCustomConnectApi +* @version 1.0.0 +*/ +export default class StripeCustomConnectApi { + + /** + * Constructs a new StripeCustomConnectApi. + * @alias module:api/StripeCustomConnectApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createBankAccountAndConnectedAccount operation. + * @callback module:api/StripeCustomConnectApi~createBankAccountAndConnectedAccountCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultBankAccountDetail} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/BankAccountCreate} account + * @param {module:api/StripeCustomConnectApi~createBankAccountAndConnectedAccountCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBankAccountDetail} + */ + createBankAccountAndConnectedAccount(appId, account, callback) { + let postBody = account; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createBankAccountAndConnectedAccount"); + } + // verify the required parameter 'account' is set + if (account === undefined || account === null) { + throw new Error("Missing the required parameter 'account' when calling createBankAccountAndConnectedAccount"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultBankAccountDetail; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/bank-account', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createStripeConnectedAccount operation. + * @callback module:api/StripeCustomConnectApi~createStripeConnectedAccountCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeConnectedAccount} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {module:api/StripeCustomConnectApi~createStripeConnectedAccountCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeConnectedAccount} + */ + createStripeConnectedAccount(appId, bankAccountId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createStripeConnectedAccount"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling createStripeConnectedAccount"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStripeConnectedAccount; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/{bankAccountId}/create-update-account', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createStripeConnectedAccountLink operation. + * @callback module:api/StripeCustomConnectApi~createStripeConnectedAccountLinkCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeConnectedAccount} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} stripeConnectedAccountId + * @param {module:model/StripeAccountLinkRequest} stripeAccountLinkRequest + * @param {module:api/StripeCustomConnectApi~createStripeConnectedAccountLinkCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeConnectedAccount} + */ + createStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest, callback) { + let postBody = stripeAccountLinkRequest; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createStripeConnectedAccountLink"); + } + // verify the required parameter 'stripeConnectedAccountId' is set + if (stripeConnectedAccountId === undefined || stripeConnectedAccountId === null) { + throw new Error("Missing the required parameter 'stripeConnectedAccountId' when calling createStripeConnectedAccountLink"); + } + // verify the required parameter 'stripeAccountLinkRequest' is set + if (stripeAccountLinkRequest === undefined || stripeAccountLinkRequest === null) { + throw new Error("Missing the required parameter 'stripeAccountLinkRequest' when calling createStripeConnectedAccountLink"); + } + + let pathParams = { + 'appId': appId, + 'stripeConnectedAccountId': stripeConnectedAccountId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStripeConnectedAccount; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getCustomConnect operation. + * @callback module:api/StripeCustomConnectApi~getCustomConnectCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultStripeCustomConnectedAccount} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {String} appId + * @param {module:api/StripeCustomConnectApi~getCustomConnectCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultStripeCustomConnectedAccount} + */ + getCustomConnect(storeId, appId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getCustomConnect"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getCustomConnect"); + } + + let pathParams = { + 'storeId': storeId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultStripeCustomConnectedAccount; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getVerificationStatus operation. + * @callback module:api/StripeCustomConnectApi~getVerificationStatusCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeConnectedAccount} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} stripeConnectedAccountId + * @param {module:api/StripeCustomConnectApi~getVerificationStatusCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeConnectedAccount} + */ + getVerificationStatus(appId, stripeConnectedAccountId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getVerificationStatus"); + } + // verify the required parameter 'stripeConnectedAccountId' is set + if (stripeConnectedAccountId === undefined || stripeConnectedAccountId === null) { + throw new Error("Missing the required parameter 'stripeConnectedAccountId' when calling getVerificationStatus"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'stripeConnectedAccountId': stripeConnectedAccountId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStripeConnectedAccount; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/verification-status', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setBankAccountBusinessType operation. + * @callback module:api/StripeCustomConnectApi~setBankAccountBusinessTypeCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultBankAccountDetail} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {String} businessType + * @param {module:api/StripeCustomConnectApi~setBankAccountBusinessTypeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultBankAccountDetail} + */ + setBankAccountBusinessType(appId, bankAccountId, businessType, callback) { + let postBody = businessType; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setBankAccountBusinessType"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling setBankAccountBusinessType"); + } + // verify the required parameter 'businessType' is set + if (businessType === undefined || businessType === null) { + throw new Error("Missing the required parameter 'businessType' when calling setBankAccountBusinessType"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultBankAccountDetail; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the stripeCustomConnectRefresh operation. + * @callback module:api/StripeCustomConnectApi~stripeCustomConnectRefreshCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} linkRequestId + * @param {String} appId + * @param {module:api/StripeCustomConnectApi~stripeCustomConnectRefreshCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + stripeCustomConnectRefresh(linkRequestId, appId, callback) { + let postBody = null; + // verify the required parameter 'linkRequestId' is set + if (linkRequestId === undefined || linkRequestId === null) { + throw new Error("Missing the required parameter 'linkRequestId' when calling stripeCustomConnectRefresh"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling stripeCustomConnectRefresh"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'linkRequestId': linkRequestId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/refresh-link', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateBankAccountDetails operation. + * @callback module:api/StripeCustomConnectApi~updateBankAccountDetailsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStripeConnectedAccount} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} bankAccountId + * @param {module:model/BankAccountDetailsUpdateRequest} updateRequest + * @param {module:api/StripeCustomConnectApi~updateBankAccountDetailsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStripeConnectedAccount} + */ + updateBankAccountDetails(appId, bankAccountId, updateRequest, callback) { + let postBody = updateRequest; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateBankAccountDetails"); + } + // verify the required parameter 'bankAccountId' is set + if (bankAccountId === undefined || bankAccountId === null) { + throw new Error("Missing the required parameter 'bankAccountId' when calling updateBankAccountDetails"); + } + // verify the required parameter 'updateRequest' is set + if (updateRequest === undefined || updateRequest === null) { + throw new Error("Missing the required parameter 'updateRequest' when calling updateBankAccountDetails"); + } + + let pathParams = { + 'appId': appId, + 'bankAccountId': bankAccountId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStripeConnectedAccount; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/{bankAccountId}/update-bank-account-details', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updatePayoutSchedule operation. + * @callback module:api/StripeCustomConnectApi~updatePayoutScheduleCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultModelBase} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} stripeConnectedAccountId + * @param {String} interval + * @param {module:api/StripeCustomConnectApi~updatePayoutScheduleCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultModelBase} + */ + updatePayoutSchedule(appId, stripeConnectedAccountId, interval, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updatePayoutSchedule"); + } + // verify the required parameter 'stripeConnectedAccountId' is set + if (stripeConnectedAccountId === undefined || stripeConnectedAccountId === null) { + throw new Error("Missing the required parameter 'stripeConnectedAccountId' when calling updatePayoutSchedule"); + } + // verify the required parameter 'interval' is set + if (interval === undefined || interval === null) { + throw new Error("Missing the required parameter 'interval' when calling updatePayoutSchedule"); + } + + let pathParams = { + 'appId': appId, + 'stripeConnectedAccountId': stripeConnectedAccountId, + 'interval': interval + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultModelBase; + return this.apiClient.callApi( + '/api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/StuartApi.js b/src/api/StuartApi.js new file mode 100644 index 00000000..17f92359 --- /dev/null +++ b/src/api/StuartApi.js @@ -0,0 +1,224 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultJobResponse from '../model/RestApiResultJobResponse'; +import RestApiResultStuartSettings from '../model/RestApiResultStuartSettings'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import StuartSettings from '../model/StuartSettings'; + +/** +* Stuart service. +* @module api/StuartApi +* @version 1.0.0 +*/ +export default class StuartApi { + + /** + * Constructs a new StuartApi. + * @alias module:api/StuartApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the stuartCancelJob operation. + * @callback module:api/StuartApi~stuartCancelJobCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} jobId + * @param {Number} storeId + * @param {module:api/StuartApi~stuartCancelJobCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + stuartCancelJob(jobId, storeId, callback) { + let postBody = null; + // verify the required parameter 'jobId' is set + if (jobId === undefined || jobId === null) { + throw new Error("Missing the required parameter 'jobId' when calling stuartCancelJob"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling stuartCancelJob"); + } + + let pathParams = { + 'jobId': jobId + }; + let queryParams = { + 'storeId': storeId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/stuart/jobs/{jobId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the stuartGetJob operation. + * @callback module:api/StuartApi~stuartGetJobCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultJobResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} jobId + * @param {Number} storeId + * @param {module:api/StuartApi~stuartGetJobCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultJobResponse} + */ + stuartGetJob(jobId, storeId, callback) { + let postBody = null; + // verify the required parameter 'jobId' is set + if (jobId === undefined || jobId === null) { + throw new Error("Missing the required parameter 'jobId' when calling stuartGetJob"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling stuartGetJob"); + } + + let pathParams = { + 'jobId': jobId + }; + let queryParams = { + 'storeId': storeId + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultJobResponse; + return this.apiClient.callApi( + '/api/v1.0/stuart/jobs/{jobId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the stuartGetStuartSettings operation. + * @callback module:api/StuartApi~stuartGetStuartSettingsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultStuartSettings} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/StuartApi~stuartGetStuartSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultStuartSettings} + */ + stuartGetStuartSettings(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling stuartGetStuartSettings"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultStuartSettings; + return this.apiClient.callApi( + '/api/v1.0/stuart/settings/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the stuartPostStuartSettings operation. + * @callback module:api/StuartApi~stuartPostStuartSettingsCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/StuartSettings} stuartSettings + * @param {module:api/StuartApi~stuartPostStuartSettingsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + stuartPostStuartSettings(storeId, stuartSettings, callback) { + let postBody = stuartSettings; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling stuartPostStuartSettings"); + } + // verify the required parameter 'stuartSettings' is set + if (stuartSettings === undefined || stuartSettings === null) { + throw new Error("Missing the required parameter 'stuartSettings' when calling stuartPostStuartSettings"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/stuart/settings/{storeId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/SubscriptionsApi.js b/src/api/SubscriptionsApi.js new file mode 100644 index 00000000..e566c9a4 --- /dev/null +++ b/src/api/SubscriptionsApi.js @@ -0,0 +1,184 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiArrayResultSubscriptionSummary from '../model/RestApiArrayResultSubscriptionSummary'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultHasPaymentMethodResponse from '../model/RestApiResultHasPaymentMethodResponse'; +import RestApiResultSubscription from '../model/RestApiResultSubscription'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Subscriptions service. +* @module api/SubscriptionsApi +* @version 1.0.0 +*/ +export default class SubscriptionsApi { + + /** + * Constructs a new SubscriptionsApi. + * @alias module:api/SubscriptionsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getSubscriptionById operation. + * @callback module:api/SubscriptionsApi~getSubscriptionByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultSubscription} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} subscriptionId + * @param {module:api/SubscriptionsApi~getSubscriptionByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultSubscription} + */ + getSubscriptionById(appId, subscriptionId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getSubscriptionById"); + } + // verify the required parameter 'subscriptionId' is set + if (subscriptionId === undefined || subscriptionId === null) { + throw new Error("Missing the required parameter 'subscriptionId' when calling getSubscriptionById"); + } + + let pathParams = { + 'appId': appId, + 'subscriptionId': subscriptionId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultSubscription; + return this.apiClient.callApi( + '/api/v1.0/{appId}/subscriptions/{subscriptionId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getSubscriptionsForApp operation. + * @callback module:api/SubscriptionsApi~getSubscriptionsForAppCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultSubscriptionSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Boolean} opts.excludeNotOwnedSubscriptions + * @param {Array.} opts.storeId + * @param {Boolean} opts.excludeCancelledSubscriptions + * @param {module:api/SubscriptionsApi~getSubscriptionsForAppCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultSubscriptionSummary} + */ + getSubscriptionsForApp(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getSubscriptionsForApp"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'excludeNotOwnedSubscriptions': opts['excludeNotOwnedSubscriptions'], + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi'), + 'excludeCancelledSubscriptions': opts['excludeCancelledSubscriptions'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultSubscriptionSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/subscriptions', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the hasCustomerGotPaymentMethodOnFile operation. + * @callback module:api/SubscriptionsApi~hasCustomerGotPaymentMethodOnFileCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultHasPaymentMethodResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {String} opts.email + * @param {module:api/SubscriptionsApi~hasCustomerGotPaymentMethodOnFileCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultHasPaymentMethodResponse} + */ + hasCustomerGotPaymentMethodOnFile(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling hasCustomerGotPaymentMethodOnFile"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'email': opts['email'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultHasPaymentMethodResponse; + return this.apiClient.callApi( + '/api/v1.0/{appId}/subscriptions/hasPaymentMethod', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/TeammatesApi.js b/src/api/TeammatesApi.js new file mode 100644 index 00000000..25cbdf96 --- /dev/null +++ b/src/api/TeammatesApi.js @@ -0,0 +1,490 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateTeammate from '../model/CreateTeammate'; +import RestApiArrayResultPendingInvitation from '../model/RestApiArrayResultPendingInvitation'; +import RestApiArrayResultRedeemInvitationResult from '../model/RestApiArrayResultRedeemInvitationResult'; +import RestApiArrayResultTeammate from '../model/RestApiArrayResultTeammate'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultAcceptInvitationResult from '../model/RestApiResultAcceptInvitationResult'; +import RestApiResultRedeemInvitationResult from '../model/RestApiResultRedeemInvitationResult'; +import RestApiResultTeammate from '../model/RestApiResultTeammate'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import TeammateBase from '../model/TeammateBase'; + +/** +* Teammates service. +* @module api/TeammatesApi +* @version 1.0.0 +*/ +export default class TeammatesApi { + + /** + * Constructs a new TeammatesApi. + * @alias module:api/TeammatesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createTeammate operation. + * @callback module:api/TeammatesApi~createTeammateCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultTeammate} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/CreateTeammate} teammate + * @param {module:api/TeammatesApi~createTeammateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultTeammate} + */ + createTeammate(appId, teammate, callback) { + let postBody = teammate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createTeammate"); + } + // verify the required parameter 'teammate' is set + if (teammate === undefined || teammate === null) { + throw new Error("Missing the required parameter 'teammate' when calling createTeammate"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultTeammate; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteTeammate operation. + * @callback module:api/TeammatesApi~deleteTeammateCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} id + * @param {module:api/TeammatesApi~deleteTeammateCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteTeammate(appId, id, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteTeammate"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deleteTeammate"); + } + + let pathParams = { + 'appId': appId, + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/{id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getTeammateByAppIdAndTeammateId operation. + * @callback module:api/TeammatesApi~getTeammateByAppIdAndTeammateIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultTeammate} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} id + * @param {module:api/TeammatesApi~getTeammateByAppIdAndTeammateIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultTeammate} + */ + getTeammateByAppIdAndTeammateId(appId, id, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getTeammateByAppIdAndTeammateId"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getTeammateByAppIdAndTeammateId"); + } + + let pathParams = { + 'appId': appId, + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultTeammate; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getTeammatesByAppId operation. + * @callback module:api/TeammatesApi~getTeammatesByAppIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultTeammate} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/TeammatesApi~getTeammatesByAppIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultTeammate} + */ + getTeammatesByAppId(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getTeammatesByAppId"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultTeammate; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the grantaccess operation. + * @callback module:api/TeammatesApi~grantaccessCallback + * @param {String} error Error message, if any. + * @param {Object} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/CreateTeammate} teammate + * @param {module:api/TeammatesApi~grantaccessCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link Object} + */ + grantaccess(appId, teammate, callback) { + let postBody = teammate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling grantaccess"); + } + // verify the required parameter 'teammate' is set + if (teammate === undefined || teammate === null) { + throw new Error("Missing the required parameter 'teammate' when calling grantaccess"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = Object; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/grantaccess', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the redeemInvitation operation. + * @callback module:api/TeammatesApi~redeemInvitationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultRedeemInvitationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} otc + * @param {String} appId + * @param {module:api/TeammatesApi~redeemInvitationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultRedeemInvitationResult} + */ + redeemInvitation(otc, appId, callback) { + let postBody = null; + // verify the required parameter 'otc' is set + if (otc === undefined || otc === null) { + throw new Error("Missing the required parameter 'otc' when calling redeemInvitation"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling redeemInvitation"); + } + + let pathParams = { + 'otc': otc, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultRedeemInvitationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/redeem/{otc}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the teammatesAcceptInvitation operation. + * @callback module:api/TeammatesApi~teammatesAcceptInvitationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultAcceptInvitationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} otc + * @param {String} appId + * @param {module:api/TeammatesApi~teammatesAcceptInvitationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultAcceptInvitationResult} + */ + teammatesAcceptInvitation(otc, appId, callback) { + let postBody = null; + // verify the required parameter 'otc' is set + if (otc === undefined || otc === null) { + throw new Error("Missing the required parameter 'otc' when calling teammatesAcceptInvitation"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling teammatesAcceptInvitation"); + } + + let pathParams = { + 'otc': otc, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultAcceptInvitationResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/accept/{otc}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the teammatesAcceptInvitations operation. + * @callback module:api/TeammatesApi~teammatesAcceptInvitationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultRedeemInvitationResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/TeammatesApi~teammatesAcceptInvitationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultRedeemInvitationResult} + */ + teammatesAcceptInvitations(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultRedeemInvitationResult; + return this.apiClient.callApi( + '/api/v1.0/teammates/acceptInvitations', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the teammatesPendingInvitations operation. + * @callback module:api/TeammatesApi~teammatesPendingInvitationsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultPendingInvitation} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/TeammatesApi~teammatesPendingInvitationsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultPendingInvitation} + */ + teammatesPendingInvitations(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiArrayResultPendingInvitation; + return this.apiClient.callApi( + '/api/v1.0/teammates/pending-invitations', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateTeammate operation. + * @callback module:api/TeammatesApi~updateTeammateCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultTeammate} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} id + * @param {module:model/TeammateBase} teammate + * @param {module:api/TeammatesApi~updateTeammateCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultTeammate} + */ + updateTeammate(appId, id, teammate, callback) { + let postBody = teammate; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateTeammate"); + } + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling updateTeammate"); + } + // verify the required parameter 'teammate' is set + if (teammate === undefined || teammate === null) { + throw new Error("Missing the required parameter 'teammate' when calling updateTeammate"); + } + + let pathParams = { + 'appId': appId, + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultTeammate; + return this.apiClient.callApi( + '/api/v1.0/{appId}/teammates/{id}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/TerminalIotApi.js b/src/api/TerminalIotApi.js new file mode 100644 index 00000000..0dc9b765 --- /dev/null +++ b/src/api/TerminalIotApi.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultKioskIotConnectionParameters from '../model/RestApiResultKioskIotConnectionParameters'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* TerminalIot service. +* @module api/TerminalIotApi +* @version 1.0.0 +*/ +export default class TerminalIotApi { + + /** + * Constructs a new TerminalIotApi. + * @alias module:api/TerminalIotApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the getTerminalIotConnection operation. + * @callback module:api/TerminalIotApi~getTerminalIotConnectionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultKioskIotConnectionParameters} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/TerminalIotApi~getTerminalIotConnectionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultKioskIotConnectionParameters} + */ + getTerminalIotConnection(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultKioskIotConnectionParameters; + return this.apiClient.callApi( + '/api/v1.0/terminaliot/connect', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/TipsApi.js b/src/api/TipsApi.js new file mode 100644 index 00000000..de327155 --- /dev/null +++ b/src/api/TipsApi.js @@ -0,0 +1,129 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultTipConfiguration from '../model/RestApiResultTipConfiguration'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import UpdateTipConfiguration from '../model/UpdateTipConfiguration'; + +/** +* Tips service. +* @module api/TipsApi +* @version 1.0.0 +*/ +export default class TipsApi { + + /** + * Constructs a new TipsApi. + * @alias module:api/TipsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the tipConfigGet operation. + * @callback module:api/TipsApi~tipConfigGetCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultTipConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:api/TipsApi~tipConfigGetCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultTipConfiguration} + */ + tipConfigGet(storeId, callback) { + let postBody = null; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling tipConfigGet"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultTipConfiguration; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/tipconfig', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the tipConfigUpsert operation. + * @callback module:api/TipsApi~tipConfigUpsertCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultTipConfiguration} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} storeId + * @param {module:model/UpdateTipConfiguration} updateConfig + * @param {module:api/TipsApi~tipConfigUpsertCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultTipConfiguration} + */ + tipConfigUpsert(storeId, updateConfig, callback) { + let postBody = updateConfig; + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling tipConfigUpsert"); + } + // verify the required parameter 'updateConfig' is set + if (updateConfig === undefined || updateConfig === null) { + throw new Error("Missing the required parameter 'updateConfig' when calling tipConfigUpsert"); + } + + let pathParams = { + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultTipConfiguration; + return this.apiClient.callApi( + '/api/v1.0/stores/{storeId}/tipconfig', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/UsersApi.js b/src/api/UsersApi.js new file mode 100644 index 00000000..961e271b --- /dev/null +++ b/src/api/UsersApi.js @@ -0,0 +1,868 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiArrayResultUserFlipdishAccount from '../model/RestApiArrayResultUserFlipdishAccount'; +import RestApiArrayResultUserNote from '../model/RestApiArrayResultUserNote'; +import RestApiArrayResultUserStoreInfo from '../model/RestApiArrayResultUserStoreInfo'; +import RestApiDefaultResponse from '../model/RestApiDefaultResponse'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultUserSearch from '../model/RestApiPaginationResultUserSearch'; +import RestApiResultUserInfo from '../model/RestApiResultUserInfo'; +import RestApiResultUserRole from '../model/RestApiResultUserRole'; +import RestApiStringArrayResult from '../model/RestApiStringArrayResult'; +import RestApiStringResult from '../model/RestApiStringResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; + +/** +* Users service. +* @module api/UsersApi +* @version 1.0.0 +*/ +export default class UsersApi { + + /** + * Constructs a new UsersApi. + * @alias module:api/UsersApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addUserNote operation. + * @callback module:api/UsersApi~addUserNoteCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {String} note + * @param {module:api/UsersApi~addUserNoteCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + addUserNote(userId, note, callback) { + let postBody = note; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling addUserNote"); + } + // verify the required parameter 'note' is set + if (note === undefined || note === null) { + throw new Error("Missing the required parameter 'note' when calling addUserNote"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/AddUserNote', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the addUserToRole operation. + * @callback module:api/UsersApi~addUserToRoleCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultUserRole} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {String} roleName + * @param {module:api/UsersApi~addUserToRoleCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultUserRole} + */ + addUserToRole(userId, roleName, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling addUserToRole"); + } + // verify the required parameter 'roleName' is set + if (roleName === undefined || roleName === null) { + throw new Error("Missing the required parameter 'roleName' when calling addUserToRole"); + } + + let pathParams = { + 'userId': userId, + 'roleName': roleName + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiResultUserRole; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/AddUserToRole/{roleName}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the anonymizeUser operation. + * @callback module:api/UsersApi~anonymizeUserCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~anonymizeUserCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + anonymizeUser(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling anonymizeUser"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/AnonymizeUser', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the blockUserPhoneNumber operation. + * @callback module:api/UsersApi~blockUserPhoneNumberCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~blockUserPhoneNumberCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + blockUserPhoneNumber(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling blockUserPhoneNumber"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/BlockUserPhoneNumber', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getPreviousOrderCountForStore operation. + * @callback module:api/UsersApi~getPreviousOrderCountForStoreCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {Number} storeId + * @param {module:api/UsersApi~getPreviousOrderCountForStoreCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringResult} + */ + getPreviousOrderCountForStore(userId, storeId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getPreviousOrderCountForStore"); + } + // verify the required parameter 'storeId' is set + if (storeId === undefined || storeId === null) { + throw new Error("Missing the required parameter 'storeId' when calling getPreviousOrderCountForStore"); + } + + let pathParams = { + 'userId': userId, + 'storeId': storeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiStringResult; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/previousordercount/{storeId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRestaurantUserAccounts operation. + * @callback module:api/UsersApi~getRestaurantUserAccountsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultUserFlipdishAccount} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~getRestaurantUserAccountsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultUserFlipdishAccount} + */ + getRestaurantUserAccounts(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getRestaurantUserAccounts"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiArrayResultUserFlipdishAccount; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/RestaurantUserAccounts', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRestaurantUserStores operation. + * @callback module:api/UsersApi~getRestaurantUserStoresCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultUserStoreInfo} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~getRestaurantUserStoresCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultUserStoreInfo} + */ + getRestaurantUserStores(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getRestaurantUserStores"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiArrayResultUserStoreInfo; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/RestaurantUserStores', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRoles operation. + * @callback module:api/UsersApi~getRolesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringArrayResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/UsersApi~getRolesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringArrayResult} + */ + getRoles(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiStringArrayResult; + return this.apiClient.callApi( + '/api/v1.0/users/roles', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getRolesAndUnassignedRoles operation. + * @callback module:api/UsersApi~getRolesAndUnassignedRolesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultUserRole} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~getRolesAndUnassignedRolesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultUserRole} + */ + getRolesAndUnassignedRoles(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getRolesAndUnassignedRoles"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiResultUserRole; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/roles', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getUserById operation. + * @callback module:api/UsersApi~getUserByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultUserInfo} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~getUserByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultUserInfo} + */ + getUserById(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getUserById"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiResultUserInfo; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getUserNotes operation. + * @callback module:api/UsersApi~getUserNotesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultUserNote} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~getUserNotesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultUserNote} + */ + getUserNotes(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getUserNotes"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiArrayResultUserNote; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/UserNotes', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the markUserAsFraudulent operation. + * @callback module:api/UsersApi~markUserAsFraudulentCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~markUserAsFraudulentCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + markUserAsFraudulent(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling markUserAsFraudulent"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/MarkUserAsFraudulent', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the markUserAsSuspicious operation. + * @callback module:api/UsersApi~markUserAsSuspiciousCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~markUserAsSuspiciousCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + markUserAsSuspicious(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling markUserAsSuspicious"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/MarkUserAsSuspicious', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the removeUserFromRole operation. + * @callback module:api/UsersApi~removeUserFromRoleCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultUserRole} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {String} roleName + * @param {module:api/UsersApi~removeUserFromRoleCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultUserRole} + */ + removeUserFromRole(userId, roleName, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling removeUserFromRole"); + } + // verify the required parameter 'roleName' is set + if (roleName === undefined || roleName === null) { + throw new Error("Missing the required parameter 'roleName' when calling removeUserFromRole"); + } + + let pathParams = { + 'userId': userId, + 'roleName': roleName + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiResultUserRole; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/RemoveUserFromRole/{roleName}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the resetMfa operation. + * @callback module:api/UsersApi~resetMfaCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~resetMfaCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + resetMfa(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling resetMfa"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/ResetMfa', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the searchUsers operation. + * @callback module:api/UsersApi~searchUsersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultUserSearch} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} searchQuery + * @param {Object} opts Optional parameters + * @param {Boolean} opts.hasUserLoggedIn + * @param {module:model/String} opts.userDiscriminator + * @param {module:model/String} opts.searchIn + * @param {Number} opts.pageIndex + * @param {Number} opts.pageSize + * @param {module:api/UsersApi~searchUsersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultUserSearch} + */ + searchUsers(searchQuery, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'searchQuery' is set + if (searchQuery === undefined || searchQuery === null) { + throw new Error("Missing the required parameter 'searchQuery' when calling searchUsers"); + } + + let pathParams = { + }; + let queryParams = { + 'searchQuery': searchQuery, + 'hasUserLoggedIn': opts['hasUserLoggedIn'], + 'userDiscriminator': opts['userDiscriminator'], + 'searchIn': opts['searchIn'], + 'pageIndex': opts['pageIndex'], + 'pageSize': opts['pageSize'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiPaginationResultUserSearch; + return this.apiClient.callApi( + '/api/v1.0/users/search', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setCustomerName operation. + * @callback module:api/UsersApi~setCustomerNameCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {String} customerName + * @param {module:api/UsersApi~setCustomerNameCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + setCustomerName(userId, customerName, callback) { + let postBody = customerName; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling setCustomerName"); + } + // verify the required parameter 'customerName' is set + if (customerName === undefined || customerName === null) { + throw new Error("Missing the required parameter 'customerName' when calling setCustomerName"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/SetCustomerName', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setUserLanguage operation. + * @callback module:api/UsersApi~setUserLanguageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {String} languageId + * @param {module:api/UsersApi~setUserLanguageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + setUserLanguage(userId, languageId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling setUserLanguage"); + } + // verify the required parameter 'languageId' is set + if (languageId === undefined || languageId === null) { + throw new Error("Missing the required parameter 'languageId' when calling setUserLanguage"); + } + + let pathParams = { + 'userId': userId, + 'languageId': languageId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/SetLanguage/{languageId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the unblockUserPhoneNumber operation. + * @callback module:api/UsersApi~unblockUserPhoneNumberCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiDefaultResponse} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} userId + * @param {module:api/UsersApi~unblockUserPhoneNumberCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiDefaultResponse} + */ + unblockUserPhoneNumber(userId, callback) { + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling unblockUserPhoneNumber"); + } + + let pathParams = { + 'userId': userId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiDefaultResponse; + return this.apiClient.callApi( + '/api/v1.0/users/{userId}/UnblockUserPhoneNumber', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/VouchersApi.js b/src/api/VouchersApi.js new file mode 100644 index 00000000..9ccc2074 --- /dev/null +++ b/src/api/VouchersApi.js @@ -0,0 +1,496 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CreateVoucher from '../model/CreateVoucher'; +import RestApiArrayResultVoucherDataPoint from '../model/RestApiArrayResultVoucherDataPoint'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiPaginationResultVoucherSummary from '../model/RestApiPaginationResultVoucherSummary'; +import RestApiResultVoucher from '../model/RestApiResultVoucher'; +import RestApiResultVoucherWithStats from '../model/RestApiResultVoucherWithStats'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import SetVoucherValidityPeriodsSimplifiedRequest from '../model/SetVoucherValidityPeriodsSimplifiedRequest'; +import UpdateVoucher from '../model/UpdateVoucher'; +import UpdateVoucherUsage from '../model/UpdateVoucherUsage'; + +/** +* Vouchers service. +* @module api/VouchersApi +* @version 1.0.0 +*/ +export default class VouchersApi { + + /** + * Constructs a new VouchersApi. + * @alias module:api/VouchersApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createVoucher operation. + * @callback module:api/VouchersApi~createVoucherCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultVoucherWithStats} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/CreateVoucher} voucher + * @param {module:api/VouchersApi~createVoucherCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultVoucherWithStats} + */ + createVoucher(appId, voucher, callback) { + let postBody = voucher; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createVoucher"); + } + // verify the required parameter 'voucher' is set + if (voucher === undefined || voucher === null) { + throw new Error("Missing the required parameter 'voucher' when calling createVoucher"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultVoucherWithStats; + return this.apiClient.callApi( + '/api/v1.0/vouchers/{appId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getVoucherByCode operation. + * @callback module:api/VouchersApi~getVoucherByCodeCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultVoucher} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {String} code + * @param {module:api/VouchersApi~getVoucherByCodeCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultVoucher} + */ + getVoucherByCode(appId, code, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getVoucherByCode"); + } + // verify the required parameter 'code' is set + if (code === undefined || code === null) { + throw new Error("Missing the required parameter 'code' when calling getVoucherByCode"); + } + + let pathParams = { + 'appId': appId, + 'code': code + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultVoucher; + return this.apiClient.callApi( + '/api/v1.0/{appId}/vouchers/code/{code}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getVoucherById operation. + * @callback module:api/VouchersApi~getVoucherByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultVoucherWithStats} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} voucherId + * @param {module:api/VouchersApi~getVoucherByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultVoucherWithStats} + */ + getVoucherById(voucherId, callback) { + let postBody = null; + // verify the required parameter 'voucherId' is set + if (voucherId === undefined || voucherId === null) { + throw new Error("Missing the required parameter 'voucherId' when calling getVoucherById"); + } + + let pathParams = { + 'voucherId': voucherId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultVoucherWithStats; + return this.apiClient.callApi( + '/api/v1.0/vouchers/{voucherId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getVoucherStatsById operation. + * @callback module:api/VouchersApi~getVoucherStatsByIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiArrayResultVoucherDataPoint} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} voucherId + * @param {module:model/String} aggregateDataBy + * @param {Object} opts Optional parameters + * @param {Number} opts.dataPointLimit + * @param {module:api/VouchersApi~getVoucherStatsByIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiArrayResultVoucherDataPoint} + */ + getVoucherStatsById(voucherId, aggregateDataBy, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'voucherId' is set + if (voucherId === undefined || voucherId === null) { + throw new Error("Missing the required parameter 'voucherId' when calling getVoucherStatsById"); + } + // verify the required parameter 'aggregateDataBy' is set + if (aggregateDataBy === undefined || aggregateDataBy === null) { + throw new Error("Missing the required parameter 'aggregateDataBy' when calling getVoucherStatsById"); + } + + let pathParams = { + 'voucherId': voucherId + }; + let queryParams = { + 'aggregateDataBy': aggregateDataBy, + 'dataPointLimit': opts['dataPointLimit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiArrayResultVoucherDataPoint; + return this.apiClient.callApi( + '/api/v1.0/vouchers/stats/{voucherId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getVoucherValidityPeriods operation. + * @callback module:api/VouchersApi~getVoucherValidityPeriodsCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} voucherId + * @param {module:api/VouchersApi~getVoucherValidityPeriodsCallback} callback The callback function, accepting three arguments: error, data, response + */ + getVoucherValidityPeriods(appId, voucherId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getVoucherValidityPeriods"); + } + // verify the required parameter 'voucherId' is set + if (voucherId === undefined || voucherId === null) { + throw new Error("Missing the required parameter 'voucherId' when calling getVoucherValidityPeriods"); + } + + let pathParams = { + 'appId': appId, + 'voucherId': voucherId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/vouchers/{voucherId}/validity-periods', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getVouchers operation. + * @callback module:api/VouchersApi~getVouchersCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultVoucherSummary} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.pageIndex + * @param {Number} opts.pageSize + * @param {Array.} opts.searchCodes + * @param {Array.} opts.statusSearch + * @param {Array.} opts.typeSearch + * @param {Array.} opts.subTypeSearch + * @param {Array.} opts.storeIds + * @param {Array.} opts.channelRestrictions + * @param {module:api/VouchersApi~getVouchersCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultVoucherSummary} + */ + getVouchers(appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getVouchers"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + 'pageIndex': opts['pageIndex'], + 'pageSize': opts['pageSize'], + 'searchCodes': this.apiClient.buildCollectionParam(opts['searchCodes'], 'multi'), + 'statusSearch': this.apiClient.buildCollectionParam(opts['statusSearch'], 'multi'), + 'typeSearch': this.apiClient.buildCollectionParam(opts['typeSearch'], 'multi'), + 'subTypeSearch': this.apiClient.buildCollectionParam(opts['subTypeSearch'], 'multi'), + 'storeIds': this.apiClient.buildCollectionParam(opts['storeIds'], 'multi'), + 'channelRestrictions': this.apiClient.buildCollectionParam(opts['channelRestrictions'], 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiPaginationResultVoucherSummary; + return this.apiClient.callApi( + '/api/v1.0/{appId}/vouchers/summaries', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setVoucherValidityPeriodsSimplified operation. + * @callback module:api/VouchersApi~setVoucherValidityPeriodsSimplifiedCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} voucherId + * @param {module:model/SetVoucherValidityPeriodsSimplifiedRequest} request + * @param {module:api/VouchersApi~setVoucherValidityPeriodsSimplifiedCallback} callback The callback function, accepting three arguments: error, data, response + */ + setVoucherValidityPeriodsSimplified(appId, voucherId, request, callback) { + let postBody = request; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setVoucherValidityPeriodsSimplified"); + } + // verify the required parameter 'voucherId' is set + if (voucherId === undefined || voucherId === null) { + throw new Error("Missing the required parameter 'voucherId' when calling setVoucherValidityPeriodsSimplified"); + } + // verify the required parameter 'request' is set + if (request === undefined || request === null) { + throw new Error("Missing the required parameter 'request' when calling setVoucherValidityPeriodsSimplified"); + } + + let pathParams = { + 'appId': appId, + 'voucherId': voucherId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/vouchers/{voucherId}/validity-periods-simplified', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateVoucher operation. + * @callback module:api/VouchersApi~updateVoucherCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultVoucherWithStats} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {Number} voucherId + * @param {module:model/UpdateVoucher} voucher + * @param {Object} opts Optional parameters + * @param {Array.} opts.storeId + * @param {Number} opts.percentValue + * @param {Number} opts.lumpValue + * @param {Number} opts.maxDiscountAmount + * @param {module:api/VouchersApi~updateVoucherCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultVoucherWithStats} + */ + updateVoucher(voucherId, voucher, opts, callback) { + opts = opts || {}; + let postBody = voucher; + // verify the required parameter 'voucherId' is set + if (voucherId === undefined || voucherId === null) { + throw new Error("Missing the required parameter 'voucherId' when calling updateVoucher"); + } + // verify the required parameter 'voucher' is set + if (voucher === undefined || voucher === null) { + throw new Error("Missing the required parameter 'voucher' when calling updateVoucher"); + } + + let pathParams = { + 'voucherId': voucherId + }; + let queryParams = { + 'storeId': this.apiClient.buildCollectionParam(opts['storeId'], 'multi'), + 'percentValue': opts['percentValue'], + 'lumpValue': opts['lumpValue'], + 'maxDiscountAmount': opts['maxDiscountAmount'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = RestApiResultVoucherWithStats; + return this.apiClient.callApi( + '/api/v1.0/vouchers/{voucherId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateVoucherUsage operation. + * @callback module:api/VouchersApi~updateVoucherUsageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} voucherId + * @param {module:model/UpdateVoucherUsage} voucherUsage + * @param {module:api/VouchersApi~updateVoucherUsageCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateVoucherUsage(appId, voucherId, voucherUsage, callback) { + let postBody = voucherUsage; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateVoucherUsage"); + } + // verify the required parameter 'voucherId' is set + if (voucherId === undefined || voucherId === null) { + throw new Error("Missing the required parameter 'voucherId' when calling updateVoucherUsage"); + } + // verify the required parameter 'voucherUsage' is set + if (voucherUsage === undefined || voucherUsage === null) { + throw new Error("Missing the required parameter 'voucherUsage' when calling updateVoucherUsage"); + } + + let pathParams = { + 'appId': appId, + 'voucherId': voucherId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['Data', 'application/json', 'text/json', 'application/xml', 'text/xml', 'Message', 'ErrorCode', 'StackTrace']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/vouchers/{voucherId}/usage', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/WebhooksApi.js b/src/api/WebhooksApi.js new file mode 100644 index 00000000..3dfeb8d2 --- /dev/null +++ b/src/api/WebhooksApi.js @@ -0,0 +1,604 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiIntegerResult from '../model/RestApiIntegerResult'; +import RestApiPaginationResultWebhookLog from '../model/RestApiPaginationResultWebhookLog'; +import RestApiPaginationResultWebhookSubscription from '../model/RestApiPaginationResultWebhookSubscription'; +import RestApiStringArrayResult from '../model/RestApiStringArrayResult'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import WebhookEventSample from '../model/WebhookEventSample'; +import WebhookSubscription from '../model/WebhookSubscription'; + +/** +* Webhooks service. +* @module api/WebhooksApi +* @version 1.0.0 +*/ +export default class WebhooksApi { + + /** + * Constructs a new WebhooksApi. + * @alias module:api/WebhooksApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the createWebhookSubscription operation. + * @callback module:api/WebhooksApi~createWebhookSubscriptionCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiIntegerResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {module:model/WebhookSubscription} webhookSubscription + * @param {module:api/WebhooksApi~createWebhookSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiIntegerResult} + */ + createWebhookSubscription(oauthAppId, appId, webhookSubscription, callback) { + let postBody = webhookSubscription; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling createWebhookSubscription"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createWebhookSubscription"); + } + // verify the required parameter 'webhookSubscription' is set + if (webhookSubscription === undefined || webhookSubscription === null) { + throw new Error("Missing the required parameter 'webhookSubscription' when calling createWebhookSubscription"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiIntegerResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the createWebhookSubscriptionEventNames operation. + * @callback module:api/WebhooksApi~createWebhookSubscriptionEventNamesCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {Number} webhookSubscriptionId + * @param {String} eventName + * @param {String} appId + * @param {module:api/WebhooksApi~createWebhookSubscriptionEventNamesCallback} callback The callback function, accepting three arguments: error, data, response + */ + createWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling createWebhookSubscriptionEventNames"); + } + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId === undefined || webhookSubscriptionId === null) { + throw new Error("Missing the required parameter 'webhookSubscriptionId' when calling createWebhookSubscriptionEventNames"); + } + // verify the required parameter 'eventName' is set + if (eventName === undefined || eventName === null) { + throw new Error("Missing the required parameter 'eventName' when calling createWebhookSubscriptionEventNames"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling createWebhookSubscriptionEventNames"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'eventName': eventName, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteWebhookSubscription operation. + * @callback module:api/WebhooksApi~deleteWebhookSubscriptionCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {Number} webhookSubscriptionId + * @param {String} appId + * @param {module:api/WebhooksApi~deleteWebhookSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling deleteWebhookSubscription"); + } + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId === undefined || webhookSubscriptionId === null) { + throw new Error("Missing the required parameter 'webhookSubscriptionId' when calling deleteWebhookSubscription"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteWebhookSubscription"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteWebhookSubscriptionEventName operation. + * @callback module:api/WebhooksApi~deleteWebhookSubscriptionEventNameCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {Number} webhookSubscriptionId + * @param {String} eventName + * @param {String} appId + * @param {module:api/WebhooksApi~deleteWebhookSubscriptionEventNameCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling deleteWebhookSubscriptionEventName"); + } + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId === undefined || webhookSubscriptionId === null) { + throw new Error("Missing the required parameter 'webhookSubscriptionId' when calling deleteWebhookSubscriptionEventName"); + } + // verify the required parameter 'eventName' is set + if (eventName === undefined || eventName === null) { + throw new Error("Missing the required parameter 'eventName' when calling deleteWebhookSubscriptionEventName"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteWebhookSubscriptionEventName"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'eventName': eventName, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getWebhookEventNames operation. + * @callback module:api/WebhooksApi~getWebhookEventNamesCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringArrayResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/WebhooksApi~getWebhookEventNamesCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringArrayResult} + */ + getWebhookEventNames(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getWebhookEventNames"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiStringArrayResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/events', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getWebhookEventNamesBySubscriptionId operation. + * @callback module:api/WebhooksApi~getWebhookEventNamesBySubscriptionIdCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiStringArrayResult} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {Number} webhookSubscriptionId + * @param {String} appId + * @param {module:api/WebhooksApi~getWebhookEventNamesBySubscriptionIdCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiStringArrayResult} + */ + getWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId, callback) { + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getWebhookEventNamesBySubscriptionId"); + } + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId === undefined || webhookSubscriptionId === null) { + throw new Error("Missing the required parameter 'webhookSubscriptionId' when calling getWebhookEventNamesBySubscriptionId"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getWebhookEventNamesBySubscriptionId"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiStringArrayResult; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getWebhookEventSample operation. + * @callback module:api/WebhooksApi~getWebhookEventSampleCallback + * @param {String} error Error message, if any. + * @param {module:model/WebhookEventSample} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} eventName + * @param {String} appId + * @param {String} oauthAppId + * @param {String} webhookSubscriptionId + * @param {Object} opts Optional parameters + * @param {String} opts.version + * @param {module:api/WebhooksApi~getWebhookEventSampleCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/WebhookEventSample} + */ + getWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'eventName' is set + if (eventName === undefined || eventName === null) { + throw new Error("Missing the required parameter 'eventName' when calling getWebhookEventSample"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getWebhookEventSample"); + } + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getWebhookEventSample"); + } + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId === undefined || webhookSubscriptionId === null) { + throw new Error("Missing the required parameter 'webhookSubscriptionId' when calling getWebhookEventSample"); + } + + let pathParams = { + 'eventName': eventName, + 'appId': appId, + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId + }; + let queryParams = { + 'version': opts['version'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Type', 'CreateTime', 'Body']; + let returnType = WebhookEventSample; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getWebhookLogs operation. + * @callback module:api/WebhooksApi~getWebhookLogsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultWebhookLog} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {Number} webhookSubscriptionId + * @param {Date} start + * @param {Date} end + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/WebhooksApi~getWebhookLogsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultWebhookLog} + */ + getWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getWebhookLogs"); + } + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId === undefined || webhookSubscriptionId === null) { + throw new Error("Missing the required parameter 'webhookSubscriptionId' when calling getWebhookLogs"); + } + // verify the required parameter 'start' is set + if (start === undefined || start === null) { + throw new Error("Missing the required parameter 'start' when calling getWebhookLogs"); + } + // verify the required parameter 'end' is set + if (end === undefined || end === null) { + throw new Error("Missing the required parameter 'end' when calling getWebhookLogs"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getWebhookLogs"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId + }; + let queryParams = { + 'start': start, + 'end': end, + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiPaginationResultWebhookLog; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getWebhookSubscriptions operation. + * @callback module:api/WebhooksApi~getWebhookSubscriptionsCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiPaginationResultWebhookSubscription} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {String} appId + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.limit + * @param {module:api/WebhooksApi~getWebhookSubscriptionsCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiPaginationResultWebhookSubscription} + */ + getWebhookSubscriptions(oauthAppId, appId, opts, callback) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling getWebhookSubscriptions"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getWebhookSubscriptions"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'appId': appId + }; + let queryParams = { + 'page': opts['page'], + 'limit': opts['limit'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data', 'Message']; + let returnType = RestApiPaginationResultWebhookSubscription; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the updateWebhookSubscription operation. + * @callback module:api/WebhooksApi~updateWebhookSubscriptionCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} oauthAppId + * @param {Number} webhookSubscriptionId + * @param {String} appId + * @param {module:model/WebhookSubscription} webhookSubscription + * @param {module:api/WebhooksApi~updateWebhookSubscriptionCallback} callback The callback function, accepting three arguments: error, data, response + */ + updateWebhookSubscription(oauthAppId, webhookSubscriptionId, appId, webhookSubscription, callback) { + let postBody = webhookSubscription; + // verify the required parameter 'oauthAppId' is set + if (oauthAppId === undefined || oauthAppId === null) { + throw new Error("Missing the required parameter 'oauthAppId' when calling updateWebhookSubscription"); + } + // verify the required parameter 'webhookSubscriptionId' is set + if (webhookSubscriptionId === undefined || webhookSubscriptionId === null) { + throw new Error("Missing the required parameter 'webhookSubscriptionId' when calling updateWebhookSubscription"); + } + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling updateWebhookSubscription"); + } + // verify the required parameter 'webhookSubscription' is set + if (webhookSubscription === undefined || webhookSubscription === null) { + throw new Error("Missing the required parameter 'webhookSubscription' when calling updateWebhookSubscription"); + } + + let pathParams = { + 'oauthAppId': oauthAppId, + 'webhookSubscriptionId': webhookSubscriptionId, + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Message']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/api/WebsiteApi.js b/src/api/WebsiteApi.js new file mode 100644 index 00000000..0779d1d4 --- /dev/null +++ b/src/api/WebsiteApi.js @@ -0,0 +1,416 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import IndexPageBase from '../model/IndexPageBase'; +import RestApiErrorResult from '../model/RestApiErrorResult'; +import RestApiForbiddenResult from '../model/RestApiForbiddenResult'; +import RestApiResultIndexPage from '../model/RestApiResultIndexPage'; +import RestApiResultIndexPageBase from '../model/RestApiResultIndexPageBase'; +import RestApiResultWebsiteImage from '../model/RestApiResultWebsiteImage'; +import RestApiResultWebsiteTestimonial from '../model/RestApiResultWebsiteTestimonial'; +import RestApiUnauthorizedResult from '../model/RestApiUnauthorizedResult'; +import WebsiteTestimonialBase from '../model/WebsiteTestimonialBase'; + +/** +* Website service. +* @module api/WebsiteApi +* @version 1.0.0 +*/ +export default class WebsiteApi { + + /** + * Constructs a new WebsiteApi. + * @alias module:api/WebsiteApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the addTestimonial operation. + * @callback module:api/WebsiteApi~addTestimonialCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultWebsiteTestimonial} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/WebsiteTestimonialBase} testimonial + * @param {module:api/WebsiteApi~addTestimonialCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultWebsiteTestimonial} + */ + addTestimonial(appId, testimonial, callback) { + let postBody = testimonial; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling addTestimonial"); + } + // verify the required parameter 'testimonial' is set + if (testimonial === undefined || testimonial === null) { + throw new Error("Missing the required parameter 'testimonial' when calling addTestimonial"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultWebsiteTestimonial; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/testimonial', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteTestimonial operation. + * @callback module:api/WebsiteApi~deleteTestimonialCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} testimonialId + * @param {module:api/WebsiteApi~deleteTestimonialCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteTestimonial(appId, testimonialId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteTestimonial"); + } + // verify the required parameter 'testimonialId' is set + if (testimonialId === undefined || testimonialId === null) { + throw new Error("Missing the required parameter 'testimonialId' when calling deleteTestimonial"); + } + + let pathParams = { + 'appId': appId, + 'testimonialId': testimonialId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/testimonial/{testimonialId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the deleteWebsiteImage operation. + * @callback module:api/WebsiteApi~deleteWebsiteImageCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} imageId + * @param {module:api/WebsiteApi~deleteWebsiteImageCallback} callback The callback function, accepting three arguments: error, data, response + */ + deleteWebsiteImage(appId, imageId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling deleteWebsiteImage"); + } + // verify the required parameter 'imageId' is set + if (imageId === undefined || imageId === null) { + throw new Error("Missing the required parameter 'imageId' when calling deleteWebsiteImage"); + } + + let pathParams = { + 'appId': appId, + 'imageId': imageId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/image/{imageId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the editTestimonial operation. + * @callback module:api/WebsiteApi~editTestimonialCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultWebsiteTestimonial} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {Number} testimonialId + * @param {module:model/WebsiteTestimonialBase} testimonial + * @param {module:api/WebsiteApi~editTestimonialCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultWebsiteTestimonial} + */ + editTestimonial(appId, testimonialId, testimonial, callback) { + let postBody = testimonial; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling editTestimonial"); + } + // verify the required parameter 'testimonialId' is set + if (testimonialId === undefined || testimonialId === null) { + throw new Error("Missing the required parameter 'testimonialId' when calling editTestimonial"); + } + // verify the required parameter 'testimonial' is set + if (testimonial === undefined || testimonial === null) { + throw new Error("Missing the required parameter 'testimonial' when calling editTestimonial"); + } + + let pathParams = { + 'appId': appId, + 'testimonialId': testimonialId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultWebsiteTestimonial; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/testimonial/{testimonialId}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the getIndexConfiguration operation. + * @callback module:api/WebsiteApi~getIndexConfigurationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultIndexPage} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/WebsiteApi~getIndexConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultIndexPage} + */ + getIndexConfiguration(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling getIndexConfiguration"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultIndexPage; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/index', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the setIndexConfiguration operation. + * @callback module:api/WebsiteApi~setIndexConfigurationCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultIndexPageBase} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/IndexPageBase} indexPage + * @param {module:api/WebsiteApi~setIndexConfigurationCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultIndexPageBase} + */ + setIndexConfiguration(appId, indexPage, callback) { + let postBody = indexPage; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling setIndexConfiguration"); + } + // verify the required parameter 'indexPage' is set + if (indexPage === undefined || indexPage === null) { + throw new Error("Missing the required parameter 'indexPage' when calling setIndexConfiguration"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultIndexPageBase; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/index', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the uploadWebsiteImage operation. + * @callback module:api/WebsiteApi~uploadWebsiteImageCallback + * @param {String} error Error message, if any. + * @param {module:model/RestApiResultWebsiteImage} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:model/String} imageLocation + * @param {File} Image App Logo + * @param {module:api/WebsiteApi~uploadWebsiteImageCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/RestApiResultWebsiteImage} + */ + uploadWebsiteImage(appId, imageLocation, Image, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling uploadWebsiteImage"); + } + // verify the required parameter 'imageLocation' is set + if (imageLocation === undefined || imageLocation === null) { + throw new Error("Missing the required parameter 'imageLocation' when calling uploadWebsiteImage"); + } + // verify the required parameter 'Image' is set + if (Image === undefined || Image === null) { + throw new Error("Missing the required parameter 'Image' when calling uploadWebsiteImage"); + } + + let pathParams = { + 'appId': appId, + 'imageLocation': imageLocation + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + 'Image': Image + }; + + let authNames = ['oauth2']; + let contentTypes = ['multipart/form-data']; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml', 'Data']; + let returnType = RestApiResultWebsiteImage; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/image/{imageLocation}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + /** + * Callback function to receive the result of the websiteCheckNow operation. + * @callback module:api/WebsiteApi~websiteCheckNowCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {String} appId + * @param {module:api/WebsiteApi~websiteCheckNowCallback} callback The callback function, accepting three arguments: error, data, response + */ + websiteCheckNow(appId, callback) { + let postBody = null; + // verify the required parameter 'appId' is set + if (appId === undefined || appId === null) { + throw new Error("Missing the required parameter 'appId' when calling websiteCheckNow"); + } + + let pathParams = { + 'appId': appId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/json', 'text/json', 'application/xml', 'text/xml']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1.0/{appId}/website/dnscheck', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/src/index.js b/src/index.js new file mode 100644 index 00000000..9668ebd2 --- /dev/null +++ b/src/index.js @@ -0,0 +1,6327 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from './ApiClient'; +import Accept from './model/Accept'; +import AcceptInvitationResult from './model/AcceptInvitationResult'; +import AccountDetail from './model/AccountDetail'; +import AccountDetailBase from './model/AccountDetailBase'; +import AccountFieldDefinition from './model/AccountFieldDefinition'; +import AccountFieldKeyValuePair from './model/AccountFieldKeyValuePair'; +import AccountFieldsDefinitions from './model/AccountFieldsDefinitions'; +import AddressFormDisplayFormat from './model/AddressFormDisplayFormat'; +import AddressFormResponse from './model/AddressFormResponse'; +import AllMetadataResult from './model/AllMetadataResult'; +import Allergen from './model/Allergen'; +import AnalyticsClientEvent from './model/AnalyticsClientEvent'; +import ApmCurrencyDataPoint from './model/ApmCurrencyDataPoint'; +import ApmDataPoint from './model/ApmDataPoint'; +import ApmHourlyDataPoint from './model/ApmHourlyDataPoint'; +import ApmStatistics from './model/ApmStatistics'; +import ApmStatus from './model/ApmStatus'; +import App from './model/App'; +import AppChannelAssignment from './model/AppChannelAssignment'; +import AppCompliance from './model/AppCompliance'; +import AppConfigSalesChannel from './model/AppConfigSalesChannel'; +import AppConfigUpdateModel from './model/AppConfigUpdateModel'; +import AppCreatedEvent from './model/AppCreatedEvent'; +import AppInstall from './model/AppInstall'; +import AppLookup from './model/AppLookup'; +import AppStoreApp from './model/AppStoreApp'; +import AppStoreAppConfiguration from './model/AppStoreAppConfiguration'; +import AppStoreAppConfigurationSummary from './model/AppStoreAppConfigurationSummary'; +import AppStoreAppEntitlements from './model/AppStoreAppEntitlements'; +import AppStoreAppSummary from './model/AppStoreAppSummary'; +import AppStoreAppSupportInfo from './model/AppStoreAppSupportInfo'; +import AppStoreConfigCreatedEvent from './model/AppStoreConfigCreatedEvent'; +import AppStoreConfigDeletedEvent from './model/AppStoreConfigDeletedEvent'; +import AppStoreConfigUpdatedEvent from './model/AppStoreConfigUpdatedEvent'; +import AppStoreSubscriptionChangeJobUpdatedEvent from './model/AppStoreSubscriptionChangeJobUpdatedEvent'; +import AppUpdatedEvent from './model/AppUpdatedEvent'; +import AssignedBankAccount from './model/AssignedBankAccount'; +import AuditLogFieldChangeInformation from './model/AuditLogFieldChangeInformation'; +import BalanceDetails from './model/BalanceDetails'; +import BankAccount from './model/BankAccount'; +import BankAccountAssignedEvent from './model/BankAccountAssignedEvent'; +import BankAccountCreate from './model/BankAccountCreate'; +import BankAccountCreatedEvent from './model/BankAccountCreatedEvent'; +import BankAccountDeletedEvent from './model/BankAccountDeletedEvent'; +import BankAccountDetail from './model/BankAccountDetail'; +import BankAccountDetailsUpdateRequest from './model/BankAccountDetailsUpdateRequest'; +import BankAccountSummary from './model/BankAccountSummary'; +import BankAccountUpdatedEvent from './model/BankAccountUpdatedEvent'; +import BluetoothTerminalStatus from './model/BluetoothTerminalStatus'; +import BusinessHoursOverride from './model/BusinessHoursOverride'; +import BusinessHoursOverrideBase from './model/BusinessHoursOverrideBase'; +import BusinessHoursPeriod from './model/BusinessHoursPeriod'; +import BusinessHoursPeriodBase from './model/BusinessHoursPeriodBase'; +import CampaignStatistics from './model/CampaignStatistics'; +import CancellationToken from './model/CancellationToken'; +import CardReader from './model/CardReader'; +import CardReaderRegistrationRequest from './model/CardReaderRegistrationRequest'; +import CatalogGroupArchivedEvent from './model/CatalogGroupArchivedEvent'; +import CatalogGroupCreatedEvent from './model/CatalogGroupCreatedEvent'; +import CatalogGroupReference from './model/CatalogGroupReference'; +import CatalogGroupUpdatedEvent from './model/CatalogGroupUpdatedEvent'; +import CatalogImage from './model/CatalogImage'; +import CatalogItem from './model/CatalogItem'; +import CatalogItemArchivedEvent from './model/CatalogItemArchivedEvent'; +import CatalogItemCreatedEvent from './model/CatalogItemCreatedEvent'; +import CatalogItemUpdatedEvent from './model/CatalogItemUpdatedEvent'; +import CertificateCreatedEvent from './model/CertificateCreatedEvent'; +import CertificateRenewedEvent from './model/CertificateRenewedEvent'; +import ChangePasswordModel from './model/ChangePasswordModel'; +import Channel from './model/Channel'; +import ChannelStoresUpdatedEvent from './model/ChannelStoresUpdatedEvent'; +import ChargebackDetails from './model/ChargebackDetails'; +import ClientDevice from './model/ClientDevice'; +import ClientDeviceAssignEnrolledDevice from './model/ClientDeviceAssignEnrolledDevice'; +import ClientDeviceEnroll from './model/ClientDeviceEnroll'; +import ClientDeviceEnrollmentResult from './model/ClientDeviceEnrollmentResult'; +import ClientDeviceSummary from './model/ClientDeviceSummary'; +import ConfiguredStore from './model/ConfiguredStore'; +import Coordinates from './model/Coordinates'; +import CountryFormResponse from './model/CountryFormResponse'; +import CountryWithAccountFieldsDefinitions from './model/CountryWithAccountFieldsDefinitions'; +import CreateAccountModel from './model/CreateAccountModel'; +import CreateAppParameters from './model/CreateAppParameters'; +import CreateAppStoreApp from './model/CreateAppStoreApp'; +import CreateBasicAccountModel from './model/CreateBasicAccountModel'; +import CreateCatalogGroupReference from './model/CreateCatalogGroupReference'; +import CreateCatalogItem from './model/CreateCatalogItem'; +import CreateFulfillmentStatesConfiguration from './model/CreateFulfillmentStatesConfiguration'; +import CreateFullMenu from './model/CreateFullMenu'; +import CreateFullMenuItemOptionSet from './model/CreateFullMenuItemOptionSet'; +import CreateFullMenuItemOptionSetItem from './model/CreateFullMenuItemOptionSetItem'; +import CreateFullMenuSection from './model/CreateFullMenuSection'; +import CreateFullMenuSectionItem from './model/CreateFullMenuSectionItem'; +import CreateGroup from './model/CreateGroup'; +import CreateGroupReference from './model/CreateGroupReference'; +import CreateLocation from './model/CreateLocation'; +import CreateLocationArea from './model/CreateLocationArea'; +import CreateMenuSectionItemFromCatalogItems from './model/CreateMenuSectionItemFromCatalogItems'; +import CreateMenuTaxRate from './model/CreateMenuTaxRate'; +import CreateMetadata from './model/CreateMetadata'; +import CreateMetafieldDefinition from './model/CreateMetafieldDefinition'; +import CreatePayGreenConfigurationRequest from './model/CreatePayGreenConfigurationRequest'; +import CreateProduct from './model/CreateProduct'; +import CreateProductReference from './model/CreateProductReference'; +import CreatePromotion from './model/CreatePromotion'; +import CreateTeammate from './model/CreateTeammate'; +import CreateVoucher from './model/CreateVoucher'; +import CreatedMenuSectionItems from './model/CreatedMenuSectionItems'; +import CreditNoteDetails from './model/CreditNoteDetails'; +import CrossSellMenuItems from './model/CrossSellMenuItems'; +import CspReport from './model/CspReport'; +import CspReportRequest from './model/CspReportRequest'; +import CurrencyData from './model/CurrencyData'; +import Customer from './model/Customer'; +import CustomerConsentUpdatedEvent from './model/CustomerConsentUpdatedEvent'; +import CustomerCreateModel from './model/CustomerCreateModel'; +import CustomerCreatedEvent from './model/CustomerCreatedEvent'; +import CustomerDeliveryTrackingOrder from './model/CustomerDeliveryTrackingOrder'; +import CustomerDeliveryTrackingOrderLine from './model/CustomerDeliveryTrackingOrderLine'; +import CustomerMessages from './model/CustomerMessages'; +import CustomerSummary from './model/CustomerSummary'; +import CustomerUpdateModel from './model/CustomerUpdateModel'; +import CustomerUpdatedEvent from './model/CustomerUpdatedEvent'; +import Customers from './model/Customers'; +import DashboardEmbed from './model/DashboardEmbed'; +import DeliveryLocation from './model/DeliveryLocation'; +import DeliveryZone from './model/DeliveryZone'; +import DeliveryZoneBase from './model/DeliveryZoneBase'; +import DeliveryZoneCreatedEvent from './model/DeliveryZoneCreatedEvent'; +import DeliveryZoneDeletedEvent from './model/DeliveryZoneDeletedEvent'; +import DeliveryZoneUpdatedEvent from './model/DeliveryZoneUpdatedEvent'; +import DepositReturnFeesSummary from './model/DepositReturnFeesSummary'; +import DeviceSettings from './model/DeviceSettings'; +import DnsRecordInformation from './model/DnsRecordInformation'; +import DnsVerifiedEvent from './model/DnsVerifiedEvent'; +import DriverLoginModel from './model/DriverLoginModel'; +import DriverRequestLoginPinModel from './model/DriverRequestLoginPinModel'; +import DynamicFormField from './model/DynamicFormField'; +import DynamicFormFieldOption from './model/DynamicFormFieldOption'; +import DynamicFormRule from './model/DynamicFormRule'; +import DynamicFormRules from './model/DynamicFormRules'; +import EmvNotificationEvent from './model/EmvNotificationEvent'; +import EmvTerminal from './model/EmvTerminal'; +import EmvTerminalWithAssignments from './model/EmvTerminalWithAssignments'; +import EventSearchResult from './model/EventSearchResult'; +import ExecuteConfigurationActionRequest from './model/ExecuteConfigurationActionRequest'; +import ExecuteConfigurationActionResult from './model/ExecuteConfigurationActionResult'; +import ExternalStoreAuditLog from './model/ExternalStoreAuditLog'; +import ExternalStoreEvent from './model/ExternalStoreEvent'; +import FeeSummary from './model/FeeSummary'; +import Field from './model/Field'; +import FieldChangeInformation from './model/FieldChangeInformation'; +import FieldGroup from './model/FieldGroup'; +import FileCreationResult from './model/FileCreationResult'; +import FileDownloadResult from './model/FileDownloadResult'; +import FirebaseApp from './model/FirebaseApp'; +import FlipdishEventBase from './model/FlipdishEventBase'; +import FlipdishFeesDetails from './model/FlipdishFeesDetails'; +import FulfillentStatusActionItem from './model/FulfillentStatusActionItem'; +import FulfillmentStatesConfiguration from './model/FulfillmentStatesConfiguration'; +import FulfillmentStatesConfigurationSummary from './model/FulfillmentStatesConfigurationSummary'; +import FulfillmentStatesConfiguredStore from './model/FulfillmentStatesConfiguredStore'; +import FulfillmentStatusConfigurationItem from './model/FulfillmentStatusConfigurationItem'; +import GeoPointRequest from './model/GeoPointRequest'; +import GetReceiptByOrderIdQueryResponse from './model/GetReceiptByOrderIdQueryResponse'; +import GoogleAddress from './model/GoogleAddress'; +import GoogleAddressComponent from './model/GoogleAddressComponent'; +import GoogleAddressResult from './model/GoogleAddressResult'; +import GoogleCoordinates from './model/GoogleCoordinates'; +import GoogleGeometry from './model/GoogleGeometry'; +import GoogleLocation from './model/GoogleLocation'; +import GoogleViewport from './model/GoogleViewport'; +import Group from './model/Group'; +import GroupReference from './model/GroupReference'; +import GroupedCoordinates from './model/GroupedCoordinates'; +import HasPaymentMethodResponse from './model/HasPaymentMethodResponse'; +import HomeAction from './model/HomeAction'; +import HomeStatistics from './model/HomeStatistics'; +import HttpPostedFileBase from './model/HttpPostedFileBase'; +import HydraAssignedEvent from './model/HydraAssignedEvent'; +import HydraConfig from './model/HydraConfig'; +import HydraConnectionStatusChangedEvent from './model/HydraConnectionStatusChangedEvent'; +import HydraDeviceDetails from './model/HydraDeviceDetails'; +import HydraRegistrationRequest from './model/HydraRegistrationRequest'; +import HydraRequestResetEvent from './model/HydraRequestResetEvent'; +import HydraSettingChangedEvent from './model/HydraSettingChangedEvent'; +import HydraStatus from './model/HydraStatus'; +import HydraStoreAssignedEvent from './model/HydraStoreAssignedEvent'; +import HydraStoreData from './model/HydraStoreData'; +import HydraStoreUnassignedEvent from './model/HydraStoreUnassignedEvent'; +import HydraUnAssignedEvent from './model/HydraUnAssignedEvent'; +import IndexPage from './model/IndexPage'; +import IndexPageBase from './model/IndexPageBase'; +import IntercomUserHash from './model/IntercomUserHash'; +import Invoice from './model/Invoice'; +import InvoiceDiscount from './model/InvoiceDiscount'; +import InvoiceItem from './model/InvoiceItem'; +import InvoicePeriod from './model/InvoicePeriod'; +import ItemNutritionInfoAddUpdateModel from './model/ItemNutritionInfoAddUpdateModel'; +import ItemNutritionInfoV2AddUpdateModel from './model/ItemNutritionInfoV2AddUpdateModel'; +import JobAddress from './model/JobAddress'; +import JobCancellation from './model/JobCancellation'; +import JobContact from './model/JobContact'; +import JobDelivery from './model/JobDelivery'; +import JobDeliveryDetail from './model/JobDeliveryDetail'; +import JobDriver from './model/JobDriver'; +import JobEta from './model/JobEta'; +import JobPricing from './model/JobPricing'; +import JobProof from './model/JobProof'; +import JobResponse from './model/JobResponse'; +import KioskBluetoothInstallUpdateInitiateEvent from './model/KioskBluetoothInstallUpdateInitiateEvent'; +import KioskBluetoothPairingModeEvent from './model/KioskBluetoothPairingModeEvent'; +import KioskBluetoothTerminalCancelUpdateEvent from './model/KioskBluetoothTerminalCancelUpdateEvent'; +import KioskBluetoothTerminalFirmwareVersionStatusEvent from './model/KioskBluetoothTerminalFirmwareVersionStatusEvent'; +import KioskBluetoothTerminalInitiateUpdateCheckEvent from './model/KioskBluetoothTerminalInitiateUpdateCheckEvent'; +import KioskBluetoothTerminalInstallationStatusEvent from './model/KioskBluetoothTerminalInstallationStatusEvent'; +import KioskBluetoothTerminalUnpairedEvent from './model/KioskBluetoothTerminalUnpairedEvent'; +import KioskBluetoothTerminalUpdatedEvent from './model/KioskBluetoothTerminalUpdatedEvent'; +import KioskBluetoothUnpairingModeEvent from './model/KioskBluetoothUnpairingModeEvent'; +import KioskCashPaymentSettings from './model/KioskCashPaymentSettings'; +import KioskEntitlementsResult from './model/KioskEntitlementsResult'; +import KioskIotConnectionParameters from './model/KioskIotConnectionParameters'; +import KioskSettings from './model/KioskSettings'; +import KioskTerminalActionStateChangedEvent from './model/KioskTerminalActionStateChangedEvent'; +import Language from './model/Language'; +import LastPaymentError from './model/LastPaymentError'; +import LeadTime from './model/LeadTime'; +import LightspeedSettings from './model/LightspeedSettings'; +import LocalisedTimeZone from './model/LocalisedTimeZone'; +import LocationArea from './model/LocationArea'; +import LocationAreaCreatedEvent from './model/LocationAreaCreatedEvent'; +import LocationAreaLocation from './model/LocationAreaLocation'; +import LocationAreaUpdatedEvent from './model/LocationAreaUpdatedEvent'; +import LocationAreaWithLocations from './model/LocationAreaWithLocations'; +import LocationCreatedEvent from './model/LocationCreatedEvent'; +import LocationDeletedEvent from './model/LocationDeletedEvent'; +import LoginModel from './model/LoginModel'; +import LoginWithPinModel from './model/LoginWithPinModel'; +import LoyaltyCampaign from './model/LoyaltyCampaign'; +import LoyaltyCampaignBase from './model/LoyaltyCampaignBase'; +import LoyaltyCampaignCreatedEvent from './model/LoyaltyCampaignCreatedEvent'; +import LoyaltyCampaignDeletedEvent from './model/LoyaltyCampaignDeletedEvent'; +import LoyaltyCampaignUpdatedEvent from './model/LoyaltyCampaignUpdatedEvent'; +import LumpDiscountDetails from './model/LumpDiscountDetails'; +import MappedLocation from './model/MappedLocation'; +import MaskedPhoneNumber from './model/MaskedPhoneNumber'; +import Menu from './model/Menu'; +import MenuAsyncCreationCompletedEvent from './model/MenuAsyncCreationCompletedEvent'; +import MenuBase from './model/MenuBase'; +import MenuBulkEditEvent from './model/MenuBulkEditEvent'; +import MenuCatalogItem from './model/MenuCatalogItem'; +import MenuCheckpoint from './model/MenuCheckpoint'; +import MenuCheckpointCreatedEvent from './model/MenuCheckpointCreatedEvent'; +import MenuCreatedEvent from './model/MenuCreatedEvent'; +import MenuElementEditResponse from './model/MenuElementEditResponse'; +import MenuElementHide from './model/MenuElementHide'; +import MenuElementListItemResponse from './model/MenuElementListItemResponse'; +import MenuElementListResponse from './model/MenuElementListResponse'; +import MenuItemOptionSet from './model/MenuItemOptionSet'; +import MenuItemOptionSetBase from './model/MenuItemOptionSetBase'; +import MenuItemOptionSetCreatedEvent from './model/MenuItemOptionSetCreatedEvent'; +import MenuItemOptionSetDeletedEvent from './model/MenuItemOptionSetDeletedEvent'; +import MenuItemOptionSetItem from './model/MenuItemOptionSetItem'; +import MenuItemOptionSetItemBase from './model/MenuItemOptionSetItemBase'; +import MenuItemOptionSetItemCreatedEvent from './model/MenuItemOptionSetItemCreatedEvent'; +import MenuItemOptionSetItemDeletedEvent from './model/MenuItemOptionSetItemDeletedEvent'; +import MenuItemOptionSetItemUpdatedEvent from './model/MenuItemOptionSetItemUpdatedEvent'; +import MenuItemOptionSetUpdatedEvent from './model/MenuItemOptionSetUpdatedEvent'; +import MenuNutritionInfoHeader from './model/MenuNutritionInfoHeader'; +import MenuObjectDisplayOrders from './model/MenuObjectDisplayOrders'; +import MenuSection from './model/MenuSection'; +import MenuSectionAvailability from './model/MenuSectionAvailability'; +import MenuSectionAvailabilityBase from './model/MenuSectionAvailabilityBase'; +import MenuSectionBase from './model/MenuSectionBase'; +import MenuSectionCreatedEvent from './model/MenuSectionCreatedEvent'; +import MenuSectionDeletedEvent from './model/MenuSectionDeletedEvent'; +import MenuSectionItem from './model/MenuSectionItem'; +import MenuSectionItemBase from './model/MenuSectionItemBase'; +import MenuSectionItemCreatedEvent from './model/MenuSectionItemCreatedEvent'; +import MenuSectionItemDeletedEvent from './model/MenuSectionItemDeletedEvent'; +import MenuSectionItemUpdatedEvent from './model/MenuSectionItemUpdatedEvent'; +import MenuSectionUpdatedEvent from './model/MenuSectionUpdatedEvent'; +import MenuStoreNames from './model/MenuStoreNames'; +import MenuSummary from './model/MenuSummary'; +import MenuTaxDetails from './model/MenuTaxDetails'; +import MenuTaxRate from './model/MenuTaxRate'; +import MenuUpdatedEvent from './model/MenuUpdatedEvent'; +import MenuUploadedEvent from './model/MenuUploadedEvent'; +import MenuZone from './model/MenuZone'; +import Metadata from './model/Metadata'; +import Metafield from './model/Metafield'; +import MetafieldDefinition from './model/MetafieldDefinition'; +import MetafieldDefinitionRecommendation from './model/MetafieldDefinitionRecommendation'; +import MobileAppsImage from './model/MobileAppsImage'; +import MobileAppsStatistics from './model/MobileAppsStatistics'; +import MobileAppsSubmission from './model/MobileAppsSubmission'; +import MobileAppsSubmissionDetails from './model/MobileAppsSubmissionDetails'; +import MobileAppsSubmissionStatus from './model/MobileAppsSubmissionStatus'; +import MobileAppsSubmissionStatusUpdatedEvent from './model/MobileAppsSubmissionStatusUpdatedEvent'; +import MobileAppsSubmissionUpdatedEvent from './model/MobileAppsSubmissionUpdatedEvent'; +import NextStatusWithOrderType from './model/NextStatusWithOrderType'; +import NutritionInfo from './model/NutritionInfo'; +import NutritionInfoItemAddUpdateLabelModel from './model/NutritionInfoItemAddUpdateLabelModel'; +import NutritionInfoLabel from './model/NutritionInfoLabel'; +import NutritionInfoMenuItem from './model/NutritionInfoMenuItem'; +import NutritionInfoMenuOptionSetItem from './model/NutritionInfoMenuOptionSetItem'; +import NutritionInfoV2 from './model/NutritionInfoV2'; +import NutritionInfoV2Allergen from './model/NutritionInfoV2Allergen'; +import NutritionInfoV2Item from './model/NutritionInfoV2Item'; +import OAuthApp from './model/OAuthApp'; +import OAuthTokenModel from './model/OAuthTokenModel'; +import OauthClientRedirectUri from './model/OauthClientRedirectUri'; +import ObjectDisplayOrder from './model/ObjectDisplayOrder'; +import OktaPortalFeatureFlag from './model/OktaPortalFeatureFlag'; +import OnboardingConfigUpdate from './model/OnboardingConfigUpdate'; +import OnboardingItemUpdate from './model/OnboardingItemUpdate'; +import Order from './model/Order'; +import OrderAcceptedEvent from './model/OrderAcceptedEvent'; +import OrderBatch from './model/OrderBatch'; +import OrderBatchPublishedEvent from './model/OrderBatchPublishedEvent'; +import OrderBatchSummary from './model/OrderBatchSummary'; +import OrderBatchingConfiguration from './model/OrderBatchingConfiguration'; +import OrderCapacityConfigUpdatedEvent from './model/OrderCapacityConfigUpdatedEvent'; +import OrderCreatedEvent from './model/OrderCreatedEvent'; +import OrderCustomerTrackingCreatedEvent from './model/OrderCustomerTrackingCreatedEvent'; +import OrderDeliveryInformation from './model/OrderDeliveryInformation'; +import OrderDeliveryInformationBase from './model/OrderDeliveryInformationBase'; +import OrderDeliveryTrackingStatusUpdatedEvent from './model/OrderDeliveryTrackingStatusUpdatedEvent'; +import OrderDispatchedEvent from './model/OrderDispatchedEvent'; +import OrderDropOffLocation from './model/OrderDropOffLocation'; +import OrderFulfillmentStatus from './model/OrderFulfillmentStatus'; +import OrderFulfillmentStatusBase from './model/OrderFulfillmentStatusBase'; +import OrderFulfillmentStatusUpdate from './model/OrderFulfillmentStatusUpdate'; +import OrderFulfillmentStatusUpdatedEvent from './model/OrderFulfillmentStatusUpdatedEvent'; +import OrderFulfillmentStatusWithConfigurationActions from './model/OrderFulfillmentStatusWithConfigurationActions'; +import OrderItem from './model/OrderItem'; +import OrderItemOption from './model/OrderItemOption'; +import OrderLeadTimes from './model/OrderLeadTimes'; +import OrderList from './model/OrderList'; +import OrderPaymentInformation from './model/OrderPaymentInformation'; +import OrderRatingUpdatedEvent from './model/OrderRatingUpdatedEvent'; +import OrderReference from './model/OrderReference'; +import OrderRefundedEvent from './model/OrderRefundedEvent'; +import OrderRejectedEvent from './model/OrderRejectedEvent'; +import OrderSummary from './model/OrderSummary'; +import OrderTipUpdatedEvent from './model/OrderTipUpdatedEvent'; +import OrderVoucherSummary from './model/OrderVoucherSummary'; +import OtherChargesDetails from './model/OtherChargesDetails'; +import OwnerEntityConfiguration from './model/OwnerEntityConfiguration'; +import OwnerEntityConfigurations from './model/OwnerEntityConfigurations'; +import PasswordResetModel from './model/PasswordResetModel'; +import PaymentAccount from './model/PaymentAccount'; +import PaymentIntent from './model/PaymentIntent'; +import PaymentTerminalDetails from './model/PaymentTerminalDetails'; +import PaymentTerminalTransactionDetails from './model/PaymentTerminalTransactionDetails'; +import Payout from './model/Payout'; +import PayoutChargeback from './model/PayoutChargeback'; +import PayoutDetail from './model/PayoutDetail'; +import PayoutOrder from './model/PayoutOrder'; +import PayoutOtherCharge from './model/PayoutOtherCharge'; +import PayoutRefund from './model/PayoutRefund'; +import PayoutReport3Details from './model/PayoutReport3Details'; +import PayoutReport3DetailsAdjustments from './model/PayoutReport3DetailsAdjustments'; +import PayoutReport3DetailsFlipdishFees from './model/PayoutReport3DetailsFlipdishFees'; +import PayoutReport3DetailsRevenue from './model/PayoutReport3DetailsRevenue'; +import PayoutReport3DetailsSalesLine from './model/PayoutReport3DetailsSalesLine'; +import PayoutReport3DetailsSummary from './model/PayoutReport3DetailsSummary'; +import PayoutReport3Overview from './model/PayoutReport3Overview'; +import PayoutReport3OverviewHeader from './model/PayoutReport3OverviewHeader'; +import PayoutReport3RefundedOrder from './model/PayoutReport3RefundedOrder'; +import PayoutReport3Store from './model/PayoutReport3Store'; +import PayoutRequestIds from './model/PayoutRequestIds'; +import PayoutStore from './model/PayoutStore'; +import PayoutSummary from './model/PayoutSummary'; +import PendingInvitation from './model/PendingInvitation'; +import PendingMenuChanges from './model/PendingMenuChanges'; +import PendingMenuChangesSummaries from './model/PendingMenuChangesSummaries'; +import PercentDiscountDetails from './model/PercentDiscountDetails'; +import PhoneCall from './model/PhoneCall'; +import PhoneCallEndedEvent from './model/PhoneCallEndedEvent'; +import PhoneCallStartedEvent from './model/PhoneCallStartedEvent'; +import PosRevenueDetails from './model/PosRevenueDetails'; +import PreOrderConfig from './model/PreOrderConfig'; +import PreOrderTime from './model/PreOrderTime'; +import PredefinedAnswer from './model/PredefinedAnswer'; +import PreviousOrder from './model/PreviousOrder'; +import PreviousOrderItem from './model/PreviousOrderItem'; +import PreviousOrderItemOption from './model/PreviousOrderItemOption'; +import Printer from './model/Printer'; +import PrinterAssignedToStoreEvent from './model/PrinterAssignedToStoreEvent'; +import PrinterTurnedOffEvent from './model/PrinterTurnedOffEvent'; +import PrinterTurnedOnEvent from './model/PrinterTurnedOnEvent'; +import PrinterUnassignedFromStoreEvent from './model/PrinterUnassignedFromStoreEvent'; +import ProcessPaymentIntentRequest from './model/ProcessPaymentIntentRequest'; +import ProcessingFeeConfig from './model/ProcessingFeeConfig'; +import Product from './model/Product'; +import ProductReference from './model/ProductReference'; +import PromotionAward from './model/PromotionAward'; +import PromotionDetails from './model/PromotionDetails'; +import PublishMenuChanges from './model/PublishMenuChanges'; +import PushNotificationDeletedEvent from './model/PushNotificationDeletedEvent'; +import PushNotificationRequest from './model/PushNotificationRequest'; +import PushNotificationResponse from './model/PushNotificationResponse'; +import PushNotificationScheduledEvent from './model/PushNotificationScheduledEvent'; +import PushNotificationSentEvent from './model/PushNotificationSentEvent'; +import Range from './model/Range'; +import ReaderActionStateInfo from './model/ReaderActionStateInfo'; +import RedeemInvitationResult from './model/RedeemInvitationResult'; +import Refund from './model/Refund'; +import Reject from './model/Reject'; +import RequestLoginPinModel from './model/RequestLoginPinModel'; +import RequestLoginPinResponse from './model/RequestLoginPinResponse'; +import RequestPasswordResetModel from './model/RequestPasswordResetModel'; +import RequestPasswordResetPinResponse from './model/RequestPasswordResetPinResponse'; +import Response from './model/Response'; +import RestApiArrayResultAllMetadataResult from './model/RestApiArrayResultAllMetadataResult'; +import RestApiArrayResultAllergen from './model/RestApiArrayResultAllergen'; +import RestApiArrayResultApmCurrencyDataPoint from './model/RestApiArrayResultApmCurrencyDataPoint'; +import RestApiArrayResultApmDataPoint from './model/RestApiArrayResultApmDataPoint'; +import RestApiArrayResultApmHourlyDataPoint from './model/RestApiArrayResultApmHourlyDataPoint'; +import RestApiArrayResultAppStoreAppConfigurationSummary from './model/RestApiArrayResultAppStoreAppConfigurationSummary'; +import RestApiArrayResultAppStoreAppSummary from './model/RestApiArrayResultAppStoreAppSummary'; +import RestApiArrayResultBankAccountSummary from './model/RestApiArrayResultBankAccountSummary'; +import RestApiArrayResultBusinessHoursPeriod from './model/RestApiArrayResultBusinessHoursPeriod'; +import RestApiArrayResultChannel from './model/RestApiArrayResultChannel'; +import RestApiArrayResultClientDeviceSummary from './model/RestApiArrayResultClientDeviceSummary'; +import RestApiArrayResultCountryWithAccountFieldsDefinitions from './model/RestApiArrayResultCountryWithAccountFieldsDefinitions'; +import RestApiArrayResultDeliveryZone from './model/RestApiArrayResultDeliveryZone'; +import RestApiArrayResultEmvTerminalWithAssignments from './model/RestApiArrayResultEmvTerminalWithAssignments'; +import RestApiArrayResultFulfillmentStatesConfigurationSummary from './model/RestApiArrayResultFulfillmentStatesConfigurationSummary'; +import RestApiArrayResultHomeAction from './model/RestApiArrayResultHomeAction'; +import RestApiArrayResultKioskCashPaymentSettings from './model/RestApiArrayResultKioskCashPaymentSettings'; +import RestApiArrayResultLocalisedTimeZone from './model/RestApiArrayResultLocalisedTimeZone'; +import RestApiArrayResultLocationAreaLocation from './model/RestApiArrayResultLocationAreaLocation'; +import RestApiArrayResultLocationAreaWithLocations from './model/RestApiArrayResultLocationAreaWithLocations'; +import RestApiArrayResultLoyaltyCampaign from './model/RestApiArrayResultLoyaltyCampaign'; +import RestApiArrayResultMenuCheckpoint from './model/RestApiArrayResultMenuCheckpoint'; +import RestApiArrayResultMenuElementEditResponse from './model/RestApiArrayResultMenuElementEditResponse'; +import RestApiArrayResultMenuElementListResponse from './model/RestApiArrayResultMenuElementListResponse'; +import RestApiArrayResultMenuItemOptionSet from './model/RestApiArrayResultMenuItemOptionSet'; +import RestApiArrayResultMenuItemOptionSetItem from './model/RestApiArrayResultMenuItemOptionSetItem'; +import RestApiArrayResultMenuSection from './model/RestApiArrayResultMenuSection'; +import RestApiArrayResultMenuSectionItem from './model/RestApiArrayResultMenuSectionItem'; +import RestApiArrayResultMenuStoreNames from './model/RestApiArrayResultMenuStoreNames'; +import RestApiArrayResultMenuSummary from './model/RestApiArrayResultMenuSummary'; +import RestApiArrayResultMenuTaxDetails from './model/RestApiArrayResultMenuTaxDetails'; +import RestApiArrayResultMenuZone from './model/RestApiArrayResultMenuZone'; +import RestApiArrayResultMetadata from './model/RestApiArrayResultMetadata'; +import RestApiArrayResultMobileAppsStatistics from './model/RestApiArrayResultMobileAppsStatistics'; +import RestApiArrayResultOAuthApp from './model/RestApiArrayResultOAuthApp'; +import RestApiArrayResultOauthClientRedirectUri from './model/RestApiArrayResultOauthClientRedirectUri'; +import RestApiArrayResultOrderBatch from './model/RestApiArrayResultOrderBatch'; +import RestApiArrayResultOrderFulfillmentStatus from './model/RestApiArrayResultOrderFulfillmentStatus'; +import RestApiArrayResultPayoutSummary from './model/RestApiArrayResultPayoutSummary'; +import RestApiArrayResultPendingInvitation from './model/RestApiArrayResultPendingInvitation'; +import RestApiArrayResultPendingMenuChangesSummaries from './model/RestApiArrayResultPendingMenuChangesSummaries'; +import RestApiArrayResultPreOrderTime from './model/RestApiArrayResultPreOrderTime'; +import RestApiArrayResultProcessingFeeConfig from './model/RestApiArrayResultProcessingFeeConfig'; +import RestApiArrayResultRedeemInvitationResult from './model/RestApiArrayResultRedeemInvitationResult'; +import RestApiArrayResultRestApiDefaultResponse from './model/RestApiArrayResultRestApiDefaultResponse'; +import RestApiArrayResultRestaurantVoucherEligibleStore from './model/RestApiArrayResultRestaurantVoucherEligibleStore'; +import RestApiArrayResultRestaurantVoucherPayGreenConfiguration from './model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration'; +import RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary from './model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary'; +import RestApiArrayResultRetentionCampaign from './model/RestApiArrayResultRetentionCampaign'; +import RestApiArrayResultSmsProviderCredential from './model/RestApiArrayResultSmsProviderCredential'; +import RestApiArrayResultStoreChannelAssignment from './model/RestApiArrayResultStoreChannelAssignment'; +import RestApiArrayResultStoreDeliveryZoneFeeConfig from './model/RestApiArrayResultStoreDeliveryZoneFeeConfig'; +import RestApiArrayResultStoreListItem from './model/RestApiArrayResultStoreListItem'; +import RestApiArrayResultStoreStatistics from './model/RestApiArrayResultStoreStatistics'; +import RestApiArrayResultStripeCustomConnectedAccount from './model/RestApiArrayResultStripeCustomConnectedAccount'; +import RestApiArrayResultSubscriptionSummary from './model/RestApiArrayResultSubscriptionSummary'; +import RestApiArrayResultSupportedCountry from './model/RestApiArrayResultSupportedCountry'; +import RestApiArrayResultTeammate from './model/RestApiArrayResultTeammate'; +import RestApiArrayResultUserFlipdishAccount from './model/RestApiArrayResultUserFlipdishAccount'; +import RestApiArrayResultUserNote from './model/RestApiArrayResultUserNote'; +import RestApiArrayResultUserStoreInfo from './model/RestApiArrayResultUserStoreInfo'; +import RestApiArrayResultVoucherDataPoint from './model/RestApiArrayResultVoucherDataPoint'; +import RestApiDefaultResponse from './model/RestApiDefaultResponse'; +import RestApiErrorResult from './model/RestApiErrorResult'; +import RestApiEventSearchPaginationResult from './model/RestApiEventSearchPaginationResult'; +import RestApiFinanceSearchPaginationResultInvoice from './model/RestApiFinanceSearchPaginationResultInvoice'; +import RestApiFinanceSearchPaginationResultSubscriptionInvoice from './model/RestApiFinanceSearchPaginationResultSubscriptionInvoice'; +import RestApiForbiddenResult from './model/RestApiForbiddenResult'; +import RestApiIntegerResult from './model/RestApiIntegerResult'; +import RestApiPaginationResultApp from './model/RestApiPaginationResultApp'; +import RestApiPaginationResultAppStoreAppSummary from './model/RestApiPaginationResultAppStoreAppSummary'; +import RestApiPaginationResultBusinessHoursOverride from './model/RestApiPaginationResultBusinessHoursOverride'; +import RestApiPaginationResultCatalogItem from './model/RestApiPaginationResultCatalogItem'; +import RestApiPaginationResultGroup from './model/RestApiPaginationResultGroup'; +import RestApiPaginationResultHydraDeviceDetails from './model/RestApiPaginationResultHydraDeviceDetails'; +import RestApiPaginationResultMetafieldDefinition from './model/RestApiPaginationResultMetafieldDefinition'; +import RestApiPaginationResultMetafieldDefinitionRecommendation from './model/RestApiPaginationResultMetafieldDefinitionRecommendation'; +import RestApiPaginationResultOAuthTokenModel from './model/RestApiPaginationResultOAuthTokenModel'; +import RestApiPaginationResultOrder from './model/RestApiPaginationResultOrder'; +import RestApiPaginationResultOrderSummary from './model/RestApiPaginationResultOrderSummary'; +import RestApiPaginationResultPayout from './model/RestApiPaginationResultPayout'; +import RestApiPaginationResultPayoutChargeback from './model/RestApiPaginationResultPayoutChargeback'; +import RestApiPaginationResultPayoutOrder from './model/RestApiPaginationResultPayoutOrder'; +import RestApiPaginationResultPayoutOtherCharge from './model/RestApiPaginationResultPayoutOtherCharge'; +import RestApiPaginationResultPayoutRefund from './model/RestApiPaginationResultPayoutRefund'; +import RestApiPaginationResultPayoutReport3RefundedOrder from './model/RestApiPaginationResultPayoutReport3RefundedOrder'; +import RestApiPaginationResultPendingMenuChanges from './model/RestApiPaginationResultPendingMenuChanges'; +import RestApiPaginationResultPhoneCall from './model/RestApiPaginationResultPhoneCall'; +import RestApiPaginationResultProduct from './model/RestApiPaginationResultProduct'; +import RestApiPaginationResultPushNotificationResponse from './model/RestApiPaginationResultPushNotificationResponse'; +import RestApiPaginationResultRestaurant from './model/RestApiPaginationResultRestaurant'; +import RestApiPaginationResultStore from './model/RestApiPaginationResultStore'; +import RestApiPaginationResultStoreGroup from './model/RestApiPaginationResultStoreGroup'; +import RestApiPaginationResultStoreGroupExtended from './model/RestApiPaginationResultStoreGroupExtended'; +import RestApiPaginationResultStoreHeader from './model/RestApiPaginationResultStoreHeader'; +import RestApiPaginationResultStoreValidationConfig from './model/RestApiPaginationResultStoreValidationConfig'; +import RestApiPaginationResultUserSearch from './model/RestApiPaginationResultUserSearch'; +import RestApiPaginationResultVoucherSummary from './model/RestApiPaginationResultVoucherSummary'; +import RestApiPaginationResultWebhookLog from './model/RestApiPaginationResultWebhookLog'; +import RestApiPaginationResultWebhookSubscription from './model/RestApiPaginationResultWebhookSubscription'; +import RestApiResultAcceptInvitationResult from './model/RestApiResultAcceptInvitationResult'; +import RestApiResultAccountDetail from './model/RestApiResultAccountDetail'; +import RestApiResultAccountFieldsDefinitions from './model/RestApiResultAccountFieldsDefinitions'; +import RestApiResultAddressFormResponse from './model/RestApiResultAddressFormResponse'; +import RestApiResultApmStatistics from './model/RestApiResultApmStatistics'; +import RestApiResultApmStatus from './model/RestApiResultApmStatus'; +import RestApiResultApp from './model/RestApiResultApp'; +import RestApiResultAppChannelAssignment from './model/RestApiResultAppChannelAssignment'; +import RestApiResultAppCompliance from './model/RestApiResultAppCompliance'; +import RestApiResultAppConfigSalesChannel from './model/RestApiResultAppConfigSalesChannel'; +import RestApiResultAppStoreApp from './model/RestApiResultAppStoreApp'; +import RestApiResultAppStoreAppConfiguration from './model/RestApiResultAppStoreAppConfiguration'; +import RestApiResultAppStoreAppEntitlements from './model/RestApiResultAppStoreAppEntitlements'; +import RestApiResultAssignedBankAccount from './model/RestApiResultAssignedBankAccount'; +import RestApiResultBankAccountDetail from './model/RestApiResultBankAccountDetail'; +import RestApiResultBluetoothTerminalStatus from './model/RestApiResultBluetoothTerminalStatus'; +import RestApiResultBusinessHoursOverride from './model/RestApiResultBusinessHoursOverride'; +import RestApiResultBusinessHoursPeriod from './model/RestApiResultBusinessHoursPeriod'; +import RestApiResultCardReader from './model/RestApiResultCardReader'; +import RestApiResultCatalogItem from './model/RestApiResultCatalogItem'; +import RestApiResultChannel from './model/RestApiResultChannel'; +import RestApiResultClientDevice from './model/RestApiResultClientDevice'; +import RestApiResultClientDeviceEnrollmentResult from './model/RestApiResultClientDeviceEnrollmentResult'; +import RestApiResultCoordinates from './model/RestApiResultCoordinates'; +import RestApiResultCountryFormResponse from './model/RestApiResultCountryFormResponse'; +import RestApiResultCreatedMenuSectionItems from './model/RestApiResultCreatedMenuSectionItems'; +import RestApiResultCrossSellMenuItems from './model/RestApiResultCrossSellMenuItems'; +import RestApiResultCustomer from './model/RestApiResultCustomer'; +import RestApiResultCustomers from './model/RestApiResultCustomers'; +import RestApiResultDeliveryZone from './model/RestApiResultDeliveryZone'; +import RestApiResultDnsRecordInformation from './model/RestApiResultDnsRecordInformation'; +import RestApiResultExecuteConfigurationActionResult from './model/RestApiResultExecuteConfigurationActionResult'; +import RestApiResultFileCreationResult from './model/RestApiResultFileCreationResult'; +import RestApiResultFileDownloadResult from './model/RestApiResultFileDownloadResult'; +import RestApiResultFulfillmentStatesConfiguration from './model/RestApiResultFulfillmentStatesConfiguration'; +import RestApiResultGroup from './model/RestApiResultGroup'; +import RestApiResultHasPaymentMethodResponse from './model/RestApiResultHasPaymentMethodResponse'; +import RestApiResultHomeStatistics from './model/RestApiResultHomeStatistics'; +import RestApiResultHydraConfig from './model/RestApiResultHydraConfig'; +import RestApiResultHydraDeviceDetails from './model/RestApiResultHydraDeviceDetails'; +import RestApiResultHydraStatus from './model/RestApiResultHydraStatus'; +import RestApiResultIndexPage from './model/RestApiResultIndexPage'; +import RestApiResultIndexPageBase from './model/RestApiResultIndexPageBase'; +import RestApiResultIntercomUserHash from './model/RestApiResultIntercomUserHash'; +import RestApiResultJobResponse from './model/RestApiResultJobResponse'; +import RestApiResultKioskEntitlementsResult from './model/RestApiResultKioskEntitlementsResult'; +import RestApiResultKioskIotConnectionParameters from './model/RestApiResultKioskIotConnectionParameters'; +import RestApiResultKioskSettings from './model/RestApiResultKioskSettings'; +import RestApiResultLightspeedSettings from './model/RestApiResultLightspeedSettings'; +import RestApiResultLocationArea from './model/RestApiResultLocationArea'; +import RestApiResultLocationAreaLocation from './model/RestApiResultLocationAreaLocation'; +import RestApiResultLocationAreaWithLocations from './model/RestApiResultLocationAreaWithLocations'; +import RestApiResultLoyaltyCampaign from './model/RestApiResultLoyaltyCampaign'; +import RestApiResultMappedLocation from './model/RestApiResultMappedLocation'; +import RestApiResultMenu from './model/RestApiResultMenu'; +import RestApiResultMenuItemOptionSet from './model/RestApiResultMenuItemOptionSet'; +import RestApiResultMenuItemOptionSetItem from './model/RestApiResultMenuItemOptionSetItem'; +import RestApiResultMenuNutritionInfoHeader from './model/RestApiResultMenuNutritionInfoHeader'; +import RestApiResultMenuSection from './model/RestApiResultMenuSection'; +import RestApiResultMenuSectionAvailability from './model/RestApiResultMenuSectionAvailability'; +import RestApiResultMenuSectionItem from './model/RestApiResultMenuSectionItem'; +import RestApiResultMenuZone from './model/RestApiResultMenuZone'; +import RestApiResultMetadata from './model/RestApiResultMetadata'; +import RestApiResultMetafieldDefinition from './model/RestApiResultMetafieldDefinition'; +import RestApiResultMobileAppsImage from './model/RestApiResultMobileAppsImage'; +import RestApiResultMobileAppsSubmission from './model/RestApiResultMobileAppsSubmission'; +import RestApiResultMobileAppsSubmissionDetails from './model/RestApiResultMobileAppsSubmissionDetails'; +import RestApiResultMobileAppsSubmissionStatus from './model/RestApiResultMobileAppsSubmissionStatus'; +import RestApiResultModelBase from './model/RestApiResultModelBase'; +import RestApiResultNutritionInfo from './model/RestApiResultNutritionInfo'; +import RestApiResultNutritionInfoV2 from './model/RestApiResultNutritionInfoV2'; +import RestApiResultOAuthApp from './model/RestApiResultOAuthApp'; +import RestApiResultOauthClientRedirectUri from './model/RestApiResultOauthClientRedirectUri'; +import RestApiResultOktaPortalFeatureFlag from './model/RestApiResultOktaPortalFeatureFlag'; +import RestApiResultOrder from './model/RestApiResultOrder'; +import RestApiResultOrderBatch from './model/RestApiResultOrderBatch'; +import RestApiResultOrderBatchingConfiguration from './model/RestApiResultOrderBatchingConfiguration'; +import RestApiResultOrderDeliveryInformation from './model/RestApiResultOrderDeliveryInformation'; +import RestApiResultOrderFulfillmentStatus from './model/RestApiResultOrderFulfillmentStatus'; +import RestApiResultOrderFulfillmentStatusWithConfigurationActions from './model/RestApiResultOrderFulfillmentStatusWithConfigurationActions'; +import RestApiResultOrderLeadTimes from './model/RestApiResultOrderLeadTimes'; +import RestApiResultOrderPaymentInformation from './model/RestApiResultOrderPaymentInformation'; +import RestApiResultPaymentIntent from './model/RestApiResultPaymentIntent'; +import RestApiResultPaymentTerminalDetails from './model/RestApiResultPaymentTerminalDetails'; +import RestApiResultPaymentTerminalTransactionDetails from './model/RestApiResultPaymentTerminalTransactionDetails'; +import RestApiResultPayoutReport3Details from './model/RestApiResultPayoutReport3Details'; +import RestApiResultPayoutReport3Overview from './model/RestApiResultPayoutReport3Overview'; +import RestApiResultPreOrderConfig from './model/RestApiResultPreOrderConfig'; +import RestApiResultProcessingFeeConfig from './model/RestApiResultProcessingFeeConfig'; +import RestApiResultProduct from './model/RestApiResultProduct'; +import RestApiResultPushNotificationResponse from './model/RestApiResultPushNotificationResponse'; +import RestApiResultRedeemInvitationResult from './model/RestApiResultRedeemInvitationResult'; +import RestApiResultRestApiDefaultResponse from './model/RestApiResultRestApiDefaultResponse'; +import RestApiResultRestApiIntegerResult from './model/RestApiResultRestApiIntegerResult'; +import RestApiResultRestaurantVoucherPayGreenConfiguration from './model/RestApiResultRestaurantVoucherPayGreenConfiguration'; +import RestApiResultRestaurantVoucherPayGreenStoreConfiguration from './model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration'; +import RestApiResultRetentionCampaign from './model/RestApiResultRetentionCampaign'; +import RestApiResultServiceCharge from './model/RestApiResultServiceCharge'; +import RestApiResultSmsProviderCredential from './model/RestApiResultSmsProviderCredential'; +import RestApiResultStore from './model/RestApiResultStore'; +import RestApiResultStoreAddress from './model/RestApiResultStoreAddress'; +import RestApiResultStoreChannelAssignment from './model/RestApiResultStoreChannelAssignment'; +import RestApiResultStoreEndOfDayReport from './model/RestApiResultStoreEndOfDayReport'; +import RestApiResultStoreGroup from './model/RestApiResultStoreGroup'; +import RestApiResultStoreGroupBase from './model/RestApiResultStoreGroupBase'; +import RestApiResultStoreOrderCapacityConfig from './model/RestApiResultStoreOrderCapacityConfig'; +import RestApiResultStripeConnectedAccount from './model/RestApiResultStripeConnectedAccount'; +import RestApiResultStripeTerminalConnectionToken from './model/RestApiResultStripeTerminalConnectionToken'; +import RestApiResultStripeTerminalLocation from './model/RestApiResultStripeTerminalLocation'; +import RestApiResultStuartSettings from './model/RestApiResultStuartSettings'; +import RestApiResultSubscription from './model/RestApiResultSubscription'; +import RestApiResultTeammate from './model/RestApiResultTeammate'; +import RestApiResultTelemetrySeriesResult from './model/RestApiResultTelemetrySeriesResult'; +import RestApiResultTipConfiguration from './model/RestApiResultTipConfiguration'; +import RestApiResultUpdateMobileAppsSubmissionStatus from './model/RestApiResultUpdateMobileAppsSubmissionStatus'; +import RestApiResultUserInfo from './model/RestApiResultUserInfo'; +import RestApiResultUserRole from './model/RestApiResultUserRole'; +import RestApiResultVoucher from './model/RestApiResultVoucher'; +import RestApiResultVoucherWithStats from './model/RestApiResultVoucherWithStats'; +import RestApiResultWebsiteImage from './model/RestApiResultWebsiteImage'; +import RestApiResultWebsiteTestimonial from './model/RestApiResultWebsiteTestimonial'; +import RestApiStringArrayResult from './model/RestApiStringArrayResult'; +import RestApiStringResult from './model/RestApiStringResult'; +import RestApiUnauthorizedResult from './model/RestApiUnauthorizedResult'; +import Restaurant from './model/Restaurant'; +import RestaurantVoucherAssignedStore from './model/RestaurantVoucherAssignedStore'; +import RestaurantVoucherEligibleStore from './model/RestaurantVoucherEligibleStore'; +import RestaurantVoucherPayGreenConfiguration from './model/RestaurantVoucherPayGreenConfiguration'; +import RestaurantVoucherPayGreenConfigurationSummary from './model/RestaurantVoucherPayGreenConfigurationSummary'; +import RestaurantVoucherPayGreenStoreConfiguration from './model/RestaurantVoucherPayGreenStoreConfiguration'; +import RetentionCampaign from './model/RetentionCampaign'; +import RetentionCampaignBase from './model/RetentionCampaignBase'; +import RetentionCampaignCreatedEvent from './model/RetentionCampaignCreatedEvent'; +import RetentionCampaignDeletedEvent from './model/RetentionCampaignDeletedEvent'; +import RetentionCampaignUpdatedEvent from './model/RetentionCampaignUpdatedEvent'; +import RevenueAdjustmentsDetails from './model/RevenueAdjustmentsDetails'; +import RevenueDetail from './model/RevenueDetail'; +import SafeWaitHandle from './model/SafeWaitHandle'; +import SearchCriteria from './model/SearchCriteria'; +import ServiceCharge from './model/ServiceCharge'; +import SetOrderBatchingConfiguration from './model/SetOrderBatchingConfiguration'; +import SetPasswordWithPinModel from './model/SetPasswordWithPinModel'; +import SetVoucherValidityPeriodsSimplifiedRequest from './model/SetVoucherValidityPeriodsSimplifiedRequest'; +import Setting from './model/Setting'; +import SignupStep from './model/SignupStep'; +import SmsInfo from './model/SmsInfo'; +import SmsProviderCredential from './model/SmsProviderCredential'; +import SmsProviderCredentialUpdateRequest from './model/SmsProviderCredentialUpdateRequest'; +import SmsReceivedEvent from './model/SmsReceivedEvent'; +import StatisticsCurrencyDataPoint from './model/StatisticsCurrencyDataPoint'; +import Store from './model/Store'; +import StoreAddress from './model/StoreAddress'; +import StoreAddressBase from './model/StoreAddressBase'; +import StoreAddressForm from './model/StoreAddressForm'; +import StoreAddressUpdatedEvent from './model/StoreAddressUpdatedEvent'; +import StoreArchivedEvent from './model/StoreArchivedEvent'; +import StoreBase from './model/StoreBase'; +import StoreBusinessHoursOverrideCreatedEvent from './model/StoreBusinessHoursOverrideCreatedEvent'; +import StoreBusinessHoursOverrideDeletedEvent from './model/StoreBusinessHoursOverrideDeletedEvent'; +import StoreCampaignStartTime from './model/StoreCampaignStartTime'; +import StoreChannelAssignment from './model/StoreChannelAssignment'; +import StoreCloneSettings from './model/StoreCloneSettings'; +import StoreCollectionSettings from './model/StoreCollectionSettings'; +import StoreConfig from './model/StoreConfig'; +import StoreCreateBase from './model/StoreCreateBase'; +import StoreCreatedEvent from './model/StoreCreatedEvent'; +import StoreDataPoint from './model/StoreDataPoint'; +import StoreDeletedEvent from './model/StoreDeletedEvent'; +import StoreDeliveryZoneFeeConfig from './model/StoreDeliveryZoneFeeConfig'; +import StoreDeliveryZoneFeeConfigUpdateRequest from './model/StoreDeliveryZoneFeeConfigUpdateRequest'; +import StoreEndOfDayReport from './model/StoreEndOfDayReport'; +import StoreFeeConfig from './model/StoreFeeConfig'; +import StoreFeeConfigUpdatedEvent from './model/StoreFeeConfigUpdatedEvent'; +import StoreGroup from './model/StoreGroup'; +import StoreGroupBase from './model/StoreGroupBase'; +import StoreGroupCreatedEvent from './model/StoreGroupCreatedEvent'; +import StoreGroupDeletedEvent from './model/StoreGroupDeletedEvent'; +import StoreGroupExtended from './model/StoreGroupExtended'; +import StoreGroupUpdatedEvent from './model/StoreGroupUpdatedEvent'; +import StoreHeader from './model/StoreHeader'; +import StoreItemHeader from './model/StoreItemHeader'; +import StoreKioskSetting from './model/StoreKioskSetting'; +import StoreKioskSettingUpdatedEvent from './model/StoreKioskSettingUpdatedEvent'; +import StoreListItem from './model/StoreListItem'; +import StoreLogoCreatedEvent from './model/StoreLogoCreatedEvent'; +import StoreLogoDeletedEvent from './model/StoreLogoDeletedEvent'; +import StoreLogoUpdatedEvent from './model/StoreLogoUpdatedEvent'; +import StoreMenuAssignedEvent from './model/StoreMenuAssignedEvent'; +import StoreNote from './model/StoreNote'; +import StoreOpeningHoursUpdatedEvent from './model/StoreOpeningHoursUpdatedEvent'; +import StoreOrderCapacityConfig from './model/StoreOrderCapacityConfig'; +import StoreOrderCapacityConfigEditModel from './model/StoreOrderCapacityConfigEditModel'; +import StoreOrderCapacityPeriod from './model/StoreOrderCapacityPeriod'; +import StorePreOrderConfigUpdatedEvent from './model/StorePreOrderConfigUpdatedEvent'; +import StorePublishedEvent from './model/StorePublishedEvent'; +import StoreServiceChargeUpdatedEvent from './model/StoreServiceChargeUpdatedEvent'; +import StoreStatistics from './model/StoreStatistics'; +import StoreSummary from './model/StoreSummary'; +import StoreTipUpdatedEvent from './model/StoreTipUpdatedEvent'; +import StoreUnarchivedEvent from './model/StoreUnarchivedEvent'; +import StoreUnpublishedEvent from './model/StoreUnpublishedEvent'; +import StoreUpdatedEvent from './model/StoreUpdatedEvent'; +import StoreValidationConfig from './model/StoreValidationConfig'; +import Stream from './model/Stream'; +import StripeAccountLinkRequest from './model/StripeAccountLinkRequest'; +import StripeConnectedAccount from './model/StripeConnectedAccount'; +import StripeConnectedAccountInfo from './model/StripeConnectedAccountInfo'; +import StripeCustomConnectedAccount from './model/StripeCustomConnectedAccount'; +import StripeTerminalConnectionToken from './model/StripeTerminalConnectionToken'; +import StripeTerminalLocation from './model/StripeTerminalLocation'; +import StuartSettings from './model/StuartSettings'; +import StuartSettingsTransportPrices from './model/StuartSettingsTransportPrices'; +import Subscription from './model/Subscription'; +import SubscriptionInvoice from './model/SubscriptionInvoice'; +import SubscriptionProduct from './model/SubscriptionProduct'; +import SubscriptionStore from './model/SubscriptionStore'; +import SubscriptionSummary from './model/SubscriptionSummary'; +import SupportedCountry from './model/SupportedCountry'; +import TaxItem from './model/TaxItem'; +import TaxRate from './model/TaxRate'; +import Teammate from './model/Teammate'; +import TeammateBase from './model/TeammateBase'; +import TeammateDeletedEvent from './model/TeammateDeletedEvent'; +import TeammateInviteAcceptedEvent from './model/TeammateInviteAcceptedEvent'; +import TeammateInviteSentEvent from './model/TeammateInviteSentEvent'; +import TeammateUpdatedEvent from './model/TeammateUpdatedEvent'; +import TelemetrySeriesProperty from './model/TelemetrySeriesProperty'; +import TelemetrySeriesQueryParameters from './model/TelemetrySeriesQueryParameters'; +import TelemetrySeriesResult from './model/TelemetrySeriesResult'; +import TelephonyConfig from './model/TelephonyConfig'; +import TelephonyConfigUpdatedEvent from './model/TelephonyConfigUpdatedEvent'; +import ThirdPartyFeesDetails from './model/ThirdPartyFeesDetails'; +import TipConfiguration from './model/TipConfiguration'; +import UnRegisterCardReaderRequest from './model/UnRegisterCardReaderRequest'; +import UpcomingInvoice from './model/UpcomingInvoice'; +import UpdateAppStoreApp from './model/UpdateAppStoreApp'; +import UpdateAppStoreAppConfiguration from './model/UpdateAppStoreAppConfiguration'; +import UpdateAppStoreAppConfigurationValuesBatch from './model/UpdateAppStoreAppConfigurationValuesBatch'; +import UpdateAppStoreAppConfigurationWebhookDTO from './model/UpdateAppStoreAppConfigurationWebhookDTO'; +import UpdateAppStoreAppExternalProduct from './model/UpdateAppStoreAppExternalProduct'; +import UpdateCatalogGroupReference from './model/UpdateCatalogGroupReference'; +import UpdateCatalogItem from './model/UpdateCatalogItem'; +import UpdateDriverNotificationToken from './model/UpdateDriverNotificationToken'; +import UpdateDriverProfileModel from './model/UpdateDriverProfileModel'; +import UpdateFulfillmentStatesConfiguration from './model/UpdateFulfillmentStatesConfiguration'; +import UpdateGroup from './model/UpdateGroup'; +import UpdateGroupReference from './model/UpdateGroupReference'; +import UpdateLocationArea from './model/UpdateLocationArea'; +import UpdateMetafieldDefinition from './model/UpdateMetafieldDefinition'; +import UpdateMobileAppsSubmissionStatus from './model/UpdateMobileAppsSubmissionStatus'; +import UpdatePayGreenConfigurationRequest from './model/UpdatePayGreenConfigurationRequest'; +import UpdateProduct from './model/UpdateProduct'; +import UpdateProductReference from './model/UpdateProductReference'; +import UpdateStorePayGreenConfigurationRequest from './model/UpdateStorePayGreenConfigurationRequest'; +import UpdateTipConfiguration from './model/UpdateTipConfiguration'; +import UpdateVoucher from './model/UpdateVoucher'; +import UpdateVoucherUsage from './model/UpdateVoucherUsage'; +import UserAnsweredSignupQuestionsEvent from './model/UserAnsweredSignupQuestionsEvent'; +import UserCreatedEvent from './model/UserCreatedEvent'; +import UserDeletedEvent from './model/UserDeletedEvent'; +import UserEventInfo from './model/UserEventInfo'; +import UserFlipdishAccount from './model/UserFlipdishAccount'; +import UserInfo from './model/UserInfo'; +import UserLoginEvent from './model/UserLoginEvent'; +import UserMonthlyCommission from './model/UserMonthlyCommission'; +import UserNote from './model/UserNote'; +import UserPasswordCreatedEvent from './model/UserPasswordCreatedEvent'; +import UserRole from './model/UserRole'; +import UserSearch from './model/UserSearch'; +import UserStoreInfo from './model/UserStoreInfo'; +import UserUpdatedEvent from './model/UserUpdatedEvent'; +import UserWhiteLabelConfig from './model/UserWhiteLabelConfig'; +import UserWhiteLabelInfo from './model/UserWhiteLabelInfo'; +import ValidValue from './model/ValidValue'; +import ValidationErrorResult from './model/ValidationErrorResult'; +import ValidityPeriod from './model/ValidityPeriod'; +import Voucher from './model/Voucher'; +import VoucherAppliedEvent from './model/VoucherAppliedEvent'; +import VoucherCreatedEvent from './model/VoucherCreatedEvent'; +import VoucherDataPoint from './model/VoucherDataPoint'; +import VoucherDeletedEvent from './model/VoucherDeletedEvent'; +import VoucherSummary from './model/VoucherSummary'; +import VoucherUpdatedEvent from './model/VoucherUpdatedEvent'; +import VoucherWithStats from './model/VoucherWithStats'; +import WaitHandle from './model/WaitHandle'; +import WebhookEventSample from './model/WebhookEventSample'; +import WebhookLog from './model/WebhookLog'; +import WebhookSubscription from './model/WebhookSubscription'; +import WebhookSubscriptionCreatedEvent from './model/WebhookSubscriptionCreatedEvent'; +import WebhookSubscriptionDeletedEvent from './model/WebhookSubscriptionDeletedEvent'; +import WebhookSubscriptionEventInfo from './model/WebhookSubscriptionEventInfo'; +import WebhookSubscriptionUpdatedEvent from './model/WebhookSubscriptionUpdatedEvent'; +import WebsiteImage from './model/WebsiteImage'; +import WebsiteTestimonial from './model/WebsiteTestimonial'; +import WebsiteTestimonialBase from './model/WebsiteTestimonialBase'; +import WebsiteUpdatedEvent from './model/WebsiteUpdatedEvent'; +import WebsiteVanityUrlUpdatedEvent from './model/WebsiteVanityUrlUpdatedEvent'; +import WhiteLabelConfig from './model/WhiteLabelConfig'; +import AccountsApi from './api/AccountsApi'; +import AddressApi from './api/AddressApi'; +import ApmApi from './api/ApmApi'; +import AppStoreApi from './api/AppStoreApi'; +import AppStoreConfigurationsApi from './api/AppStoreConfigurationsApi'; +import AppStoreDeveloperApi from './api/AppStoreDeveloperApi'; +import AppStoreEntitlementsApi from './api/AppStoreEntitlementsApi'; +import AppsApi from './api/AppsApi'; +import AuditLogsApi from './api/AuditLogsApi'; +import AuthorizationTokensApi from './api/AuthorizationTokensApi'; +import BankAccountApi from './api/BankAccountApi'; +import CampaignsApi from './api/CampaignsApi'; +import CardReadersApi from './api/CardReadersApi'; +import CatalogChangesApi from './api/CatalogChangesApi'; +import CatalogGroupsApi from './api/CatalogGroupsApi'; +import CatalogImagesApi from './api/CatalogImagesApi'; +import CatalogItemsApi from './api/CatalogItemsApi'; +import CatalogProductsApi from './api/CatalogProductsApi'; +import ChannelsApi from './api/ChannelsApi'; +import ClientsApi from './api/ClientsApi'; +import ContentSecurityPolicyApi from './api/ContentSecurityPolicyApi'; +import CrossSellApi from './api/CrossSellApi'; +import CustomersApi from './api/CustomersApi'; +import DeliveryZoneApi from './api/DeliveryZoneApi'; +import DeviceApi from './api/DeviceApi'; +import DriversApi from './api/DriversApi'; +import EventsApi from './api/EventsApi'; +import FeaturesApi from './api/FeaturesApi'; +import FilesApi from './api/FilesApi'; +import FirebaseAppsApi from './api/FirebaseAppsApi'; +import FpmApi from './api/FpmApi'; +import FulfillmentStateConfigurationApi from './api/FulfillmentStateConfigurationApi'; +import HeartbeatApi from './api/HeartbeatApi'; +import HomeApi from './api/HomeApi'; +import HydraApi from './api/HydraApi'; +import IntercomApi from './api/IntercomApi'; +import InvoicesApi from './api/InvoicesApi'; +import KioskEntitlementsApi from './api/KioskEntitlementsApi'; +import KioskIotApi from './api/KioskIotApi'; +import LightspeedApi from './api/LightspeedApi'; +import LocationApi from './api/LocationApi'; +import LocationAreasApi from './api/LocationAreasApi'; +import LookerDashboardApi from './api/LookerDashboardApi'; +import LookerSingleSignOnApi from './api/LookerSingleSignOnApi'; +import MenuOptionSetItemsApi from './api/MenuOptionSetItemsApi'; +import MenuOptionSetsApi from './api/MenuOptionSetsApi'; +import MenuSectionItemsApi from './api/MenuSectionItemsApi'; +import MenuSectionsApi from './api/MenuSectionsApi'; +import MenuZonesApi from './api/MenuZonesApi'; +import MenusApi from './api/MenusApi'; +import MenusNutritionInfoApi from './api/MenusNutritionInfoApi'; +import MenusNutritionInfoV2Api from './api/MenusNutritionInfoV2Api'; +import MetafieldDefinitionsApi from './api/MetafieldDefinitionsApi'; +import MobileAppsApi from './api/MobileAppsApi'; +import OAuthClientsApi from './api/OAuthClientsApi'; +import OnboardingApi from './api/OnboardingApi'; +import OrderBatchesApi from './api/OrderBatchesApi'; +import OrderBatchingConfigurationApi from './api/OrderBatchingConfigurationApi'; +import OrdersApi from './api/OrdersApi'; +import PaymentIntentsApi from './api/PaymentIntentsApi'; +import PaymentsApi from './api/PaymentsApi'; +import PayoutReportsApi from './api/PayoutReportsApi'; +import PayoutsApi from './api/PayoutsApi'; +import PayoutsExportApi from './api/PayoutsExportApi'; +import ProcessingFeeConfigsApi from './api/ProcessingFeeConfigsApi'; +import PushNotificationsApi from './api/PushNotificationsApi'; +import ReceiptsApi from './api/ReceiptsApi'; +import RestaurantVouchersPayGreenApi from './api/RestaurantVouchersPayGreenApi'; +import SearchApi from './api/SearchApi'; +import SmsProviderCredentialsApi from './api/SmsProviderCredentialsApi'; +import StoreGroupsApi from './api/StoreGroupsApi'; +import StoreOrderCapacityApi from './api/StoreOrderCapacityApi'; +import StoresApi from './api/StoresApi'; +import StripeCustomConnectApi from './api/StripeCustomConnectApi'; +import StuartApi from './api/StuartApi'; +import SubscriptionsApi from './api/SubscriptionsApi'; +import TeammatesApi from './api/TeammatesApi'; +import TerminalIotApi from './api/TerminalIotApi'; +import TipsApi from './api/TipsApi'; +import UsersApi from './api/UsersApi'; +import VouchersApi from './api/VouchersApi'; +import WebhooksApi from './api/WebhooksApi'; +import WebsiteApi from './api/WebsiteApi'; + + +/** +* JS API client generated by OpenAPI Generator.
+* The index module provides access to constructors for all the classes which comprise the public API. +*

+* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: +*

+* var Flipdish = require('index'); // See note below*.
+* var xxxSvc = new Flipdish.XxxApi(); // Allocate the API class we're going to use.
+* var yyyModel = new Flipdish.Yyy(); // Construct a model instance.
+* yyyModel.someProperty = 'someValue';
+* ...
+* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+* ...
+* 
+* *NOTE: For a top-level AMD script, use require(['index'], function(){...}) +* and put the application logic within the callback function. +*

+*

+* A non-AMD browser application (discouraged) might do something like this: +*

+* var xxxSvc = new Flipdish.XxxApi(); // Allocate the API class we're going to use.
+* var yyy = new Flipdish.Yyy(); // Construct a model instance.
+* yyyModel.someProperty = 'someValue';
+* ...
+* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+* ...
+* 
+*

+* @module index +* @version 1.0.0 +*/ +export { + /** + * The ApiClient constructor. + * @property {module:ApiClient} + */ + ApiClient, + + /** + * The Accept model constructor. + * @property {module:model/Accept} + */ + Accept, + + /** + * The AcceptInvitationResult model constructor. + * @property {module:model/AcceptInvitationResult} + */ + AcceptInvitationResult, + + /** + * The AccountDetail model constructor. + * @property {module:model/AccountDetail} + */ + AccountDetail, + + /** + * The AccountDetailBase model constructor. + * @property {module:model/AccountDetailBase} + */ + AccountDetailBase, + + /** + * The AccountFieldDefinition model constructor. + * @property {module:model/AccountFieldDefinition} + */ + AccountFieldDefinition, + + /** + * The AccountFieldKeyValuePair model constructor. + * @property {module:model/AccountFieldKeyValuePair} + */ + AccountFieldKeyValuePair, + + /** + * The AccountFieldsDefinitions model constructor. + * @property {module:model/AccountFieldsDefinitions} + */ + AccountFieldsDefinitions, + + /** + * The AddressFormDisplayFormat model constructor. + * @property {module:model/AddressFormDisplayFormat} + */ + AddressFormDisplayFormat, + + /** + * The AddressFormResponse model constructor. + * @property {module:model/AddressFormResponse} + */ + AddressFormResponse, + + /** + * The AllMetadataResult model constructor. + * @property {module:model/AllMetadataResult} + */ + AllMetadataResult, + + /** + * The Allergen model constructor. + * @property {module:model/Allergen} + */ + Allergen, + + /** + * The AnalyticsClientEvent model constructor. + * @property {module:model/AnalyticsClientEvent} + */ + AnalyticsClientEvent, + + /** + * The ApmCurrencyDataPoint model constructor. + * @property {module:model/ApmCurrencyDataPoint} + */ + ApmCurrencyDataPoint, + + /** + * The ApmDataPoint model constructor. + * @property {module:model/ApmDataPoint} + */ + ApmDataPoint, + + /** + * The ApmHourlyDataPoint model constructor. + * @property {module:model/ApmHourlyDataPoint} + */ + ApmHourlyDataPoint, + + /** + * The ApmStatistics model constructor. + * @property {module:model/ApmStatistics} + */ + ApmStatistics, + + /** + * The ApmStatus model constructor. + * @property {module:model/ApmStatus} + */ + ApmStatus, + + /** + * The App model constructor. + * @property {module:model/App} + */ + App, + + /** + * The AppChannelAssignment model constructor. + * @property {module:model/AppChannelAssignment} + */ + AppChannelAssignment, + + /** + * The AppCompliance model constructor. + * @property {module:model/AppCompliance} + */ + AppCompliance, + + /** + * The AppConfigSalesChannel model constructor. + * @property {module:model/AppConfigSalesChannel} + */ + AppConfigSalesChannel, + + /** + * The AppConfigUpdateModel model constructor. + * @property {module:model/AppConfigUpdateModel} + */ + AppConfigUpdateModel, + + /** + * The AppCreatedEvent model constructor. + * @property {module:model/AppCreatedEvent} + */ + AppCreatedEvent, + + /** + * The AppInstall model constructor. + * @property {module:model/AppInstall} + */ + AppInstall, + + /** + * The AppLookup model constructor. + * @property {module:model/AppLookup} + */ + AppLookup, + + /** + * The AppStoreApp model constructor. + * @property {module:model/AppStoreApp} + */ + AppStoreApp, + + /** + * The AppStoreAppConfiguration model constructor. + * @property {module:model/AppStoreAppConfiguration} + */ + AppStoreAppConfiguration, + + /** + * The AppStoreAppConfigurationSummary model constructor. + * @property {module:model/AppStoreAppConfigurationSummary} + */ + AppStoreAppConfigurationSummary, + + /** + * The AppStoreAppEntitlements model constructor. + * @property {module:model/AppStoreAppEntitlements} + */ + AppStoreAppEntitlements, + + /** + * The AppStoreAppSummary model constructor. + * @property {module:model/AppStoreAppSummary} + */ + AppStoreAppSummary, + + /** + * The AppStoreAppSupportInfo model constructor. + * @property {module:model/AppStoreAppSupportInfo} + */ + AppStoreAppSupportInfo, + + /** + * The AppStoreConfigCreatedEvent model constructor. + * @property {module:model/AppStoreConfigCreatedEvent} + */ + AppStoreConfigCreatedEvent, + + /** + * The AppStoreConfigDeletedEvent model constructor. + * @property {module:model/AppStoreConfigDeletedEvent} + */ + AppStoreConfigDeletedEvent, + + /** + * The AppStoreConfigUpdatedEvent model constructor. + * @property {module:model/AppStoreConfigUpdatedEvent} + */ + AppStoreConfigUpdatedEvent, + + /** + * The AppStoreSubscriptionChangeJobUpdatedEvent model constructor. + * @property {module:model/AppStoreSubscriptionChangeJobUpdatedEvent} + */ + AppStoreSubscriptionChangeJobUpdatedEvent, + + /** + * The AppUpdatedEvent model constructor. + * @property {module:model/AppUpdatedEvent} + */ + AppUpdatedEvent, + + /** + * The AssignedBankAccount model constructor. + * @property {module:model/AssignedBankAccount} + */ + AssignedBankAccount, + + /** + * The AuditLogFieldChangeInformation model constructor. + * @property {module:model/AuditLogFieldChangeInformation} + */ + AuditLogFieldChangeInformation, + + /** + * The BalanceDetails model constructor. + * @property {module:model/BalanceDetails} + */ + BalanceDetails, + + /** + * The BankAccount model constructor. + * @property {module:model/BankAccount} + */ + BankAccount, + + /** + * The BankAccountAssignedEvent model constructor. + * @property {module:model/BankAccountAssignedEvent} + */ + BankAccountAssignedEvent, + + /** + * The BankAccountCreate model constructor. + * @property {module:model/BankAccountCreate} + */ + BankAccountCreate, + + /** + * The BankAccountCreatedEvent model constructor. + * @property {module:model/BankAccountCreatedEvent} + */ + BankAccountCreatedEvent, + + /** + * The BankAccountDeletedEvent model constructor. + * @property {module:model/BankAccountDeletedEvent} + */ + BankAccountDeletedEvent, + + /** + * The BankAccountDetail model constructor. + * @property {module:model/BankAccountDetail} + */ + BankAccountDetail, + + /** + * The BankAccountDetailsUpdateRequest model constructor. + * @property {module:model/BankAccountDetailsUpdateRequest} + */ + BankAccountDetailsUpdateRequest, + + /** + * The BankAccountSummary model constructor. + * @property {module:model/BankAccountSummary} + */ + BankAccountSummary, + + /** + * The BankAccountUpdatedEvent model constructor. + * @property {module:model/BankAccountUpdatedEvent} + */ + BankAccountUpdatedEvent, + + /** + * The BluetoothTerminalStatus model constructor. + * @property {module:model/BluetoothTerminalStatus} + */ + BluetoothTerminalStatus, + + /** + * The BusinessHoursOverride model constructor. + * @property {module:model/BusinessHoursOverride} + */ + BusinessHoursOverride, + + /** + * The BusinessHoursOverrideBase model constructor. + * @property {module:model/BusinessHoursOverrideBase} + */ + BusinessHoursOverrideBase, + + /** + * The BusinessHoursPeriod model constructor. + * @property {module:model/BusinessHoursPeriod} + */ + BusinessHoursPeriod, + + /** + * The BusinessHoursPeriodBase model constructor. + * @property {module:model/BusinessHoursPeriodBase} + */ + BusinessHoursPeriodBase, + + /** + * The CampaignStatistics model constructor. + * @property {module:model/CampaignStatistics} + */ + CampaignStatistics, + + /** + * The CancellationToken model constructor. + * @property {module:model/CancellationToken} + */ + CancellationToken, + + /** + * The CardReader model constructor. + * @property {module:model/CardReader} + */ + CardReader, + + /** + * The CardReaderRegistrationRequest model constructor. + * @property {module:model/CardReaderRegistrationRequest} + */ + CardReaderRegistrationRequest, + + /** + * The CatalogGroupArchivedEvent model constructor. + * @property {module:model/CatalogGroupArchivedEvent} + */ + CatalogGroupArchivedEvent, + + /** + * The CatalogGroupCreatedEvent model constructor. + * @property {module:model/CatalogGroupCreatedEvent} + */ + CatalogGroupCreatedEvent, + + /** + * The CatalogGroupReference model constructor. + * @property {module:model/CatalogGroupReference} + */ + CatalogGroupReference, + + /** + * The CatalogGroupUpdatedEvent model constructor. + * @property {module:model/CatalogGroupUpdatedEvent} + */ + CatalogGroupUpdatedEvent, + + /** + * The CatalogImage model constructor. + * @property {module:model/CatalogImage} + */ + CatalogImage, + + /** + * The CatalogItem model constructor. + * @property {module:model/CatalogItem} + */ + CatalogItem, + + /** + * The CatalogItemArchivedEvent model constructor. + * @property {module:model/CatalogItemArchivedEvent} + */ + CatalogItemArchivedEvent, + + /** + * The CatalogItemCreatedEvent model constructor. + * @property {module:model/CatalogItemCreatedEvent} + */ + CatalogItemCreatedEvent, + + /** + * The CatalogItemUpdatedEvent model constructor. + * @property {module:model/CatalogItemUpdatedEvent} + */ + CatalogItemUpdatedEvent, + + /** + * The CertificateCreatedEvent model constructor. + * @property {module:model/CertificateCreatedEvent} + */ + CertificateCreatedEvent, + + /** + * The CertificateRenewedEvent model constructor. + * @property {module:model/CertificateRenewedEvent} + */ + CertificateRenewedEvent, + + /** + * The ChangePasswordModel model constructor. + * @property {module:model/ChangePasswordModel} + */ + ChangePasswordModel, + + /** + * The Channel model constructor. + * @property {module:model/Channel} + */ + Channel, + + /** + * The ChannelStoresUpdatedEvent model constructor. + * @property {module:model/ChannelStoresUpdatedEvent} + */ + ChannelStoresUpdatedEvent, + + /** + * The ChargebackDetails model constructor. + * @property {module:model/ChargebackDetails} + */ + ChargebackDetails, + + /** + * The ClientDevice model constructor. + * @property {module:model/ClientDevice} + */ + ClientDevice, + + /** + * The ClientDeviceAssignEnrolledDevice model constructor. + * @property {module:model/ClientDeviceAssignEnrolledDevice} + */ + ClientDeviceAssignEnrolledDevice, + + /** + * The ClientDeviceEnroll model constructor. + * @property {module:model/ClientDeviceEnroll} + */ + ClientDeviceEnroll, + + /** + * The ClientDeviceEnrollmentResult model constructor. + * @property {module:model/ClientDeviceEnrollmentResult} + */ + ClientDeviceEnrollmentResult, + + /** + * The ClientDeviceSummary model constructor. + * @property {module:model/ClientDeviceSummary} + */ + ClientDeviceSummary, + + /** + * The ConfiguredStore model constructor. + * @property {module:model/ConfiguredStore} + */ + ConfiguredStore, + + /** + * The Coordinates model constructor. + * @property {module:model/Coordinates} + */ + Coordinates, + + /** + * The CountryFormResponse model constructor. + * @property {module:model/CountryFormResponse} + */ + CountryFormResponse, + + /** + * The CountryWithAccountFieldsDefinitions model constructor. + * @property {module:model/CountryWithAccountFieldsDefinitions} + */ + CountryWithAccountFieldsDefinitions, + + /** + * The CreateAccountModel model constructor. + * @property {module:model/CreateAccountModel} + */ + CreateAccountModel, + + /** + * The CreateAppParameters model constructor. + * @property {module:model/CreateAppParameters} + */ + CreateAppParameters, + + /** + * The CreateAppStoreApp model constructor. + * @property {module:model/CreateAppStoreApp} + */ + CreateAppStoreApp, + + /** + * The CreateBasicAccountModel model constructor. + * @property {module:model/CreateBasicAccountModel} + */ + CreateBasicAccountModel, + + /** + * The CreateCatalogGroupReference model constructor. + * @property {module:model/CreateCatalogGroupReference} + */ + CreateCatalogGroupReference, + + /** + * The CreateCatalogItem model constructor. + * @property {module:model/CreateCatalogItem} + */ + CreateCatalogItem, + + /** + * The CreateFulfillmentStatesConfiguration model constructor. + * @property {module:model/CreateFulfillmentStatesConfiguration} + */ + CreateFulfillmentStatesConfiguration, + + /** + * The CreateFullMenu model constructor. + * @property {module:model/CreateFullMenu} + */ + CreateFullMenu, + + /** + * The CreateFullMenuItemOptionSet model constructor. + * @property {module:model/CreateFullMenuItemOptionSet} + */ + CreateFullMenuItemOptionSet, + + /** + * The CreateFullMenuItemOptionSetItem model constructor. + * @property {module:model/CreateFullMenuItemOptionSetItem} + */ + CreateFullMenuItemOptionSetItem, + + /** + * The CreateFullMenuSection model constructor. + * @property {module:model/CreateFullMenuSection} + */ + CreateFullMenuSection, + + /** + * The CreateFullMenuSectionItem model constructor. + * @property {module:model/CreateFullMenuSectionItem} + */ + CreateFullMenuSectionItem, + + /** + * The CreateGroup model constructor. + * @property {module:model/CreateGroup} + */ + CreateGroup, + + /** + * The CreateGroupReference model constructor. + * @property {module:model/CreateGroupReference} + */ + CreateGroupReference, + + /** + * The CreateLocation model constructor. + * @property {module:model/CreateLocation} + */ + CreateLocation, + + /** + * The CreateLocationArea model constructor. + * @property {module:model/CreateLocationArea} + */ + CreateLocationArea, + + /** + * The CreateMenuSectionItemFromCatalogItems model constructor. + * @property {module:model/CreateMenuSectionItemFromCatalogItems} + */ + CreateMenuSectionItemFromCatalogItems, + + /** + * The CreateMenuTaxRate model constructor. + * @property {module:model/CreateMenuTaxRate} + */ + CreateMenuTaxRate, + + /** + * The CreateMetadata model constructor. + * @property {module:model/CreateMetadata} + */ + CreateMetadata, + + /** + * The CreateMetafieldDefinition model constructor. + * @property {module:model/CreateMetafieldDefinition} + */ + CreateMetafieldDefinition, + + /** + * The CreatePayGreenConfigurationRequest model constructor. + * @property {module:model/CreatePayGreenConfigurationRequest} + */ + CreatePayGreenConfigurationRequest, + + /** + * The CreateProduct model constructor. + * @property {module:model/CreateProduct} + */ + CreateProduct, + + /** + * The CreateProductReference model constructor. + * @property {module:model/CreateProductReference} + */ + CreateProductReference, + + /** + * The CreatePromotion model constructor. + * @property {module:model/CreatePromotion} + */ + CreatePromotion, + + /** + * The CreateTeammate model constructor. + * @property {module:model/CreateTeammate} + */ + CreateTeammate, + + /** + * The CreateVoucher model constructor. + * @property {module:model/CreateVoucher} + */ + CreateVoucher, + + /** + * The CreatedMenuSectionItems model constructor. + * @property {module:model/CreatedMenuSectionItems} + */ + CreatedMenuSectionItems, + + /** + * The CreditNoteDetails model constructor. + * @property {module:model/CreditNoteDetails} + */ + CreditNoteDetails, + + /** + * The CrossSellMenuItems model constructor. + * @property {module:model/CrossSellMenuItems} + */ + CrossSellMenuItems, + + /** + * The CspReport model constructor. + * @property {module:model/CspReport} + */ + CspReport, + + /** + * The CspReportRequest model constructor. + * @property {module:model/CspReportRequest} + */ + CspReportRequest, + + /** + * The CurrencyData model constructor. + * @property {module:model/CurrencyData} + */ + CurrencyData, + + /** + * The Customer model constructor. + * @property {module:model/Customer} + */ + Customer, + + /** + * The CustomerConsentUpdatedEvent model constructor. + * @property {module:model/CustomerConsentUpdatedEvent} + */ + CustomerConsentUpdatedEvent, + + /** + * The CustomerCreateModel model constructor. + * @property {module:model/CustomerCreateModel} + */ + CustomerCreateModel, + + /** + * The CustomerCreatedEvent model constructor. + * @property {module:model/CustomerCreatedEvent} + */ + CustomerCreatedEvent, + + /** + * The CustomerDeliveryTrackingOrder model constructor. + * @property {module:model/CustomerDeliveryTrackingOrder} + */ + CustomerDeliveryTrackingOrder, + + /** + * The CustomerDeliveryTrackingOrderLine model constructor. + * @property {module:model/CustomerDeliveryTrackingOrderLine} + */ + CustomerDeliveryTrackingOrderLine, + + /** + * The CustomerMessages model constructor. + * @property {module:model/CustomerMessages} + */ + CustomerMessages, + + /** + * The CustomerSummary model constructor. + * @property {module:model/CustomerSummary} + */ + CustomerSummary, + + /** + * The CustomerUpdateModel model constructor. + * @property {module:model/CustomerUpdateModel} + */ + CustomerUpdateModel, + + /** + * The CustomerUpdatedEvent model constructor. + * @property {module:model/CustomerUpdatedEvent} + */ + CustomerUpdatedEvent, + + /** + * The Customers model constructor. + * @property {module:model/Customers} + */ + Customers, + + /** + * The DashboardEmbed model constructor. + * @property {module:model/DashboardEmbed} + */ + DashboardEmbed, + + /** + * The DeliveryLocation model constructor. + * @property {module:model/DeliveryLocation} + */ + DeliveryLocation, + + /** + * The DeliveryZone model constructor. + * @property {module:model/DeliveryZone} + */ + DeliveryZone, + + /** + * The DeliveryZoneBase model constructor. + * @property {module:model/DeliveryZoneBase} + */ + DeliveryZoneBase, + + /** + * The DeliveryZoneCreatedEvent model constructor. + * @property {module:model/DeliveryZoneCreatedEvent} + */ + DeliveryZoneCreatedEvent, + + /** + * The DeliveryZoneDeletedEvent model constructor. + * @property {module:model/DeliveryZoneDeletedEvent} + */ + DeliveryZoneDeletedEvent, + + /** + * The DeliveryZoneUpdatedEvent model constructor. + * @property {module:model/DeliveryZoneUpdatedEvent} + */ + DeliveryZoneUpdatedEvent, + + /** + * The DepositReturnFeesSummary model constructor. + * @property {module:model/DepositReturnFeesSummary} + */ + DepositReturnFeesSummary, + + /** + * The DeviceSettings model constructor. + * @property {module:model/DeviceSettings} + */ + DeviceSettings, + + /** + * The DnsRecordInformation model constructor. + * @property {module:model/DnsRecordInformation} + */ + DnsRecordInformation, + + /** + * The DnsVerifiedEvent model constructor. + * @property {module:model/DnsVerifiedEvent} + */ + DnsVerifiedEvent, + + /** + * The DriverLoginModel model constructor. + * @property {module:model/DriverLoginModel} + */ + DriverLoginModel, + + /** + * The DriverRequestLoginPinModel model constructor. + * @property {module:model/DriverRequestLoginPinModel} + */ + DriverRequestLoginPinModel, + + /** + * The DynamicFormField model constructor. + * @property {module:model/DynamicFormField} + */ + DynamicFormField, + + /** + * The DynamicFormFieldOption model constructor. + * @property {module:model/DynamicFormFieldOption} + */ + DynamicFormFieldOption, + + /** + * The DynamicFormRule model constructor. + * @property {module:model/DynamicFormRule} + */ + DynamicFormRule, + + /** + * The DynamicFormRules model constructor. + * @property {module:model/DynamicFormRules} + */ + DynamicFormRules, + + /** + * The EmvNotificationEvent model constructor. + * @property {module:model/EmvNotificationEvent} + */ + EmvNotificationEvent, + + /** + * The EmvTerminal model constructor. + * @property {module:model/EmvTerminal} + */ + EmvTerminal, + + /** + * The EmvTerminalWithAssignments model constructor. + * @property {module:model/EmvTerminalWithAssignments} + */ + EmvTerminalWithAssignments, + + /** + * The EventSearchResult model constructor. + * @property {module:model/EventSearchResult} + */ + EventSearchResult, + + /** + * The ExecuteConfigurationActionRequest model constructor. + * @property {module:model/ExecuteConfigurationActionRequest} + */ + ExecuteConfigurationActionRequest, + + /** + * The ExecuteConfigurationActionResult model constructor. + * @property {module:model/ExecuteConfigurationActionResult} + */ + ExecuteConfigurationActionResult, + + /** + * The ExternalStoreAuditLog model constructor. + * @property {module:model/ExternalStoreAuditLog} + */ + ExternalStoreAuditLog, + + /** + * The ExternalStoreEvent model constructor. + * @property {module:model/ExternalStoreEvent} + */ + ExternalStoreEvent, + + /** + * The FeeSummary model constructor. + * @property {module:model/FeeSummary} + */ + FeeSummary, + + /** + * The Field model constructor. + * @property {module:model/Field} + */ + Field, + + /** + * The FieldChangeInformation model constructor. + * @property {module:model/FieldChangeInformation} + */ + FieldChangeInformation, + + /** + * The FieldGroup model constructor. + * @property {module:model/FieldGroup} + */ + FieldGroup, + + /** + * The FileCreationResult model constructor. + * @property {module:model/FileCreationResult} + */ + FileCreationResult, + + /** + * The FileDownloadResult model constructor. + * @property {module:model/FileDownloadResult} + */ + FileDownloadResult, + + /** + * The FirebaseApp model constructor. + * @property {module:model/FirebaseApp} + */ + FirebaseApp, + + /** + * The FlipdishEventBase model constructor. + * @property {module:model/FlipdishEventBase} + */ + FlipdishEventBase, + + /** + * The FlipdishFeesDetails model constructor. + * @property {module:model/FlipdishFeesDetails} + */ + FlipdishFeesDetails, + + /** + * The FulfillentStatusActionItem model constructor. + * @property {module:model/FulfillentStatusActionItem} + */ + FulfillentStatusActionItem, + + /** + * The FulfillmentStatesConfiguration model constructor. + * @property {module:model/FulfillmentStatesConfiguration} + */ + FulfillmentStatesConfiguration, + + /** + * The FulfillmentStatesConfigurationSummary model constructor. + * @property {module:model/FulfillmentStatesConfigurationSummary} + */ + FulfillmentStatesConfigurationSummary, + + /** + * The FulfillmentStatesConfiguredStore model constructor. + * @property {module:model/FulfillmentStatesConfiguredStore} + */ + FulfillmentStatesConfiguredStore, + + /** + * The FulfillmentStatusConfigurationItem model constructor. + * @property {module:model/FulfillmentStatusConfigurationItem} + */ + FulfillmentStatusConfigurationItem, + + /** + * The GeoPointRequest model constructor. + * @property {module:model/GeoPointRequest} + */ + GeoPointRequest, + + /** + * The GetReceiptByOrderIdQueryResponse model constructor. + * @property {module:model/GetReceiptByOrderIdQueryResponse} + */ + GetReceiptByOrderIdQueryResponse, + + /** + * The GoogleAddress model constructor. + * @property {module:model/GoogleAddress} + */ + GoogleAddress, + + /** + * The GoogleAddressComponent model constructor. + * @property {module:model/GoogleAddressComponent} + */ + GoogleAddressComponent, + + /** + * The GoogleAddressResult model constructor. + * @property {module:model/GoogleAddressResult} + */ + GoogleAddressResult, + + /** + * The GoogleCoordinates model constructor. + * @property {module:model/GoogleCoordinates} + */ + GoogleCoordinates, + + /** + * The GoogleGeometry model constructor. + * @property {module:model/GoogleGeometry} + */ + GoogleGeometry, + + /** + * The GoogleLocation model constructor. + * @property {module:model/GoogleLocation} + */ + GoogleLocation, + + /** + * The GoogleViewport model constructor. + * @property {module:model/GoogleViewport} + */ + GoogleViewport, + + /** + * The Group model constructor. + * @property {module:model/Group} + */ + Group, + + /** + * The GroupReference model constructor. + * @property {module:model/GroupReference} + */ + GroupReference, + + /** + * The GroupedCoordinates model constructor. + * @property {module:model/GroupedCoordinates} + */ + GroupedCoordinates, + + /** + * The HasPaymentMethodResponse model constructor. + * @property {module:model/HasPaymentMethodResponse} + */ + HasPaymentMethodResponse, + + /** + * The HomeAction model constructor. + * @property {module:model/HomeAction} + */ + HomeAction, + + /** + * The HomeStatistics model constructor. + * @property {module:model/HomeStatistics} + */ + HomeStatistics, + + /** + * The HttpPostedFileBase model constructor. + * @property {module:model/HttpPostedFileBase} + */ + HttpPostedFileBase, + + /** + * The HydraAssignedEvent model constructor. + * @property {module:model/HydraAssignedEvent} + */ + HydraAssignedEvent, + + /** + * The HydraConfig model constructor. + * @property {module:model/HydraConfig} + */ + HydraConfig, + + /** + * The HydraConnectionStatusChangedEvent model constructor. + * @property {module:model/HydraConnectionStatusChangedEvent} + */ + HydraConnectionStatusChangedEvent, + + /** + * The HydraDeviceDetails model constructor. + * @property {module:model/HydraDeviceDetails} + */ + HydraDeviceDetails, + + /** + * The HydraRegistrationRequest model constructor. + * @property {module:model/HydraRegistrationRequest} + */ + HydraRegistrationRequest, + + /** + * The HydraRequestResetEvent model constructor. + * @property {module:model/HydraRequestResetEvent} + */ + HydraRequestResetEvent, + + /** + * The HydraSettingChangedEvent model constructor. + * @property {module:model/HydraSettingChangedEvent} + */ + HydraSettingChangedEvent, + + /** + * The HydraStatus model constructor. + * @property {module:model/HydraStatus} + */ + HydraStatus, + + /** + * The HydraStoreAssignedEvent model constructor. + * @property {module:model/HydraStoreAssignedEvent} + */ + HydraStoreAssignedEvent, + + /** + * The HydraStoreData model constructor. + * @property {module:model/HydraStoreData} + */ + HydraStoreData, + + /** + * The HydraStoreUnassignedEvent model constructor. + * @property {module:model/HydraStoreUnassignedEvent} + */ + HydraStoreUnassignedEvent, + + /** + * The HydraUnAssignedEvent model constructor. + * @property {module:model/HydraUnAssignedEvent} + */ + HydraUnAssignedEvent, + + /** + * The IndexPage model constructor. + * @property {module:model/IndexPage} + */ + IndexPage, + + /** + * The IndexPageBase model constructor. + * @property {module:model/IndexPageBase} + */ + IndexPageBase, + + /** + * The IntercomUserHash model constructor. + * @property {module:model/IntercomUserHash} + */ + IntercomUserHash, + + /** + * The Invoice model constructor. + * @property {module:model/Invoice} + */ + Invoice, + + /** + * The InvoiceDiscount model constructor. + * @property {module:model/InvoiceDiscount} + */ + InvoiceDiscount, + + /** + * The InvoiceItem model constructor. + * @property {module:model/InvoiceItem} + */ + InvoiceItem, + + /** + * The InvoicePeriod model constructor. + * @property {module:model/InvoicePeriod} + */ + InvoicePeriod, + + /** + * The ItemNutritionInfoAddUpdateModel model constructor. + * @property {module:model/ItemNutritionInfoAddUpdateModel} + */ + ItemNutritionInfoAddUpdateModel, + + /** + * The ItemNutritionInfoV2AddUpdateModel model constructor. + * @property {module:model/ItemNutritionInfoV2AddUpdateModel} + */ + ItemNutritionInfoV2AddUpdateModel, + + /** + * The JobAddress model constructor. + * @property {module:model/JobAddress} + */ + JobAddress, + + /** + * The JobCancellation model constructor. + * @property {module:model/JobCancellation} + */ + JobCancellation, + + /** + * The JobContact model constructor. + * @property {module:model/JobContact} + */ + JobContact, + + /** + * The JobDelivery model constructor. + * @property {module:model/JobDelivery} + */ + JobDelivery, + + /** + * The JobDeliveryDetail model constructor. + * @property {module:model/JobDeliveryDetail} + */ + JobDeliveryDetail, + + /** + * The JobDriver model constructor. + * @property {module:model/JobDriver} + */ + JobDriver, + + /** + * The JobEta model constructor. + * @property {module:model/JobEta} + */ + JobEta, + + /** + * The JobPricing model constructor. + * @property {module:model/JobPricing} + */ + JobPricing, + + /** + * The JobProof model constructor. + * @property {module:model/JobProof} + */ + JobProof, + + /** + * The JobResponse model constructor. + * @property {module:model/JobResponse} + */ + JobResponse, + + /** + * The KioskBluetoothInstallUpdateInitiateEvent model constructor. + * @property {module:model/KioskBluetoothInstallUpdateInitiateEvent} + */ + KioskBluetoothInstallUpdateInitiateEvent, + + /** + * The KioskBluetoothPairingModeEvent model constructor. + * @property {module:model/KioskBluetoothPairingModeEvent} + */ + KioskBluetoothPairingModeEvent, + + /** + * The KioskBluetoothTerminalCancelUpdateEvent model constructor. + * @property {module:model/KioskBluetoothTerminalCancelUpdateEvent} + */ + KioskBluetoothTerminalCancelUpdateEvent, + + /** + * The KioskBluetoothTerminalFirmwareVersionStatusEvent model constructor. + * @property {module:model/KioskBluetoothTerminalFirmwareVersionStatusEvent} + */ + KioskBluetoothTerminalFirmwareVersionStatusEvent, + + /** + * The KioskBluetoothTerminalInitiateUpdateCheckEvent model constructor. + * @property {module:model/KioskBluetoothTerminalInitiateUpdateCheckEvent} + */ + KioskBluetoothTerminalInitiateUpdateCheckEvent, + + /** + * The KioskBluetoothTerminalInstallationStatusEvent model constructor. + * @property {module:model/KioskBluetoothTerminalInstallationStatusEvent} + */ + KioskBluetoothTerminalInstallationStatusEvent, + + /** + * The KioskBluetoothTerminalUnpairedEvent model constructor. + * @property {module:model/KioskBluetoothTerminalUnpairedEvent} + */ + KioskBluetoothTerminalUnpairedEvent, + + /** + * The KioskBluetoothTerminalUpdatedEvent model constructor. + * @property {module:model/KioskBluetoothTerminalUpdatedEvent} + */ + KioskBluetoothTerminalUpdatedEvent, + + /** + * The KioskBluetoothUnpairingModeEvent model constructor. + * @property {module:model/KioskBluetoothUnpairingModeEvent} + */ + KioskBluetoothUnpairingModeEvent, + + /** + * The KioskCashPaymentSettings model constructor. + * @property {module:model/KioskCashPaymentSettings} + */ + KioskCashPaymentSettings, + + /** + * The KioskEntitlementsResult model constructor. + * @property {module:model/KioskEntitlementsResult} + */ + KioskEntitlementsResult, + + /** + * The KioskIotConnectionParameters model constructor. + * @property {module:model/KioskIotConnectionParameters} + */ + KioskIotConnectionParameters, + + /** + * The KioskSettings model constructor. + * @property {module:model/KioskSettings} + */ + KioskSettings, + + /** + * The KioskTerminalActionStateChangedEvent model constructor. + * @property {module:model/KioskTerminalActionStateChangedEvent} + */ + KioskTerminalActionStateChangedEvent, + + /** + * The Language model constructor. + * @property {module:model/Language} + */ + Language, + + /** + * The LastPaymentError model constructor. + * @property {module:model/LastPaymentError} + */ + LastPaymentError, + + /** + * The LeadTime model constructor. + * @property {module:model/LeadTime} + */ + LeadTime, + + /** + * The LightspeedSettings model constructor. + * @property {module:model/LightspeedSettings} + */ + LightspeedSettings, + + /** + * The LocalisedTimeZone model constructor. + * @property {module:model/LocalisedTimeZone} + */ + LocalisedTimeZone, + + /** + * The LocationArea model constructor. + * @property {module:model/LocationArea} + */ + LocationArea, + + /** + * The LocationAreaCreatedEvent model constructor. + * @property {module:model/LocationAreaCreatedEvent} + */ + LocationAreaCreatedEvent, + + /** + * The LocationAreaLocation model constructor. + * @property {module:model/LocationAreaLocation} + */ + LocationAreaLocation, + + /** + * The LocationAreaUpdatedEvent model constructor. + * @property {module:model/LocationAreaUpdatedEvent} + */ + LocationAreaUpdatedEvent, + + /** + * The LocationAreaWithLocations model constructor. + * @property {module:model/LocationAreaWithLocations} + */ + LocationAreaWithLocations, + + /** + * The LocationCreatedEvent model constructor. + * @property {module:model/LocationCreatedEvent} + */ + LocationCreatedEvent, + + /** + * The LocationDeletedEvent model constructor. + * @property {module:model/LocationDeletedEvent} + */ + LocationDeletedEvent, + + /** + * The LoginModel model constructor. + * @property {module:model/LoginModel} + */ + LoginModel, + + /** + * The LoginWithPinModel model constructor. + * @property {module:model/LoginWithPinModel} + */ + LoginWithPinModel, + + /** + * The LoyaltyCampaign model constructor. + * @property {module:model/LoyaltyCampaign} + */ + LoyaltyCampaign, + + /** + * The LoyaltyCampaignBase model constructor. + * @property {module:model/LoyaltyCampaignBase} + */ + LoyaltyCampaignBase, + + /** + * The LoyaltyCampaignCreatedEvent model constructor. + * @property {module:model/LoyaltyCampaignCreatedEvent} + */ + LoyaltyCampaignCreatedEvent, + + /** + * The LoyaltyCampaignDeletedEvent model constructor. + * @property {module:model/LoyaltyCampaignDeletedEvent} + */ + LoyaltyCampaignDeletedEvent, + + /** + * The LoyaltyCampaignUpdatedEvent model constructor. + * @property {module:model/LoyaltyCampaignUpdatedEvent} + */ + LoyaltyCampaignUpdatedEvent, + + /** + * The LumpDiscountDetails model constructor. + * @property {module:model/LumpDiscountDetails} + */ + LumpDiscountDetails, + + /** + * The MappedLocation model constructor. + * @property {module:model/MappedLocation} + */ + MappedLocation, + + /** + * The MaskedPhoneNumber model constructor. + * @property {module:model/MaskedPhoneNumber} + */ + MaskedPhoneNumber, + + /** + * The Menu model constructor. + * @property {module:model/Menu} + */ + Menu, + + /** + * The MenuAsyncCreationCompletedEvent model constructor. + * @property {module:model/MenuAsyncCreationCompletedEvent} + */ + MenuAsyncCreationCompletedEvent, + + /** + * The MenuBase model constructor. + * @property {module:model/MenuBase} + */ + MenuBase, + + /** + * The MenuBulkEditEvent model constructor. + * @property {module:model/MenuBulkEditEvent} + */ + MenuBulkEditEvent, + + /** + * The MenuCatalogItem model constructor. + * @property {module:model/MenuCatalogItem} + */ + MenuCatalogItem, + + /** + * The MenuCheckpoint model constructor. + * @property {module:model/MenuCheckpoint} + */ + MenuCheckpoint, + + /** + * The MenuCheckpointCreatedEvent model constructor. + * @property {module:model/MenuCheckpointCreatedEvent} + */ + MenuCheckpointCreatedEvent, + + /** + * The MenuCreatedEvent model constructor. + * @property {module:model/MenuCreatedEvent} + */ + MenuCreatedEvent, + + /** + * The MenuElementEditResponse model constructor. + * @property {module:model/MenuElementEditResponse} + */ + MenuElementEditResponse, + + /** + * The MenuElementHide model constructor. + * @property {module:model/MenuElementHide} + */ + MenuElementHide, + + /** + * The MenuElementListItemResponse model constructor. + * @property {module:model/MenuElementListItemResponse} + */ + MenuElementListItemResponse, + + /** + * The MenuElementListResponse model constructor. + * @property {module:model/MenuElementListResponse} + */ + MenuElementListResponse, + + /** + * The MenuItemOptionSet model constructor. + * @property {module:model/MenuItemOptionSet} + */ + MenuItemOptionSet, + + /** + * The MenuItemOptionSetBase model constructor. + * @property {module:model/MenuItemOptionSetBase} + */ + MenuItemOptionSetBase, + + /** + * The MenuItemOptionSetCreatedEvent model constructor. + * @property {module:model/MenuItemOptionSetCreatedEvent} + */ + MenuItemOptionSetCreatedEvent, + + /** + * The MenuItemOptionSetDeletedEvent model constructor. + * @property {module:model/MenuItemOptionSetDeletedEvent} + */ + MenuItemOptionSetDeletedEvent, + + /** + * The MenuItemOptionSetItem model constructor. + * @property {module:model/MenuItemOptionSetItem} + */ + MenuItemOptionSetItem, + + /** + * The MenuItemOptionSetItemBase model constructor. + * @property {module:model/MenuItemOptionSetItemBase} + */ + MenuItemOptionSetItemBase, + + /** + * The MenuItemOptionSetItemCreatedEvent model constructor. + * @property {module:model/MenuItemOptionSetItemCreatedEvent} + */ + MenuItemOptionSetItemCreatedEvent, + + /** + * The MenuItemOptionSetItemDeletedEvent model constructor. + * @property {module:model/MenuItemOptionSetItemDeletedEvent} + */ + MenuItemOptionSetItemDeletedEvent, + + /** + * The MenuItemOptionSetItemUpdatedEvent model constructor. + * @property {module:model/MenuItemOptionSetItemUpdatedEvent} + */ + MenuItemOptionSetItemUpdatedEvent, + + /** + * The MenuItemOptionSetUpdatedEvent model constructor. + * @property {module:model/MenuItemOptionSetUpdatedEvent} + */ + MenuItemOptionSetUpdatedEvent, + + /** + * The MenuNutritionInfoHeader model constructor. + * @property {module:model/MenuNutritionInfoHeader} + */ + MenuNutritionInfoHeader, + + /** + * The MenuObjectDisplayOrders model constructor. + * @property {module:model/MenuObjectDisplayOrders} + */ + MenuObjectDisplayOrders, + + /** + * The MenuSection model constructor. + * @property {module:model/MenuSection} + */ + MenuSection, + + /** + * The MenuSectionAvailability model constructor. + * @property {module:model/MenuSectionAvailability} + */ + MenuSectionAvailability, + + /** + * The MenuSectionAvailabilityBase model constructor. + * @property {module:model/MenuSectionAvailabilityBase} + */ + MenuSectionAvailabilityBase, + + /** + * The MenuSectionBase model constructor. + * @property {module:model/MenuSectionBase} + */ + MenuSectionBase, + + /** + * The MenuSectionCreatedEvent model constructor. + * @property {module:model/MenuSectionCreatedEvent} + */ + MenuSectionCreatedEvent, + + /** + * The MenuSectionDeletedEvent model constructor. + * @property {module:model/MenuSectionDeletedEvent} + */ + MenuSectionDeletedEvent, + + /** + * The MenuSectionItem model constructor. + * @property {module:model/MenuSectionItem} + */ + MenuSectionItem, + + /** + * The MenuSectionItemBase model constructor. + * @property {module:model/MenuSectionItemBase} + */ + MenuSectionItemBase, + + /** + * The MenuSectionItemCreatedEvent model constructor. + * @property {module:model/MenuSectionItemCreatedEvent} + */ + MenuSectionItemCreatedEvent, + + /** + * The MenuSectionItemDeletedEvent model constructor. + * @property {module:model/MenuSectionItemDeletedEvent} + */ + MenuSectionItemDeletedEvent, + + /** + * The MenuSectionItemUpdatedEvent model constructor. + * @property {module:model/MenuSectionItemUpdatedEvent} + */ + MenuSectionItemUpdatedEvent, + + /** + * The MenuSectionUpdatedEvent model constructor. + * @property {module:model/MenuSectionUpdatedEvent} + */ + MenuSectionUpdatedEvent, + + /** + * The MenuStoreNames model constructor. + * @property {module:model/MenuStoreNames} + */ + MenuStoreNames, + + /** + * The MenuSummary model constructor. + * @property {module:model/MenuSummary} + */ + MenuSummary, + + /** + * The MenuTaxDetails model constructor. + * @property {module:model/MenuTaxDetails} + */ + MenuTaxDetails, + + /** + * The MenuTaxRate model constructor. + * @property {module:model/MenuTaxRate} + */ + MenuTaxRate, + + /** + * The MenuUpdatedEvent model constructor. + * @property {module:model/MenuUpdatedEvent} + */ + MenuUpdatedEvent, + + /** + * The MenuUploadedEvent model constructor. + * @property {module:model/MenuUploadedEvent} + */ + MenuUploadedEvent, + + /** + * The MenuZone model constructor. + * @property {module:model/MenuZone} + */ + MenuZone, + + /** + * The Metadata model constructor. + * @property {module:model/Metadata} + */ + Metadata, + + /** + * The Metafield model constructor. + * @property {module:model/Metafield} + */ + Metafield, + + /** + * The MetafieldDefinition model constructor. + * @property {module:model/MetafieldDefinition} + */ + MetafieldDefinition, + + /** + * The MetafieldDefinitionRecommendation model constructor. + * @property {module:model/MetafieldDefinitionRecommendation} + */ + MetafieldDefinitionRecommendation, + + /** + * The MobileAppsImage model constructor. + * @property {module:model/MobileAppsImage} + */ + MobileAppsImage, + + /** + * The MobileAppsStatistics model constructor. + * @property {module:model/MobileAppsStatistics} + */ + MobileAppsStatistics, + + /** + * The MobileAppsSubmission model constructor. + * @property {module:model/MobileAppsSubmission} + */ + MobileAppsSubmission, + + /** + * The MobileAppsSubmissionDetails model constructor. + * @property {module:model/MobileAppsSubmissionDetails} + */ + MobileAppsSubmissionDetails, + + /** + * The MobileAppsSubmissionStatus model constructor. + * @property {module:model/MobileAppsSubmissionStatus} + */ + MobileAppsSubmissionStatus, + + /** + * The MobileAppsSubmissionStatusUpdatedEvent model constructor. + * @property {module:model/MobileAppsSubmissionStatusUpdatedEvent} + */ + MobileAppsSubmissionStatusUpdatedEvent, + + /** + * The MobileAppsSubmissionUpdatedEvent model constructor. + * @property {module:model/MobileAppsSubmissionUpdatedEvent} + */ + MobileAppsSubmissionUpdatedEvent, + + /** + * The NextStatusWithOrderType model constructor. + * @property {module:model/NextStatusWithOrderType} + */ + NextStatusWithOrderType, + + /** + * The NutritionInfo model constructor. + * @property {module:model/NutritionInfo} + */ + NutritionInfo, + + /** + * The NutritionInfoItemAddUpdateLabelModel model constructor. + * @property {module:model/NutritionInfoItemAddUpdateLabelModel} + */ + NutritionInfoItemAddUpdateLabelModel, + + /** + * The NutritionInfoLabel model constructor. + * @property {module:model/NutritionInfoLabel} + */ + NutritionInfoLabel, + + /** + * The NutritionInfoMenuItem model constructor. + * @property {module:model/NutritionInfoMenuItem} + */ + NutritionInfoMenuItem, + + /** + * The NutritionInfoMenuOptionSetItem model constructor. + * @property {module:model/NutritionInfoMenuOptionSetItem} + */ + NutritionInfoMenuOptionSetItem, + + /** + * The NutritionInfoV2 model constructor. + * @property {module:model/NutritionInfoV2} + */ + NutritionInfoV2, + + /** + * The NutritionInfoV2Allergen model constructor. + * @property {module:model/NutritionInfoV2Allergen} + */ + NutritionInfoV2Allergen, + + /** + * The NutritionInfoV2Item model constructor. + * @property {module:model/NutritionInfoV2Item} + */ + NutritionInfoV2Item, + + /** + * The OAuthApp model constructor. + * @property {module:model/OAuthApp} + */ + OAuthApp, + + /** + * The OAuthTokenModel model constructor. + * @property {module:model/OAuthTokenModel} + */ + OAuthTokenModel, + + /** + * The OauthClientRedirectUri model constructor. + * @property {module:model/OauthClientRedirectUri} + */ + OauthClientRedirectUri, + + /** + * The ObjectDisplayOrder model constructor. + * @property {module:model/ObjectDisplayOrder} + */ + ObjectDisplayOrder, + + /** + * The OktaPortalFeatureFlag model constructor. + * @property {module:model/OktaPortalFeatureFlag} + */ + OktaPortalFeatureFlag, + + /** + * The OnboardingConfigUpdate model constructor. + * @property {module:model/OnboardingConfigUpdate} + */ + OnboardingConfigUpdate, + + /** + * The OnboardingItemUpdate model constructor. + * @property {module:model/OnboardingItemUpdate} + */ + OnboardingItemUpdate, + + /** + * The Order model constructor. + * @property {module:model/Order} + */ + Order, + + /** + * The OrderAcceptedEvent model constructor. + * @property {module:model/OrderAcceptedEvent} + */ + OrderAcceptedEvent, + + /** + * The OrderBatch model constructor. + * @property {module:model/OrderBatch} + */ + OrderBatch, + + /** + * The OrderBatchPublishedEvent model constructor. + * @property {module:model/OrderBatchPublishedEvent} + */ + OrderBatchPublishedEvent, + + /** + * The OrderBatchSummary model constructor. + * @property {module:model/OrderBatchSummary} + */ + OrderBatchSummary, + + /** + * The OrderBatchingConfiguration model constructor. + * @property {module:model/OrderBatchingConfiguration} + */ + OrderBatchingConfiguration, + + /** + * The OrderCapacityConfigUpdatedEvent model constructor. + * @property {module:model/OrderCapacityConfigUpdatedEvent} + */ + OrderCapacityConfigUpdatedEvent, + + /** + * The OrderCreatedEvent model constructor. + * @property {module:model/OrderCreatedEvent} + */ + OrderCreatedEvent, + + /** + * The OrderCustomerTrackingCreatedEvent model constructor. + * @property {module:model/OrderCustomerTrackingCreatedEvent} + */ + OrderCustomerTrackingCreatedEvent, + + /** + * The OrderDeliveryInformation model constructor. + * @property {module:model/OrderDeliveryInformation} + */ + OrderDeliveryInformation, + + /** + * The OrderDeliveryInformationBase model constructor. + * @property {module:model/OrderDeliveryInformationBase} + */ + OrderDeliveryInformationBase, + + /** + * The OrderDeliveryTrackingStatusUpdatedEvent model constructor. + * @property {module:model/OrderDeliveryTrackingStatusUpdatedEvent} + */ + OrderDeliveryTrackingStatusUpdatedEvent, + + /** + * The OrderDispatchedEvent model constructor. + * @property {module:model/OrderDispatchedEvent} + */ + OrderDispatchedEvent, + + /** + * The OrderDropOffLocation model constructor. + * @property {module:model/OrderDropOffLocation} + */ + OrderDropOffLocation, + + /** + * The OrderFulfillmentStatus model constructor. + * @property {module:model/OrderFulfillmentStatus} + */ + OrderFulfillmentStatus, + + /** + * The OrderFulfillmentStatusBase model constructor. + * @property {module:model/OrderFulfillmentStatusBase} + */ + OrderFulfillmentStatusBase, + + /** + * The OrderFulfillmentStatusUpdate model constructor. + * @property {module:model/OrderFulfillmentStatusUpdate} + */ + OrderFulfillmentStatusUpdate, + + /** + * The OrderFulfillmentStatusUpdatedEvent model constructor. + * @property {module:model/OrderFulfillmentStatusUpdatedEvent} + */ + OrderFulfillmentStatusUpdatedEvent, + + /** + * The OrderFulfillmentStatusWithConfigurationActions model constructor. + * @property {module:model/OrderFulfillmentStatusWithConfigurationActions} + */ + OrderFulfillmentStatusWithConfigurationActions, + + /** + * The OrderItem model constructor. + * @property {module:model/OrderItem} + */ + OrderItem, + + /** + * The OrderItemOption model constructor. + * @property {module:model/OrderItemOption} + */ + OrderItemOption, + + /** + * The OrderLeadTimes model constructor. + * @property {module:model/OrderLeadTimes} + */ + OrderLeadTimes, + + /** + * The OrderList model constructor. + * @property {module:model/OrderList} + */ + OrderList, + + /** + * The OrderPaymentInformation model constructor. + * @property {module:model/OrderPaymentInformation} + */ + OrderPaymentInformation, + + /** + * The OrderRatingUpdatedEvent model constructor. + * @property {module:model/OrderRatingUpdatedEvent} + */ + OrderRatingUpdatedEvent, + + /** + * The OrderReference model constructor. + * @property {module:model/OrderReference} + */ + OrderReference, + + /** + * The OrderRefundedEvent model constructor. + * @property {module:model/OrderRefundedEvent} + */ + OrderRefundedEvent, + + /** + * The OrderRejectedEvent model constructor. + * @property {module:model/OrderRejectedEvent} + */ + OrderRejectedEvent, + + /** + * The OrderSummary model constructor. + * @property {module:model/OrderSummary} + */ + OrderSummary, + + /** + * The OrderTipUpdatedEvent model constructor. + * @property {module:model/OrderTipUpdatedEvent} + */ + OrderTipUpdatedEvent, + + /** + * The OrderVoucherSummary model constructor. + * @property {module:model/OrderVoucherSummary} + */ + OrderVoucherSummary, + + /** + * The OtherChargesDetails model constructor. + * @property {module:model/OtherChargesDetails} + */ + OtherChargesDetails, + + /** + * The OwnerEntityConfiguration model constructor. + * @property {module:model/OwnerEntityConfiguration} + */ + OwnerEntityConfiguration, + + /** + * The OwnerEntityConfigurations model constructor. + * @property {module:model/OwnerEntityConfigurations} + */ + OwnerEntityConfigurations, + + /** + * The PasswordResetModel model constructor. + * @property {module:model/PasswordResetModel} + */ + PasswordResetModel, + + /** + * The PaymentAccount model constructor. + * @property {module:model/PaymentAccount} + */ + PaymentAccount, + + /** + * The PaymentIntent model constructor. + * @property {module:model/PaymentIntent} + */ + PaymentIntent, + + /** + * The PaymentTerminalDetails model constructor. + * @property {module:model/PaymentTerminalDetails} + */ + PaymentTerminalDetails, + + /** + * The PaymentTerminalTransactionDetails model constructor. + * @property {module:model/PaymentTerminalTransactionDetails} + */ + PaymentTerminalTransactionDetails, + + /** + * The Payout model constructor. + * @property {module:model/Payout} + */ + Payout, + + /** + * The PayoutChargeback model constructor. + * @property {module:model/PayoutChargeback} + */ + PayoutChargeback, + + /** + * The PayoutDetail model constructor. + * @property {module:model/PayoutDetail} + */ + PayoutDetail, + + /** + * The PayoutOrder model constructor. + * @property {module:model/PayoutOrder} + */ + PayoutOrder, + + /** + * The PayoutOtherCharge model constructor. + * @property {module:model/PayoutOtherCharge} + */ + PayoutOtherCharge, + + /** + * The PayoutRefund model constructor. + * @property {module:model/PayoutRefund} + */ + PayoutRefund, + + /** + * The PayoutReport3Details model constructor. + * @property {module:model/PayoutReport3Details} + */ + PayoutReport3Details, + + /** + * The PayoutReport3DetailsAdjustments model constructor. + * @property {module:model/PayoutReport3DetailsAdjustments} + */ + PayoutReport3DetailsAdjustments, + + /** + * The PayoutReport3DetailsFlipdishFees model constructor. + * @property {module:model/PayoutReport3DetailsFlipdishFees} + */ + PayoutReport3DetailsFlipdishFees, + + /** + * The PayoutReport3DetailsRevenue model constructor. + * @property {module:model/PayoutReport3DetailsRevenue} + */ + PayoutReport3DetailsRevenue, + + /** + * The PayoutReport3DetailsSalesLine model constructor. + * @property {module:model/PayoutReport3DetailsSalesLine} + */ + PayoutReport3DetailsSalesLine, + + /** + * The PayoutReport3DetailsSummary model constructor. + * @property {module:model/PayoutReport3DetailsSummary} + */ + PayoutReport3DetailsSummary, + + /** + * The PayoutReport3Overview model constructor. + * @property {module:model/PayoutReport3Overview} + */ + PayoutReport3Overview, + + /** + * The PayoutReport3OverviewHeader model constructor. + * @property {module:model/PayoutReport3OverviewHeader} + */ + PayoutReport3OverviewHeader, + + /** + * The PayoutReport3RefundedOrder model constructor. + * @property {module:model/PayoutReport3RefundedOrder} + */ + PayoutReport3RefundedOrder, + + /** + * The PayoutReport3Store model constructor. + * @property {module:model/PayoutReport3Store} + */ + PayoutReport3Store, + + /** + * The PayoutRequestIds model constructor. + * @property {module:model/PayoutRequestIds} + */ + PayoutRequestIds, + + /** + * The PayoutStore model constructor. + * @property {module:model/PayoutStore} + */ + PayoutStore, + + /** + * The PayoutSummary model constructor. + * @property {module:model/PayoutSummary} + */ + PayoutSummary, + + /** + * The PendingInvitation model constructor. + * @property {module:model/PendingInvitation} + */ + PendingInvitation, + + /** + * The PendingMenuChanges model constructor. + * @property {module:model/PendingMenuChanges} + */ + PendingMenuChanges, + + /** + * The PendingMenuChangesSummaries model constructor. + * @property {module:model/PendingMenuChangesSummaries} + */ + PendingMenuChangesSummaries, + + /** + * The PercentDiscountDetails model constructor. + * @property {module:model/PercentDiscountDetails} + */ + PercentDiscountDetails, + + /** + * The PhoneCall model constructor. + * @property {module:model/PhoneCall} + */ + PhoneCall, + + /** + * The PhoneCallEndedEvent model constructor. + * @property {module:model/PhoneCallEndedEvent} + */ + PhoneCallEndedEvent, + + /** + * The PhoneCallStartedEvent model constructor. + * @property {module:model/PhoneCallStartedEvent} + */ + PhoneCallStartedEvent, + + /** + * The PosRevenueDetails model constructor. + * @property {module:model/PosRevenueDetails} + */ + PosRevenueDetails, + + /** + * The PreOrderConfig model constructor. + * @property {module:model/PreOrderConfig} + */ + PreOrderConfig, + + /** + * The PreOrderTime model constructor. + * @property {module:model/PreOrderTime} + */ + PreOrderTime, + + /** + * The PredefinedAnswer model constructor. + * @property {module:model/PredefinedAnswer} + */ + PredefinedAnswer, + + /** + * The PreviousOrder model constructor. + * @property {module:model/PreviousOrder} + */ + PreviousOrder, + + /** + * The PreviousOrderItem model constructor. + * @property {module:model/PreviousOrderItem} + */ + PreviousOrderItem, + + /** + * The PreviousOrderItemOption model constructor. + * @property {module:model/PreviousOrderItemOption} + */ + PreviousOrderItemOption, + + /** + * The Printer model constructor. + * @property {module:model/Printer} + */ + Printer, + + /** + * The PrinterAssignedToStoreEvent model constructor. + * @property {module:model/PrinterAssignedToStoreEvent} + */ + PrinterAssignedToStoreEvent, + + /** + * The PrinterTurnedOffEvent model constructor. + * @property {module:model/PrinterTurnedOffEvent} + */ + PrinterTurnedOffEvent, + + /** + * The PrinterTurnedOnEvent model constructor. + * @property {module:model/PrinterTurnedOnEvent} + */ + PrinterTurnedOnEvent, + + /** + * The PrinterUnassignedFromStoreEvent model constructor. + * @property {module:model/PrinterUnassignedFromStoreEvent} + */ + PrinterUnassignedFromStoreEvent, + + /** + * The ProcessPaymentIntentRequest model constructor. + * @property {module:model/ProcessPaymentIntentRequest} + */ + ProcessPaymentIntentRequest, + + /** + * The ProcessingFeeConfig model constructor. + * @property {module:model/ProcessingFeeConfig} + */ + ProcessingFeeConfig, + + /** + * The Product model constructor. + * @property {module:model/Product} + */ + Product, + + /** + * The ProductReference model constructor. + * @property {module:model/ProductReference} + */ + ProductReference, + + /** + * The PromotionAward model constructor. + * @property {module:model/PromotionAward} + */ + PromotionAward, + + /** + * The PromotionDetails model constructor. + * @property {module:model/PromotionDetails} + */ + PromotionDetails, + + /** + * The PublishMenuChanges model constructor. + * @property {module:model/PublishMenuChanges} + */ + PublishMenuChanges, + + /** + * The PushNotificationDeletedEvent model constructor. + * @property {module:model/PushNotificationDeletedEvent} + */ + PushNotificationDeletedEvent, + + /** + * The PushNotificationRequest model constructor. + * @property {module:model/PushNotificationRequest} + */ + PushNotificationRequest, + + /** + * The PushNotificationResponse model constructor. + * @property {module:model/PushNotificationResponse} + */ + PushNotificationResponse, + + /** + * The PushNotificationScheduledEvent model constructor. + * @property {module:model/PushNotificationScheduledEvent} + */ + PushNotificationScheduledEvent, + + /** + * The PushNotificationSentEvent model constructor. + * @property {module:model/PushNotificationSentEvent} + */ + PushNotificationSentEvent, + + /** + * The Range model constructor. + * @property {module:model/Range} + */ + Range, + + /** + * The ReaderActionStateInfo model constructor. + * @property {module:model/ReaderActionStateInfo} + */ + ReaderActionStateInfo, + + /** + * The RedeemInvitationResult model constructor. + * @property {module:model/RedeemInvitationResult} + */ + RedeemInvitationResult, + + /** + * The Refund model constructor. + * @property {module:model/Refund} + */ + Refund, + + /** + * The Reject model constructor. + * @property {module:model/Reject} + */ + Reject, + + /** + * The RequestLoginPinModel model constructor. + * @property {module:model/RequestLoginPinModel} + */ + RequestLoginPinModel, + + /** + * The RequestLoginPinResponse model constructor. + * @property {module:model/RequestLoginPinResponse} + */ + RequestLoginPinResponse, + + /** + * The RequestPasswordResetModel model constructor. + * @property {module:model/RequestPasswordResetModel} + */ + RequestPasswordResetModel, + + /** + * The RequestPasswordResetPinResponse model constructor. + * @property {module:model/RequestPasswordResetPinResponse} + */ + RequestPasswordResetPinResponse, + + /** + * The Response model constructor. + * @property {module:model/Response} + */ + Response, + + /** + * The RestApiArrayResultAllMetadataResult model constructor. + * @property {module:model/RestApiArrayResultAllMetadataResult} + */ + RestApiArrayResultAllMetadataResult, + + /** + * The RestApiArrayResultAllergen model constructor. + * @property {module:model/RestApiArrayResultAllergen} + */ + RestApiArrayResultAllergen, + + /** + * The RestApiArrayResultApmCurrencyDataPoint model constructor. + * @property {module:model/RestApiArrayResultApmCurrencyDataPoint} + */ + RestApiArrayResultApmCurrencyDataPoint, + + /** + * The RestApiArrayResultApmDataPoint model constructor. + * @property {module:model/RestApiArrayResultApmDataPoint} + */ + RestApiArrayResultApmDataPoint, + + /** + * The RestApiArrayResultApmHourlyDataPoint model constructor. + * @property {module:model/RestApiArrayResultApmHourlyDataPoint} + */ + RestApiArrayResultApmHourlyDataPoint, + + /** + * The RestApiArrayResultAppStoreAppConfigurationSummary model constructor. + * @property {module:model/RestApiArrayResultAppStoreAppConfigurationSummary} + */ + RestApiArrayResultAppStoreAppConfigurationSummary, + + /** + * The RestApiArrayResultAppStoreAppSummary model constructor. + * @property {module:model/RestApiArrayResultAppStoreAppSummary} + */ + RestApiArrayResultAppStoreAppSummary, + + /** + * The RestApiArrayResultBankAccountSummary model constructor. + * @property {module:model/RestApiArrayResultBankAccountSummary} + */ + RestApiArrayResultBankAccountSummary, + + /** + * The RestApiArrayResultBusinessHoursPeriod model constructor. + * @property {module:model/RestApiArrayResultBusinessHoursPeriod} + */ + RestApiArrayResultBusinessHoursPeriod, + + /** + * The RestApiArrayResultChannel model constructor. + * @property {module:model/RestApiArrayResultChannel} + */ + RestApiArrayResultChannel, + + /** + * The RestApiArrayResultClientDeviceSummary model constructor. + * @property {module:model/RestApiArrayResultClientDeviceSummary} + */ + RestApiArrayResultClientDeviceSummary, + + /** + * The RestApiArrayResultCountryWithAccountFieldsDefinitions model constructor. + * @property {module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions} + */ + RestApiArrayResultCountryWithAccountFieldsDefinitions, + + /** + * The RestApiArrayResultDeliveryZone model constructor. + * @property {module:model/RestApiArrayResultDeliveryZone} + */ + RestApiArrayResultDeliveryZone, + + /** + * The RestApiArrayResultEmvTerminalWithAssignments model constructor. + * @property {module:model/RestApiArrayResultEmvTerminalWithAssignments} + */ + RestApiArrayResultEmvTerminalWithAssignments, + + /** + * The RestApiArrayResultFulfillmentStatesConfigurationSummary model constructor. + * @property {module:model/RestApiArrayResultFulfillmentStatesConfigurationSummary} + */ + RestApiArrayResultFulfillmentStatesConfigurationSummary, + + /** + * The RestApiArrayResultHomeAction model constructor. + * @property {module:model/RestApiArrayResultHomeAction} + */ + RestApiArrayResultHomeAction, + + /** + * The RestApiArrayResultKioskCashPaymentSettings model constructor. + * @property {module:model/RestApiArrayResultKioskCashPaymentSettings} + */ + RestApiArrayResultKioskCashPaymentSettings, + + /** + * The RestApiArrayResultLocalisedTimeZone model constructor. + * @property {module:model/RestApiArrayResultLocalisedTimeZone} + */ + RestApiArrayResultLocalisedTimeZone, + + /** + * The RestApiArrayResultLocationAreaLocation model constructor. + * @property {module:model/RestApiArrayResultLocationAreaLocation} + */ + RestApiArrayResultLocationAreaLocation, + + /** + * The RestApiArrayResultLocationAreaWithLocations model constructor. + * @property {module:model/RestApiArrayResultLocationAreaWithLocations} + */ + RestApiArrayResultLocationAreaWithLocations, + + /** + * The RestApiArrayResultLoyaltyCampaign model constructor. + * @property {module:model/RestApiArrayResultLoyaltyCampaign} + */ + RestApiArrayResultLoyaltyCampaign, + + /** + * The RestApiArrayResultMenuCheckpoint model constructor. + * @property {module:model/RestApiArrayResultMenuCheckpoint} + */ + RestApiArrayResultMenuCheckpoint, + + /** + * The RestApiArrayResultMenuElementEditResponse model constructor. + * @property {module:model/RestApiArrayResultMenuElementEditResponse} + */ + RestApiArrayResultMenuElementEditResponse, + + /** + * The RestApiArrayResultMenuElementListResponse model constructor. + * @property {module:model/RestApiArrayResultMenuElementListResponse} + */ + RestApiArrayResultMenuElementListResponse, + + /** + * The RestApiArrayResultMenuItemOptionSet model constructor. + * @property {module:model/RestApiArrayResultMenuItemOptionSet} + */ + RestApiArrayResultMenuItemOptionSet, + + /** + * The RestApiArrayResultMenuItemOptionSetItem model constructor. + * @property {module:model/RestApiArrayResultMenuItemOptionSetItem} + */ + RestApiArrayResultMenuItemOptionSetItem, + + /** + * The RestApiArrayResultMenuSection model constructor. + * @property {module:model/RestApiArrayResultMenuSection} + */ + RestApiArrayResultMenuSection, + + /** + * The RestApiArrayResultMenuSectionItem model constructor. + * @property {module:model/RestApiArrayResultMenuSectionItem} + */ + RestApiArrayResultMenuSectionItem, + + /** + * The RestApiArrayResultMenuStoreNames model constructor. + * @property {module:model/RestApiArrayResultMenuStoreNames} + */ + RestApiArrayResultMenuStoreNames, + + /** + * The RestApiArrayResultMenuSummary model constructor. + * @property {module:model/RestApiArrayResultMenuSummary} + */ + RestApiArrayResultMenuSummary, + + /** + * The RestApiArrayResultMenuTaxDetails model constructor. + * @property {module:model/RestApiArrayResultMenuTaxDetails} + */ + RestApiArrayResultMenuTaxDetails, + + /** + * The RestApiArrayResultMenuZone model constructor. + * @property {module:model/RestApiArrayResultMenuZone} + */ + RestApiArrayResultMenuZone, + + /** + * The RestApiArrayResultMetadata model constructor. + * @property {module:model/RestApiArrayResultMetadata} + */ + RestApiArrayResultMetadata, + + /** + * The RestApiArrayResultMobileAppsStatistics model constructor. + * @property {module:model/RestApiArrayResultMobileAppsStatistics} + */ + RestApiArrayResultMobileAppsStatistics, + + /** + * The RestApiArrayResultOAuthApp model constructor. + * @property {module:model/RestApiArrayResultOAuthApp} + */ + RestApiArrayResultOAuthApp, + + /** + * The RestApiArrayResultOauthClientRedirectUri model constructor. + * @property {module:model/RestApiArrayResultOauthClientRedirectUri} + */ + RestApiArrayResultOauthClientRedirectUri, + + /** + * The RestApiArrayResultOrderBatch model constructor. + * @property {module:model/RestApiArrayResultOrderBatch} + */ + RestApiArrayResultOrderBatch, + + /** + * The RestApiArrayResultOrderFulfillmentStatus model constructor. + * @property {module:model/RestApiArrayResultOrderFulfillmentStatus} + */ + RestApiArrayResultOrderFulfillmentStatus, + + /** + * The RestApiArrayResultPayoutSummary model constructor. + * @property {module:model/RestApiArrayResultPayoutSummary} + */ + RestApiArrayResultPayoutSummary, + + /** + * The RestApiArrayResultPendingInvitation model constructor. + * @property {module:model/RestApiArrayResultPendingInvitation} + */ + RestApiArrayResultPendingInvitation, + + /** + * The RestApiArrayResultPendingMenuChangesSummaries model constructor. + * @property {module:model/RestApiArrayResultPendingMenuChangesSummaries} + */ + RestApiArrayResultPendingMenuChangesSummaries, + + /** + * The RestApiArrayResultPreOrderTime model constructor. + * @property {module:model/RestApiArrayResultPreOrderTime} + */ + RestApiArrayResultPreOrderTime, + + /** + * The RestApiArrayResultProcessingFeeConfig model constructor. + * @property {module:model/RestApiArrayResultProcessingFeeConfig} + */ + RestApiArrayResultProcessingFeeConfig, + + /** + * The RestApiArrayResultRedeemInvitationResult model constructor. + * @property {module:model/RestApiArrayResultRedeemInvitationResult} + */ + RestApiArrayResultRedeemInvitationResult, + + /** + * The RestApiArrayResultRestApiDefaultResponse model constructor. + * @property {module:model/RestApiArrayResultRestApiDefaultResponse} + */ + RestApiArrayResultRestApiDefaultResponse, + + /** + * The RestApiArrayResultRestaurantVoucherEligibleStore model constructor. + * @property {module:model/RestApiArrayResultRestaurantVoucherEligibleStore} + */ + RestApiArrayResultRestaurantVoucherEligibleStore, + + /** + * The RestApiArrayResultRestaurantVoucherPayGreenConfiguration model constructor. + * @property {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration} + */ + RestApiArrayResultRestaurantVoucherPayGreenConfiguration, + + /** + * The RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary model constructor. + * @property {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary} + */ + RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary, + + /** + * The RestApiArrayResultRetentionCampaign model constructor. + * @property {module:model/RestApiArrayResultRetentionCampaign} + */ + RestApiArrayResultRetentionCampaign, + + /** + * The RestApiArrayResultSmsProviderCredential model constructor. + * @property {module:model/RestApiArrayResultSmsProviderCredential} + */ + RestApiArrayResultSmsProviderCredential, + + /** + * The RestApiArrayResultStoreChannelAssignment model constructor. + * @property {module:model/RestApiArrayResultStoreChannelAssignment} + */ + RestApiArrayResultStoreChannelAssignment, + + /** + * The RestApiArrayResultStoreDeliveryZoneFeeConfig model constructor. + * @property {module:model/RestApiArrayResultStoreDeliveryZoneFeeConfig} + */ + RestApiArrayResultStoreDeliveryZoneFeeConfig, + + /** + * The RestApiArrayResultStoreListItem model constructor. + * @property {module:model/RestApiArrayResultStoreListItem} + */ + RestApiArrayResultStoreListItem, + + /** + * The RestApiArrayResultStoreStatistics model constructor. + * @property {module:model/RestApiArrayResultStoreStatistics} + */ + RestApiArrayResultStoreStatistics, + + /** + * The RestApiArrayResultStripeCustomConnectedAccount model constructor. + * @property {module:model/RestApiArrayResultStripeCustomConnectedAccount} + */ + RestApiArrayResultStripeCustomConnectedAccount, + + /** + * The RestApiArrayResultSubscriptionSummary model constructor. + * @property {module:model/RestApiArrayResultSubscriptionSummary} + */ + RestApiArrayResultSubscriptionSummary, + + /** + * The RestApiArrayResultSupportedCountry model constructor. + * @property {module:model/RestApiArrayResultSupportedCountry} + */ + RestApiArrayResultSupportedCountry, + + /** + * The RestApiArrayResultTeammate model constructor. + * @property {module:model/RestApiArrayResultTeammate} + */ + RestApiArrayResultTeammate, + + /** + * The RestApiArrayResultUserFlipdishAccount model constructor. + * @property {module:model/RestApiArrayResultUserFlipdishAccount} + */ + RestApiArrayResultUserFlipdishAccount, + + /** + * The RestApiArrayResultUserNote model constructor. + * @property {module:model/RestApiArrayResultUserNote} + */ + RestApiArrayResultUserNote, + + /** + * The RestApiArrayResultUserStoreInfo model constructor. + * @property {module:model/RestApiArrayResultUserStoreInfo} + */ + RestApiArrayResultUserStoreInfo, + + /** + * The RestApiArrayResultVoucherDataPoint model constructor. + * @property {module:model/RestApiArrayResultVoucherDataPoint} + */ + RestApiArrayResultVoucherDataPoint, + + /** + * The RestApiDefaultResponse model constructor. + * @property {module:model/RestApiDefaultResponse} + */ + RestApiDefaultResponse, + + /** + * The RestApiErrorResult model constructor. + * @property {module:model/RestApiErrorResult} + */ + RestApiErrorResult, + + /** + * The RestApiEventSearchPaginationResult model constructor. + * @property {module:model/RestApiEventSearchPaginationResult} + */ + RestApiEventSearchPaginationResult, + + /** + * The RestApiFinanceSearchPaginationResultInvoice model constructor. + * @property {module:model/RestApiFinanceSearchPaginationResultInvoice} + */ + RestApiFinanceSearchPaginationResultInvoice, + + /** + * The RestApiFinanceSearchPaginationResultSubscriptionInvoice model constructor. + * @property {module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice} + */ + RestApiFinanceSearchPaginationResultSubscriptionInvoice, + + /** + * The RestApiForbiddenResult model constructor. + * @property {module:model/RestApiForbiddenResult} + */ + RestApiForbiddenResult, + + /** + * The RestApiIntegerResult model constructor. + * @property {module:model/RestApiIntegerResult} + */ + RestApiIntegerResult, + + /** + * The RestApiPaginationResultApp model constructor. + * @property {module:model/RestApiPaginationResultApp} + */ + RestApiPaginationResultApp, + + /** + * The RestApiPaginationResultAppStoreAppSummary model constructor. + * @property {module:model/RestApiPaginationResultAppStoreAppSummary} + */ + RestApiPaginationResultAppStoreAppSummary, + + /** + * The RestApiPaginationResultBusinessHoursOverride model constructor. + * @property {module:model/RestApiPaginationResultBusinessHoursOverride} + */ + RestApiPaginationResultBusinessHoursOverride, + + /** + * The RestApiPaginationResultCatalogItem model constructor. + * @property {module:model/RestApiPaginationResultCatalogItem} + */ + RestApiPaginationResultCatalogItem, + + /** + * The RestApiPaginationResultGroup model constructor. + * @property {module:model/RestApiPaginationResultGroup} + */ + RestApiPaginationResultGroup, + + /** + * The RestApiPaginationResultHydraDeviceDetails model constructor. + * @property {module:model/RestApiPaginationResultHydraDeviceDetails} + */ + RestApiPaginationResultHydraDeviceDetails, + + /** + * The RestApiPaginationResultMetafieldDefinition model constructor. + * @property {module:model/RestApiPaginationResultMetafieldDefinition} + */ + RestApiPaginationResultMetafieldDefinition, + + /** + * The RestApiPaginationResultMetafieldDefinitionRecommendation model constructor. + * @property {module:model/RestApiPaginationResultMetafieldDefinitionRecommendation} + */ + RestApiPaginationResultMetafieldDefinitionRecommendation, + + /** + * The RestApiPaginationResultOAuthTokenModel model constructor. + * @property {module:model/RestApiPaginationResultOAuthTokenModel} + */ + RestApiPaginationResultOAuthTokenModel, + + /** + * The RestApiPaginationResultOrder model constructor. + * @property {module:model/RestApiPaginationResultOrder} + */ + RestApiPaginationResultOrder, + + /** + * The RestApiPaginationResultOrderSummary model constructor. + * @property {module:model/RestApiPaginationResultOrderSummary} + */ + RestApiPaginationResultOrderSummary, + + /** + * The RestApiPaginationResultPayout model constructor. + * @property {module:model/RestApiPaginationResultPayout} + */ + RestApiPaginationResultPayout, + + /** + * The RestApiPaginationResultPayoutChargeback model constructor. + * @property {module:model/RestApiPaginationResultPayoutChargeback} + */ + RestApiPaginationResultPayoutChargeback, + + /** + * The RestApiPaginationResultPayoutOrder model constructor. + * @property {module:model/RestApiPaginationResultPayoutOrder} + */ + RestApiPaginationResultPayoutOrder, + + /** + * The RestApiPaginationResultPayoutOtherCharge model constructor. + * @property {module:model/RestApiPaginationResultPayoutOtherCharge} + */ + RestApiPaginationResultPayoutOtherCharge, + + /** + * The RestApiPaginationResultPayoutRefund model constructor. + * @property {module:model/RestApiPaginationResultPayoutRefund} + */ + RestApiPaginationResultPayoutRefund, + + /** + * The RestApiPaginationResultPayoutReport3RefundedOrder model constructor. + * @property {module:model/RestApiPaginationResultPayoutReport3RefundedOrder} + */ + RestApiPaginationResultPayoutReport3RefundedOrder, + + /** + * The RestApiPaginationResultPendingMenuChanges model constructor. + * @property {module:model/RestApiPaginationResultPendingMenuChanges} + */ + RestApiPaginationResultPendingMenuChanges, + + /** + * The RestApiPaginationResultPhoneCall model constructor. + * @property {module:model/RestApiPaginationResultPhoneCall} + */ + RestApiPaginationResultPhoneCall, + + /** + * The RestApiPaginationResultProduct model constructor. + * @property {module:model/RestApiPaginationResultProduct} + */ + RestApiPaginationResultProduct, + + /** + * The RestApiPaginationResultPushNotificationResponse model constructor. + * @property {module:model/RestApiPaginationResultPushNotificationResponse} + */ + RestApiPaginationResultPushNotificationResponse, + + /** + * The RestApiPaginationResultRestaurant model constructor. + * @property {module:model/RestApiPaginationResultRestaurant} + */ + RestApiPaginationResultRestaurant, + + /** + * The RestApiPaginationResultStore model constructor. + * @property {module:model/RestApiPaginationResultStore} + */ + RestApiPaginationResultStore, + + /** + * The RestApiPaginationResultStoreGroup model constructor. + * @property {module:model/RestApiPaginationResultStoreGroup} + */ + RestApiPaginationResultStoreGroup, + + /** + * The RestApiPaginationResultStoreGroupExtended model constructor. + * @property {module:model/RestApiPaginationResultStoreGroupExtended} + */ + RestApiPaginationResultStoreGroupExtended, + + /** + * The RestApiPaginationResultStoreHeader model constructor. + * @property {module:model/RestApiPaginationResultStoreHeader} + */ + RestApiPaginationResultStoreHeader, + + /** + * The RestApiPaginationResultStoreValidationConfig model constructor. + * @property {module:model/RestApiPaginationResultStoreValidationConfig} + */ + RestApiPaginationResultStoreValidationConfig, + + /** + * The RestApiPaginationResultUserSearch model constructor. + * @property {module:model/RestApiPaginationResultUserSearch} + */ + RestApiPaginationResultUserSearch, + + /** + * The RestApiPaginationResultVoucherSummary model constructor. + * @property {module:model/RestApiPaginationResultVoucherSummary} + */ + RestApiPaginationResultVoucherSummary, + + /** + * The RestApiPaginationResultWebhookLog model constructor. + * @property {module:model/RestApiPaginationResultWebhookLog} + */ + RestApiPaginationResultWebhookLog, + + /** + * The RestApiPaginationResultWebhookSubscription model constructor. + * @property {module:model/RestApiPaginationResultWebhookSubscription} + */ + RestApiPaginationResultWebhookSubscription, + + /** + * The RestApiResultAcceptInvitationResult model constructor. + * @property {module:model/RestApiResultAcceptInvitationResult} + */ + RestApiResultAcceptInvitationResult, + + /** + * The RestApiResultAccountDetail model constructor. + * @property {module:model/RestApiResultAccountDetail} + */ + RestApiResultAccountDetail, + + /** + * The RestApiResultAccountFieldsDefinitions model constructor. + * @property {module:model/RestApiResultAccountFieldsDefinitions} + */ + RestApiResultAccountFieldsDefinitions, + + /** + * The RestApiResultAddressFormResponse model constructor. + * @property {module:model/RestApiResultAddressFormResponse} + */ + RestApiResultAddressFormResponse, + + /** + * The RestApiResultApmStatistics model constructor. + * @property {module:model/RestApiResultApmStatistics} + */ + RestApiResultApmStatistics, + + /** + * The RestApiResultApmStatus model constructor. + * @property {module:model/RestApiResultApmStatus} + */ + RestApiResultApmStatus, + + /** + * The RestApiResultApp model constructor. + * @property {module:model/RestApiResultApp} + */ + RestApiResultApp, + + /** + * The RestApiResultAppChannelAssignment model constructor. + * @property {module:model/RestApiResultAppChannelAssignment} + */ + RestApiResultAppChannelAssignment, + + /** + * The RestApiResultAppCompliance model constructor. + * @property {module:model/RestApiResultAppCompliance} + */ + RestApiResultAppCompliance, + + /** + * The RestApiResultAppConfigSalesChannel model constructor. + * @property {module:model/RestApiResultAppConfigSalesChannel} + */ + RestApiResultAppConfigSalesChannel, + + /** + * The RestApiResultAppStoreApp model constructor. + * @property {module:model/RestApiResultAppStoreApp} + */ + RestApiResultAppStoreApp, + + /** + * The RestApiResultAppStoreAppConfiguration model constructor. + * @property {module:model/RestApiResultAppStoreAppConfiguration} + */ + RestApiResultAppStoreAppConfiguration, + + /** + * The RestApiResultAppStoreAppEntitlements model constructor. + * @property {module:model/RestApiResultAppStoreAppEntitlements} + */ + RestApiResultAppStoreAppEntitlements, + + /** + * The RestApiResultAssignedBankAccount model constructor. + * @property {module:model/RestApiResultAssignedBankAccount} + */ + RestApiResultAssignedBankAccount, + + /** + * The RestApiResultBankAccountDetail model constructor. + * @property {module:model/RestApiResultBankAccountDetail} + */ + RestApiResultBankAccountDetail, + + /** + * The RestApiResultBluetoothTerminalStatus model constructor. + * @property {module:model/RestApiResultBluetoothTerminalStatus} + */ + RestApiResultBluetoothTerminalStatus, + + /** + * The RestApiResultBusinessHoursOverride model constructor. + * @property {module:model/RestApiResultBusinessHoursOverride} + */ + RestApiResultBusinessHoursOverride, + + /** + * The RestApiResultBusinessHoursPeriod model constructor. + * @property {module:model/RestApiResultBusinessHoursPeriod} + */ + RestApiResultBusinessHoursPeriod, + + /** + * The RestApiResultCardReader model constructor. + * @property {module:model/RestApiResultCardReader} + */ + RestApiResultCardReader, + + /** + * The RestApiResultCatalogItem model constructor. + * @property {module:model/RestApiResultCatalogItem} + */ + RestApiResultCatalogItem, + + /** + * The RestApiResultChannel model constructor. + * @property {module:model/RestApiResultChannel} + */ + RestApiResultChannel, + + /** + * The RestApiResultClientDevice model constructor. + * @property {module:model/RestApiResultClientDevice} + */ + RestApiResultClientDevice, + + /** + * The RestApiResultClientDeviceEnrollmentResult model constructor. + * @property {module:model/RestApiResultClientDeviceEnrollmentResult} + */ + RestApiResultClientDeviceEnrollmentResult, + + /** + * The RestApiResultCoordinates model constructor. + * @property {module:model/RestApiResultCoordinates} + */ + RestApiResultCoordinates, + + /** + * The RestApiResultCountryFormResponse model constructor. + * @property {module:model/RestApiResultCountryFormResponse} + */ + RestApiResultCountryFormResponse, + + /** + * The RestApiResultCreatedMenuSectionItems model constructor. + * @property {module:model/RestApiResultCreatedMenuSectionItems} + */ + RestApiResultCreatedMenuSectionItems, + + /** + * The RestApiResultCrossSellMenuItems model constructor. + * @property {module:model/RestApiResultCrossSellMenuItems} + */ + RestApiResultCrossSellMenuItems, + + /** + * The RestApiResultCustomer model constructor. + * @property {module:model/RestApiResultCustomer} + */ + RestApiResultCustomer, + + /** + * The RestApiResultCustomers model constructor. + * @property {module:model/RestApiResultCustomers} + */ + RestApiResultCustomers, + + /** + * The RestApiResultDeliveryZone model constructor. + * @property {module:model/RestApiResultDeliveryZone} + */ + RestApiResultDeliveryZone, + + /** + * The RestApiResultDnsRecordInformation model constructor. + * @property {module:model/RestApiResultDnsRecordInformation} + */ + RestApiResultDnsRecordInformation, + + /** + * The RestApiResultExecuteConfigurationActionResult model constructor. + * @property {module:model/RestApiResultExecuteConfigurationActionResult} + */ + RestApiResultExecuteConfigurationActionResult, + + /** + * The RestApiResultFileCreationResult model constructor. + * @property {module:model/RestApiResultFileCreationResult} + */ + RestApiResultFileCreationResult, + + /** + * The RestApiResultFileDownloadResult model constructor. + * @property {module:model/RestApiResultFileDownloadResult} + */ + RestApiResultFileDownloadResult, + + /** + * The RestApiResultFulfillmentStatesConfiguration model constructor. + * @property {module:model/RestApiResultFulfillmentStatesConfiguration} + */ + RestApiResultFulfillmentStatesConfiguration, + + /** + * The RestApiResultGroup model constructor. + * @property {module:model/RestApiResultGroup} + */ + RestApiResultGroup, + + /** + * The RestApiResultHasPaymentMethodResponse model constructor. + * @property {module:model/RestApiResultHasPaymentMethodResponse} + */ + RestApiResultHasPaymentMethodResponse, + + /** + * The RestApiResultHomeStatistics model constructor. + * @property {module:model/RestApiResultHomeStatistics} + */ + RestApiResultHomeStatistics, + + /** + * The RestApiResultHydraConfig model constructor. + * @property {module:model/RestApiResultHydraConfig} + */ + RestApiResultHydraConfig, + + /** + * The RestApiResultHydraDeviceDetails model constructor. + * @property {module:model/RestApiResultHydraDeviceDetails} + */ + RestApiResultHydraDeviceDetails, + + /** + * The RestApiResultHydraStatus model constructor. + * @property {module:model/RestApiResultHydraStatus} + */ + RestApiResultHydraStatus, + + /** + * The RestApiResultIndexPage model constructor. + * @property {module:model/RestApiResultIndexPage} + */ + RestApiResultIndexPage, + + /** + * The RestApiResultIndexPageBase model constructor. + * @property {module:model/RestApiResultIndexPageBase} + */ + RestApiResultIndexPageBase, + + /** + * The RestApiResultIntercomUserHash model constructor. + * @property {module:model/RestApiResultIntercomUserHash} + */ + RestApiResultIntercomUserHash, + + /** + * The RestApiResultJobResponse model constructor. + * @property {module:model/RestApiResultJobResponse} + */ + RestApiResultJobResponse, + + /** + * The RestApiResultKioskEntitlementsResult model constructor. + * @property {module:model/RestApiResultKioskEntitlementsResult} + */ + RestApiResultKioskEntitlementsResult, + + /** + * The RestApiResultKioskIotConnectionParameters model constructor. + * @property {module:model/RestApiResultKioskIotConnectionParameters} + */ + RestApiResultKioskIotConnectionParameters, + + /** + * The RestApiResultKioskSettings model constructor. + * @property {module:model/RestApiResultKioskSettings} + */ + RestApiResultKioskSettings, + + /** + * The RestApiResultLightspeedSettings model constructor. + * @property {module:model/RestApiResultLightspeedSettings} + */ + RestApiResultLightspeedSettings, + + /** + * The RestApiResultLocationArea model constructor. + * @property {module:model/RestApiResultLocationArea} + */ + RestApiResultLocationArea, + + /** + * The RestApiResultLocationAreaLocation model constructor. + * @property {module:model/RestApiResultLocationAreaLocation} + */ + RestApiResultLocationAreaLocation, + + /** + * The RestApiResultLocationAreaWithLocations model constructor. + * @property {module:model/RestApiResultLocationAreaWithLocations} + */ + RestApiResultLocationAreaWithLocations, + + /** + * The RestApiResultLoyaltyCampaign model constructor. + * @property {module:model/RestApiResultLoyaltyCampaign} + */ + RestApiResultLoyaltyCampaign, + + /** + * The RestApiResultMappedLocation model constructor. + * @property {module:model/RestApiResultMappedLocation} + */ + RestApiResultMappedLocation, + + /** + * The RestApiResultMenu model constructor. + * @property {module:model/RestApiResultMenu} + */ + RestApiResultMenu, + + /** + * The RestApiResultMenuItemOptionSet model constructor. + * @property {module:model/RestApiResultMenuItemOptionSet} + */ + RestApiResultMenuItemOptionSet, + + /** + * The RestApiResultMenuItemOptionSetItem model constructor. + * @property {module:model/RestApiResultMenuItemOptionSetItem} + */ + RestApiResultMenuItemOptionSetItem, + + /** + * The RestApiResultMenuNutritionInfoHeader model constructor. + * @property {module:model/RestApiResultMenuNutritionInfoHeader} + */ + RestApiResultMenuNutritionInfoHeader, + + /** + * The RestApiResultMenuSection model constructor. + * @property {module:model/RestApiResultMenuSection} + */ + RestApiResultMenuSection, + + /** + * The RestApiResultMenuSectionAvailability model constructor. + * @property {module:model/RestApiResultMenuSectionAvailability} + */ + RestApiResultMenuSectionAvailability, + + /** + * The RestApiResultMenuSectionItem model constructor. + * @property {module:model/RestApiResultMenuSectionItem} + */ + RestApiResultMenuSectionItem, + + /** + * The RestApiResultMenuZone model constructor. + * @property {module:model/RestApiResultMenuZone} + */ + RestApiResultMenuZone, + + /** + * The RestApiResultMetadata model constructor. + * @property {module:model/RestApiResultMetadata} + */ + RestApiResultMetadata, + + /** + * The RestApiResultMetafieldDefinition model constructor. + * @property {module:model/RestApiResultMetafieldDefinition} + */ + RestApiResultMetafieldDefinition, + + /** + * The RestApiResultMobileAppsImage model constructor. + * @property {module:model/RestApiResultMobileAppsImage} + */ + RestApiResultMobileAppsImage, + + /** + * The RestApiResultMobileAppsSubmission model constructor. + * @property {module:model/RestApiResultMobileAppsSubmission} + */ + RestApiResultMobileAppsSubmission, + + /** + * The RestApiResultMobileAppsSubmissionDetails model constructor. + * @property {module:model/RestApiResultMobileAppsSubmissionDetails} + */ + RestApiResultMobileAppsSubmissionDetails, + + /** + * The RestApiResultMobileAppsSubmissionStatus model constructor. + * @property {module:model/RestApiResultMobileAppsSubmissionStatus} + */ + RestApiResultMobileAppsSubmissionStatus, + + /** + * The RestApiResultModelBase model constructor. + * @property {module:model/RestApiResultModelBase} + */ + RestApiResultModelBase, + + /** + * The RestApiResultNutritionInfo model constructor. + * @property {module:model/RestApiResultNutritionInfo} + */ + RestApiResultNutritionInfo, + + /** + * The RestApiResultNutritionInfoV2 model constructor. + * @property {module:model/RestApiResultNutritionInfoV2} + */ + RestApiResultNutritionInfoV2, + + /** + * The RestApiResultOAuthApp model constructor. + * @property {module:model/RestApiResultOAuthApp} + */ + RestApiResultOAuthApp, + + /** + * The RestApiResultOauthClientRedirectUri model constructor. + * @property {module:model/RestApiResultOauthClientRedirectUri} + */ + RestApiResultOauthClientRedirectUri, + + /** + * The RestApiResultOktaPortalFeatureFlag model constructor. + * @property {module:model/RestApiResultOktaPortalFeatureFlag} + */ + RestApiResultOktaPortalFeatureFlag, + + /** + * The RestApiResultOrder model constructor. + * @property {module:model/RestApiResultOrder} + */ + RestApiResultOrder, + + /** + * The RestApiResultOrderBatch model constructor. + * @property {module:model/RestApiResultOrderBatch} + */ + RestApiResultOrderBatch, + + /** + * The RestApiResultOrderBatchingConfiguration model constructor. + * @property {module:model/RestApiResultOrderBatchingConfiguration} + */ + RestApiResultOrderBatchingConfiguration, + + /** + * The RestApiResultOrderDeliveryInformation model constructor. + * @property {module:model/RestApiResultOrderDeliveryInformation} + */ + RestApiResultOrderDeliveryInformation, + + /** + * The RestApiResultOrderFulfillmentStatus model constructor. + * @property {module:model/RestApiResultOrderFulfillmentStatus} + */ + RestApiResultOrderFulfillmentStatus, + + /** + * The RestApiResultOrderFulfillmentStatusWithConfigurationActions model constructor. + * @property {module:model/RestApiResultOrderFulfillmentStatusWithConfigurationActions} + */ + RestApiResultOrderFulfillmentStatusWithConfigurationActions, + + /** + * The RestApiResultOrderLeadTimes model constructor. + * @property {module:model/RestApiResultOrderLeadTimes} + */ + RestApiResultOrderLeadTimes, + + /** + * The RestApiResultOrderPaymentInformation model constructor. + * @property {module:model/RestApiResultOrderPaymentInformation} + */ + RestApiResultOrderPaymentInformation, + + /** + * The RestApiResultPaymentIntent model constructor. + * @property {module:model/RestApiResultPaymentIntent} + */ + RestApiResultPaymentIntent, + + /** + * The RestApiResultPaymentTerminalDetails model constructor. + * @property {module:model/RestApiResultPaymentTerminalDetails} + */ + RestApiResultPaymentTerminalDetails, + + /** + * The RestApiResultPaymentTerminalTransactionDetails model constructor. + * @property {module:model/RestApiResultPaymentTerminalTransactionDetails} + */ + RestApiResultPaymentTerminalTransactionDetails, + + /** + * The RestApiResultPayoutReport3Details model constructor. + * @property {module:model/RestApiResultPayoutReport3Details} + */ + RestApiResultPayoutReport3Details, + + /** + * The RestApiResultPayoutReport3Overview model constructor. + * @property {module:model/RestApiResultPayoutReport3Overview} + */ + RestApiResultPayoutReport3Overview, + + /** + * The RestApiResultPreOrderConfig model constructor. + * @property {module:model/RestApiResultPreOrderConfig} + */ + RestApiResultPreOrderConfig, + + /** + * The RestApiResultProcessingFeeConfig model constructor. + * @property {module:model/RestApiResultProcessingFeeConfig} + */ + RestApiResultProcessingFeeConfig, + + /** + * The RestApiResultProduct model constructor. + * @property {module:model/RestApiResultProduct} + */ + RestApiResultProduct, + + /** + * The RestApiResultPushNotificationResponse model constructor. + * @property {module:model/RestApiResultPushNotificationResponse} + */ + RestApiResultPushNotificationResponse, + + /** + * The RestApiResultRedeemInvitationResult model constructor. + * @property {module:model/RestApiResultRedeemInvitationResult} + */ + RestApiResultRedeemInvitationResult, + + /** + * The RestApiResultRestApiDefaultResponse model constructor. + * @property {module:model/RestApiResultRestApiDefaultResponse} + */ + RestApiResultRestApiDefaultResponse, + + /** + * The RestApiResultRestApiIntegerResult model constructor. + * @property {module:model/RestApiResultRestApiIntegerResult} + */ + RestApiResultRestApiIntegerResult, + + /** + * The RestApiResultRestaurantVoucherPayGreenConfiguration model constructor. + * @property {module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} + */ + RestApiResultRestaurantVoucherPayGreenConfiguration, + + /** + * The RestApiResultRestaurantVoucherPayGreenStoreConfiguration model constructor. + * @property {module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration} + */ + RestApiResultRestaurantVoucherPayGreenStoreConfiguration, + + /** + * The RestApiResultRetentionCampaign model constructor. + * @property {module:model/RestApiResultRetentionCampaign} + */ + RestApiResultRetentionCampaign, + + /** + * The RestApiResultServiceCharge model constructor. + * @property {module:model/RestApiResultServiceCharge} + */ + RestApiResultServiceCharge, + + /** + * The RestApiResultSmsProviderCredential model constructor. + * @property {module:model/RestApiResultSmsProviderCredential} + */ + RestApiResultSmsProviderCredential, + + /** + * The RestApiResultStore model constructor. + * @property {module:model/RestApiResultStore} + */ + RestApiResultStore, + + /** + * The RestApiResultStoreAddress model constructor. + * @property {module:model/RestApiResultStoreAddress} + */ + RestApiResultStoreAddress, + + /** + * The RestApiResultStoreChannelAssignment model constructor. + * @property {module:model/RestApiResultStoreChannelAssignment} + */ + RestApiResultStoreChannelAssignment, + + /** + * The RestApiResultStoreEndOfDayReport model constructor. + * @property {module:model/RestApiResultStoreEndOfDayReport} + */ + RestApiResultStoreEndOfDayReport, + + /** + * The RestApiResultStoreGroup model constructor. + * @property {module:model/RestApiResultStoreGroup} + */ + RestApiResultStoreGroup, + + /** + * The RestApiResultStoreGroupBase model constructor. + * @property {module:model/RestApiResultStoreGroupBase} + */ + RestApiResultStoreGroupBase, + + /** + * The RestApiResultStoreOrderCapacityConfig model constructor. + * @property {module:model/RestApiResultStoreOrderCapacityConfig} + */ + RestApiResultStoreOrderCapacityConfig, + + /** + * The RestApiResultStripeConnectedAccount model constructor. + * @property {module:model/RestApiResultStripeConnectedAccount} + */ + RestApiResultStripeConnectedAccount, + + /** + * The RestApiResultStripeTerminalConnectionToken model constructor. + * @property {module:model/RestApiResultStripeTerminalConnectionToken} + */ + RestApiResultStripeTerminalConnectionToken, + + /** + * The RestApiResultStripeTerminalLocation model constructor. + * @property {module:model/RestApiResultStripeTerminalLocation} + */ + RestApiResultStripeTerminalLocation, + + /** + * The RestApiResultStuartSettings model constructor. + * @property {module:model/RestApiResultStuartSettings} + */ + RestApiResultStuartSettings, + + /** + * The RestApiResultSubscription model constructor. + * @property {module:model/RestApiResultSubscription} + */ + RestApiResultSubscription, + + /** + * The RestApiResultTeammate model constructor. + * @property {module:model/RestApiResultTeammate} + */ + RestApiResultTeammate, + + /** + * The RestApiResultTelemetrySeriesResult model constructor. + * @property {module:model/RestApiResultTelemetrySeriesResult} + */ + RestApiResultTelemetrySeriesResult, + + /** + * The RestApiResultTipConfiguration model constructor. + * @property {module:model/RestApiResultTipConfiguration} + */ + RestApiResultTipConfiguration, + + /** + * The RestApiResultUpdateMobileAppsSubmissionStatus model constructor. + * @property {module:model/RestApiResultUpdateMobileAppsSubmissionStatus} + */ + RestApiResultUpdateMobileAppsSubmissionStatus, + + /** + * The RestApiResultUserInfo model constructor. + * @property {module:model/RestApiResultUserInfo} + */ + RestApiResultUserInfo, + + /** + * The RestApiResultUserRole model constructor. + * @property {module:model/RestApiResultUserRole} + */ + RestApiResultUserRole, + + /** + * The RestApiResultVoucher model constructor. + * @property {module:model/RestApiResultVoucher} + */ + RestApiResultVoucher, + + /** + * The RestApiResultVoucherWithStats model constructor. + * @property {module:model/RestApiResultVoucherWithStats} + */ + RestApiResultVoucherWithStats, + + /** + * The RestApiResultWebsiteImage model constructor. + * @property {module:model/RestApiResultWebsiteImage} + */ + RestApiResultWebsiteImage, + + /** + * The RestApiResultWebsiteTestimonial model constructor. + * @property {module:model/RestApiResultWebsiteTestimonial} + */ + RestApiResultWebsiteTestimonial, + + /** + * The RestApiStringArrayResult model constructor. + * @property {module:model/RestApiStringArrayResult} + */ + RestApiStringArrayResult, + + /** + * The RestApiStringResult model constructor. + * @property {module:model/RestApiStringResult} + */ + RestApiStringResult, + + /** + * The RestApiUnauthorizedResult model constructor. + * @property {module:model/RestApiUnauthorizedResult} + */ + RestApiUnauthorizedResult, + + /** + * The Restaurant model constructor. + * @property {module:model/Restaurant} + */ + Restaurant, + + /** + * The RestaurantVoucherAssignedStore model constructor. + * @property {module:model/RestaurantVoucherAssignedStore} + */ + RestaurantVoucherAssignedStore, + + /** + * The RestaurantVoucherEligibleStore model constructor. + * @property {module:model/RestaurantVoucherEligibleStore} + */ + RestaurantVoucherEligibleStore, + + /** + * The RestaurantVoucherPayGreenConfiguration model constructor. + * @property {module:model/RestaurantVoucherPayGreenConfiguration} + */ + RestaurantVoucherPayGreenConfiguration, + + /** + * The RestaurantVoucherPayGreenConfigurationSummary model constructor. + * @property {module:model/RestaurantVoucherPayGreenConfigurationSummary} + */ + RestaurantVoucherPayGreenConfigurationSummary, + + /** + * The RestaurantVoucherPayGreenStoreConfiguration model constructor. + * @property {module:model/RestaurantVoucherPayGreenStoreConfiguration} + */ + RestaurantVoucherPayGreenStoreConfiguration, + + /** + * The RetentionCampaign model constructor. + * @property {module:model/RetentionCampaign} + */ + RetentionCampaign, + + /** + * The RetentionCampaignBase model constructor. + * @property {module:model/RetentionCampaignBase} + */ + RetentionCampaignBase, + + /** + * The RetentionCampaignCreatedEvent model constructor. + * @property {module:model/RetentionCampaignCreatedEvent} + */ + RetentionCampaignCreatedEvent, + + /** + * The RetentionCampaignDeletedEvent model constructor. + * @property {module:model/RetentionCampaignDeletedEvent} + */ + RetentionCampaignDeletedEvent, + + /** + * The RetentionCampaignUpdatedEvent model constructor. + * @property {module:model/RetentionCampaignUpdatedEvent} + */ + RetentionCampaignUpdatedEvent, + + /** + * The RevenueAdjustmentsDetails model constructor. + * @property {module:model/RevenueAdjustmentsDetails} + */ + RevenueAdjustmentsDetails, + + /** + * The RevenueDetail model constructor. + * @property {module:model/RevenueDetail} + */ + RevenueDetail, + + /** + * The SafeWaitHandle model constructor. + * @property {module:model/SafeWaitHandle} + */ + SafeWaitHandle, + + /** + * The SearchCriteria model constructor. + * @property {module:model/SearchCriteria} + */ + SearchCriteria, + + /** + * The ServiceCharge model constructor. + * @property {module:model/ServiceCharge} + */ + ServiceCharge, + + /** + * The SetOrderBatchingConfiguration model constructor. + * @property {module:model/SetOrderBatchingConfiguration} + */ + SetOrderBatchingConfiguration, + + /** + * The SetPasswordWithPinModel model constructor. + * @property {module:model/SetPasswordWithPinModel} + */ + SetPasswordWithPinModel, + + /** + * The SetVoucherValidityPeriodsSimplifiedRequest model constructor. + * @property {module:model/SetVoucherValidityPeriodsSimplifiedRequest} + */ + SetVoucherValidityPeriodsSimplifiedRequest, + + /** + * The Setting model constructor. + * @property {module:model/Setting} + */ + Setting, + + /** + * The SignupStep model constructor. + * @property {module:model/SignupStep} + */ + SignupStep, + + /** + * The SmsInfo model constructor. + * @property {module:model/SmsInfo} + */ + SmsInfo, + + /** + * The SmsProviderCredential model constructor. + * @property {module:model/SmsProviderCredential} + */ + SmsProviderCredential, + + /** + * The SmsProviderCredentialUpdateRequest model constructor. + * @property {module:model/SmsProviderCredentialUpdateRequest} + */ + SmsProviderCredentialUpdateRequest, + + /** + * The SmsReceivedEvent model constructor. + * @property {module:model/SmsReceivedEvent} + */ + SmsReceivedEvent, + + /** + * The StatisticsCurrencyDataPoint model constructor. + * @property {module:model/StatisticsCurrencyDataPoint} + */ + StatisticsCurrencyDataPoint, + + /** + * The Store model constructor. + * @property {module:model/Store} + */ + Store, + + /** + * The StoreAddress model constructor. + * @property {module:model/StoreAddress} + */ + StoreAddress, + + /** + * The StoreAddressBase model constructor. + * @property {module:model/StoreAddressBase} + */ + StoreAddressBase, + + /** + * The StoreAddressForm model constructor. + * @property {module:model/StoreAddressForm} + */ + StoreAddressForm, + + /** + * The StoreAddressUpdatedEvent model constructor. + * @property {module:model/StoreAddressUpdatedEvent} + */ + StoreAddressUpdatedEvent, + + /** + * The StoreArchivedEvent model constructor. + * @property {module:model/StoreArchivedEvent} + */ + StoreArchivedEvent, + + /** + * The StoreBase model constructor. + * @property {module:model/StoreBase} + */ + StoreBase, + + /** + * The StoreBusinessHoursOverrideCreatedEvent model constructor. + * @property {module:model/StoreBusinessHoursOverrideCreatedEvent} + */ + StoreBusinessHoursOverrideCreatedEvent, + + /** + * The StoreBusinessHoursOverrideDeletedEvent model constructor. + * @property {module:model/StoreBusinessHoursOverrideDeletedEvent} + */ + StoreBusinessHoursOverrideDeletedEvent, + + /** + * The StoreCampaignStartTime model constructor. + * @property {module:model/StoreCampaignStartTime} + */ + StoreCampaignStartTime, + + /** + * The StoreChannelAssignment model constructor. + * @property {module:model/StoreChannelAssignment} + */ + StoreChannelAssignment, + + /** + * The StoreCloneSettings model constructor. + * @property {module:model/StoreCloneSettings} + */ + StoreCloneSettings, + + /** + * The StoreCollectionSettings model constructor. + * @property {module:model/StoreCollectionSettings} + */ + StoreCollectionSettings, + + /** + * The StoreConfig model constructor. + * @property {module:model/StoreConfig} + */ + StoreConfig, + + /** + * The StoreCreateBase model constructor. + * @property {module:model/StoreCreateBase} + */ + StoreCreateBase, + + /** + * The StoreCreatedEvent model constructor. + * @property {module:model/StoreCreatedEvent} + */ + StoreCreatedEvent, + + /** + * The StoreDataPoint model constructor. + * @property {module:model/StoreDataPoint} + */ + StoreDataPoint, + + /** + * The StoreDeletedEvent model constructor. + * @property {module:model/StoreDeletedEvent} + */ + StoreDeletedEvent, + + /** + * The StoreDeliveryZoneFeeConfig model constructor. + * @property {module:model/StoreDeliveryZoneFeeConfig} + */ + StoreDeliveryZoneFeeConfig, + + /** + * The StoreDeliveryZoneFeeConfigUpdateRequest model constructor. + * @property {module:model/StoreDeliveryZoneFeeConfigUpdateRequest} + */ + StoreDeliveryZoneFeeConfigUpdateRequest, + + /** + * The StoreEndOfDayReport model constructor. + * @property {module:model/StoreEndOfDayReport} + */ + StoreEndOfDayReport, + + /** + * The StoreFeeConfig model constructor. + * @property {module:model/StoreFeeConfig} + */ + StoreFeeConfig, + + /** + * The StoreFeeConfigUpdatedEvent model constructor. + * @property {module:model/StoreFeeConfigUpdatedEvent} + */ + StoreFeeConfigUpdatedEvent, + + /** + * The StoreGroup model constructor. + * @property {module:model/StoreGroup} + */ + StoreGroup, + + /** + * The StoreGroupBase model constructor. + * @property {module:model/StoreGroupBase} + */ + StoreGroupBase, + + /** + * The StoreGroupCreatedEvent model constructor. + * @property {module:model/StoreGroupCreatedEvent} + */ + StoreGroupCreatedEvent, + + /** + * The StoreGroupDeletedEvent model constructor. + * @property {module:model/StoreGroupDeletedEvent} + */ + StoreGroupDeletedEvent, + + /** + * The StoreGroupExtended model constructor. + * @property {module:model/StoreGroupExtended} + */ + StoreGroupExtended, + + /** + * The StoreGroupUpdatedEvent model constructor. + * @property {module:model/StoreGroupUpdatedEvent} + */ + StoreGroupUpdatedEvent, + + /** + * The StoreHeader model constructor. + * @property {module:model/StoreHeader} + */ + StoreHeader, + + /** + * The StoreItemHeader model constructor. + * @property {module:model/StoreItemHeader} + */ + StoreItemHeader, + + /** + * The StoreKioskSetting model constructor. + * @property {module:model/StoreKioskSetting} + */ + StoreKioskSetting, + + /** + * The StoreKioskSettingUpdatedEvent model constructor. + * @property {module:model/StoreKioskSettingUpdatedEvent} + */ + StoreKioskSettingUpdatedEvent, + + /** + * The StoreListItem model constructor. + * @property {module:model/StoreListItem} + */ + StoreListItem, + + /** + * The StoreLogoCreatedEvent model constructor. + * @property {module:model/StoreLogoCreatedEvent} + */ + StoreLogoCreatedEvent, + + /** + * The StoreLogoDeletedEvent model constructor. + * @property {module:model/StoreLogoDeletedEvent} + */ + StoreLogoDeletedEvent, + + /** + * The StoreLogoUpdatedEvent model constructor. + * @property {module:model/StoreLogoUpdatedEvent} + */ + StoreLogoUpdatedEvent, + + /** + * The StoreMenuAssignedEvent model constructor. + * @property {module:model/StoreMenuAssignedEvent} + */ + StoreMenuAssignedEvent, + + /** + * The StoreNote model constructor. + * @property {module:model/StoreNote} + */ + StoreNote, + + /** + * The StoreOpeningHoursUpdatedEvent model constructor. + * @property {module:model/StoreOpeningHoursUpdatedEvent} + */ + StoreOpeningHoursUpdatedEvent, + + /** + * The StoreOrderCapacityConfig model constructor. + * @property {module:model/StoreOrderCapacityConfig} + */ + StoreOrderCapacityConfig, + + /** + * The StoreOrderCapacityConfigEditModel model constructor. + * @property {module:model/StoreOrderCapacityConfigEditModel} + */ + StoreOrderCapacityConfigEditModel, + + /** + * The StoreOrderCapacityPeriod model constructor. + * @property {module:model/StoreOrderCapacityPeriod} + */ + StoreOrderCapacityPeriod, + + /** + * The StorePreOrderConfigUpdatedEvent model constructor. + * @property {module:model/StorePreOrderConfigUpdatedEvent} + */ + StorePreOrderConfigUpdatedEvent, + + /** + * The StorePublishedEvent model constructor. + * @property {module:model/StorePublishedEvent} + */ + StorePublishedEvent, + + /** + * The StoreServiceChargeUpdatedEvent model constructor. + * @property {module:model/StoreServiceChargeUpdatedEvent} + */ + StoreServiceChargeUpdatedEvent, + + /** + * The StoreStatistics model constructor. + * @property {module:model/StoreStatistics} + */ + StoreStatistics, + + /** + * The StoreSummary model constructor. + * @property {module:model/StoreSummary} + */ + StoreSummary, + + /** + * The StoreTipUpdatedEvent model constructor. + * @property {module:model/StoreTipUpdatedEvent} + */ + StoreTipUpdatedEvent, + + /** + * The StoreUnarchivedEvent model constructor. + * @property {module:model/StoreUnarchivedEvent} + */ + StoreUnarchivedEvent, + + /** + * The StoreUnpublishedEvent model constructor. + * @property {module:model/StoreUnpublishedEvent} + */ + StoreUnpublishedEvent, + + /** + * The StoreUpdatedEvent model constructor. + * @property {module:model/StoreUpdatedEvent} + */ + StoreUpdatedEvent, + + /** + * The StoreValidationConfig model constructor. + * @property {module:model/StoreValidationConfig} + */ + StoreValidationConfig, + + /** + * The Stream model constructor. + * @property {module:model/Stream} + */ + Stream, + + /** + * The StripeAccountLinkRequest model constructor. + * @property {module:model/StripeAccountLinkRequest} + */ + StripeAccountLinkRequest, + + /** + * The StripeConnectedAccount model constructor. + * @property {module:model/StripeConnectedAccount} + */ + StripeConnectedAccount, + + /** + * The StripeConnectedAccountInfo model constructor. + * @property {module:model/StripeConnectedAccountInfo} + */ + StripeConnectedAccountInfo, + + /** + * The StripeCustomConnectedAccount model constructor. + * @property {module:model/StripeCustomConnectedAccount} + */ + StripeCustomConnectedAccount, + + /** + * The StripeTerminalConnectionToken model constructor. + * @property {module:model/StripeTerminalConnectionToken} + */ + StripeTerminalConnectionToken, + + /** + * The StripeTerminalLocation model constructor. + * @property {module:model/StripeTerminalLocation} + */ + StripeTerminalLocation, + + /** + * The StuartSettings model constructor. + * @property {module:model/StuartSettings} + */ + StuartSettings, + + /** + * The StuartSettingsTransportPrices model constructor. + * @property {module:model/StuartSettingsTransportPrices} + */ + StuartSettingsTransportPrices, + + /** + * The Subscription model constructor. + * @property {module:model/Subscription} + */ + Subscription, + + /** + * The SubscriptionInvoice model constructor. + * @property {module:model/SubscriptionInvoice} + */ + SubscriptionInvoice, + + /** + * The SubscriptionProduct model constructor. + * @property {module:model/SubscriptionProduct} + */ + SubscriptionProduct, + + /** + * The SubscriptionStore model constructor. + * @property {module:model/SubscriptionStore} + */ + SubscriptionStore, + + /** + * The SubscriptionSummary model constructor. + * @property {module:model/SubscriptionSummary} + */ + SubscriptionSummary, + + /** + * The SupportedCountry model constructor. + * @property {module:model/SupportedCountry} + */ + SupportedCountry, + + /** + * The TaxItem model constructor. + * @property {module:model/TaxItem} + */ + TaxItem, + + /** + * The TaxRate model constructor. + * @property {module:model/TaxRate} + */ + TaxRate, + + /** + * The Teammate model constructor. + * @property {module:model/Teammate} + */ + Teammate, + + /** + * The TeammateBase model constructor. + * @property {module:model/TeammateBase} + */ + TeammateBase, + + /** + * The TeammateDeletedEvent model constructor. + * @property {module:model/TeammateDeletedEvent} + */ + TeammateDeletedEvent, + + /** + * The TeammateInviteAcceptedEvent model constructor. + * @property {module:model/TeammateInviteAcceptedEvent} + */ + TeammateInviteAcceptedEvent, + + /** + * The TeammateInviteSentEvent model constructor. + * @property {module:model/TeammateInviteSentEvent} + */ + TeammateInviteSentEvent, + + /** + * The TeammateUpdatedEvent model constructor. + * @property {module:model/TeammateUpdatedEvent} + */ + TeammateUpdatedEvent, + + /** + * The TelemetrySeriesProperty model constructor. + * @property {module:model/TelemetrySeriesProperty} + */ + TelemetrySeriesProperty, + + /** + * The TelemetrySeriesQueryParameters model constructor. + * @property {module:model/TelemetrySeriesQueryParameters} + */ + TelemetrySeriesQueryParameters, + + /** + * The TelemetrySeriesResult model constructor. + * @property {module:model/TelemetrySeriesResult} + */ + TelemetrySeriesResult, + + /** + * The TelephonyConfig model constructor. + * @property {module:model/TelephonyConfig} + */ + TelephonyConfig, + + /** + * The TelephonyConfigUpdatedEvent model constructor. + * @property {module:model/TelephonyConfigUpdatedEvent} + */ + TelephonyConfigUpdatedEvent, + + /** + * The ThirdPartyFeesDetails model constructor. + * @property {module:model/ThirdPartyFeesDetails} + */ + ThirdPartyFeesDetails, + + /** + * The TipConfiguration model constructor. + * @property {module:model/TipConfiguration} + */ + TipConfiguration, + + /** + * The UnRegisterCardReaderRequest model constructor. + * @property {module:model/UnRegisterCardReaderRequest} + */ + UnRegisterCardReaderRequest, + + /** + * The UpcomingInvoice model constructor. + * @property {module:model/UpcomingInvoice} + */ + UpcomingInvoice, + + /** + * The UpdateAppStoreApp model constructor. + * @property {module:model/UpdateAppStoreApp} + */ + UpdateAppStoreApp, + + /** + * The UpdateAppStoreAppConfiguration model constructor. + * @property {module:model/UpdateAppStoreAppConfiguration} + */ + UpdateAppStoreAppConfiguration, + + /** + * The UpdateAppStoreAppConfigurationValuesBatch model constructor. + * @property {module:model/UpdateAppStoreAppConfigurationValuesBatch} + */ + UpdateAppStoreAppConfigurationValuesBatch, + + /** + * The UpdateAppStoreAppConfigurationWebhookDTO model constructor. + * @property {module:model/UpdateAppStoreAppConfigurationWebhookDTO} + */ + UpdateAppStoreAppConfigurationWebhookDTO, + + /** + * The UpdateAppStoreAppExternalProduct model constructor. + * @property {module:model/UpdateAppStoreAppExternalProduct} + */ + UpdateAppStoreAppExternalProduct, + + /** + * The UpdateCatalogGroupReference model constructor. + * @property {module:model/UpdateCatalogGroupReference} + */ + UpdateCatalogGroupReference, + + /** + * The UpdateCatalogItem model constructor. + * @property {module:model/UpdateCatalogItem} + */ + UpdateCatalogItem, + + /** + * The UpdateDriverNotificationToken model constructor. + * @property {module:model/UpdateDriverNotificationToken} + */ + UpdateDriverNotificationToken, + + /** + * The UpdateDriverProfileModel model constructor. + * @property {module:model/UpdateDriverProfileModel} + */ + UpdateDriverProfileModel, + + /** + * The UpdateFulfillmentStatesConfiguration model constructor. + * @property {module:model/UpdateFulfillmentStatesConfiguration} + */ + UpdateFulfillmentStatesConfiguration, + + /** + * The UpdateGroup model constructor. + * @property {module:model/UpdateGroup} + */ + UpdateGroup, + + /** + * The UpdateGroupReference model constructor. + * @property {module:model/UpdateGroupReference} + */ + UpdateGroupReference, + + /** + * The UpdateLocationArea model constructor. + * @property {module:model/UpdateLocationArea} + */ + UpdateLocationArea, + + /** + * The UpdateMetafieldDefinition model constructor. + * @property {module:model/UpdateMetafieldDefinition} + */ + UpdateMetafieldDefinition, + + /** + * The UpdateMobileAppsSubmissionStatus model constructor. + * @property {module:model/UpdateMobileAppsSubmissionStatus} + */ + UpdateMobileAppsSubmissionStatus, + + /** + * The UpdatePayGreenConfigurationRequest model constructor. + * @property {module:model/UpdatePayGreenConfigurationRequest} + */ + UpdatePayGreenConfigurationRequest, + + /** + * The UpdateProduct model constructor. + * @property {module:model/UpdateProduct} + */ + UpdateProduct, + + /** + * The UpdateProductReference model constructor. + * @property {module:model/UpdateProductReference} + */ + UpdateProductReference, + + /** + * The UpdateStorePayGreenConfigurationRequest model constructor. + * @property {module:model/UpdateStorePayGreenConfigurationRequest} + */ + UpdateStorePayGreenConfigurationRequest, + + /** + * The UpdateTipConfiguration model constructor. + * @property {module:model/UpdateTipConfiguration} + */ + UpdateTipConfiguration, + + /** + * The UpdateVoucher model constructor. + * @property {module:model/UpdateVoucher} + */ + UpdateVoucher, + + /** + * The UpdateVoucherUsage model constructor. + * @property {module:model/UpdateVoucherUsage} + */ + UpdateVoucherUsage, + + /** + * The UserAnsweredSignupQuestionsEvent model constructor. + * @property {module:model/UserAnsweredSignupQuestionsEvent} + */ + UserAnsweredSignupQuestionsEvent, + + /** + * The UserCreatedEvent model constructor. + * @property {module:model/UserCreatedEvent} + */ + UserCreatedEvent, + + /** + * The UserDeletedEvent model constructor. + * @property {module:model/UserDeletedEvent} + */ + UserDeletedEvent, + + /** + * The UserEventInfo model constructor. + * @property {module:model/UserEventInfo} + */ + UserEventInfo, + + /** + * The UserFlipdishAccount model constructor. + * @property {module:model/UserFlipdishAccount} + */ + UserFlipdishAccount, + + /** + * The UserInfo model constructor. + * @property {module:model/UserInfo} + */ + UserInfo, + + /** + * The UserLoginEvent model constructor. + * @property {module:model/UserLoginEvent} + */ + UserLoginEvent, + + /** + * The UserMonthlyCommission model constructor. + * @property {module:model/UserMonthlyCommission} + */ + UserMonthlyCommission, + + /** + * The UserNote model constructor. + * @property {module:model/UserNote} + */ + UserNote, + + /** + * The UserPasswordCreatedEvent model constructor. + * @property {module:model/UserPasswordCreatedEvent} + */ + UserPasswordCreatedEvent, + + /** + * The UserRole model constructor. + * @property {module:model/UserRole} + */ + UserRole, + + /** + * The UserSearch model constructor. + * @property {module:model/UserSearch} + */ + UserSearch, + + /** + * The UserStoreInfo model constructor. + * @property {module:model/UserStoreInfo} + */ + UserStoreInfo, + + /** + * The UserUpdatedEvent model constructor. + * @property {module:model/UserUpdatedEvent} + */ + UserUpdatedEvent, + + /** + * The UserWhiteLabelConfig model constructor. + * @property {module:model/UserWhiteLabelConfig} + */ + UserWhiteLabelConfig, + + /** + * The UserWhiteLabelInfo model constructor. + * @property {module:model/UserWhiteLabelInfo} + */ + UserWhiteLabelInfo, + + /** + * The ValidValue model constructor. + * @property {module:model/ValidValue} + */ + ValidValue, + + /** + * The ValidationErrorResult model constructor. + * @property {module:model/ValidationErrorResult} + */ + ValidationErrorResult, + + /** + * The ValidityPeriod model constructor. + * @property {module:model/ValidityPeriod} + */ + ValidityPeriod, + + /** + * The Voucher model constructor. + * @property {module:model/Voucher} + */ + Voucher, + + /** + * The VoucherAppliedEvent model constructor. + * @property {module:model/VoucherAppliedEvent} + */ + VoucherAppliedEvent, + + /** + * The VoucherCreatedEvent model constructor. + * @property {module:model/VoucherCreatedEvent} + */ + VoucherCreatedEvent, + + /** + * The VoucherDataPoint model constructor. + * @property {module:model/VoucherDataPoint} + */ + VoucherDataPoint, + + /** + * The VoucherDeletedEvent model constructor. + * @property {module:model/VoucherDeletedEvent} + */ + VoucherDeletedEvent, + + /** + * The VoucherSummary model constructor. + * @property {module:model/VoucherSummary} + */ + VoucherSummary, + + /** + * The VoucherUpdatedEvent model constructor. + * @property {module:model/VoucherUpdatedEvent} + */ + VoucherUpdatedEvent, + + /** + * The VoucherWithStats model constructor. + * @property {module:model/VoucherWithStats} + */ + VoucherWithStats, + + /** + * The WaitHandle model constructor. + * @property {module:model/WaitHandle} + */ + WaitHandle, + + /** + * The WebhookEventSample model constructor. + * @property {module:model/WebhookEventSample} + */ + WebhookEventSample, + + /** + * The WebhookLog model constructor. + * @property {module:model/WebhookLog} + */ + WebhookLog, + + /** + * The WebhookSubscription model constructor. + * @property {module:model/WebhookSubscription} + */ + WebhookSubscription, + + /** + * The WebhookSubscriptionCreatedEvent model constructor. + * @property {module:model/WebhookSubscriptionCreatedEvent} + */ + WebhookSubscriptionCreatedEvent, + + /** + * The WebhookSubscriptionDeletedEvent model constructor. + * @property {module:model/WebhookSubscriptionDeletedEvent} + */ + WebhookSubscriptionDeletedEvent, + + /** + * The WebhookSubscriptionEventInfo model constructor. + * @property {module:model/WebhookSubscriptionEventInfo} + */ + WebhookSubscriptionEventInfo, + + /** + * The WebhookSubscriptionUpdatedEvent model constructor. + * @property {module:model/WebhookSubscriptionUpdatedEvent} + */ + WebhookSubscriptionUpdatedEvent, + + /** + * The WebsiteImage model constructor. + * @property {module:model/WebsiteImage} + */ + WebsiteImage, + + /** + * The WebsiteTestimonial model constructor. + * @property {module:model/WebsiteTestimonial} + */ + WebsiteTestimonial, + + /** + * The WebsiteTestimonialBase model constructor. + * @property {module:model/WebsiteTestimonialBase} + */ + WebsiteTestimonialBase, + + /** + * The WebsiteUpdatedEvent model constructor. + * @property {module:model/WebsiteUpdatedEvent} + */ + WebsiteUpdatedEvent, + + /** + * The WebsiteVanityUrlUpdatedEvent model constructor. + * @property {module:model/WebsiteVanityUrlUpdatedEvent} + */ + WebsiteVanityUrlUpdatedEvent, + + /** + * The WhiteLabelConfig model constructor. + * @property {module:model/WhiteLabelConfig} + */ + WhiteLabelConfig, + + /** + * The AccountsApi service constructor. + * @property {module:api/AccountsApi} + */ + AccountsApi, + + /** + * The AddressApi service constructor. + * @property {module:api/AddressApi} + */ + AddressApi, + + /** + * The ApmApi service constructor. + * @property {module:api/ApmApi} + */ + ApmApi, + + /** + * The AppStoreApi service constructor. + * @property {module:api/AppStoreApi} + */ + AppStoreApi, + + /** + * The AppStoreConfigurationsApi service constructor. + * @property {module:api/AppStoreConfigurationsApi} + */ + AppStoreConfigurationsApi, + + /** + * The AppStoreDeveloperApi service constructor. + * @property {module:api/AppStoreDeveloperApi} + */ + AppStoreDeveloperApi, + + /** + * The AppStoreEntitlementsApi service constructor. + * @property {module:api/AppStoreEntitlementsApi} + */ + AppStoreEntitlementsApi, + + /** + * The AppsApi service constructor. + * @property {module:api/AppsApi} + */ + AppsApi, + + /** + * The AuditLogsApi service constructor. + * @property {module:api/AuditLogsApi} + */ + AuditLogsApi, + + /** + * The AuthorizationTokensApi service constructor. + * @property {module:api/AuthorizationTokensApi} + */ + AuthorizationTokensApi, + + /** + * The BankAccountApi service constructor. + * @property {module:api/BankAccountApi} + */ + BankAccountApi, + + /** + * The CampaignsApi service constructor. + * @property {module:api/CampaignsApi} + */ + CampaignsApi, + + /** + * The CardReadersApi service constructor. + * @property {module:api/CardReadersApi} + */ + CardReadersApi, + + /** + * The CatalogChangesApi service constructor. + * @property {module:api/CatalogChangesApi} + */ + CatalogChangesApi, + + /** + * The CatalogGroupsApi service constructor. + * @property {module:api/CatalogGroupsApi} + */ + CatalogGroupsApi, + + /** + * The CatalogImagesApi service constructor. + * @property {module:api/CatalogImagesApi} + */ + CatalogImagesApi, + + /** + * The CatalogItemsApi service constructor. + * @property {module:api/CatalogItemsApi} + */ + CatalogItemsApi, + + /** + * The CatalogProductsApi service constructor. + * @property {module:api/CatalogProductsApi} + */ + CatalogProductsApi, + + /** + * The ChannelsApi service constructor. + * @property {module:api/ChannelsApi} + */ + ChannelsApi, + + /** + * The ClientsApi service constructor. + * @property {module:api/ClientsApi} + */ + ClientsApi, + + /** + * The ContentSecurityPolicyApi service constructor. + * @property {module:api/ContentSecurityPolicyApi} + */ + ContentSecurityPolicyApi, + + /** + * The CrossSellApi service constructor. + * @property {module:api/CrossSellApi} + */ + CrossSellApi, + + /** + * The CustomersApi service constructor. + * @property {module:api/CustomersApi} + */ + CustomersApi, + + /** + * The DeliveryZoneApi service constructor. + * @property {module:api/DeliveryZoneApi} + */ + DeliveryZoneApi, + + /** + * The DeviceApi service constructor. + * @property {module:api/DeviceApi} + */ + DeviceApi, + + /** + * The DriversApi service constructor. + * @property {module:api/DriversApi} + */ + DriversApi, + + /** + * The EventsApi service constructor. + * @property {module:api/EventsApi} + */ + EventsApi, + + /** + * The FeaturesApi service constructor. + * @property {module:api/FeaturesApi} + */ + FeaturesApi, + + /** + * The FilesApi service constructor. + * @property {module:api/FilesApi} + */ + FilesApi, + + /** + * The FirebaseAppsApi service constructor. + * @property {module:api/FirebaseAppsApi} + */ + FirebaseAppsApi, + + /** + * The FpmApi service constructor. + * @property {module:api/FpmApi} + */ + FpmApi, + + /** + * The FulfillmentStateConfigurationApi service constructor. + * @property {module:api/FulfillmentStateConfigurationApi} + */ + FulfillmentStateConfigurationApi, + + /** + * The HeartbeatApi service constructor. + * @property {module:api/HeartbeatApi} + */ + HeartbeatApi, + + /** + * The HomeApi service constructor. + * @property {module:api/HomeApi} + */ + HomeApi, + + /** + * The HydraApi service constructor. + * @property {module:api/HydraApi} + */ + HydraApi, + + /** + * The IntercomApi service constructor. + * @property {module:api/IntercomApi} + */ + IntercomApi, + + /** + * The InvoicesApi service constructor. + * @property {module:api/InvoicesApi} + */ + InvoicesApi, + + /** + * The KioskEntitlementsApi service constructor. + * @property {module:api/KioskEntitlementsApi} + */ + KioskEntitlementsApi, + + /** + * The KioskIotApi service constructor. + * @property {module:api/KioskIotApi} + */ + KioskIotApi, + + /** + * The LightspeedApi service constructor. + * @property {module:api/LightspeedApi} + */ + LightspeedApi, + + /** + * The LocationApi service constructor. + * @property {module:api/LocationApi} + */ + LocationApi, + + /** + * The LocationAreasApi service constructor. + * @property {module:api/LocationAreasApi} + */ + LocationAreasApi, + + /** + * The LookerDashboardApi service constructor. + * @property {module:api/LookerDashboardApi} + */ + LookerDashboardApi, + + /** + * The LookerSingleSignOnApi service constructor. + * @property {module:api/LookerSingleSignOnApi} + */ + LookerSingleSignOnApi, + + /** + * The MenuOptionSetItemsApi service constructor. + * @property {module:api/MenuOptionSetItemsApi} + */ + MenuOptionSetItemsApi, + + /** + * The MenuOptionSetsApi service constructor. + * @property {module:api/MenuOptionSetsApi} + */ + MenuOptionSetsApi, + + /** + * The MenuSectionItemsApi service constructor. + * @property {module:api/MenuSectionItemsApi} + */ + MenuSectionItemsApi, + + /** + * The MenuSectionsApi service constructor. + * @property {module:api/MenuSectionsApi} + */ + MenuSectionsApi, + + /** + * The MenuZonesApi service constructor. + * @property {module:api/MenuZonesApi} + */ + MenuZonesApi, + + /** + * The MenusApi service constructor. + * @property {module:api/MenusApi} + */ + MenusApi, + + /** + * The MenusNutritionInfoApi service constructor. + * @property {module:api/MenusNutritionInfoApi} + */ + MenusNutritionInfoApi, + + /** + * The MenusNutritionInfoV2Api service constructor. + * @property {module:api/MenusNutritionInfoV2Api} + */ + MenusNutritionInfoV2Api, + + /** + * The MetafieldDefinitionsApi service constructor. + * @property {module:api/MetafieldDefinitionsApi} + */ + MetafieldDefinitionsApi, + + /** + * The MobileAppsApi service constructor. + * @property {module:api/MobileAppsApi} + */ + MobileAppsApi, + + /** + * The OAuthClientsApi service constructor. + * @property {module:api/OAuthClientsApi} + */ + OAuthClientsApi, + + /** + * The OnboardingApi service constructor. + * @property {module:api/OnboardingApi} + */ + OnboardingApi, + + /** + * The OrderBatchesApi service constructor. + * @property {module:api/OrderBatchesApi} + */ + OrderBatchesApi, + + /** + * The OrderBatchingConfigurationApi service constructor. + * @property {module:api/OrderBatchingConfigurationApi} + */ + OrderBatchingConfigurationApi, + + /** + * The OrdersApi service constructor. + * @property {module:api/OrdersApi} + */ + OrdersApi, + + /** + * The PaymentIntentsApi service constructor. + * @property {module:api/PaymentIntentsApi} + */ + PaymentIntentsApi, + + /** + * The PaymentsApi service constructor. + * @property {module:api/PaymentsApi} + */ + PaymentsApi, + + /** + * The PayoutReportsApi service constructor. + * @property {module:api/PayoutReportsApi} + */ + PayoutReportsApi, + + /** + * The PayoutsApi service constructor. + * @property {module:api/PayoutsApi} + */ + PayoutsApi, + + /** + * The PayoutsExportApi service constructor. + * @property {module:api/PayoutsExportApi} + */ + PayoutsExportApi, + + /** + * The ProcessingFeeConfigsApi service constructor. + * @property {module:api/ProcessingFeeConfigsApi} + */ + ProcessingFeeConfigsApi, + + /** + * The PushNotificationsApi service constructor. + * @property {module:api/PushNotificationsApi} + */ + PushNotificationsApi, + + /** + * The ReceiptsApi service constructor. + * @property {module:api/ReceiptsApi} + */ + ReceiptsApi, + + /** + * The RestaurantVouchersPayGreenApi service constructor. + * @property {module:api/RestaurantVouchersPayGreenApi} + */ + RestaurantVouchersPayGreenApi, + + /** + * The SearchApi service constructor. + * @property {module:api/SearchApi} + */ + SearchApi, + + /** + * The SmsProviderCredentialsApi service constructor. + * @property {module:api/SmsProviderCredentialsApi} + */ + SmsProviderCredentialsApi, + + /** + * The StoreGroupsApi service constructor. + * @property {module:api/StoreGroupsApi} + */ + StoreGroupsApi, + + /** + * The StoreOrderCapacityApi service constructor. + * @property {module:api/StoreOrderCapacityApi} + */ + StoreOrderCapacityApi, + + /** + * The StoresApi service constructor. + * @property {module:api/StoresApi} + */ + StoresApi, + + /** + * The StripeCustomConnectApi service constructor. + * @property {module:api/StripeCustomConnectApi} + */ + StripeCustomConnectApi, + + /** + * The StuartApi service constructor. + * @property {module:api/StuartApi} + */ + StuartApi, + + /** + * The SubscriptionsApi service constructor. + * @property {module:api/SubscriptionsApi} + */ + SubscriptionsApi, + + /** + * The TeammatesApi service constructor. + * @property {module:api/TeammatesApi} + */ + TeammatesApi, + + /** + * The TerminalIotApi service constructor. + * @property {module:api/TerminalIotApi} + */ + TerminalIotApi, + + /** + * The TipsApi service constructor. + * @property {module:api/TipsApi} + */ + TipsApi, + + /** + * The UsersApi service constructor. + * @property {module:api/UsersApi} + */ + UsersApi, + + /** + * The VouchersApi service constructor. + * @property {module:api/VouchersApi} + */ + VouchersApi, + + /** + * The WebhooksApi service constructor. + * @property {module:api/WebhooksApi} + */ + WebhooksApi, + + /** + * The WebsiteApi service constructor. + * @property {module:api/WebsiteApi} + */ + WebsiteApi +}; diff --git a/src/model/Accept.js b/src/model/Accept.js new file mode 100644 index 00000000..ffbfef80 --- /dev/null +++ b/src/model/Accept.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Accept model module. + * @module model/Accept + * @version 1.0.0 + */ +class Accept { + /** + * Constructs a new Accept. + * Accept + * @alias module:model/Accept + */ + constructor() { + + Accept.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Accept from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Accept} obj Optional instance to populate. + * @return {module:model/Accept} The populated Accept instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Accept(); + + if (data.hasOwnProperty('EstimatedMinutesForDelivery')) { + obj['EstimatedMinutesForDelivery'] = ApiClient.convertToType(data['EstimatedMinutesForDelivery'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Estimated minutes for delivery + * @member {Number} EstimatedMinutesForDelivery + */ +Accept.prototype['EstimatedMinutesForDelivery'] = undefined; + + + + + + +export default Accept; + diff --git a/src/model/AcceptInvitationResult.js b/src/model/AcceptInvitationResult.js new file mode 100644 index 00000000..0bc8f7f6 --- /dev/null +++ b/src/model/AcceptInvitationResult.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AcceptInvitationResult model module. + * @module model/AcceptInvitationResult + * @version 1.0.0 + */ +class AcceptInvitationResult { + /** + * Constructs a new AcceptInvitationResult. + * + * @alias module:model/AcceptInvitationResult + */ + constructor() { + + AcceptInvitationResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AcceptInvitationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AcceptInvitationResult} obj Optional instance to populate. + * @return {module:model/AcceptInvitationResult} The populated AcceptInvitationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AcceptInvitationResult(); + + if (data.hasOwnProperty('IsNewUser')) { + obj['IsNewUser'] = ApiClient.convertToType(data['IsNewUser'], 'Boolean'); + } + if (data.hasOwnProperty('InvitedEmailAddress')) { + obj['InvitedEmailAddress'] = ApiClient.convertToType(data['InvitedEmailAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Bool indicating if the user accepting the invitation is a new user + * @member {Boolean} IsNewUser + */ +AcceptInvitationResult.prototype['IsNewUser'] = undefined; + +/** + * The email address that was invited. + * @member {String} InvitedEmailAddress + */ +AcceptInvitationResult.prototype['InvitedEmailAddress'] = undefined; + + + + + + +export default AcceptInvitationResult; + diff --git a/src/model/AccountDetail.js b/src/model/AccountDetail.js new file mode 100644 index 00000000..ebfc65c8 --- /dev/null +++ b/src/model/AccountDetail.js @@ -0,0 +1,164 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SignupStep from './SignupStep'; + +/** + * The AccountDetail model module. + * @module model/AccountDetail + * @version 1.0.0 + */ +class AccountDetail { + /** + * Constructs a new AccountDetail. + * Account details + * @alias module:model/AccountDetail + */ + constructor() { + + AccountDetail.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AccountDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountDetail} obj Optional instance to populate. + * @return {module:model/AccountDetail} The populated AccountDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountDetail(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('SignupSteps')) { + obj['SignupSteps'] = ApiClient.convertToType(data['SignupSteps'], [SignupStep]); + } + if (data.hasOwnProperty('IsVerified')) { + obj['IsVerified'] = ApiClient.convertToType(data['IsVerified'], 'Boolean'); + } + if (data.hasOwnProperty('IsSelfServeUser')) { + obj['IsSelfServeUser'] = ApiClient.convertToType(data['IsSelfServeUser'], 'Boolean'); + } + if (data.hasOwnProperty('AccountId')) { + obj['AccountId'] = ApiClient.convertToType(data['AccountId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Language')) { + obj['Language'] = ApiClient.convertToType(data['Language'], 'String'); + } + if (data.hasOwnProperty('TimeZoneInfoId')) { + obj['TimeZoneInfoId'] = ApiClient.convertToType(data['TimeZoneInfoId'], 'String'); + } + if (data.hasOwnProperty('DisplayTimesInUserLocalTimeZone')) { + obj['DisplayTimesInUserLocalTimeZone'] = ApiClient.convertToType(data['DisplayTimesInUserLocalTimeZone'], 'Boolean'); + } + if (data.hasOwnProperty('ShowHiddenFeatures')) { + obj['ShowHiddenFeatures'] = ApiClient.convertToType(data['ShowHiddenFeatures'], 'Boolean'); + } + if (data.hasOwnProperty('CreatedAt')) { + obj['CreatedAt'] = ApiClient.convertToType(data['CreatedAt'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Email + * @member {String} Email + */ +AccountDetail.prototype['Email'] = undefined; + +/** + * Signup steps + * @member {Array.} SignupSteps + */ +AccountDetail.prototype['SignupSteps'] = undefined; + +/** + * Is account email verified + * @member {Boolean} IsVerified + */ +AccountDetail.prototype['IsVerified'] = undefined; + +/** + * is the account a Self Server + * @member {Boolean} IsSelfServeUser + */ +AccountDetail.prototype['IsSelfServeUser'] = undefined; + +/** + * Accounts Id + * @member {Number} AccountId + */ +AccountDetail.prototype['AccountId'] = undefined; + +/** + * Name + * @member {String} Name + */ +AccountDetail.prototype['Name'] = undefined; + +/** + * Language Id + * @member {String} Language + */ +AccountDetail.prototype['Language'] = undefined; + +/** + * Time Zone Info Id + * @member {String} TimeZoneInfoId + */ +AccountDetail.prototype['TimeZoneInfoId'] = undefined; + +/** + * Display the time in time zone local to the user + * @member {Boolean} DisplayTimesInUserLocalTimeZone + */ +AccountDetail.prototype['DisplayTimesInUserLocalTimeZone'] = undefined; + +/** + * Show hidden features + * @member {Boolean} ShowHiddenFeatures + */ +AccountDetail.prototype['ShowHiddenFeatures'] = undefined; + +/** + * User created at + * @member {Date} CreatedAt + */ +AccountDetail.prototype['CreatedAt'] = undefined; + + + + + + +export default AccountDetail; + diff --git a/src/model/AccountDetailBase.js b/src/model/AccountDetailBase.js new file mode 100644 index 00000000..c4af85e8 --- /dev/null +++ b/src/model/AccountDetailBase.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AccountDetailBase model module. + * @module model/AccountDetailBase + * @version 1.0.0 + */ +class AccountDetailBase { + /** + * Constructs a new AccountDetailBase. + * Account Details Base + * @alias module:model/AccountDetailBase + */ + constructor() { + + AccountDetailBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AccountDetailBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountDetailBase} obj Optional instance to populate. + * @return {module:model/AccountDetailBase} The populated AccountDetailBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountDetailBase(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Language')) { + obj['Language'] = ApiClient.convertToType(data['Language'], 'String'); + } + if (data.hasOwnProperty('TimeZoneInfoId')) { + obj['TimeZoneInfoId'] = ApiClient.convertToType(data['TimeZoneInfoId'], 'String'); + } + if (data.hasOwnProperty('DisplayTimesInUserLocalTimeZone')) { + obj['DisplayTimesInUserLocalTimeZone'] = ApiClient.convertToType(data['DisplayTimesInUserLocalTimeZone'], 'Boolean'); + } + if (data.hasOwnProperty('ShowHiddenFeatures')) { + obj['ShowHiddenFeatures'] = ApiClient.convertToType(data['ShowHiddenFeatures'], 'Boolean'); + } + if (data.hasOwnProperty('CreatedAt')) { + obj['CreatedAt'] = ApiClient.convertToType(data['CreatedAt'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Name + * @member {String} Name + */ +AccountDetailBase.prototype['Name'] = undefined; + +/** + * Language Id + * @member {String} Language + */ +AccountDetailBase.prototype['Language'] = undefined; + +/** + * Time Zone Info Id + * @member {String} TimeZoneInfoId + */ +AccountDetailBase.prototype['TimeZoneInfoId'] = undefined; + +/** + * Display the time in time zone local to the user + * @member {Boolean} DisplayTimesInUserLocalTimeZone + */ +AccountDetailBase.prototype['DisplayTimesInUserLocalTimeZone'] = undefined; + +/** + * Show hidden features + * @member {Boolean} ShowHiddenFeatures + */ +AccountDetailBase.prototype['ShowHiddenFeatures'] = undefined; + +/** + * User created at + * @member {Date} CreatedAt + */ +AccountDetailBase.prototype['CreatedAt'] = undefined; + + + + + + +export default AccountDetailBase; + diff --git a/src/model/AccountFieldDefinition.js b/src/model/AccountFieldDefinition.js new file mode 100644 index 00000000..a69215bd --- /dev/null +++ b/src/model/AccountFieldDefinition.js @@ -0,0 +1,235 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AccountFieldDefinition model module. + * @module model/AccountFieldDefinition + * @version 1.0.0 + */ +class AccountFieldDefinition { + /** + * Constructs a new AccountFieldDefinition. + * Represents the format of a bank account field + * @alias module:model/AccountFieldDefinition + */ + constructor() { + + AccountFieldDefinition.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AccountFieldDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountFieldDefinition} obj Optional instance to populate. + * @return {module:model/AccountFieldDefinition} The populated AccountFieldDefinition instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountFieldDefinition(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('DisplayName')) { + obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('MinLength')) { + obj['MinLength'] = ApiClient.convertToType(data['MinLength'], 'Number'); + } + if (data.hasOwnProperty('MaxLength')) { + obj['MaxLength'] = ApiClient.convertToType(data['MaxLength'], 'Number'); + } + if (data.hasOwnProperty('DigitsOnly')) { + obj['DigitsOnly'] = ApiClient.convertToType(data['DigitsOnly'], 'Boolean'); + } + if (data.hasOwnProperty('Regex')) { + obj['Regex'] = ApiClient.convertToType(data['Regex'], 'String'); + } + } + return obj; + } + + +} + +/** + * Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + * @member {module:model/AccountFieldDefinition.KeyEnum} Key + */ +AccountFieldDefinition.prototype['Key'] = undefined; + +/** + * Display name of the field + * @member {String} DisplayName + */ +AccountFieldDefinition.prototype['DisplayName'] = undefined; + +/** + * There are some fields that are of type known to the frontend (IBAN, Swift) -- for those frontend should use its own validation library, e.g. ibantools + * @member {module:model/AccountFieldDefinition.TypeEnum} Type + */ +AccountFieldDefinition.prototype['Type'] = undefined; + +/** + * Minimum length of the field + * @member {Number} MinLength + */ +AccountFieldDefinition.prototype['MinLength'] = undefined; + +/** + * Maximum length of the field + * @member {Number} MaxLength + */ +AccountFieldDefinition.prototype['MaxLength'] = undefined; + +/** + * Is the field digits (numeric) only + * @member {Boolean} DigitsOnly + */ +AccountFieldDefinition.prototype['DigitsOnly'] = undefined; + +/** + * Regex for validating the field (if specified) + * @member {String} Regex + */ +AccountFieldDefinition.prototype['Regex'] = undefined; + + + + + +/** + * Allowed values for the Key property. + * @enum {String} + * @readonly + */ +AccountFieldDefinition['KeyEnum'] = { + + /** + * value: "Iban" + * @const + */ + "Iban": "Iban", + + /** + * value: "AccountNumber" + * @const + */ + "AccountNumber": "AccountNumber", + + /** + * value: "RoutingNumber" + * @const + */ + "RoutingNumber": "RoutingNumber", + + /** + * value: "BSB" + * @const + */ + "BSB": "BSB", + + /** + * value: "BranchCode" + * @const + */ + "BranchCode": "BranchCode", + + /** + * value: "BankCode" + * @const + */ + "BankCode": "BankCode", + + /** + * value: "InstitutionNumber" + * @const + */ + "InstitutionNumber": "InstitutionNumber", + + /** + * value: "TransitNumber" + * @const + */ + "TransitNumber": "TransitNumber", + + /** + * value: "ClearingCode" + * @const + */ + "ClearingCode": "ClearingCode", + + /** + * value: "IfscCode" + * @const + */ + "IfscCode": "IfscCode", + + /** + * value: "Clabe" + * @const + */ + "Clabe": "Clabe", + + /** + * value: "SortCode" + * @const + */ + "SortCode": "SortCode", + + /** + * value: "Swift" + * @const + */ + "Swift": "Swift" +}; + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +AccountFieldDefinition['TypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Iban" + * @const + */ + "Iban": "Iban" +}; + + + +export default AccountFieldDefinition; + diff --git a/src/model/AccountFieldKeyValuePair.js b/src/model/AccountFieldKeyValuePair.js new file mode 100644 index 00000000..2de52907 --- /dev/null +++ b/src/model/AccountFieldKeyValuePair.js @@ -0,0 +1,169 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AccountFieldKeyValuePair model module. + * @module model/AccountFieldKeyValuePair + * @version 1.0.0 + */ +class AccountFieldKeyValuePair { + /** + * Constructs a new AccountFieldKeyValuePair. + * Represents one populated account field (its key and value) + * @alias module:model/AccountFieldKeyValuePair + */ + constructor() { + + AccountFieldKeyValuePair.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AccountFieldKeyValuePair from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountFieldKeyValuePair} obj Optional instance to populate. + * @return {module:model/AccountFieldKeyValuePair} The populated AccountFieldKeyValuePair instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountFieldKeyValuePair(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + } + return obj; + } + + +} + +/** + * Depending on the Key, the field's value will be stored in a different field in PayeeBankAccountData + * @member {module:model/AccountFieldKeyValuePair.KeyEnum} Key + */ +AccountFieldKeyValuePair.prototype['Key'] = undefined; + +/** + * The value of the field + * @member {String} Value + */ +AccountFieldKeyValuePair.prototype['Value'] = undefined; + + + + + +/** + * Allowed values for the Key property. + * @enum {String} + * @readonly + */ +AccountFieldKeyValuePair['KeyEnum'] = { + + /** + * value: "Iban" + * @const + */ + "Iban": "Iban", + + /** + * value: "AccountNumber" + * @const + */ + "AccountNumber": "AccountNumber", + + /** + * value: "RoutingNumber" + * @const + */ + "RoutingNumber": "RoutingNumber", + + /** + * value: "BSB" + * @const + */ + "BSB": "BSB", + + /** + * value: "BranchCode" + * @const + */ + "BranchCode": "BranchCode", + + /** + * value: "BankCode" + * @const + */ + "BankCode": "BankCode", + + /** + * value: "InstitutionNumber" + * @const + */ + "InstitutionNumber": "InstitutionNumber", + + /** + * value: "TransitNumber" + * @const + */ + "TransitNumber": "TransitNumber", + + /** + * value: "ClearingCode" + * @const + */ + "ClearingCode": "ClearingCode", + + /** + * value: "IfscCode" + * @const + */ + "IfscCode": "IfscCode", + + /** + * value: "Clabe" + * @const + */ + "Clabe": "Clabe", + + /** + * value: "SortCode" + * @const + */ + "SortCode": "SortCode", + + /** + * value: "Swift" + * @const + */ + "Swift": "Swift" +}; + + + +export default AccountFieldKeyValuePair; + diff --git a/src/model/AccountFieldsDefinitions.js b/src/model/AccountFieldsDefinitions.js new file mode 100644 index 00000000..c727c7d5 --- /dev/null +++ b/src/model/AccountFieldsDefinitions.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldDefinition from './AccountFieldDefinition'; + +/** + * The AccountFieldsDefinitions model module. + * @module model/AccountFieldsDefinitions + * @version 1.0.0 + */ +class AccountFieldsDefinitions { + /** + * Constructs a new AccountFieldsDefinitions. + * List of field definitions per country + * @alias module:model/AccountFieldsDefinitions + */ + constructor() { + + AccountFieldsDefinitions.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AccountFieldsDefinitions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountFieldsDefinitions} obj Optional instance to populate. + * @return {module:model/AccountFieldsDefinitions} The populated AccountFieldsDefinitions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountFieldsDefinitions(); + + if (data.hasOwnProperty('DefinitionsPerCountry')) { + obj['DefinitionsPerCountry'] = ApiClient.convertToType(data['DefinitionsPerCountry'], {'String': [AccountFieldDefinition]}); + } + } + return obj; + } + + +} + +/** + * List of field definitions per country + * @member {Object.>} DefinitionsPerCountry + */ +AccountFieldsDefinitions.prototype['DefinitionsPerCountry'] = undefined; + + + + + + +export default AccountFieldsDefinitions; + diff --git a/src/model/AddressFormDisplayFormat.js b/src/model/AddressFormDisplayFormat.js new file mode 100644 index 00000000..9457fe48 --- /dev/null +++ b/src/model/AddressFormDisplayFormat.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AddressFormDisplayFormat model module. + * @module model/AddressFormDisplayFormat + * @version 1.0.0 + */ +class AddressFormDisplayFormat { + /** + * Constructs a new AddressFormDisplayFormat. + * @alias module:model/AddressFormDisplayFormat + */ + constructor() { + + AddressFormDisplayFormat.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AddressFormDisplayFormat from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddressFormDisplayFormat} obj Optional instance to populate. + * @return {module:model/AddressFormDisplayFormat} The populated AddressFormDisplayFormat instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddressFormDisplayFormat(); + + if (data.hasOwnProperty('OneLine')) { + obj['OneLine'] = ApiClient.convertToType(data['OneLine'], 'String'); + } + if (data.hasOwnProperty('TwoLines')) { + obj['TwoLines'] = ApiClient.convertToType(data['TwoLines'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} OneLine + */ +AddressFormDisplayFormat.prototype['OneLine'] = undefined; + +/** + * @member {Array.} TwoLines + */ +AddressFormDisplayFormat.prototype['TwoLines'] = undefined; + + + + + + +export default AddressFormDisplayFormat; + diff --git a/src/model/AddressFormResponse.js b/src/model/AddressFormResponse.js new file mode 100644 index 00000000..b0f64326 --- /dev/null +++ b/src/model/AddressFormResponse.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AddressFormDisplayFormat from './AddressFormDisplayFormat'; +import DynamicFormField from './DynamicFormField'; + +/** + * The AddressFormResponse model module. + * @module model/AddressFormResponse + * @version 1.0.0 + */ +class AddressFormResponse { + /** + * Constructs a new AddressFormResponse. + * A response of a dyanmic form definition. + * @alias module:model/AddressFormResponse + */ + constructor() { + + AddressFormResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AddressFormResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddressFormResponse} obj Optional instance to populate. + * @return {module:model/AddressFormResponse} The populated AddressFormResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddressFormResponse(); + + if (data.hasOwnProperty('FormData')) { + obj['FormData'] = ApiClient.convertToType(data['FormData'], [DynamicFormField]); + } + if (data.hasOwnProperty('CountryCode')) { + obj['CountryCode'] = ApiClient.convertToType(data['CountryCode'], 'String'); + } + if (data.hasOwnProperty('Language')) { + obj['Language'] = ApiClient.convertToType(data['Language'], 'String'); + } + if (data.hasOwnProperty('DisplayFormat')) { + obj['DisplayFormat'] = AddressFormDisplayFormat.constructFromObject(data['DisplayFormat']); + } + } + return obj; + } + + +} + +/** + * List of field definitions. + * @member {Array.} FormData + */ +AddressFormResponse.prototype['FormData'] = undefined; + +/** + * ISO two letter code. + * @member {String} CountryCode + */ +AddressFormResponse.prototype['CountryCode'] = undefined; + +/** + * ISO culture code. + * @member {String} Language + */ +AddressFormResponse.prototype['Language'] = undefined; + +/** + * @member {module:model/AddressFormDisplayFormat} DisplayFormat + */ +AddressFormResponse.prototype['DisplayFormat'] = undefined; + + + + + + +export default AddressFormResponse; + diff --git a/src/model/AllMetadataResult.js b/src/model/AllMetadataResult.js new file mode 100644 index 00000000..9b477293 --- /dev/null +++ b/src/model/AllMetadataResult.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Metadata from './Metadata'; + +/** + * The AllMetadataResult model module. + * @module model/AllMetadataResult + * @version 1.0.0 + */ +class AllMetadataResult { + /** + * Constructs a new AllMetadataResult. + * + * @alias module:model/AllMetadataResult + */ + constructor() { + + AllMetadataResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AllMetadataResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllMetadataResult} obj Optional instance to populate. + * @return {module:model/AllMetadataResult} The populated AllMetadataResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AllMetadataResult(); + + if (data.hasOwnProperty('MenuItemMetadata')) { + obj['MenuItemMetadata'] = ApiClient.convertToType(data['MenuItemMetadata'], [Metadata]); + } + if (data.hasOwnProperty('MenuItemOptionSetItemMetadata')) { + obj['MenuItemOptionSetItemMetadata'] = ApiClient.convertToType(data['MenuItemOptionSetItemMetadata'], [Metadata]); + } + } + return obj; + } + + +} + +/** + * Menu item metadata + * @member {Array.} MenuItemMetadata + */ +AllMetadataResult.prototype['MenuItemMetadata'] = undefined; + +/** + * Menu item optionset item metadata + * @member {Array.} MenuItemOptionSetItemMetadata + */ +AllMetadataResult.prototype['MenuItemOptionSetItemMetadata'] = undefined; + + + + + + +export default AllMetadataResult; + diff --git a/src/model/Allergen.js b/src/model/Allergen.js new file mode 100644 index 00000000..b2e86f9f --- /dev/null +++ b/src/model/Allergen.js @@ -0,0 +1,90 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Allergen model module. + * @module model/Allergen + * @version 1.0.0 + */ +class Allergen { + /** + * Constructs a new Allergen. + * @alias module:model/Allergen + */ + constructor() { + + Allergen.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Allergen from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Allergen} obj Optional instance to populate. + * @return {module:model/Allergen} The populated Allergen instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Allergen(); + + if (data.hasOwnProperty('AllergenId')) { + obj['AllergenId'] = ApiClient.convertToType(data['AllergenId'], 'String'); + } + if (data.hasOwnProperty('LocalizedName')) { + obj['LocalizedName'] = ApiClient.convertToType(data['LocalizedName'], 'String'); + } + if (data.hasOwnProperty('IconUrl')) { + obj['IconUrl'] = ApiClient.convertToType(data['IconUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * A unique identifier for the allergen + * @member {String} AllergenId + */ +Allergen.prototype['AllergenId'] = undefined; + +/** + * Localized name of the allergen + * @member {String} LocalizedName + */ +Allergen.prototype['LocalizedName'] = undefined; + +/** + * Url to the icon for the allergen + * @member {String} IconUrl + */ +Allergen.prototype['IconUrl'] = undefined; + + + + + + +export default Allergen; + diff --git a/src/model/AnalyticsClientEvent.js b/src/model/AnalyticsClientEvent.js new file mode 100644 index 00000000..5f4a004b --- /dev/null +++ b/src/model/AnalyticsClientEvent.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AnalyticsClientEvent model module. + * @module model/AnalyticsClientEvent + * @version 1.0.0 + */ +class AnalyticsClientEvent { + /** + * Constructs a new AnalyticsClientEvent. + * Client Analytics event + * @alias module:model/AnalyticsClientEvent + */ + constructor() { + + AnalyticsClientEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AnalyticsClientEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsClientEvent} obj Optional instance to populate. + * @return {module:model/AnalyticsClientEvent} The populated AnalyticsClientEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AnalyticsClientEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('EventType')) { + obj['EventType'] = ApiClient.convertToType(data['EventType'], 'String'); + } + if (data.hasOwnProperty('AppType')) { + obj['AppType'] = ApiClient.convertToType(data['AppType'], 'String'); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], 'String'); + } + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('Latitude')) { + obj['Latitude'] = ApiClient.convertToType(data['Latitude'], 'Number'); + } + if (data.hasOwnProperty('Longitude')) { + obj['Longitude'] = ApiClient.convertToType(data['Longitude'], 'Number'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +AnalyticsClientEvent.prototype['EventName'] = undefined; + +/** + * Type of the event + * @member {String} EventType + */ +AnalyticsClientEvent.prototype['EventType'] = undefined; + +/** + * Type of the app the event is coming from + * @member {String} AppType + */ +AnalyticsClientEvent.prototype['AppType'] = undefined; + +/** + * JSON Metadata + * @member {String} Metadata + */ +AnalyticsClientEvent.prototype['Metadata'] = undefined; + +/** + * User Id + * @member {Number} UserId + */ +AnalyticsClientEvent.prototype['UserId'] = undefined; + +/** + * Latitude of the event + * @member {Number} Latitude + */ +AnalyticsClientEvent.prototype['Latitude'] = undefined; + +/** + * Longitude of the event + * @member {Number} Longitude + */ +AnalyticsClientEvent.prototype['Longitude'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +AnalyticsClientEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +AnalyticsClientEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +AnalyticsClientEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +AnalyticsClientEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +AnalyticsClientEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +AnalyticsClientEvent.prototype['IpAddress'] = undefined; + + + + + + +export default AnalyticsClientEvent; + diff --git a/src/model/ApmCurrencyDataPoint.js b/src/model/ApmCurrencyDataPoint.js new file mode 100644 index 00000000..6019c355 --- /dev/null +++ b/src/model/ApmCurrencyDataPoint.js @@ -0,0 +1,92 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CurrencyData from './CurrencyData'; + +/** + * The ApmCurrencyDataPoint model module. + * @module model/ApmCurrencyDataPoint + * @version 1.0.0 + */ +class ApmCurrencyDataPoint { + /** + * Constructs a new ApmCurrencyDataPoint. + * A single data point in timeline graphs related to APM + * @alias module:model/ApmCurrencyDataPoint + */ + constructor() { + + ApmCurrencyDataPoint.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ApmCurrencyDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ApmCurrencyDataPoint} obj Optional instance to populate. + * @return {module:model/ApmCurrencyDataPoint} The populated ApmCurrencyDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ApmCurrencyDataPoint(); + + if (data.hasOwnProperty('PeriodStart')) { + obj['PeriodStart'] = ApiClient.convertToType(data['PeriodStart'], 'Date'); + } + if (data.hasOwnProperty('PeriodLengthInDays')) { + obj['PeriodLengthInDays'] = ApiClient.convertToType(data['PeriodLengthInDays'], 'Number'); + } + if (data.hasOwnProperty('CurrencyData')) { + obj['CurrencyData'] = ApiClient.convertToType(data['CurrencyData'], [CurrencyData]); + } + } + return obj; + } + + +} + +/** + * Date from which the data point starts + * @member {Date} PeriodStart + */ +ApmCurrencyDataPoint.prototype['PeriodStart'] = undefined; + +/** + * The length in days that this data point covers + * @member {Number} PeriodLengthInDays + */ +ApmCurrencyDataPoint.prototype['PeriodLengthInDays'] = undefined; + +/** + * The values of this data point + * @member {Array.} CurrencyData + */ +ApmCurrencyDataPoint.prototype['CurrencyData'] = undefined; + + + + + + +export default ApmCurrencyDataPoint; + diff --git a/src/model/ApmDataPoint.js b/src/model/ApmDataPoint.js new file mode 100644 index 00000000..69969cb0 --- /dev/null +++ b/src/model/ApmDataPoint.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ApmDataPoint model module. + * @module model/ApmDataPoint + * @version 1.0.0 + */ +class ApmDataPoint { + /** + * Constructs a new ApmDataPoint. + * A single data point in timeline graphs related to APM + * @alias module:model/ApmDataPoint + */ + constructor() { + + ApmDataPoint.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ApmDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ApmDataPoint} obj Optional instance to populate. + * @return {module:model/ApmDataPoint} The populated ApmDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ApmDataPoint(); + + if (data.hasOwnProperty('PeriodStart')) { + obj['PeriodStart'] = ApiClient.convertToType(data['PeriodStart'], 'Date'); + } + if (data.hasOwnProperty('PeriodLengthInDays')) { + obj['PeriodLengthInDays'] = ApiClient.convertToType(data['PeriodLengthInDays'], 'Number'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Date from which the data point starts + * @member {Date} PeriodStart + */ +ApmDataPoint.prototype['PeriodStart'] = undefined; + +/** + * The length in days that this data point covers + * @member {Number} PeriodLengthInDays + */ +ApmDataPoint.prototype['PeriodLengthInDays'] = undefined; + +/** + * The value of this data point + * @member {Number} Value + */ +ApmDataPoint.prototype['Value'] = undefined; + + + + + + +export default ApmDataPoint; + diff --git a/src/model/ApmHourlyDataPoint.js b/src/model/ApmHourlyDataPoint.js new file mode 100644 index 00000000..b82a1edf --- /dev/null +++ b/src/model/ApmHourlyDataPoint.js @@ -0,0 +1,142 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ApmHourlyDataPoint model module. + * @module model/ApmHourlyDataPoint + * @version 1.0.0 + */ +class ApmHourlyDataPoint { + /** + * Constructs a new ApmHourlyDataPoint. + * Provides an average value for a single hour of day of the week + * @alias module:model/ApmHourlyDataPoint + */ + constructor() { + + ApmHourlyDataPoint.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ApmHourlyDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ApmHourlyDataPoint} obj Optional instance to populate. + * @return {module:model/ApmHourlyDataPoint} The populated ApmHourlyDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ApmHourlyDataPoint(); + + if (data.hasOwnProperty('Day')) { + obj['Day'] = ApiClient.convertToType(data['Day'], 'String'); + } + if (data.hasOwnProperty('Hour')) { + obj['Hour'] = ApiClient.convertToType(data['Hour'], 'Number'); + } + if (data.hasOwnProperty('TotalValue')) { + obj['TotalValue'] = ApiClient.convertToType(data['TotalValue'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Day of the week + * @member {module:model/ApmHourlyDataPoint.DayEnum} Day + */ +ApmHourlyDataPoint.prototype['Day'] = undefined; + +/** + * Hour in the day + * @member {Number} Hour + */ +ApmHourlyDataPoint.prototype['Hour'] = undefined; + +/** + * Total Value + * @member {Number} TotalValue + */ +ApmHourlyDataPoint.prototype['TotalValue'] = undefined; + + + + + +/** + * Allowed values for the Day property. + * @enum {String} + * @readonly + */ +ApmHourlyDataPoint['DayEnum'] = { + + /** + * value: "Sunday" + * @const + */ + "Sunday": "Sunday", + + /** + * value: "Monday" + * @const + */ + "Monday": "Monday", + + /** + * value: "Tuesday" + * @const + */ + "Tuesday": "Tuesday", + + /** + * value: "Wednesday" + * @const + */ + "Wednesday": "Wednesday", + + /** + * value: "Thursday" + * @const + */ + "Thursday": "Thursday", + + /** + * value: "Friday" + * @const + */ + "Friday": "Friday", + + /** + * value: "Saturday" + * @const + */ + "Saturday": "Saturday" +}; + + + +export default ApmHourlyDataPoint; + diff --git a/src/model/ApmStatistics.js b/src/model/ApmStatistics.js new file mode 100644 index 00000000..b8ad355d --- /dev/null +++ b/src/model/ApmStatistics.js @@ -0,0 +1,92 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StatisticsCurrencyDataPoint from './StatisticsCurrencyDataPoint'; + +/** + * The ApmStatistics model module. + * @module model/ApmStatistics + * @version 1.0.0 + */ +class ApmStatistics { + /** + * Constructs a new ApmStatistics. + * APM Statistics + * @alias module:model/ApmStatistics + */ + constructor() { + + ApmStatistics.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ApmStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ApmStatistics} obj Optional instance to populate. + * @return {module:model/ApmStatistics} The populated ApmStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ApmStatistics(); + + if (data.hasOwnProperty('EstimatedMinutesSaved')) { + obj['EstimatedMinutesSaved'] = ApiClient.convertToType(data['EstimatedMinutesSaved'], 'Number'); + } + if (data.hasOwnProperty('EstimatedMinutesCouldSaved')) { + obj['EstimatedMinutesCouldSaved'] = ApiClient.convertToType(data['EstimatedMinutesCouldSaved'], 'Number'); + } + if (data.hasOwnProperty('CurrencyData')) { + obj['CurrencyData'] = ApiClient.convertToType(data['CurrencyData'], [StatisticsCurrencyDataPoint]); + } + } + return obj; + } + + +} + +/** + * Total amount of time spent with APM + * @member {Number} EstimatedMinutesSaved + */ +ApmStatistics.prototype['EstimatedMinutesSaved'] = undefined; + +/** + * Total amount of time that could be saved + * @member {Number} EstimatedMinutesCouldSaved + */ +ApmStatistics.prototype['EstimatedMinutesCouldSaved'] = undefined; + +/** + * Currency based data + * @member {Array.} CurrencyData + */ +ApmStatistics.prototype['CurrencyData'] = undefined; + + + + + + +export default ApmStatistics; + diff --git a/src/model/ApmStatus.js b/src/model/ApmStatus.js new file mode 100644 index 00000000..0f86836f --- /dev/null +++ b/src/model/ApmStatus.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ApmStatus model module. + * @module model/ApmStatus + * @version 1.0.0 + */ +class ApmStatus { + /** + * Constructs a new ApmStatus. + * APM status + * @alias module:model/ApmStatus + */ + constructor() { + + ApmStatus.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ApmStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ApmStatus} obj Optional instance to populate. + * @return {module:model/ApmStatus} The populated ApmStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ApmStatus(); + + if (data.hasOwnProperty('IsApmEnabled')) { + obj['IsApmEnabled'] = ApiClient.convertToType(data['IsApmEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Indicates if APM is active or otherwise + * @member {Boolean} IsApmEnabled + */ +ApmStatus.prototype['IsApmEnabled'] = undefined; + + + + + + +export default ApmStatus; + diff --git a/src/model/App.js b/src/model/App.js new file mode 100644 index 00000000..b571c227 --- /dev/null +++ b/src/model/App.js @@ -0,0 +1,1701 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Coordinates from './Coordinates'; +import Language from './Language'; + +/** + * The App model module. + * @module model/App + * @version 1.0.0 + */ +class App { + /** + * Constructs a new App. + * App + * @alias module:model/App + */ + constructor() { + + App.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a App from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/App} obj Optional instance to populate. + * @return {module:model/App} The populated App instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new App(); + + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('HasIosApp')) { + obj['HasIosApp'] = ApiClient.convertToType(data['HasIosApp'], 'Boolean'); + } + if (data.hasOwnProperty('IosAppStoreUrl')) { + obj['IosAppStoreUrl'] = ApiClient.convertToType(data['IosAppStoreUrl'], 'String'); + } + if (data.hasOwnProperty('HasAndroidApp')) { + obj['HasAndroidApp'] = ApiClient.convertToType(data['HasAndroidApp'], 'Boolean'); + } + if (data.hasOwnProperty('AndroidPlayStoreUrl')) { + obj['AndroidPlayStoreUrl'] = ApiClient.convertToType(data['AndroidPlayStoreUrl'], 'String'); + } + if (data.hasOwnProperty('DisplayDeliveryRestaurantScreen')) { + obj['DisplayDeliveryRestaurantScreen'] = ApiClient.convertToType(data['DisplayDeliveryRestaurantScreen'], 'Boolean'); + } + if (data.hasOwnProperty('LogoImageUrl')) { + obj['LogoImageUrl'] = ApiClient.convertToType(data['LogoImageUrl'], 'String'); + } + if (data.hasOwnProperty('Languages')) { + obj['Languages'] = ApiClient.convertToType(data['Languages'], [Language]); + } + if (data.hasOwnProperty('AvailableAppLanguages')) { + obj['AvailableAppLanguages'] = ApiClient.convertToType(data['AvailableAppLanguages'], [Language]); + } + if (data.hasOwnProperty('AppAccessLevel')) { + obj['AppAccessLevel'] = ApiClient.convertToType(data['AppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('AppResourceSet')) { + obj['AppResourceSet'] = ApiClient.convertToType(data['AppResourceSet'], ['String']); + } + if (data.hasOwnProperty('Features')) { + obj['Features'] = ApiClient.convertToType(data['Features'], ['String']); + } + if (data.hasOwnProperty('MapCenter')) { + obj['MapCenter'] = Coordinates.constructFromObject(data['MapCenter']); + } + if (data.hasOwnProperty('MapNorthEast')) { + obj['MapNorthEast'] = Coordinates.constructFromObject(data['MapNorthEast']); + } + if (data.hasOwnProperty('MapSouthWest')) { + obj['MapSouthWest'] = Coordinates.constructFromObject(data['MapSouthWest']); + } + if (data.hasOwnProperty('GoogleMapsApiKeyWeb')) { + obj['GoogleMapsApiKeyWeb'] = ApiClient.convertToType(data['GoogleMapsApiKeyWeb'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('SmsRestaurantName')) { + obj['SmsRestaurantName'] = ApiClient.convertToType(data['SmsRestaurantName'], 'String'); + } + if (data.hasOwnProperty('WebToAppRedirect')) { + obj['WebToAppRedirect'] = ApiClient.convertToType(data['WebToAppRedirect'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('HostName')) { + obj['HostName'] = ApiClient.convertToType(data['HostName'], 'String'); + } + if (data.hasOwnProperty('MainColor')) { + obj['MainColor'] = ApiClient.convertToType(data['MainColor'], 'String'); + } + if (data.hasOwnProperty('KioskPrimaryColour')) { + obj['KioskPrimaryColour'] = ApiClient.convertToType(data['KioskPrimaryColour'], 'String'); + } + if (data.hasOwnProperty('ApplicationCategory')) { + obj['ApplicationCategory'] = ApiClient.convertToType(data['ApplicationCategory'], 'String'); + } + if (data.hasOwnProperty('IsPanaceaEnabled')) { + obj['IsPanaceaEnabled'] = ApiClient.convertToType(data['IsPanaceaEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('PanaceaVanityUrl')) { + obj['PanaceaVanityUrl'] = ApiClient.convertToType(data['PanaceaVanityUrl'], 'String'); + } + if (data.hasOwnProperty('CookieConsentPromptEnabled')) { + obj['CookieConsentPromptEnabled'] = ApiClient.convertToType(data['CookieConsentPromptEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CountryId')) { + obj['CountryId'] = ApiClient.convertToType(data['CountryId'], 'String'); + } + } + return obj; + } + + +} + +/** + * App Identifier + * @member {String} AppId + */ +App.prototype['AppId'] = undefined; + +/** + * Has iOS app in Apple App Store. This is readonly. + * @member {Boolean} HasIosApp + */ +App.prototype['HasIosApp'] = undefined; + +/** + * IOS App Store URL + * @member {String} IosAppStoreUrl + */ +App.prototype['IosAppStoreUrl'] = undefined; + +/** + * Has Android app in Google Play Store. This is readonly. + * @member {Boolean} HasAndroidApp + */ +App.prototype['HasAndroidApp'] = undefined; + +/** + * Android Play Store URL + * @member {String} AndroidPlayStoreUrl + */ +App.prototype['AndroidPlayStoreUrl'] = undefined; + +/** + * Display delivery restaurant screen + * @member {Boolean} DisplayDeliveryRestaurantScreen + */ +App.prototype['DisplayDeliveryRestaurantScreen'] = undefined; + +/** + * Application Logo. + * @member {String} LogoImageUrl + */ +App.prototype['LogoImageUrl'] = undefined; + +/** + * Languages that have been selected to be available to customers. + * @member {Array.} Languages + */ +App.prototype['Languages'] = undefined; + +/** + * Lists all languages that are supported by Flipdish. + * @member {Array.} AvailableAppLanguages + */ +App.prototype['AvailableAppLanguages'] = undefined; + +/** + * App access level for the logged in user + * @member {module:model/App.AppAccessLevelEnum} AppAccessLevel + */ +App.prototype['AppAccessLevel'] = undefined; + +/** + * Constitutes a list of available resources + * @member {Array.} AppResourceSet + */ +App.prototype['AppResourceSet'] = undefined; + +/** + * Feature flags. These cannot be set by 3rd parties. + * @member {Array.} Features + */ +App.prototype['Features'] = undefined; + +/** + * @member {module:model/Coordinates} MapCenter + */ +App.prototype['MapCenter'] = undefined; + +/** + * @member {module:model/Coordinates} MapNorthEast + */ +App.prototype['MapNorthEast'] = undefined; + +/** + * @member {module:model/Coordinates} MapSouthWest + */ +App.prototype['MapSouthWest'] = undefined; + +/** + * Key to be passed with Google Maps requests + * @member {String} GoogleMapsApiKeyWeb + */ +App.prototype['GoogleMapsApiKeyWeb'] = undefined; + +/** + * Org Id + * @member {String} OrgId + */ +App.prototype['OrgId'] = undefined; + +/** + * SMS Restaurant Name + * @member {String} SmsRestaurantName + */ +App.prototype['SmsRestaurantName'] = undefined; + +/** + * Web to App Redirect settings + * @member {module:model/App.WebToAppRedirectEnum} WebToAppRedirect + */ +App.prototype['WebToAppRedirect'] = undefined; + +/** + * App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. + * @member {String} Name + */ +App.prototype['Name'] = undefined; + +/** + * HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. + * @member {String} HostName + */ +App.prototype['HostName'] = undefined; + +/** + * Main color of the web / Android / iOS applications + * @member {String} MainColor + */ +App.prototype['MainColor'] = undefined; + +/** + * Primary colour used on the Kiosk + * @member {String} KioskPrimaryColour + */ +App.prototype['KioskPrimaryColour'] = undefined; + +/** + * Application Category + * @member {module:model/App.ApplicationCategoryEnum} ApplicationCategory + */ +App.prototype['ApplicationCategory'] = undefined; + +/** + * 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. + * @member {Boolean} IsPanaceaEnabled + */ +App.prototype['IsPanaceaEnabled'] = undefined; + +/** + * In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} + * @member {String} PanaceaVanityUrl + */ +App.prototype['PanaceaVanityUrl'] = undefined; + +/** + * Cookie Consent Prompt Enabled + * @member {Boolean} CookieConsentPromptEnabled + */ +App.prototype['CookieConsentPromptEnabled'] = undefined; + +/** + * 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 + * @member {String} CountryId + */ +App.prototype['CountryId'] = undefined; + + + + + +/** + * Allowed values for the AppAccessLevel property. + * @enum {String} + * @readonly + */ +App['AppAccessLevelEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger", + + /** + * value: "Onboarding" + * @const + */ + "Onboarding": "Onboarding", + + /** + * value: "Support" + * @const + */ + "Support": "Support" +}; + + +/** + * Allowed values for the AppResourceSet property. + * @enum {String} + * @readonly + */ +App['AppResourceSetEnum'] = { + + /** + * value: "ViewApp" + * @const + */ + "ViewApp": "ViewApp", + + /** + * value: "CreateApp" + * @const + */ + "CreateApp": "CreateApp", + + /** + * value: "UpdateApp" + * @const + */ + "UpdateApp": "UpdateApp", + + /** + * value: "ViewAppName" + * @const + */ + "ViewAppName": "ViewAppName", + + /** + * value: "EditAppAssets" + * @const + */ + "EditAppAssets": "EditAppAssets", + + /** + * value: "EditAppFeatures" + * @const + */ + "EditAppFeatures": "EditAppFeatures", + + /** + * value: "ViewTeammates" + * @const + */ + "ViewTeammates": "ViewTeammates", + + /** + * value: "EditTeammates" + * @const + */ + "EditTeammates": "EditTeammates", + + /** + * value: "CreateTeammateOwner" + * @const + */ + "CreateTeammateOwner": "CreateTeammateOwner", + + /** + * value: "CreateTeammateManagedOwner" + * @const + */ + "CreateTeammateManagedOwner": "CreateTeammateManagedOwner", + + /** + * value: "CreateTeammateStoreOwner" + * @const + */ + "CreateTeammateStoreOwner": "CreateTeammateStoreOwner", + + /** + * value: "CreateTeammateStoreManager" + * @const + */ + "CreateTeammateStoreManager": "CreateTeammateStoreManager", + + /** + * value: "CreateTeammateStoreStaff" + * @const + */ + "CreateTeammateStoreStaff": "CreateTeammateStoreStaff", + + /** + * value: "CreateTeammateStoreReadAccess" + * @const + */ + "CreateTeammateStoreReadAccess": "CreateTeammateStoreReadAccess", + + /** + * value: "CreateTeammateFinanceManager" + * @const + */ + "CreateTeammateFinanceManager": "CreateTeammateFinanceManager", + + /** + * value: "CreateTeammateIntegrator" + * @const + */ + "CreateTeammateIntegrator": "CreateTeammateIntegrator", + + /** + * value: "CreateTeammateOnboarding" + * @const + */ + "CreateTeammateOnboarding": "CreateTeammateOnboarding", + + /** + * value: "CreateTeammatePropertyManager" + * @const + */ + "CreateTeammatePropertyManager": "CreateTeammatePropertyManager", + + /** + * value: "CreateTeammatePropertyOwner" + * @const + */ + "CreateTeammatePropertyOwner": "CreateTeammatePropertyOwner", + + /** + * value: "ViewApmConfigurations" + * @const + */ + "ViewApmConfigurations": "ViewApmConfigurations", + + /** + * value: "EditApmConfigurations" + * @const + */ + "EditApmConfigurations": "EditApmConfigurations", + + /** + * value: "ViewCampaignsConfigurations" + * @const + */ + "ViewCampaignsConfigurations": "ViewCampaignsConfigurations", + + /** + * value: "CreateCampaignsConfigurations" + * @const + */ + "CreateCampaignsConfigurations": "CreateCampaignsConfigurations", + + /** + * value: "UpdateCampaignsConfigurations" + * @const + */ + "UpdateCampaignsConfigurations": "UpdateCampaignsConfigurations", + + /** + * value: "DeleteCampaignsConfigurations" + * @const + */ + "DeleteCampaignsConfigurations": "DeleteCampaignsConfigurations", + + /** + * value: "StampLoyaltyCardAgainstCampaignsConfigurations" + * @const + */ + "StampLoyaltyCardAgainstCampaignsConfigurations": "StampLoyaltyCardAgainstCampaignsConfigurations", + + /** + * value: "ViewDevelopersSettings" + * @const + */ + "ViewDevelopersSettings": "ViewDevelopersSettings", + + /** + * value: "EditDevelopersSettings" + * @const + */ + "EditDevelopersSettings": "EditDevelopersSettings", + + /** + * value: "ViewOrders" + * @const + */ + "ViewOrders": "ViewOrders", + + /** + * value: "UpdateOrdersAccept" + * @const + */ + "UpdateOrdersAccept": "UpdateOrdersAccept", + + /** + * value: "UpdateOrdersReject" + * @const + */ + "UpdateOrdersReject": "UpdateOrdersReject", + + /** + * value: "UpdateOrdersRefund" + * @const + */ + "UpdateOrdersRefund": "UpdateOrdersRefund", + + /** + * value: "UpdateOrdersDispatch" + * @const + */ + "UpdateOrdersDispatch": "UpdateOrdersDispatch", + + /** + * value: "ViewStores" + * @const + */ + "ViewStores": "ViewStores", + + /** + * value: "CreateStores" + * @const + */ + "CreateStores": "CreateStores", + + /** + * value: "EditStores" + * @const + */ + "EditStores": "EditStores", + + /** + * value: "ViewStoresOpeningHours" + * @const + */ + "ViewStoresOpeningHours": "ViewStoresOpeningHours", + + /** + * value: "UpdateStoresOpenForCollectionOrDelivery" + * @const + */ + "UpdateStoresOpenForCollectionOrDelivery": "UpdateStoresOpenForCollectionOrDelivery", + + /** + * value: "UpdateStoresOpeningHours" + * @const + */ + "UpdateStoresOpeningHours": "UpdateStoresOpeningHours", + + /** + * value: "ViewStoresOpeningHoursOverride" + * @const + */ + "ViewStoresOpeningHoursOverride": "ViewStoresOpeningHoursOverride", + + /** + * value: "EditStoresOpeningHoursOverride" + * @const + */ + "EditStoresOpeningHoursOverride": "EditStoresOpeningHoursOverride", + + /** + * value: "EditStoresOpeningHoursOverrideTemporary" + * @const + */ + "EditStoresOpeningHoursOverrideTemporary": "EditStoresOpeningHoursOverrideTemporary", + + /** + * value: "UpdateStoresName" + * @const + */ + "UpdateStoresName": "UpdateStoresName", + + /** + * value: "EditStoreKioskSettings" + * @const + */ + "EditStoreKioskSettings": "EditStoreKioskSettings", + + /** + * value: "EditStoreOrderCapacity" + * @const + */ + "EditStoreOrderCapacity": "EditStoreOrderCapacity", + + /** + * value: "ArchiveStores" + * @const + */ + "ArchiveStores": "ArchiveStores", + + /** + * value: "PublishStores" + * @const + */ + "PublishStores": "PublishStores", + + /** + * value: "UpdatePrinterTerminalsAssign" + * @const + */ + "UpdatePrinterTerminalsAssign": "UpdatePrinterTerminalsAssign", + + /** + * value: "UpdatePrinterTerminalsToggle" + * @const + */ + "UpdatePrinterTerminalsToggle": "UpdatePrinterTerminalsToggle", + + /** + * value: "EditStoreNotifications" + * @const + */ + "EditStoreNotifications": "EditStoreNotifications", + + /** + * value: "ViewStoreGroups" + * @const + */ + "ViewStoreGroups": "ViewStoreGroups", + + /** + * value: "CreateStoreGroups" + * @const + */ + "CreateStoreGroups": "CreateStoreGroups", + + /** + * value: "UpdateStoreGroups" + * @const + */ + "UpdateStoreGroups": "UpdateStoreGroups", + + /** + * value: "DeleteStoreGroups" + * @const + */ + "DeleteStoreGroups": "DeleteStoreGroups", + + /** + * value: "ViewDeliveryZones" + * @const + */ + "ViewDeliveryZones": "ViewDeliveryZones", + + /** + * value: "CreateDeliveryZones" + * @const + */ + "CreateDeliveryZones": "CreateDeliveryZones", + + /** + * value: "UpdateDeliveryZones" + * @const + */ + "UpdateDeliveryZones": "UpdateDeliveryZones", + + /** + * value: "DeleteDeliveryZones" + * @const + */ + "DeleteDeliveryZones": "DeleteDeliveryZones", + + /** + * value: "ViewMenu" + * @const + */ + "ViewMenu": "ViewMenu", + + /** + * value: "CreateMenu" + * @const + */ + "CreateMenu": "CreateMenu", + + /** + * value: "UpdateMenu" + * @const + */ + "UpdateMenu": "UpdateMenu", + + /** + * value: "DeleteMenu" + * @const + */ + "DeleteMenu": "DeleteMenu", + + /** + * value: "UpdateMenuLock" + * @const + */ + "UpdateMenuLock": "UpdateMenuLock", + + /** + * value: "UpdateMenuItemsHideTemporarily" + * @const + */ + "UpdateMenuItemsHideTemporarily": "UpdateMenuItemsHideTemporarily", + + /** + * value: "EditMenuImage" + * @const + */ + "EditMenuImage": "EditMenuImage", + + /** + * value: "ViewVouchers" + * @const + */ + "ViewVouchers": "ViewVouchers", + + /** + * value: "EditVouchers" + * @const + */ + "EditVouchers": "EditVouchers", + + /** + * value: "ViewWebsiteContent" + * @const + */ + "ViewWebsiteContent": "ViewWebsiteContent", + + /** + * value: "EditWebsiteContent" + * @const + */ + "EditWebsiteContent": "EditWebsiteContent", + + /** + * value: "ViewWebsiteDnsVerified" + * @const + */ + "ViewWebsiteDnsVerified": "ViewWebsiteDnsVerified", + + /** + * value: "ViewWebsiteCertificateCreated" + * @const + */ + "ViewWebsiteCertificateCreated": "ViewWebsiteCertificateCreated", + + /** + * value: "ViewWebsiteCertificateRenewed" + * @const + */ + "ViewWebsiteCertificateRenewed": "ViewWebsiteCertificateRenewed", + + /** + * value: "ViewBankAccounts" + * @const + */ + "ViewBankAccounts": "ViewBankAccounts", + + /** + * value: "CreateBankAccounts" + * @const + */ + "CreateBankAccounts": "CreateBankAccounts", + + /** + * value: "UpdateBankAccounts" + * @const + */ + "UpdateBankAccounts": "UpdateBankAccounts", + + /** + * value: "UpdateBankAccountsAssign" + * @const + */ + "UpdateBankAccountsAssign": "UpdateBankAccountsAssign", + + /** + * value: "ViewAssignedBankAccount" + * @const + */ + "ViewAssignedBankAccount": "ViewAssignedBankAccount", + + /** + * value: "VerifyBankAccounts" + * @const + */ + "VerifyBankAccounts": "VerifyBankAccounts", + + /** + * value: "ViewServiceChargeConfigurations" + * @const + */ + "ViewServiceChargeConfigurations": "ViewServiceChargeConfigurations", + + /** + * value: "EditServiceChargeConfigurations" + * @const + */ + "EditServiceChargeConfigurations": "EditServiceChargeConfigurations", + + /** + * value: "EditStoreDeliveryZoneFees" + * @const + */ + "EditStoreDeliveryZoneFees": "EditStoreDeliveryZoneFees", + + /** + * value: "EditStoreDeliveryFeesLimited" + * @const + */ + "EditStoreDeliveryFeesLimited": "EditStoreDeliveryFeesLimited", + + /** + * value: "ViewHydraConfig" + * @const + */ + "ViewHydraConfig": "ViewHydraConfig", + + /** + * value: "UpdateHydraConfigManage" + * @const + */ + "UpdateHydraConfigManage": "UpdateHydraConfigManage", + + /** + * value: "InitiateBluetoothPairingMode" + * @const + */ + "InitiateBluetoothPairingMode": "InitiateBluetoothPairingMode", + + /** + * value: "DeleteTerminal" + * @const + */ + "DeleteTerminal": "DeleteTerminal", + + /** + * value: "ViewKioskTelemetry" + * @const + */ + "ViewKioskTelemetry": "ViewKioskTelemetry", + + /** + * value: "ViewCustomers" + * @const + */ + "ViewCustomers": "ViewCustomers", + + /** + * value: "EditCustomers" + * @const + */ + "EditCustomers": "EditCustomers", + + /** + * value: "CreateCustomers" + * @const + */ + "CreateCustomers": "CreateCustomers", + + /** + * value: "CreateCatalogElements" + * @const + */ + "CreateCatalogElements": "CreateCatalogElements", + + /** + * value: "UpdateCatalogElements" + * @const + */ + "UpdateCatalogElements": "UpdateCatalogElements", + + /** + * value: "ViewCatalogElements" + * @const + */ + "ViewCatalogElements": "ViewCatalogElements", + + /** + * value: "DeleteCatalogElements" + * @const + */ + "DeleteCatalogElements": "DeleteCatalogElements", + + /** + * value: "ViewMetafieldDefinitions" + * @const + */ + "ViewMetafieldDefinitions": "ViewMetafieldDefinitions", + + /** + * value: "CreateMetafieldDefinitions" + * @const + */ + "CreateMetafieldDefinitions": "CreateMetafieldDefinitions", + + /** + * value: "UpdateMetafieldDefinitions" + * @const + */ + "UpdateMetafieldDefinitions": "UpdateMetafieldDefinitions", + + /** + * value: "DeleteMetafieldDefinitions" + * @const + */ + "DeleteMetafieldDefinitions": "DeleteMetafieldDefinitions", + + /** + * value: "UpdateMetafields" + * @const + */ + "UpdateMetafields": "UpdateMetafields", + + /** + * value: "ViewCatalogMenuChanges" + * @const + */ + "ViewCatalogMenuChanges": "ViewCatalogMenuChanges", + + /** + * value: "PublishCatalogMenuChanges" + * @const + */ + "PublishCatalogMenuChanges": "PublishCatalogMenuChanges", + + /** + * value: "ViewAppStatistics" + * @const + */ + "ViewAppStatistics": "ViewAppStatistics", + + /** + * value: "ViewApmStatistics" + * @const + */ + "ViewApmStatistics": "ViewApmStatistics", + + /** + * value: "ViewCampaignsStatistics" + * @const + */ + "ViewCampaignsStatistics": "ViewCampaignsStatistics", + + /** + * value: "ViewCustomerStatistics" + * @const + */ + "ViewCustomerStatistics": "ViewCustomerStatistics", + + /** + * value: "ViewLiveStatistics" + * @const + */ + "ViewLiveStatistics": "ViewLiveStatistics", + + /** + * value: "ViewOrderStatistics" + * @const + */ + "ViewOrderStatistics": "ViewOrderStatistics", + + /** + * value: "ViewSalesStatistics" + * @const + */ + "ViewSalesStatistics": "ViewSalesStatistics", + + /** + * value: "ViewSalesEndOfDayStatistics" + * @const + */ + "ViewSalesEndOfDayStatistics": "ViewSalesEndOfDayStatistics", + + /** + * value: "ViewVouchersStatistics" + * @const + */ + "ViewVouchersStatistics": "ViewVouchersStatistics", + + /** + * value: "DownloadCustomerCsvExport" + * @const + */ + "DownloadCustomerCsvExport": "DownloadCustomerCsvExport", + + /** + * value: "ViewApmAuditLogs" + * @const + */ + "ViewApmAuditLogs": "ViewApmAuditLogs", + + /** + * value: "ViewStoreAuditLogs" + * @const + */ + "ViewStoreAuditLogs": "ViewStoreAuditLogs", + + /** + * value: "ViewMenuAuditLogs" + * @const + */ + "ViewMenuAuditLogs": "ViewMenuAuditLogs", + + /** + * value: "ViewBankAccountAuditLogs" + * @const + */ + "ViewBankAccountAuditLogs": "ViewBankAccountAuditLogs", + + /** + * value: "ViewFeeConfigurationsAuditLogs" + * @const + */ + "ViewFeeConfigurationsAuditLogs": "ViewFeeConfigurationsAuditLogs", + + /** + * value: "ViewOrdersAuditLogs" + * @const + */ + "ViewOrdersAuditLogs": "ViewOrdersAuditLogs", + + /** + * value: "ViewVouchersAuditLogs" + * @const + */ + "ViewVouchersAuditLogs": "ViewVouchersAuditLogs", + + /** + * value: "ViewUserEventsAuditLogs" + * @const + */ + "ViewUserEventsAuditLogs": "ViewUserEventsAuditLogs", + + /** + * value: "ViewCampaignsAuditLogs" + * @const + */ + "ViewCampaignsAuditLogs": "ViewCampaignsAuditLogs", + + /** + * value: "ViewTeammatesAuditLogs" + * @const + */ + "ViewTeammatesAuditLogs": "ViewTeammatesAuditLogs", + + /** + * value: "ViewAppAuditLogs" + * @const + */ + "ViewAppAuditLogs": "ViewAppAuditLogs", + + /** + * value: "ViewCustomerAuditLogs" + * @const + */ + "ViewCustomerAuditLogs": "ViewCustomerAuditLogs", + + /** + * value: "ViewPrinterAuditLogs" + * @const + */ + "ViewPrinterAuditLogs": "ViewPrinterAuditLogs", + + /** + * value: "ViewHydraAuditLogs" + * @const + */ + "ViewHydraAuditLogs": "ViewHydraAuditLogs", + + /** + * value: "ViewPushNotificationAuditLogs" + * @const + */ + "ViewPushNotificationAuditLogs": "ViewPushNotificationAuditLogs", + + /** + * value: "ViewStripeCustomConnectedAccountAuditLogs" + * @const + */ + "ViewStripeCustomConnectedAccountAuditLogs": "ViewStripeCustomConnectedAccountAuditLogs", + + /** + * value: "ViewKioskBluetoothDeviceAuditLogs" + * @const + */ + "ViewKioskBluetoothDeviceAuditLogs": "ViewKioskBluetoothDeviceAuditLogs", + + /** + * value: "ViewExternalAuditLogs" + * @const + */ + "ViewExternalAuditLogs": "ViewExternalAuditLogs", + + /** + * value: "CreateExternalAuditLogEvents" + * @const + */ + "CreateExternalAuditLogEvents": "CreateExternalAuditLogEvents", + + /** + * value: "ViewCatalogAuditLogs" + * @const + */ + "ViewCatalogAuditLogs": "ViewCatalogAuditLogs", + + /** + * value: "ViewOrderFulfillmentAuditLogs" + * @const + */ + "ViewOrderFulfillmentAuditLogs": "ViewOrderFulfillmentAuditLogs", + + /** + * value: "ViewChannelAuditLogs" + * @const + */ + "ViewChannelAuditLogs": "ViewChannelAuditLogs", + + /** + * value: "ViewAppStoreAuditLogs" + * @const + */ + "ViewAppStoreAuditLogs": "ViewAppStoreAuditLogs", + + /** + * value: "SendPushNotificationToCustomer" + * @const + */ + "SendPushNotificationToCustomer": "SendPushNotificationToCustomer", + + /** + * value: "InviteDriverToApp" + * @const + */ + "InviteDriverToApp": "InviteDriverToApp", + + /** + * value: "GetDriverForApp" + * @const + */ + "GetDriverForApp": "GetDriverForApp", + + /** + * value: "RemoveDriverFromApp" + * @const + */ + "RemoveDriverFromApp": "RemoveDriverFromApp", + + /** + * value: "AssignDriverToOrder" + * @const + */ + "AssignDriverToOrder": "AssignDriverToOrder", + + /** + * value: "UnassignDriverFromOrder" + * @const + */ + "UnassignDriverFromOrder": "UnassignDriverFromOrder", + + /** + * value: "UpdateOrdersDeliveryTrackingStatus" + * @const + */ + "UpdateOrdersDeliveryTrackingStatus": "UpdateOrdersDeliveryTrackingStatus", + + /** + * value: "UpdateOrderFulfillmentStatus" + * @const + */ + "UpdateOrderFulfillmentStatus": "UpdateOrderFulfillmentStatus", + + /** + * value: "ViewFulfillmentStatesConfiguration" + * @const + */ + "ViewFulfillmentStatesConfiguration": "ViewFulfillmentStatesConfiguration", + + /** + * value: "CreateFulfillmentStatesConfiguration" + * @const + */ + "CreateFulfillmentStatesConfiguration": "CreateFulfillmentStatesConfiguration", + + /** + * value: "UpdateFulfillmentStatesConfiguration" + * @const + */ + "UpdateFulfillmentStatesConfiguration": "UpdateFulfillmentStatesConfiguration", + + /** + * value: "DeleteFulfillmentStatesConfiguration" + * @const + */ + "DeleteFulfillmentStatesConfiguration": "DeleteFulfillmentStatesConfiguration", + + /** + * value: "ViewPayouts" + * @const + */ + "ViewPayouts": "ViewPayouts", + + /** + * value: "ViewChannels" + * @const + */ + "ViewChannels": "ViewChannels", + + /** + * value: "ViewOnboarding" + * @const + */ + "ViewOnboarding": "ViewOnboarding", + + /** + * value: "UpdateOnboarding" + * @const + */ + "UpdateOnboarding": "UpdateOnboarding", + + /** + * value: "ViewClientDevices" + * @const + */ + "ViewClientDevices": "ViewClientDevices", + + /** + * value: "UpdateClientDevices" + * @const + */ + "UpdateClientDevices": "UpdateClientDevices", + + /** + * value: "EnrollClientDevices" + * @const + */ + "EnrollClientDevices": "EnrollClientDevices", + + /** + * value: "AssignClientDevices" + * @const + */ + "AssignClientDevices": "AssignClientDevices", + + /** + * value: "ViewClientAuditLogs" + * @const + */ + "ViewClientAuditLogs": "ViewClientAuditLogs", + + /** + * value: "CreateAppStoreAppConfiguration" + * @const + */ + "CreateAppStoreAppConfiguration": "CreateAppStoreAppConfiguration", + + /** + * value: "ViewAppStoreAppConfiguration" + * @const + */ + "ViewAppStoreAppConfiguration": "ViewAppStoreAppConfiguration", + + /** + * value: "UpdateAppStoreAppConfiguration" + * @const + */ + "UpdateAppStoreAppConfiguration": "UpdateAppStoreAppConfiguration", + + /** + * value: "DeleteAppStoreAppConfiguration" + * @const + */ + "DeleteAppStoreAppConfiguration": "DeleteAppStoreAppConfiguration", + + /** + * value: "UpdateAppStoreAppConfigurationSettings" + * @const + */ + "UpdateAppStoreAppConfigurationSettings": "UpdateAppStoreAppConfigurationSettings", + + /** + * value: "CreateAppStoreSubscription" + * @const + */ + "CreateAppStoreSubscription": "CreateAppStoreSubscription", + + /** + * value: "UpdateAppStoreSubscription" + * @const + */ + "UpdateAppStoreSubscription": "UpdateAppStoreSubscription", + + /** + * value: "DeleteAppStoreSubscription" + * @const + */ + "DeleteAppStoreSubscription": "DeleteAppStoreSubscription", + + /** + * value: "ViewSalesChannels" + * @const + */ + "ViewSalesChannels": "ViewSalesChannels", + + /** + * value: "EditSalesChannels" + * @const + */ + "EditSalesChannels": "EditSalesChannels", + + /** + * value: "ViewPayGreenWhiteLabelConfiguration" + * @const + */ + "ViewPayGreenWhiteLabelConfiguration": "ViewPayGreenWhiteLabelConfiguration", + + /** + * value: "CreatePayGreenWhiteLabelConfiguration" + * @const + */ + "CreatePayGreenWhiteLabelConfiguration": "CreatePayGreenWhiteLabelConfiguration", + + /** + * value: "UpdatePayGreenWhiteLabelConfiguration" + * @const + */ + "UpdatePayGreenWhiteLabelConfiguration": "UpdatePayGreenWhiteLabelConfiguration", + + /** + * value: "UpdatePayGreenStoreConfiguration" + * @const + */ + "UpdatePayGreenStoreConfiguration": "UpdatePayGreenStoreConfiguration", + + /** + * value: "ViewSubscriptions" + * @const + */ + "ViewSubscriptions": "ViewSubscriptions", + + /** + * value: "ViewInvoices" + * @const + */ + "ViewInvoices": "ViewInvoices", + + /** + * value: "EditAccountsBills" + * @const + */ + "EditAccountsBills": "EditAccountsBills", + + /** + * value: "ViewAccountsBills" + * @const + */ + "ViewAccountsBills": "ViewAccountsBills", + + /** + * value: "EditAccountsCategories" + * @const + */ + "EditAccountsCategories": "EditAccountsCategories", + + /** + * value: "ViewAccountsCategories" + * @const + */ + "ViewAccountsCategories": "ViewAccountsCategories", + + /** + * value: "EditAccountsCreditAccounts" + * @const + */ + "EditAccountsCreditAccounts": "EditAccountsCreditAccounts", + + /** + * value: "ViewAccountsCreditAccounts" + * @const + */ + "ViewAccountsCreditAccounts": "ViewAccountsCreditAccounts", + + /** + * value: "EditAccountsCreditBooks" + * @const + */ + "EditAccountsCreditBooks": "EditAccountsCreditBooks", + + /** + * value: "ViewAccountsCreditBooks" + * @const + */ + "ViewAccountsCreditBooks": "ViewAccountsCreditBooks", + + /** + * value: "EditAccountsExpenses" + * @const + */ + "EditAccountsExpenses": "EditAccountsExpenses", + + /** + * value: "ViewAccountsExpenses" + * @const + */ + "ViewAccountsExpenses": "ViewAccountsExpenses", + + /** + * value: "EditAccountsTransactionAccounts" + * @const + */ + "EditAccountsTransactionAccounts": "EditAccountsTransactionAccounts", + + /** + * value: "ViewAccountsTransactionAccounts" + * @const + */ + "ViewAccountsTransactionAccounts": "ViewAccountsTransactionAccounts", + + /** + * value: "EditDocumentExplorer" + * @const + */ + "EditDocumentExplorer": "EditDocumentExplorer", + + /** + * value: "ViewDocumentExplorer" + * @const + */ + "ViewDocumentExplorer": "ViewDocumentExplorer", + + /** + * value: "ViewInventoryReports" + * @const + */ + "ViewInventoryReports": "ViewInventoryReports", + + /** + * value: "EditInventoryPurchaseOrders" + * @const + */ + "EditInventoryPurchaseOrders": "EditInventoryPurchaseOrders", + + /** + * value: "ViewInventoryPurchaseOrders" + * @const + */ + "ViewInventoryPurchaseOrders": "ViewInventoryPurchaseOrders", + + /** + * value: "EditInventoryStockItems" + * @const + */ + "EditInventoryStockItems": "EditInventoryStockItems", + + /** + * value: "ViewInventoryStockItems" + * @const + */ + "ViewInventoryStockItems": "ViewInventoryStockItems", + + /** + * value: "EditInventorySupplier" + * @const + */ + "EditInventorySupplier": "EditInventorySupplier", + + /** + * value: "ViewInventorySupplier" + * @const + */ + "ViewInventorySupplier": "ViewInventorySupplier", + + /** + * value: "EditInventoryTrackingProfiles" + * @const + */ + "EditInventoryTrackingProfiles": "EditInventoryTrackingProfiles", + + /** + * value: "ViewInventoryTrackingProfiles" + * @const + */ + "ViewInventoryTrackingProfiles": "ViewInventoryTrackingProfiles", + + /** + * value: "ViewPayrollReports" + * @const + */ + "ViewPayrollReports": "ViewPayrollReports", + + /** + * value: "EditPayrollHoliday" + * @const + */ + "EditPayrollHoliday": "EditPayrollHoliday", + + /** + * value: "ViewPayrollHoliday" + * @const + */ + "ViewPayrollHoliday": "ViewPayrollHoliday", + + /** + * value: "EditPayrollRota" + * @const + */ + "EditPayrollRota": "EditPayrollRota", + + /** + * value: "ViewPayrollRota" + * @const + */ + "ViewPayrollRota": "ViewPayrollRota", + + /** + * value: "EditPayrollStaff" + * @const + */ + "EditPayrollStaff": "EditPayrollStaff", + + /** + * value: "ViewPayrollStaff" + * @const + */ + "ViewPayrollStaff": "ViewPayrollStaff", + + /** + * value: "ViewSalesReports" + * @const + */ + "ViewSalesReports": "ViewSalesReports", + + /** + * value: "ViewCostReports" + * @const + */ + "ViewCostReports": "ViewCostReports", + + /** + * value: "ViewMenuReports" + * @const + */ + "ViewMenuReports": "ViewMenuReports" +}; + + +/** + * Allowed values for the WebToAppRedirect property. + * @enum {String} + * @readonly + */ +App['WebToAppRedirectEnum'] = { + + /** + * value: "NoRedirect" + * @const + */ + "NoRedirect": "NoRedirect", + + /** + * value: "RedirectOnce" + * @const + */ + "RedirectOnce": "RedirectOnce", + + /** + * value: "RedirectAlways" + * @const + */ + "RedirectAlways": "RedirectAlways", + + /** + * value: "SuggestPwa" + * @const + */ + "SuggestPwa": "SuggestPwa", + + /** + * value: "ForcePwa" + * @const + */ + "ForcePwa": "ForcePwa" +}; + + +/** + * Allowed values for the ApplicationCategory property. + * @enum {String} + * @readonly + */ +App['ApplicationCategoryEnum'] = { + + /** + * value: "Restaurant" + * @const + */ + "Restaurant": "Restaurant", + + /** + * value: "Cafe" + * @const + */ + "Cafe": "Cafe", + + /** + * value: "Convenience" + * @const + */ + "Convenience": "Convenience" +}; + + + +export default App; + diff --git a/src/model/AppChannelAssignment.js b/src/model/AppChannelAssignment.js new file mode 100644 index 00000000..f72c3fc5 --- /dev/null +++ b/src/model/AppChannelAssignment.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppChannelAssignment model module. + * @module model/AppChannelAssignment + * @version 1.0.0 + */ +class AppChannelAssignment { + /** + * Constructs a new AppChannelAssignment. + * Describes a ChannelAssignment which is when a AppId is assigned to a Sales Channel + * @alias module:model/AppChannelAssignment + */ + constructor() { + + AppChannelAssignment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppChannelAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppChannelAssignment} obj Optional instance to populate. + * @return {module:model/AppChannelAssignment} The populated AppChannelAssignment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppChannelAssignment(); + + if (data.hasOwnProperty('ChannelId')) { + obj['ChannelId'] = ApiClient.convertToType(data['ChannelId'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of the channel on the assignment + * @member {Number} ChannelId + */ +AppChannelAssignment.prototype['ChannelId'] = undefined; + +/** + * AppId of the assignment + * @member {String} AppId + */ +AppChannelAssignment.prototype['AppId'] = undefined; + + + + + + +export default AppChannelAssignment; + diff --git a/src/model/AppCompliance.js b/src/model/AppCompliance.js new file mode 100644 index 00000000..d9858c2e --- /dev/null +++ b/src/model/AppCompliance.js @@ -0,0 +1,112 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppCompliance model module. + * @module model/AppCompliance + * @version 1.0.0 + */ +class AppCompliance { + /** + * Constructs a new AppCompliance. + * Application compliance model + * @alias module:model/AppCompliance + */ + constructor() { + + AppCompliance.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppCompliance from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppCompliance} obj Optional instance to populate. + * @return {module:model/AppCompliance} The populated AppCompliance instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppCompliance(); + + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('ComplianceType')) { + obj['ComplianceType'] = ApiClient.convertToType(data['ComplianceType'], 'String'); + } + if (data.hasOwnProperty('AllowDisablingOfGdpr')) { + obj['AllowDisablingOfGdpr'] = ApiClient.convertToType(data['AllowDisablingOfGdpr'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * App ID + * @member {String} AppId + */ +AppCompliance.prototype['AppId'] = undefined; + +/** + * 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. + * @member {module:model/AppCompliance.ComplianceTypeEnum} ComplianceType + */ +AppCompliance.prototype['ComplianceType'] = undefined; + +/** + * For EU countries, we should not allow to change the option to “Default banner”, but all other countries should be able to do so. + * @member {Boolean} AllowDisablingOfGdpr + */ +AppCompliance.prototype['AllowDisablingOfGdpr'] = undefined; + + + + + +/** + * Allowed values for the ComplianceType property. + * @enum {String} + * @readonly + */ +AppCompliance['ComplianceTypeEnum'] = { + + /** + * value: "Default" + * @const + */ + "Default": "Default", + + /** + * value: "GdprCompliance" + * @const + */ + "GdprCompliance": "GdprCompliance" +}; + + + +export default AppCompliance; + diff --git a/src/model/AppConfigSalesChannel.js b/src/model/AppConfigSalesChannel.js new file mode 100644 index 00000000..db63be49 --- /dev/null +++ b/src/model/AppConfigSalesChannel.js @@ -0,0 +1,193 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppConfigSalesChannel model module. + * @module model/AppConfigSalesChannel + * @version 1.0.0 + */ +class AppConfigSalesChannel { + /** + * Constructs a new AppConfigSalesChannel. + * App Config Sales Channel + * @alias module:model/AppConfigSalesChannel + */ + constructor() { + + AppConfigSalesChannel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppConfigSalesChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppConfigSalesChannel} obj Optional instance to populate. + * @return {module:model/AppConfigSalesChannel} The populated AppConfigSalesChannel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppConfigSalesChannel(); + + if (data.hasOwnProperty('EmailRequestMode')) { + obj['EmailRequestMode'] = ApiClient.convertToType(data['EmailRequestMode'], 'String'); + } + if (data.hasOwnProperty('WebToAppRedirect')) { + obj['WebToAppRedirect'] = ApiClient.convertToType(data['WebToAppRedirect'], 'String'); + } + if (data.hasOwnProperty('AddressEntryType')) { + obj['AddressEntryType'] = ApiClient.convertToType(data['AddressEntryType'], 'String'); + } + if (data.hasOwnProperty('DisplayDeliveryRestaurantListScreen')) { + obj['DisplayDeliveryRestaurantListScreen'] = ApiClient.convertToType(data['DisplayDeliveryRestaurantListScreen'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Display a popup to users requesting their email address + * @member {module:model/AppConfigSalesChannel.EmailRequestModeEnum} EmailRequestMode + */ +AppConfigSalesChannel.prototype['EmailRequestMode'] = undefined; + +/** + * Sends users to their native apps or request them to install the pwa + * @member {module:model/AppConfigSalesChannel.WebToAppRedirectEnum} WebToAppRedirect + */ +AppConfigSalesChannel.prototype['WebToAppRedirect'] = undefined; + +/** + * Address entry type - TextEntryManualDisallowed is the only supported configuration + * @member {module:model/AppConfigSalesChannel.AddressEntryTypeEnum} AddressEntryType + */ +AppConfigSalesChannel.prototype['AddressEntryType'] = undefined; + +/** + * Display Pickup Restaurant List Screen + * @member {Boolean} DisplayDeliveryRestaurantListScreen + */ +AppConfigSalesChannel.prototype['DisplayDeliveryRestaurantListScreen'] = undefined; + + + + + +/** + * Allowed values for the EmailRequestMode property. + * @enum {String} + * @readonly + */ +AppConfigSalesChannel['EmailRequestModeEnum'] = { + + /** + * value: "DoNotRequest" + * @const + */ + "DoNotRequest": "DoNotRequest", + + /** + * value: "Request" + * @const + */ + "Request": "Request", + + /** + * value: "Require" + * @const + */ + "Require": "Require" +}; + + +/** + * Allowed values for the WebToAppRedirect property. + * @enum {String} + * @readonly + */ +AppConfigSalesChannel['WebToAppRedirectEnum'] = { + + /** + * value: "NoRedirect" + * @const + */ + "NoRedirect": "NoRedirect", + + /** + * value: "RedirectOnce" + * @const + */ + "RedirectOnce": "RedirectOnce", + + /** + * value: "RedirectAlways" + * @const + */ + "RedirectAlways": "RedirectAlways", + + /** + * value: "SuggestPwa" + * @const + */ + "SuggestPwa": "SuggestPwa", + + /** + * value: "ForcePwa" + * @const + */ + "ForcePwa": "ForcePwa" +}; + + +/** + * Allowed values for the AddressEntryType property. + * @enum {String} + * @readonly + */ +AppConfigSalesChannel['AddressEntryTypeEnum'] = { + + /** + * value: "MapFirst" + * @const + */ + "MapFirst": "MapFirst", + + /** + * value: "TextEntryManualAllowed" + * @const + */ + "TextEntryManualAllowed": "TextEntryManualAllowed", + + /** + * value: "TextEntryManualDisallowed" + * @const + */ + "TextEntryManualDisallowed": "TextEntryManualDisallowed" +}; + + + +export default AppConfigSalesChannel; + diff --git a/src/model/AppConfigUpdateModel.js b/src/model/AppConfigUpdateModel.js new file mode 100644 index 00000000..60a28056 --- /dev/null +++ b/src/model/AppConfigUpdateModel.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppConfigUpdateModel model module. + * @module model/AppConfigUpdateModel + * @version 1.0.0 + */ +class AppConfigUpdateModel { + /** + * Constructs a new AppConfigUpdateModel. + * Application configuration + * @alias module:model/AppConfigUpdateModel + */ + constructor() { + + AppConfigUpdateModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppConfigUpdateModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppConfigUpdateModel} obj Optional instance to populate. + * @return {module:model/AppConfigUpdateModel} The populated AppConfigUpdateModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppConfigUpdateModel(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('HostName')) { + obj['HostName'] = ApiClient.convertToType(data['HostName'], 'String'); + } + if (data.hasOwnProperty('MainColor')) { + obj['MainColor'] = ApiClient.convertToType(data['MainColor'], 'String'); + } + if (data.hasOwnProperty('KioskPrimaryColour')) { + obj['KioskPrimaryColour'] = ApiClient.convertToType(data['KioskPrimaryColour'], 'String'); + } + if (data.hasOwnProperty('ApplicationCategory')) { + obj['ApplicationCategory'] = ApiClient.convertToType(data['ApplicationCategory'], 'String'); + } + if (data.hasOwnProperty('IsPanaceaEnabled')) { + obj['IsPanaceaEnabled'] = ApiClient.convertToType(data['IsPanaceaEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('PanaceaVanityUrl')) { + obj['PanaceaVanityUrl'] = ApiClient.convertToType(data['PanaceaVanityUrl'], 'String'); + } + if (data.hasOwnProperty('CookieConsentPromptEnabled')) { + obj['CookieConsentPromptEnabled'] = ApiClient.convertToType(data['CookieConsentPromptEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('LogoImageUrl')) { + obj['LogoImageUrl'] = ApiClient.convertToType(data['LogoImageUrl'], 'String'); + } + if (data.hasOwnProperty('CountryId')) { + obj['CountryId'] = ApiClient.convertToType(data['CountryId'], 'String'); + } + } + return obj; + } + + +} + +/** + * App name. This is used in various places on the Apple App Store, Google Play Store, mobile apps and websites. + * @member {String} Name + */ +AppConfigUpdateModel.prototype['Name'] = undefined; + +/** + * HostName on which the web-ordering system is allowed to be hosted or that a Flipdish website is hosted on. + * @member {String} HostName + */ +AppConfigUpdateModel.prototype['HostName'] = undefined; + +/** + * Main color of the web / Android / iOS applications + * @member {String} MainColor + */ +AppConfigUpdateModel.prototype['MainColor'] = undefined; + +/** + * Primary colour used on the Kiosk + * @member {String} KioskPrimaryColour + */ +AppConfigUpdateModel.prototype['KioskPrimaryColour'] = undefined; + +/** + * Application Category + * @member {module:model/AppConfigUpdateModel.ApplicationCategoryEnum} ApplicationCategory + */ +AppConfigUpdateModel.prototype['ApplicationCategory'] = undefined; + +/** + * 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. + * @member {Boolean} IsPanaceaEnabled + */ +AppConfigUpdateModel.prototype['IsPanaceaEnabled'] = undefined; + +/** + * In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl} + * @member {String} PanaceaVanityUrl + */ +AppConfigUpdateModel.prototype['PanaceaVanityUrl'] = undefined; + +/** + * Cookie Consent Prompt Enabled + * @member {Boolean} CookieConsentPromptEnabled + */ +AppConfigUpdateModel.prototype['CookieConsentPromptEnabled'] = undefined; + +/** + * Logo image URL + * @member {String} LogoImageUrl + */ +AppConfigUpdateModel.prototype['LogoImageUrl'] = undefined; + +/** + * 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 + * @member {String} CountryId + */ +AppConfigUpdateModel.prototype['CountryId'] = undefined; + + + + + +/** + * Allowed values for the ApplicationCategory property. + * @enum {String} + * @readonly + */ +AppConfigUpdateModel['ApplicationCategoryEnum'] = { + + /** + * value: "Restaurant" + * @const + */ + "Restaurant": "Restaurant", + + /** + * value: "Cafe" + * @const + */ + "Cafe": "Cafe", + + /** + * value: "Convenience" + * @const + */ + "Convenience": "Convenience" +}; + + + +export default AppConfigUpdateModel; + diff --git a/src/model/AppCreatedEvent.js b/src/model/AppCreatedEvent.js new file mode 100644 index 00000000..6a82152e --- /dev/null +++ b/src/model/AppCreatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The AppCreatedEvent model module. + * @module model/AppCreatedEvent + * @version 1.0.0 + */ +class AppCreatedEvent { + /** + * Constructs a new AppCreatedEvent. + * Application created event + * @alias module:model/AppCreatedEvent + */ + constructor() { + + AppCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppCreatedEvent} obj Optional instance to populate. + * @return {module:model/AppCreatedEvent} The populated AppCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('AppName')) { + obj['AppName'] = ApiClient.convertToType(data['AppName'], 'String'); + } + if (data.hasOwnProperty('CountryId')) { + obj['CountryId'] = ApiClient.convertToType(data['CountryId'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('AccountId')) { + obj['AccountId'] = ApiClient.convertToType(data['AccountId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +AppCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +AppCreatedEvent.prototype['Description'] = undefined; + +/** + * App Name + * @member {String} AppName + */ +AppCreatedEvent.prototype['AppName'] = undefined; + +/** + * Country Id + * @member {String} CountryId + */ +AppCreatedEvent.prototype['CountryId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +AppCreatedEvent.prototype['User'] = undefined; + +/** + * Salesforce Account Id + * @member {String} AccountId + */ +AppCreatedEvent.prototype['AccountId'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +AppCreatedEvent.prototype['OrgId'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +AppCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +AppCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +AppCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +AppCreatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +AppCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default AppCreatedEvent; + diff --git a/src/model/AppInstall.js b/src/model/AppInstall.js new file mode 100644 index 00000000..fa409bfb --- /dev/null +++ b/src/model/AppInstall.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppInstall model module. + * @module model/AppInstall + * @version 1.0.0 + */ +class AppInstall { + /** + * Constructs a new AppInstall. + * App Install information + * @alias module:model/AppInstall + */ + constructor() { + + AppInstall.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppInstall from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppInstall} obj Optional instance to populate. + * @return {module:model/AppInstall} The populated AppInstall instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppInstall(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('FirstLogin')) { + obj['FirstLogin'] = ApiClient.convertToType(data['FirstLogin'], 'Date'); + } + if (data.hasOwnProperty('FirstLoginHuman')) { + obj['FirstLoginHuman'] = ApiClient.convertToType(data['FirstLoginHuman'], 'String'); + } + if (data.hasOwnProperty('LastActivity')) { + obj['LastActivity'] = ApiClient.convertToType(data['LastActivity'], 'Date'); + } + if (data.hasOwnProperty('LastActivityHuman')) { + obj['LastActivityHuman'] = ApiClient.convertToType(data['LastActivityHuman'], 'String'); + } + if (data.hasOwnProperty('GoogleTokens')) { + obj['GoogleTokens'] = ApiClient.convertToType(data['GoogleTokens'], 'Number'); + } + if (data.hasOwnProperty('AppleTokens')) { + obj['AppleTokens'] = ApiClient.convertToType(data['AppleTokens'], 'Number'); + } + if (data.hasOwnProperty('OrderCount')) { + obj['OrderCount'] = ApiClient.convertToType(data['OrderCount'], 'Number'); + } + if (data.hasOwnProperty('UserAgentAtSignup')) { + obj['UserAgentAtSignup'] = ApiClient.convertToType(data['UserAgentAtSignup'], 'String'); + } + if (data.hasOwnProperty('UserAgentMostRecent')) { + obj['UserAgentMostRecent'] = ApiClient.convertToType(data['UserAgentMostRecent'], 'String'); + } + } + return obj; + } + + +} + +/** + * Name of the installed application. + * @member {String} Name + */ +AppInstall.prototype['Name'] = undefined; + +/** + * Date and time of the user's first login to the app. + * @member {Date} FirstLogin + */ +AppInstall.prototype['FirstLogin'] = undefined; + +/** + * Human-readable representation of the first login date. + * @member {String} FirstLoginHuman + */ +AppInstall.prototype['FirstLoginHuman'] = undefined; + +/** + * Date and time of the user's last activity in the app. + * @member {Date} LastActivity + */ +AppInstall.prototype['LastActivity'] = undefined; + +/** + * Human-readable representation of the last activity date. + * @member {String} LastActivityHuman + */ +AppInstall.prototype['LastActivityHuman'] = undefined; + +/** + * Number of Google push notification tokens associated with the app install. + * @member {Number} GoogleTokens + */ +AppInstall.prototype['GoogleTokens'] = undefined; + +/** + * Number of Apple push notification tokens associated with the app install. + * @member {Number} AppleTokens + */ +AppInstall.prototype['AppleTokens'] = undefined; + +/** + * Number of orders placed by the user through this app install. + * @member {Number} OrderCount + */ +AppInstall.prototype['OrderCount'] = undefined; + +/** + * User agent string at the time of signup. + * @member {String} UserAgentAtSignup + */ +AppInstall.prototype['UserAgentAtSignup'] = undefined; + +/** + * Most recent user agent string used by the user. + * @member {String} UserAgentMostRecent + */ +AppInstall.prototype['UserAgentMostRecent'] = undefined; + + + + + + +export default AppInstall; + diff --git a/src/model/AppLookup.js b/src/model/AppLookup.js new file mode 100644 index 00000000..56b18dd8 --- /dev/null +++ b/src/model/AppLookup.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppLookup model module. + * @module model/AppLookup + * @version 1.0.0 + */ +class AppLookup { + /** + * Constructs a new AppLookup. + * App lookup model + * @alias module:model/AppLookup + */ + constructor() { + + AppLookup.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppLookup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppLookup} obj Optional instance to populate. + * @return {module:model/AppLookup} The populated AppLookup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppLookup(); + + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + } + return obj; + } + + +} + +/** + * App id + * @member {String} AppId + */ +AppLookup.prototype['AppId'] = undefined; + + + + + + +export default AppLookup; + diff --git a/src/model/AppStoreApp.js b/src/model/AppStoreApp.js new file mode 100644 index 00000000..e65a5930 --- /dev/null +++ b/src/model/AppStoreApp.js @@ -0,0 +1,594 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppSupportInfo from './AppStoreAppSupportInfo'; +import FieldGroup from './FieldGroup'; + +/** + * The AppStoreApp model module. + * @module model/AppStoreApp + * @version 1.0.0 + */ +class AppStoreApp { + /** + * Constructs a new AppStoreApp. + * @alias module:model/AppStoreApp + * @param Id {String} + * @param VerificationStatus {module:model/AppStoreApp.VerificationStatusEnum} + * @param OAuthAppId {String} + * @param Internal {Boolean} + * @param Details {String} + * @param ConfigurationType {module:model/AppStoreApp.ConfigurationTypeEnum} + * @param StoreSelectorType {module:model/AppStoreApp.StoreSelectorTypeEnum} + * @param PermissionsType {module:model/AppStoreApp.PermissionsTypeEnum} + * @param Name {String} + * @param Description {String} + * @param Categories {Array.} + * @param Countries {Array.} + */ + constructor(Id, VerificationStatus, OAuthAppId, Internal, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + + AppStoreApp.initialize(this, Id, VerificationStatus, OAuthAppId, Internal, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Id, VerificationStatus, OAuthAppId, Internal, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + obj['Id'] = Id; + obj['VerificationStatus'] = VerificationStatus; + obj['OAuthAppId'] = OAuthAppId; + obj['Internal'] = Internal; + obj['Details'] = Details; + obj['ConfigurationType'] = ConfigurationType; + obj['StoreSelectorType'] = StoreSelectorType; + obj['PermissionsType'] = PermissionsType; + obj['Name'] = Name; + obj['Description'] = Description; + obj['Categories'] = Categories; + obj['Countries'] = Countries; + } + + /** + * Constructs a AppStoreApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreApp} obj Optional instance to populate. + * @return {module:model/AppStoreApp} The populated AppStoreApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreApp(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('VerificationStatus')) { + obj['VerificationStatus'] = ApiClient.convertToType(data['VerificationStatus'], 'String'); + } + if (data.hasOwnProperty('Logo')) { + obj['Logo'] = ApiClient.convertToType(data['Logo'], 'String'); + } + if (data.hasOwnProperty('OAuthAppId')) { + obj['OAuthAppId'] = ApiClient.convertToType(data['OAuthAppId'], 'String'); + } + if (data.hasOwnProperty('Internal')) { + obj['Internal'] = ApiClient.convertToType(data['Internal'], 'Boolean'); + } + if (data.hasOwnProperty('Details')) { + obj['Details'] = ApiClient.convertToType(data['Details'], 'String'); + } + if (data.hasOwnProperty('ConfigurationType')) { + obj['ConfigurationType'] = ApiClient.convertToType(data['ConfigurationType'], 'String'); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('FieldGroups')) { + obj['FieldGroups'] = ApiClient.convertToType(data['FieldGroups'], [FieldGroup]); + } + if (data.hasOwnProperty('SetupInstructions')) { + obj['SetupInstructions'] = ApiClient.convertToType(data['SetupInstructions'], 'String'); + } + if (data.hasOwnProperty('ExternalSetupLink')) { + obj['ExternalSetupLink'] = ApiClient.convertToType(data['ExternalSetupLink'], 'String'); + } + if (data.hasOwnProperty('TeammateAppAccessLevel')) { + obj['TeammateAppAccessLevel'] = ApiClient.convertToType(data['TeammateAppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('PermissionsType')) { + obj['PermissionsType'] = ApiClient.convertToType(data['PermissionsType'], 'String'); + } + if (data.hasOwnProperty('Support')) { + obj['Support'] = AppStoreAppSupportInfo.constructFromObject(data['Support']); + } + if (data.hasOwnProperty('ExternalFunctionActionUrl')) { + obj['ExternalFunctionActionUrl'] = ApiClient.convertToType(data['ExternalFunctionActionUrl'], 'String'); + } + if (data.hasOwnProperty('ExternalFunctionSignatureKey')) { + obj['ExternalFunctionSignatureKey'] = ApiClient.convertToType(data['ExternalFunctionSignatureKey'], 'String'); + } + if (data.hasOwnProperty('IsPaid')) { + obj['IsPaid'] = ApiClient.convertToType(data['IsPaid'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Categories')) { + obj['Categories'] = ApiClient.convertToType(data['Categories'], ['String']); + } + if (data.hasOwnProperty('Countries')) { + obj['Countries'] = ApiClient.convertToType(data['Countries'], ['String']); + } + if (data.hasOwnProperty('DeveloperName')) { + obj['DeveloperName'] = ApiClient.convertToType(data['DeveloperName'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Id + */ +AppStoreApp.prototype['Id'] = undefined; + +/** + * @member {module:model/AppStoreApp.VerificationStatusEnum} VerificationStatus + */ +AppStoreApp.prototype['VerificationStatus'] = undefined; + +/** + * @member {String} Logo + */ +AppStoreApp.prototype['Logo'] = undefined; + +/** + * @member {String} OAuthAppId + */ +AppStoreApp.prototype['OAuthAppId'] = undefined; + +/** + * @member {Boolean} Internal + */ +AppStoreApp.prototype['Internal'] = undefined; + +/** + * @member {String} Details + */ +AppStoreApp.prototype['Details'] = undefined; + +/** + * @member {module:model/AppStoreApp.ConfigurationTypeEnum} ConfigurationType + */ +AppStoreApp.prototype['ConfigurationType'] = undefined; + +/** + * @member {module:model/AppStoreApp.StoreSelectorTypeEnum} StoreSelectorType + */ +AppStoreApp.prototype['StoreSelectorType'] = undefined; + +/** + * @member {Array.} FieldGroups + */ +AppStoreApp.prototype['FieldGroups'] = undefined; + +/** + * @member {String} SetupInstructions + */ +AppStoreApp.prototype['SetupInstructions'] = undefined; + +/** + * @member {String} ExternalSetupLink + */ +AppStoreApp.prototype['ExternalSetupLink'] = undefined; + +/** + * @member {module:model/AppStoreApp.TeammateAppAccessLevelEnum} TeammateAppAccessLevel + */ +AppStoreApp.prototype['TeammateAppAccessLevel'] = undefined; + +/** + * @member {module:model/AppStoreApp.PermissionsTypeEnum} PermissionsType + */ +AppStoreApp.prototype['PermissionsType'] = undefined; + +/** + * @member {module:model/AppStoreAppSupportInfo} Support + */ +AppStoreApp.prototype['Support'] = undefined; + +/** + * @member {String} ExternalFunctionActionUrl + */ +AppStoreApp.prototype['ExternalFunctionActionUrl'] = undefined; + +/** + * @member {String} ExternalFunctionSignatureKey + */ +AppStoreApp.prototype['ExternalFunctionSignatureKey'] = undefined; + +/** + * @member {Boolean} IsPaid + */ +AppStoreApp.prototype['IsPaid'] = undefined; + +/** + * @member {String} Name + */ +AppStoreApp.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +AppStoreApp.prototype['Description'] = undefined; + +/** + * @member {Boolean} IsEnabled + */ +AppStoreApp.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} Categories + */ +AppStoreApp.prototype['Categories'] = undefined; + +/** + * @member {Array.} Countries + */ +AppStoreApp.prototype['Countries'] = undefined; + +/** + * @member {String} DeveloperName + */ +AppStoreApp.prototype['DeveloperName'] = undefined; + + + + + +/** + * Allowed values for the VerificationStatus property. + * @enum {String} + * @readonly + */ +AppStoreApp['VerificationStatusEnum'] = { + + /** + * value: "Draft" + * @const + */ + "Draft": "Draft", + + /** + * value: "Submitted" + * @const + */ + "Submitted": "Submitted", + + /** + * value: "Verified" + * @const + */ + "Verified": "Verified" +}; + + +/** + * Allowed values for the ConfigurationType property. + * @enum {String} + * @readonly + */ +AppStoreApp['ConfigurationTypeEnum'] = { + + /** + * value: "ExternalLink" + * @const + */ + "ExternalLink": "ExternalLink", + + /** + * value: "FlipdishHosted" + * @const + */ + "FlipdishHosted": "FlipdishHosted" +}; + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +AppStoreApp['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + +/** + * Allowed values for the TeammateAppAccessLevel property. + * @enum {String} + * @readonly + */ +AppStoreApp['TeammateAppAccessLevelEnum'] = { + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger" +}; + + +/** + * Allowed values for the PermissionsType property. + * @enum {String} + * @readonly + */ +AppStoreApp['PermissionsTypeEnum'] = { + + /** + * value: "Teammate" + * @const + */ + "Teammate": "Teammate" +}; + + +/** + * Allowed values for the Categories property. + * @enum {String} + * @readonly + */ +AppStoreApp['CategoriesEnum'] = { + + /** + * value: "PointOfSale" + * @const + */ + "PointOfSale": "PointOfSale", + + /** + * value: "DeliveryAndLogistics" + * @const + */ + "DeliveryAndLogistics": "DeliveryAndLogistics", + + /** + * value: "CRM" + * @const + */ + "CRM": "CRM", + + /** + * value: "GiftCard" + * @const + */ + "GiftCard": "GiftCard", + + /** + * value: "Accounting" + * @const + */ + "Accounting": "Accounting", + + /** + * value: "LoyaltyAndMarketing" + * @const + */ + "LoyaltyAndMarketing": "LoyaltyAndMarketing", + + /** + * value: "Other" + * @const + */ + "Other": "Other" +}; + + +/** + * Allowed values for the Countries property. + * @enum {String} + * @readonly + */ +AppStoreApp['CountriesEnum'] = { + + /** + * value: "GB" + * @const + */ + "GB": "GB", + + /** + * value: "IE" + * @const + */ + "IE": "IE", + + /** + * value: "FR" + * @const + */ + "FR": "FR", + + /** + * value: "ES" + * @const + */ + "ES": "ES", + + /** + * value: "PT" + * @const + */ + "PT": "PT", + + /** + * value: "IT" + * @const + */ + "IT": "IT", + + /** + * value: "DE" + * @const + */ + "DE": "DE", + + /** + * value: "PL" + * @const + */ + "PL": "PL", + + /** + * value: "BE" + * @const + */ + "BE": "BE", + + /** + * value: "LU" + * @const + */ + "LU": "LU", + + /** + * value: "NL" + * @const + */ + "NL": "NL", + + /** + * value: "US" + * @const + */ + "US": "US", + + /** + * value: "CA" + * @const + */ + "CA": "CA", + + /** + * value: "BG" + * @const + */ + "BG": "BG", + + /** + * value: "MX" + * @const + */ + "MX": "MX", + + /** + * value: "AU" + * @const + */ + "AU": "AU", + + /** + * value: "NZ" + * @const + */ + "NZ": "NZ" +}; + + + +export default AppStoreApp; + diff --git a/src/model/AppStoreAppConfiguration.js b/src/model/AppStoreAppConfiguration.js new file mode 100644 index 00000000..aacdabf4 --- /dev/null +++ b/src/model/AppStoreAppConfiguration.js @@ -0,0 +1,633 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppSupportInfo from './AppStoreAppSupportInfo'; +import FieldGroup from './FieldGroup'; +import Setting from './Setting'; + +/** + * The AppStoreAppConfiguration model module. + * @module model/AppStoreAppConfiguration + * @version 1.0.0 + */ +class AppStoreAppConfiguration { + /** + * Constructs a new AppStoreAppConfiguration. + * @alias module:model/AppStoreAppConfiguration + * @param Id {String} + * @param AppId {String} + * @param AppStoreAppId {String} + * @param IsEnabled {Boolean} + * @param VerificationStatus {module:model/AppStoreAppConfiguration.VerificationStatusEnum} + * @param OAuthAppId {String} + * @param Internal {Boolean} + * @param Details {String} + * @param ConfigurationType {module:model/AppStoreAppConfiguration.ConfigurationTypeEnum} + * @param StoreSelectorType {module:model/AppStoreAppConfiguration.StoreSelectorTypeEnum} + * @param PermissionsType {module:model/AppStoreAppConfiguration.PermissionsTypeEnum} + * @param Name {String} + * @param Description {String} + * @param Categories {Array.} + * @param Countries {Array.} + */ + constructor(Id, AppId, AppStoreAppId, IsEnabled, VerificationStatus, OAuthAppId, Internal, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + + AppStoreAppConfiguration.initialize(this, Id, AppId, AppStoreAppId, IsEnabled, VerificationStatus, OAuthAppId, Internal, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Id, AppId, AppStoreAppId, IsEnabled, VerificationStatus, OAuthAppId, Internal, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + obj['Id'] = Id; + obj['AppId'] = AppId; + obj['AppStoreAppId'] = AppStoreAppId; + obj['IsEnabled'] = IsEnabled; + obj['VerificationStatus'] = VerificationStatus; + obj['OAuthAppId'] = OAuthAppId; + obj['Internal'] = Internal; + obj['Details'] = Details; + obj['ConfigurationType'] = ConfigurationType; + obj['StoreSelectorType'] = StoreSelectorType; + obj['PermissionsType'] = PermissionsType; + obj['Name'] = Name; + obj['Description'] = Description; + obj['Categories'] = Categories; + obj['Countries'] = Countries; + } + + /** + * Constructs a AppStoreAppConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreAppConfiguration} obj Optional instance to populate. + * @return {module:model/AppStoreAppConfiguration} The populated AppStoreAppConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreAppConfiguration(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppId')) { + obj['AppStoreAppId'] = ApiClient.convertToType(data['AppStoreAppId'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('Settings')) { + obj['Settings'] = ApiClient.convertToType(data['Settings'], [Setting]); + } + if (data.hasOwnProperty('VerificationStatus')) { + obj['VerificationStatus'] = ApiClient.convertToType(data['VerificationStatus'], 'String'); + } + if (data.hasOwnProperty('Logo')) { + obj['Logo'] = ApiClient.convertToType(data['Logo'], 'String'); + } + if (data.hasOwnProperty('OAuthAppId')) { + obj['OAuthAppId'] = ApiClient.convertToType(data['OAuthAppId'], 'String'); + } + if (data.hasOwnProperty('Internal')) { + obj['Internal'] = ApiClient.convertToType(data['Internal'], 'Boolean'); + } + if (data.hasOwnProperty('Details')) { + obj['Details'] = ApiClient.convertToType(data['Details'], 'String'); + } + if (data.hasOwnProperty('ConfigurationType')) { + obj['ConfigurationType'] = ApiClient.convertToType(data['ConfigurationType'], 'String'); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('FieldGroups')) { + obj['FieldGroups'] = ApiClient.convertToType(data['FieldGroups'], [FieldGroup]); + } + if (data.hasOwnProperty('SetupInstructions')) { + obj['SetupInstructions'] = ApiClient.convertToType(data['SetupInstructions'], 'String'); + } + if (data.hasOwnProperty('ExternalSetupLink')) { + obj['ExternalSetupLink'] = ApiClient.convertToType(data['ExternalSetupLink'], 'String'); + } + if (data.hasOwnProperty('TeammateAppAccessLevel')) { + obj['TeammateAppAccessLevel'] = ApiClient.convertToType(data['TeammateAppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('PermissionsType')) { + obj['PermissionsType'] = ApiClient.convertToType(data['PermissionsType'], 'String'); + } + if (data.hasOwnProperty('Support')) { + obj['Support'] = AppStoreAppSupportInfo.constructFromObject(data['Support']); + } + if (data.hasOwnProperty('ExternalFunctionActionUrl')) { + obj['ExternalFunctionActionUrl'] = ApiClient.convertToType(data['ExternalFunctionActionUrl'], 'String'); + } + if (data.hasOwnProperty('ExternalFunctionSignatureKey')) { + obj['ExternalFunctionSignatureKey'] = ApiClient.convertToType(data['ExternalFunctionSignatureKey'], 'String'); + } + if (data.hasOwnProperty('IsPaid')) { + obj['IsPaid'] = ApiClient.convertToType(data['IsPaid'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Categories')) { + obj['Categories'] = ApiClient.convertToType(data['Categories'], ['String']); + } + if (data.hasOwnProperty('Countries')) { + obj['Countries'] = ApiClient.convertToType(data['Countries'], ['String']); + } + if (data.hasOwnProperty('DeveloperName')) { + obj['DeveloperName'] = ApiClient.convertToType(data['DeveloperName'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Id + */ +AppStoreAppConfiguration.prototype['Id'] = undefined; + +/** + * @member {String} AppId + */ +AppStoreAppConfiguration.prototype['AppId'] = undefined; + +/** + * @member {String} AppStoreAppId + */ +AppStoreAppConfiguration.prototype['AppStoreAppId'] = undefined; + +/** + * @member {Boolean} IsEnabled + */ +AppStoreAppConfiguration.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} StoreIds + */ +AppStoreAppConfiguration.prototype['StoreIds'] = undefined; + +/** + * @member {Array.} Settings + */ +AppStoreAppConfiguration.prototype['Settings'] = undefined; + +/** + * @member {module:model/AppStoreAppConfiguration.VerificationStatusEnum} VerificationStatus + */ +AppStoreAppConfiguration.prototype['VerificationStatus'] = undefined; + +/** + * @member {String} Logo + */ +AppStoreAppConfiguration.prototype['Logo'] = undefined; + +/** + * @member {String} OAuthAppId + */ +AppStoreAppConfiguration.prototype['OAuthAppId'] = undefined; + +/** + * @member {Boolean} Internal + */ +AppStoreAppConfiguration.prototype['Internal'] = undefined; + +/** + * @member {String} Details + */ +AppStoreAppConfiguration.prototype['Details'] = undefined; + +/** + * @member {module:model/AppStoreAppConfiguration.ConfigurationTypeEnum} ConfigurationType + */ +AppStoreAppConfiguration.prototype['ConfigurationType'] = undefined; + +/** + * @member {module:model/AppStoreAppConfiguration.StoreSelectorTypeEnum} StoreSelectorType + */ +AppStoreAppConfiguration.prototype['StoreSelectorType'] = undefined; + +/** + * @member {Array.} FieldGroups + */ +AppStoreAppConfiguration.prototype['FieldGroups'] = undefined; + +/** + * @member {String} SetupInstructions + */ +AppStoreAppConfiguration.prototype['SetupInstructions'] = undefined; + +/** + * @member {String} ExternalSetupLink + */ +AppStoreAppConfiguration.prototype['ExternalSetupLink'] = undefined; + +/** + * @member {module:model/AppStoreAppConfiguration.TeammateAppAccessLevelEnum} TeammateAppAccessLevel + */ +AppStoreAppConfiguration.prototype['TeammateAppAccessLevel'] = undefined; + +/** + * @member {module:model/AppStoreAppConfiguration.PermissionsTypeEnum} PermissionsType + */ +AppStoreAppConfiguration.prototype['PermissionsType'] = undefined; + +/** + * @member {module:model/AppStoreAppSupportInfo} Support + */ +AppStoreAppConfiguration.prototype['Support'] = undefined; + +/** + * @member {String} ExternalFunctionActionUrl + */ +AppStoreAppConfiguration.prototype['ExternalFunctionActionUrl'] = undefined; + +/** + * @member {String} ExternalFunctionSignatureKey + */ +AppStoreAppConfiguration.prototype['ExternalFunctionSignatureKey'] = undefined; + +/** + * @member {Boolean} IsPaid + */ +AppStoreAppConfiguration.prototype['IsPaid'] = undefined; + +/** + * @member {String} Name + */ +AppStoreAppConfiguration.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +AppStoreAppConfiguration.prototype['Description'] = undefined; + +/** + * @member {Array.} Categories + */ +AppStoreAppConfiguration.prototype['Categories'] = undefined; + +/** + * @member {Array.} Countries + */ +AppStoreAppConfiguration.prototype['Countries'] = undefined; + +/** + * @member {String} DeveloperName + */ +AppStoreAppConfiguration.prototype['DeveloperName'] = undefined; + + + + + +/** + * Allowed values for the VerificationStatus property. + * @enum {String} + * @readonly + */ +AppStoreAppConfiguration['VerificationStatusEnum'] = { + + /** + * value: "Draft" + * @const + */ + "Draft": "Draft", + + /** + * value: "Submitted" + * @const + */ + "Submitted": "Submitted", + + /** + * value: "Verified" + * @const + */ + "Verified": "Verified" +}; + + +/** + * Allowed values for the ConfigurationType property. + * @enum {String} + * @readonly + */ +AppStoreAppConfiguration['ConfigurationTypeEnum'] = { + + /** + * value: "ExternalLink" + * @const + */ + "ExternalLink": "ExternalLink", + + /** + * value: "FlipdishHosted" + * @const + */ + "FlipdishHosted": "FlipdishHosted" +}; + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +AppStoreAppConfiguration['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + +/** + * Allowed values for the TeammateAppAccessLevel property. + * @enum {String} + * @readonly + */ +AppStoreAppConfiguration['TeammateAppAccessLevelEnum'] = { + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger" +}; + + +/** + * Allowed values for the PermissionsType property. + * @enum {String} + * @readonly + */ +AppStoreAppConfiguration['PermissionsTypeEnum'] = { + + /** + * value: "Teammate" + * @const + */ + "Teammate": "Teammate" +}; + + +/** + * Allowed values for the Categories property. + * @enum {String} + * @readonly + */ +AppStoreAppConfiguration['CategoriesEnum'] = { + + /** + * value: "PointOfSale" + * @const + */ + "PointOfSale": "PointOfSale", + + /** + * value: "DeliveryAndLogistics" + * @const + */ + "DeliveryAndLogistics": "DeliveryAndLogistics", + + /** + * value: "CRM" + * @const + */ + "CRM": "CRM", + + /** + * value: "GiftCard" + * @const + */ + "GiftCard": "GiftCard", + + /** + * value: "Accounting" + * @const + */ + "Accounting": "Accounting", + + /** + * value: "LoyaltyAndMarketing" + * @const + */ + "LoyaltyAndMarketing": "LoyaltyAndMarketing", + + /** + * value: "Other" + * @const + */ + "Other": "Other" +}; + + +/** + * Allowed values for the Countries property. + * @enum {String} + * @readonly + */ +AppStoreAppConfiguration['CountriesEnum'] = { + + /** + * value: "GB" + * @const + */ + "GB": "GB", + + /** + * value: "IE" + * @const + */ + "IE": "IE", + + /** + * value: "FR" + * @const + */ + "FR": "FR", + + /** + * value: "ES" + * @const + */ + "ES": "ES", + + /** + * value: "PT" + * @const + */ + "PT": "PT", + + /** + * value: "IT" + * @const + */ + "IT": "IT", + + /** + * value: "DE" + * @const + */ + "DE": "DE", + + /** + * value: "PL" + * @const + */ + "PL": "PL", + + /** + * value: "BE" + * @const + */ + "BE": "BE", + + /** + * value: "LU" + * @const + */ + "LU": "LU", + + /** + * value: "NL" + * @const + */ + "NL": "NL", + + /** + * value: "US" + * @const + */ + "US": "US", + + /** + * value: "CA" + * @const + */ + "CA": "CA", + + /** + * value: "BG" + * @const + */ + "BG": "BG", + + /** + * value: "MX" + * @const + */ + "MX": "MX", + + /** + * value: "AU" + * @const + */ + "AU": "AU", + + /** + * value: "NZ" + * @const + */ + "NZ": "NZ" +}; + + + +export default AppStoreAppConfiguration; + diff --git a/src/model/AppStoreAppConfigurationSummary.js b/src/model/AppStoreAppConfigurationSummary.js new file mode 100644 index 00000000..43769407 --- /dev/null +++ b/src/model/AppStoreAppConfigurationSummary.js @@ -0,0 +1,228 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ConfiguredStore from './ConfiguredStore'; + +/** + * The AppStoreAppConfigurationSummary model module. + * @module model/AppStoreAppConfigurationSummary + * @version 1.0.0 + */ +class AppStoreAppConfigurationSummary { + /** + * Constructs a new AppStoreAppConfigurationSummary. + * @alias module:model/AppStoreAppConfigurationSummary + * @param Id {String} + * @param AppId {String} + * @param IsEnabled {Boolean} + * @param Stores {Array.} + * @param ConfigurationType {module:model/AppStoreAppConfigurationSummary.ConfigurationTypeEnum} + * @param StoreSelectorType {module:model/AppStoreAppConfigurationSummary.StoreSelectorTypeEnum} + * @param Internal {Boolean} + * @param AppStoreAppId {String} + * @param Name {String} + * @param Description {String} + */ + constructor(Id, AppId, IsEnabled, Stores, ConfigurationType, StoreSelectorType, Internal, AppStoreAppId, Name, Description) { + + AppStoreAppConfigurationSummary.initialize(this, Id, AppId, IsEnabled, Stores, ConfigurationType, StoreSelectorType, Internal, AppStoreAppId, Name, Description); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Id, AppId, IsEnabled, Stores, ConfigurationType, StoreSelectorType, Internal, AppStoreAppId, Name, Description) { + obj['Id'] = Id; + obj['AppId'] = AppId; + obj['IsEnabled'] = IsEnabled; + obj['Stores'] = Stores; + obj['ConfigurationType'] = ConfigurationType; + obj['StoreSelectorType'] = StoreSelectorType; + obj['Internal'] = Internal; + obj['AppStoreAppId'] = AppStoreAppId; + obj['Name'] = Name; + obj['Description'] = Description; + } + + /** + * Constructs a AppStoreAppConfigurationSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreAppConfigurationSummary} obj Optional instance to populate. + * @return {module:model/AppStoreAppConfigurationSummary} The populated AppStoreAppConfigurationSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreAppConfigurationSummary(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], [ConfiguredStore]); + } + if (data.hasOwnProperty('ConfigurationType')) { + obj['ConfigurationType'] = ApiClient.convertToType(data['ConfigurationType'], 'String'); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('Internal')) { + obj['Internal'] = ApiClient.convertToType(data['Internal'], 'Boolean'); + } + if (data.hasOwnProperty('AppStoreAppId')) { + obj['AppStoreAppId'] = ApiClient.convertToType(data['AppStoreAppId'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Logo')) { + obj['Logo'] = ApiClient.convertToType(data['Logo'], 'String'); + } + if (data.hasOwnProperty('DeveloperName')) { + obj['DeveloperName'] = ApiClient.convertToType(data['DeveloperName'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Id + */ +AppStoreAppConfigurationSummary.prototype['Id'] = undefined; + +/** + * @member {String} AppId + */ +AppStoreAppConfigurationSummary.prototype['AppId'] = undefined; + +/** + * @member {Boolean} IsEnabled + */ +AppStoreAppConfigurationSummary.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} Stores + */ +AppStoreAppConfigurationSummary.prototype['Stores'] = undefined; + +/** + * @member {module:model/AppStoreAppConfigurationSummary.ConfigurationTypeEnum} ConfigurationType + */ +AppStoreAppConfigurationSummary.prototype['ConfigurationType'] = undefined; + +/** + * @member {module:model/AppStoreAppConfigurationSummary.StoreSelectorTypeEnum} StoreSelectorType + */ +AppStoreAppConfigurationSummary.prototype['StoreSelectorType'] = undefined; + +/** + * @member {Boolean} Internal + */ +AppStoreAppConfigurationSummary.prototype['Internal'] = undefined; + +/** + * @member {String} AppStoreAppId + */ +AppStoreAppConfigurationSummary.prototype['AppStoreAppId'] = undefined; + +/** + * @member {String} Name + */ +AppStoreAppConfigurationSummary.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +AppStoreAppConfigurationSummary.prototype['Description'] = undefined; + +/** + * @member {String} Logo + */ +AppStoreAppConfigurationSummary.prototype['Logo'] = undefined; + +/** + * @member {String} DeveloperName + */ +AppStoreAppConfigurationSummary.prototype['DeveloperName'] = undefined; + + + + + +/** + * Allowed values for the ConfigurationType property. + * @enum {String} + * @readonly + */ +AppStoreAppConfigurationSummary['ConfigurationTypeEnum'] = { + + /** + * value: "ExternalLink" + * @const + */ + "ExternalLink": "ExternalLink", + + /** + * value: "FlipdishHosted" + * @const + */ + "FlipdishHosted": "FlipdishHosted" +}; + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +AppStoreAppConfigurationSummary['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + + +export default AppStoreAppConfigurationSummary; + diff --git a/src/model/AppStoreAppEntitlements.js b/src/model/AppStoreAppEntitlements.js new file mode 100644 index 00000000..7a102a85 --- /dev/null +++ b/src/model/AppStoreAppEntitlements.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppStoreAppEntitlements model module. + * @module model/AppStoreAppEntitlements + * @version 1.0.0 + */ +class AppStoreAppEntitlements { + /** + * Constructs a new AppStoreAppEntitlements. + * @alias module:model/AppStoreAppEntitlements + */ + constructor() { + + AppStoreAppEntitlements.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppStoreAppEntitlements from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreAppEntitlements} obj Optional instance to populate. + * @return {module:model/AppStoreAppEntitlements} The populated AppStoreAppEntitlements instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreAppEntitlements(); + + if (data.hasOwnProperty('EntitlementQuantity')) { + obj['EntitlementQuantity'] = ApiClient.convertToType(data['EntitlementQuantity'], 'Number'); + } + if (data.hasOwnProperty('CurrentUsage')) { + obj['CurrentUsage'] = ApiClient.convertToType(data['CurrentUsage'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} EntitlementQuantity + */ +AppStoreAppEntitlements.prototype['EntitlementQuantity'] = undefined; + +/** + * @member {Number} CurrentUsage + */ +AppStoreAppEntitlements.prototype['CurrentUsage'] = undefined; + + + + + + +export default AppStoreAppEntitlements; + diff --git a/src/model/AppStoreAppSummary.js b/src/model/AppStoreAppSummary.js new file mode 100644 index 00000000..73fc4de1 --- /dev/null +++ b/src/model/AppStoreAppSummary.js @@ -0,0 +1,346 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppStoreAppSummary model module. + * @module model/AppStoreAppSummary + * @version 1.0.0 + */ +class AppStoreAppSummary { + /** + * Constructs a new AppStoreAppSummary. + * @alias module:model/AppStoreAppSummary + * @param Id {String} + * @param VerificationStatus {module:model/AppStoreAppSummary.VerificationStatusEnum} + * @param Internal {Boolean} + * @param Name {String} + * @param Description {String} + * @param Categories {Array.} + * @param Countries {Array.} + */ + constructor(Id, VerificationStatus, Internal, Name, Description, Categories, Countries) { + + AppStoreAppSummary.initialize(this, Id, VerificationStatus, Internal, Name, Description, Categories, Countries); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Id, VerificationStatus, Internal, Name, Description, Categories, Countries) { + obj['Id'] = Id; + obj['VerificationStatus'] = VerificationStatus; + obj['Internal'] = Internal; + obj['Name'] = Name; + obj['Description'] = Description; + obj['Categories'] = Categories; + obj['Countries'] = Countries; + } + + /** + * Constructs a AppStoreAppSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreAppSummary} obj Optional instance to populate. + * @return {module:model/AppStoreAppSummary} The populated AppStoreAppSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreAppSummary(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('VerificationStatus')) { + obj['VerificationStatus'] = ApiClient.convertToType(data['VerificationStatus'], 'String'); + } + if (data.hasOwnProperty('Logo')) { + obj['Logo'] = ApiClient.convertToType(data['Logo'], 'String'); + } + if (data.hasOwnProperty('Internal')) { + obj['Internal'] = ApiClient.convertToType(data['Internal'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Categories')) { + obj['Categories'] = ApiClient.convertToType(data['Categories'], ['String']); + } + if (data.hasOwnProperty('Countries')) { + obj['Countries'] = ApiClient.convertToType(data['Countries'], ['String']); + } + if (data.hasOwnProperty('DeveloperName')) { + obj['DeveloperName'] = ApiClient.convertToType(data['DeveloperName'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Id + */ +AppStoreAppSummary.prototype['Id'] = undefined; + +/** + * @member {module:model/AppStoreAppSummary.VerificationStatusEnum} VerificationStatus + */ +AppStoreAppSummary.prototype['VerificationStatus'] = undefined; + +/** + * @member {String} Logo + */ +AppStoreAppSummary.prototype['Logo'] = undefined; + +/** + * @member {Boolean} Internal + */ +AppStoreAppSummary.prototype['Internal'] = undefined; + +/** + * @member {String} Name + */ +AppStoreAppSummary.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +AppStoreAppSummary.prototype['Description'] = undefined; + +/** + * @member {Boolean} IsEnabled + */ +AppStoreAppSummary.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} Categories + */ +AppStoreAppSummary.prototype['Categories'] = undefined; + +/** + * @member {Array.} Countries + */ +AppStoreAppSummary.prototype['Countries'] = undefined; + +/** + * @member {String} DeveloperName + */ +AppStoreAppSummary.prototype['DeveloperName'] = undefined; + + + + + +/** + * Allowed values for the VerificationStatus property. + * @enum {String} + * @readonly + */ +AppStoreAppSummary['VerificationStatusEnum'] = { + + /** + * value: "Draft" + * @const + */ + "Draft": "Draft", + + /** + * value: "Submitted" + * @const + */ + "Submitted": "Submitted", + + /** + * value: "Verified" + * @const + */ + "Verified": "Verified" +}; + + +/** + * Allowed values for the Categories property. + * @enum {String} + * @readonly + */ +AppStoreAppSummary['CategoriesEnum'] = { + + /** + * value: "PointOfSale" + * @const + */ + "PointOfSale": "PointOfSale", + + /** + * value: "DeliveryAndLogistics" + * @const + */ + "DeliveryAndLogistics": "DeliveryAndLogistics", + + /** + * value: "CRM" + * @const + */ + "CRM": "CRM", + + /** + * value: "GiftCard" + * @const + */ + "GiftCard": "GiftCard", + + /** + * value: "Accounting" + * @const + */ + "Accounting": "Accounting", + + /** + * value: "LoyaltyAndMarketing" + * @const + */ + "LoyaltyAndMarketing": "LoyaltyAndMarketing", + + /** + * value: "Other" + * @const + */ + "Other": "Other" +}; + + +/** + * Allowed values for the Countries property. + * @enum {String} + * @readonly + */ +AppStoreAppSummary['CountriesEnum'] = { + + /** + * value: "GB" + * @const + */ + "GB": "GB", + + /** + * value: "IE" + * @const + */ + "IE": "IE", + + /** + * value: "FR" + * @const + */ + "FR": "FR", + + /** + * value: "ES" + * @const + */ + "ES": "ES", + + /** + * value: "PT" + * @const + */ + "PT": "PT", + + /** + * value: "IT" + * @const + */ + "IT": "IT", + + /** + * value: "DE" + * @const + */ + "DE": "DE", + + /** + * value: "PL" + * @const + */ + "PL": "PL", + + /** + * value: "BE" + * @const + */ + "BE": "BE", + + /** + * value: "LU" + * @const + */ + "LU": "LU", + + /** + * value: "NL" + * @const + */ + "NL": "NL", + + /** + * value: "US" + * @const + */ + "US": "US", + + /** + * value: "CA" + * @const + */ + "CA": "CA", + + /** + * value: "BG" + * @const + */ + "BG": "BG", + + /** + * value: "MX" + * @const + */ + "MX": "MX", + + /** + * value: "AU" + * @const + */ + "AU": "AU", + + /** + * value: "NZ" + * @const + */ + "NZ": "NZ" +}; + + + +export default AppStoreAppSummary; + diff --git a/src/model/AppStoreAppSupportInfo.js b/src/model/AppStoreAppSupportInfo.js new file mode 100644 index 00000000..bd61585f --- /dev/null +++ b/src/model/AppStoreAppSupportInfo.js @@ -0,0 +1,111 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppStoreAppSupportInfo model module. + * @module model/AppStoreAppSupportInfo + * @version 1.0.0 + */ +class AppStoreAppSupportInfo { + /** + * Constructs a new AppStoreAppSupportInfo. + * @alias module:model/AppStoreAppSupportInfo + */ + constructor() { + + AppStoreAppSupportInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppStoreAppSupportInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreAppSupportInfo} obj Optional instance to populate. + * @return {module:model/AppStoreAppSupportInfo} The populated AppStoreAppSupportInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreAppSupportInfo(); + + if (data.hasOwnProperty('PrivacyPolicy')) { + obj['PrivacyPolicy'] = ApiClient.convertToType(data['PrivacyPolicy'], 'String'); + } + if (data.hasOwnProperty('TermsOfUse')) { + obj['TermsOfUse'] = ApiClient.convertToType(data['TermsOfUse'], 'String'); + } + if (data.hasOwnProperty('CompanyWebsite')) { + obj['CompanyWebsite'] = ApiClient.convertToType(data['CompanyWebsite'], 'String'); + } + if (data.hasOwnProperty('LearnMore')) { + obj['LearnMore'] = ApiClient.convertToType(data['LearnMore'], 'String'); + } + if (data.hasOwnProperty('InstallationMessage')) { + obj['InstallationMessage'] = ApiClient.convertToType(data['InstallationMessage'], 'String'); + } + if (data.hasOwnProperty('SupportEmail')) { + obj['SupportEmail'] = ApiClient.convertToType(data['SupportEmail'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} PrivacyPolicy + */ +AppStoreAppSupportInfo.prototype['PrivacyPolicy'] = undefined; + +/** + * @member {String} TermsOfUse + */ +AppStoreAppSupportInfo.prototype['TermsOfUse'] = undefined; + +/** + * @member {String} CompanyWebsite + */ +AppStoreAppSupportInfo.prototype['CompanyWebsite'] = undefined; + +/** + * @member {String} LearnMore + */ +AppStoreAppSupportInfo.prototype['LearnMore'] = undefined; + +/** + * @member {String} InstallationMessage + */ +AppStoreAppSupportInfo.prototype['InstallationMessage'] = undefined; + +/** + * @member {String} SupportEmail + */ +AppStoreAppSupportInfo.prototype['SupportEmail'] = undefined; + + + + + + +export default AppStoreAppSupportInfo; + diff --git a/src/model/AppStoreConfigCreatedEvent.js b/src/model/AppStoreConfigCreatedEvent.js new file mode 100644 index 00000000..4f06295c --- /dev/null +++ b/src/model/AppStoreConfigCreatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The AppStoreConfigCreatedEvent model module. + * @module model/AppStoreConfigCreatedEvent + * @version 1.0.0 + */ +class AppStoreConfigCreatedEvent { + /** + * Constructs a new AppStoreConfigCreatedEvent. + * AppStore Config Created event + * @alias module:model/AppStoreConfigCreatedEvent + */ + constructor() { + + AppStoreConfigCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppStoreConfigCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreConfigCreatedEvent} obj Optional instance to populate. + * @return {module:model/AppStoreConfigCreatedEvent} The populated AppStoreConfigCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreConfigCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppId')) { + obj['AppStoreAppId'] = ApiClient.convertToType(data['AppStoreAppId'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppConfigurationId')) { + obj['AppStoreAppConfigurationId'] = ApiClient.convertToType(data['AppStoreAppConfigurationId'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +AppStoreConfigCreatedEvent.prototype['EventName'] = undefined; + +/** + * App Store App Id + * @member {String} AppStoreAppId + */ +AppStoreConfigCreatedEvent.prototype['AppStoreAppId'] = undefined; + +/** + * App Store Configuration Id + * @member {String} AppStoreAppConfigurationId + */ +AppStoreConfigCreatedEvent.prototype['AppStoreAppConfigurationId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +AppStoreConfigCreatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +AppStoreConfigCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +AppStoreConfigCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +AppStoreConfigCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +AppStoreConfigCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +AppStoreConfigCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +AppStoreConfigCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default AppStoreConfigCreatedEvent; + diff --git a/src/model/AppStoreConfigDeletedEvent.js b/src/model/AppStoreConfigDeletedEvent.js new file mode 100644 index 00000000..8443c772 --- /dev/null +++ b/src/model/AppStoreConfigDeletedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The AppStoreConfigDeletedEvent model module. + * @module model/AppStoreConfigDeletedEvent + * @version 1.0.0 + */ +class AppStoreConfigDeletedEvent { + /** + * Constructs a new AppStoreConfigDeletedEvent. + * AppStore Config Deleted event + * @alias module:model/AppStoreConfigDeletedEvent + */ + constructor() { + + AppStoreConfigDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppStoreConfigDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreConfigDeletedEvent} obj Optional instance to populate. + * @return {module:model/AppStoreConfigDeletedEvent} The populated AppStoreConfigDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreConfigDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppId')) { + obj['AppStoreAppId'] = ApiClient.convertToType(data['AppStoreAppId'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppConfigurationId')) { + obj['AppStoreAppConfigurationId'] = ApiClient.convertToType(data['AppStoreAppConfigurationId'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +AppStoreConfigDeletedEvent.prototype['EventName'] = undefined; + +/** + * App Store Id + * @member {String} AppStoreAppId + */ +AppStoreConfigDeletedEvent.prototype['AppStoreAppId'] = undefined; + +/** + * App Store Configuration Id + * @member {String} AppStoreAppConfigurationId + */ +AppStoreConfigDeletedEvent.prototype['AppStoreAppConfigurationId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +AppStoreConfigDeletedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +AppStoreConfigDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +AppStoreConfigDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +AppStoreConfigDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +AppStoreConfigDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +AppStoreConfigDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +AppStoreConfigDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default AppStoreConfigDeletedEvent; + diff --git a/src/model/AppStoreConfigUpdatedEvent.js b/src/model/AppStoreConfigUpdatedEvent.js new file mode 100644 index 00000000..9c38041e --- /dev/null +++ b/src/model/AppStoreConfigUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UpdateAppStoreAppConfigurationWebhookDTO from './UpdateAppStoreAppConfigurationWebhookDTO'; +import UserEventInfo from './UserEventInfo'; + +/** + * The AppStoreConfigUpdatedEvent model module. + * @module model/AppStoreConfigUpdatedEvent + * @version 1.0.0 + */ +class AppStoreConfigUpdatedEvent { + /** + * Constructs a new AppStoreConfigUpdatedEvent. + * AppStore Config Updated event + * @alias module:model/AppStoreConfigUpdatedEvent + */ + constructor() { + + AppStoreConfigUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppStoreConfigUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreConfigUpdatedEvent} obj Optional instance to populate. + * @return {module:model/AppStoreConfigUpdatedEvent} The populated AppStoreConfigUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreConfigUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppId')) { + obj['AppStoreAppId'] = ApiClient.convertToType(data['AppStoreAppId'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppConfiguration')) { + obj['AppStoreAppConfiguration'] = UpdateAppStoreAppConfigurationWebhookDTO.constructFromObject(data['AppStoreAppConfiguration']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +AppStoreConfigUpdatedEvent.prototype['EventName'] = undefined; + +/** + * App Store Id + * @member {String} AppStoreAppId + */ +AppStoreConfigUpdatedEvent.prototype['AppStoreAppId'] = undefined; + +/** + * @member {module:model/UpdateAppStoreAppConfigurationWebhookDTO} AppStoreAppConfiguration + */ +AppStoreConfigUpdatedEvent.prototype['AppStoreAppConfiguration'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +AppStoreConfigUpdatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +AppStoreConfigUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +AppStoreConfigUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +AppStoreConfigUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +AppStoreConfigUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +AppStoreConfigUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +AppStoreConfigUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default AppStoreConfigUpdatedEvent; + diff --git a/src/model/AppStoreSubscriptionChangeJobUpdatedEvent.js b/src/model/AppStoreSubscriptionChangeJobUpdatedEvent.js new file mode 100644 index 00000000..5eff6648 --- /dev/null +++ b/src/model/AppStoreSubscriptionChangeJobUpdatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AppStoreSubscriptionChangeJobUpdatedEvent model module. + * @module model/AppStoreSubscriptionChangeJobUpdatedEvent + * @version 1.0.0 + */ +class AppStoreSubscriptionChangeJobUpdatedEvent { + /** + * Constructs a new AppStoreSubscriptionChangeJobUpdatedEvent. + * Subscription change job status updated event + * @alias module:model/AppStoreSubscriptionChangeJobUpdatedEvent + */ + constructor() { + + AppStoreSubscriptionChangeJobUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppStoreSubscriptionChangeJobUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppStoreSubscriptionChangeJobUpdatedEvent} obj Optional instance to populate. + * @return {module:model/AppStoreSubscriptionChangeJobUpdatedEvent} The populated AppStoreSubscriptionChangeJobUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppStoreSubscriptionChangeJobUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('AppStoreAppId')) { + obj['AppStoreAppId'] = ApiClient.convertToType(data['AppStoreAppId'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['EventName'] = undefined; + +/** + * App Store Id + * @member {String} AppStoreAppId + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['AppStoreAppId'] = undefined; + +/** + * Status + * @member {String} Status + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['Status'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +AppStoreSubscriptionChangeJobUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default AppStoreSubscriptionChangeJobUpdatedEvent; + diff --git a/src/model/AppUpdatedEvent.js b/src/model/AppUpdatedEvent.js new file mode 100644 index 00000000..df9a4a2f --- /dev/null +++ b/src/model/AppUpdatedEvent.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import App from './App'; +import UserEventInfo from './UserEventInfo'; + +/** + * The AppUpdatedEvent model module. + * @module model/AppUpdatedEvent + * @version 1.0.0 + */ +class AppUpdatedEvent { + /** + * Constructs a new AppUpdatedEvent. + * Application updated event + * @alias module:model/AppUpdatedEvent + */ + constructor() { + + AppUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AppUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AppUpdatedEvent} obj Optional instance to populate. + * @return {module:model/AppUpdatedEvent} The populated AppUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AppUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Changes')) { + obj['Changes'] = ApiClient.convertToType(data['Changes'], 'String'); + } + if (data.hasOwnProperty('AppName')) { + obj['AppName'] = ApiClient.convertToType(data['AppName'], 'String'); + } + if (data.hasOwnProperty('CountryId')) { + obj['CountryId'] = ApiClient.convertToType(data['CountryId'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('App')) { + obj['App'] = App.constructFromObject(data['App']); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +AppUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +AppUpdatedEvent.prototype['Description'] = undefined; + +/** + * A summary of changes made + * @member {String} Changes + */ +AppUpdatedEvent.prototype['Changes'] = undefined; + +/** + * App Name + * @member {String} AppName + */ +AppUpdatedEvent.prototype['AppName'] = undefined; + +/** + * Country Id + * @member {String} CountryId + */ +AppUpdatedEvent.prototype['CountryId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +AppUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/App} App + */ +AppUpdatedEvent.prototype['App'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +AppUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +AppUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +AppUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +AppUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +AppUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +AppUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default AppUpdatedEvent; + diff --git a/src/model/AssignedBankAccount.js b/src/model/AssignedBankAccount.js new file mode 100644 index 00000000..854c9bce --- /dev/null +++ b/src/model/AssignedBankAccount.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AssignedBankAccount model module. + * @module model/AssignedBankAccount + * @version 1.0.0 + */ +class AssignedBankAccount { + /** + * Constructs a new AssignedBankAccount. + * Assigned to Store Bank Account + * @alias module:model/AssignedBankAccount + */ + constructor() { + + AssignedBankAccount.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AssignedBankAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AssignedBankAccount} obj Optional instance to populate. + * @return {module:model/AssignedBankAccount} The populated AssignedBankAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AssignedBankAccount(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('BankAccountName')) { + obj['BankAccountName'] = ApiClient.convertToType(data['BankAccountName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of Bank Account + * @member {Number} Id + */ +AssignedBankAccount.prototype['Id'] = undefined; + +/** + * Name of Bank Account + * @member {String} BankAccountName + */ +AssignedBankAccount.prototype['BankAccountName'] = undefined; + + + + + + +export default AssignedBankAccount; + diff --git a/src/model/AuditLogFieldChangeInformation.js b/src/model/AuditLogFieldChangeInformation.js new file mode 100644 index 00000000..03ac7fef --- /dev/null +++ b/src/model/AuditLogFieldChangeInformation.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AuditLogFieldChangeInformation model module. + * @module model/AuditLogFieldChangeInformation + * @version 1.0.0 + */ +class AuditLogFieldChangeInformation { + /** + * Constructs a new AuditLogFieldChangeInformation. + * Change information for a field + * @alias module:model/AuditLogFieldChangeInformation + */ + constructor() { + + AuditLogFieldChangeInformation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AuditLogFieldChangeInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuditLogFieldChangeInformation} obj Optional instance to populate. + * @return {module:model/AuditLogFieldChangeInformation} The populated AuditLogFieldChangeInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuditLogFieldChangeInformation(); + + if (data.hasOwnProperty('Path')) { + obj['Path'] = ApiClient.convertToType(data['Path'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('OldValue')) { + obj['OldValue'] = ApiClient.convertToType(data['OldValue'], 'String'); + } + if (data.hasOwnProperty('NewValue')) { + obj['NewValue'] = ApiClient.convertToType(data['NewValue'], 'String'); + } + } + return obj; + } + + +} + +/** + * Path (hierarchy) + * @member {String} Path + */ +AuditLogFieldChangeInformation.prototype['Path'] = undefined; + +/** + * Name of field + * @member {String} Name + */ +AuditLogFieldChangeInformation.prototype['Name'] = undefined; + +/** + * Key (code) of field + * @member {String} Key + */ +AuditLogFieldChangeInformation.prototype['Key'] = undefined; + +/** + * Old value + * @member {String} OldValue + */ +AuditLogFieldChangeInformation.prototype['OldValue'] = undefined; + +/** + * New value + * @member {String} NewValue + */ +AuditLogFieldChangeInformation.prototype['NewValue'] = undefined; + + + + + + +export default AuditLogFieldChangeInformation; + diff --git a/src/model/BalanceDetails.js b/src/model/BalanceDetails.js new file mode 100644 index 00000000..024f870e --- /dev/null +++ b/src/model/BalanceDetails.js @@ -0,0 +1,80 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The BalanceDetails model module. + * @module model/BalanceDetails + * @version 1.0.0 + */ +class BalanceDetails { + /** + * Constructs a new BalanceDetails. + * Period opening and closing balance + * @alias module:model/BalanceDetails + */ + constructor() { + + BalanceDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BalanceDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BalanceDetails} obj Optional instance to populate. + * @return {module:model/BalanceDetails} The populated BalanceDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BalanceDetails(); + + if (data.hasOwnProperty('OpeningBalance')) { + obj['OpeningBalance'] = ApiClient.convertToType(data['OpeningBalance'], 'Number'); + } + if (data.hasOwnProperty('ClosingBalance')) { + obj['ClosingBalance'] = ApiClient.convertToType(data['ClosingBalance'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} OpeningBalance + */ +BalanceDetails.prototype['OpeningBalance'] = undefined; + +/** + * @member {Number} ClosingBalance + */ +BalanceDetails.prototype['ClosingBalance'] = undefined; + + + + + + +export default BalanceDetails; + diff --git a/src/model/BankAccount.js b/src/model/BankAccount.js new file mode 100644 index 00000000..1fd634ba --- /dev/null +++ b/src/model/BankAccount.js @@ -0,0 +1,224 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldKeyValuePair from './AccountFieldKeyValuePair'; + +/** + * The BankAccount model module. + * @module model/BankAccount + * @version 1.0.0 + */ +class BankAccount { + /** + * Constructs a new BankAccount. + * BANK ACCOUNT + * @alias module:model/BankAccount + */ + constructor() { + + BankAccount.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccount} obj Optional instance to populate. + * @return {module:model/BankAccount} The populated BankAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccount(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('Iban')) { + obj['Iban'] = ApiClient.convertToType(data['Iban'], 'String'); + } + if (data.hasOwnProperty('Swift')) { + obj['Swift'] = ApiClient.convertToType(data['Swift'], 'String'); + } + if (data.hasOwnProperty('PopulatedAccountFields')) { + obj['PopulatedAccountFields'] = ApiClient.convertToType(data['PopulatedAccountFields'], [AccountFieldKeyValuePair]); + } + if (data.hasOwnProperty('AccountState')) { + obj['AccountState'] = ApiClient.convertToType(data['AccountState'], 'String'); + } + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], ['String']); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('BankAddress')) { + obj['BankAddress'] = ApiClient.convertToType(data['BankAddress'], 'String'); + } + if (data.hasOwnProperty('BankCountryCode')) { + obj['BankCountryCode'] = ApiClient.convertToType(data['BankCountryCode'], 'String'); + } + if (data.hasOwnProperty('AccountHolderAddress')) { + obj['AccountHolderAddress'] = ApiClient.convertToType(data['AccountHolderAddress'], 'String'); + } + if (data.hasOwnProperty('AccountHolderCountryCode')) { + obj['AccountHolderCountryCode'] = ApiClient.convertToType(data['AccountHolderCountryCode'], 'String'); + } + if (data.hasOwnProperty('VatNumber')) { + obj['VatNumber'] = ApiClient.convertToType(data['VatNumber'], 'String'); + } + if (data.hasOwnProperty('StripeAccountId')) { + obj['StripeAccountId'] = ApiClient.convertToType(data['StripeAccountId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of this account + * @member {Number} Id + */ +BankAccount.prototype['Id'] = undefined; + +/** + * Name of this account + * @member {String} AccountName + */ +BankAccount.prototype['AccountName'] = undefined; + +/** + * IBAN of this account + * @member {String} Iban + */ +BankAccount.prototype['Iban'] = undefined; + +/** + * SWIFT of this bank account + * @member {String} Swift + */ +BankAccount.prototype['Swift'] = undefined; + +/** + * 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. + * @member {Array.} PopulatedAccountFields + */ +BankAccount.prototype['PopulatedAccountFields'] = undefined; + +/** + * Status of Account + * @member {module:model/BankAccount.AccountStateEnum} AccountState + */ +BankAccount.prototype['AccountState'] = undefined; + +/** + * Store Names that are attached to this account + * @member {Array.} StoreNames + */ +BankAccount.prototype['StoreNames'] = undefined; + +/** + * Store Ids that are attached to this account + * @member {Array.} StoreIds + */ +BankAccount.prototype['StoreIds'] = undefined; + +/** + * Address lf the bank + * @member {String} BankAddress + */ +BankAccount.prototype['BankAddress'] = undefined; + +/** + * CountryCode of the Bank Account + * @member {String} BankCountryCode + */ +BankAccount.prototype['BankCountryCode'] = undefined; + +/** + * Account Holders Address + * @member {String} AccountHolderAddress + */ +BankAccount.prototype['AccountHolderAddress'] = undefined; + +/** + * Account Holders Country Code + * @member {String} AccountHolderCountryCode + */ +BankAccount.prototype['AccountHolderCountryCode'] = undefined; + +/** + * Account Holders Vat Number + * @member {String} VatNumber + */ +BankAccount.prototype['VatNumber'] = undefined; + +/** + * Stripe Id of the connected account + * @member {String} StripeAccountId + */ +BankAccount.prototype['StripeAccountId'] = undefined; + + + + + +/** + * Allowed values for the AccountState property. + * @enum {String} + * @readonly + */ +BankAccount['AccountStateEnum'] = { + + /** + * value: "Unverified" + * @const + */ + "Unverified": "Unverified", + + /** + * value: "AwatingVerification" + * @const + */ + "AwatingVerification": "AwatingVerification", + + /** + * value: "Verified" + * @const + */ + "Verified": "Verified", + + /** + * value: "Grandfathered" + * @const + */ + "Grandfathered": "Grandfathered" +}; + + + +export default BankAccount; + diff --git a/src/model/BankAccountAssignedEvent.js b/src/model/BankAccountAssignedEvent.js new file mode 100644 index 00000000..988a6d81 --- /dev/null +++ b/src/model/BankAccountAssignedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BankAccount from './BankAccount'; +import UserEventInfo from './UserEventInfo'; + +/** + * The BankAccountAssignedEvent model module. + * @module model/BankAccountAssignedEvent + * @version 1.0.0 + */ +class BankAccountAssignedEvent { + /** + * Constructs a new BankAccountAssignedEvent. + * + * @alias module:model/BankAccountAssignedEvent + */ + constructor() { + + BankAccountAssignedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountAssignedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountAssignedEvent} obj Optional instance to populate. + * @return {module:model/BankAccountAssignedEvent} The populated BankAccountAssignedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountAssignedEvent(); + + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('BankAccount')) { + obj['BankAccount'] = BankAccount.constructFromObject(data['BankAccount']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Organisation Id + * @member {String} OrgId + */ +BankAccountAssignedEvent.prototype['OrgId'] = undefined; + +/** + * @member {module:model/BankAccount} BankAccount + */ +BankAccountAssignedEvent.prototype['BankAccount'] = undefined; + +/** + * Event description + * @member {String} Description + */ +BankAccountAssignedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +BankAccountAssignedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +BankAccountAssignedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +BankAccountAssignedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +BankAccountAssignedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +BankAccountAssignedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +BankAccountAssignedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +BankAccountAssignedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default BankAccountAssignedEvent; + diff --git a/src/model/BankAccountCreate.js b/src/model/BankAccountCreate.js new file mode 100644 index 00000000..0f446d27 --- /dev/null +++ b/src/model/BankAccountCreate.js @@ -0,0 +1,920 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldKeyValuePair from './AccountFieldKeyValuePair'; + +/** + * The BankAccountCreate model module. + * @module model/BankAccountCreate + * @version 1.0.0 + */ +class BankAccountCreate { + /** + * Constructs a new BankAccountCreate. + * + * @alias module:model/BankAccountCreate + */ + constructor() { + + BankAccountCreate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountCreate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountCreate} obj Optional instance to populate. + * @return {module:model/BankAccountCreate} The populated BankAccountCreate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountCreate(); + + if (data.hasOwnProperty('BankAddress')) { + obj['BankAddress'] = ApiClient.convertToType(data['BankAddress'], 'String'); + } + if (data.hasOwnProperty('BankCountryCode')) { + obj['BankCountryCode'] = ApiClient.convertToType(data['BankCountryCode'], 'String'); + } + if (data.hasOwnProperty('AccountHolderAddress')) { + obj['AccountHolderAddress'] = ApiClient.convertToType(data['AccountHolderAddress'], 'String'); + } + if (data.hasOwnProperty('AccountHolderCountryCode')) { + obj['AccountHolderCountryCode'] = ApiClient.convertToType(data['AccountHolderCountryCode'], 'String'); + } + if (data.hasOwnProperty('VatNumber')) { + obj['VatNumber'] = ApiClient.convertToType(data['VatNumber'], 'String'); + } + if (data.hasOwnProperty('CurrencyCode')) { + obj['CurrencyCode'] = ApiClient.convertToType(data['CurrencyCode'], 'String'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('BankName')) { + obj['BankName'] = ApiClient.convertToType(data['BankName'], 'String'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('Iban')) { + obj['Iban'] = ApiClient.convertToType(data['Iban'], 'String'); + } + if (data.hasOwnProperty('Swift')) { + obj['Swift'] = ApiClient.convertToType(data['Swift'], 'String'); + } + if (data.hasOwnProperty('NationalClearingCode')) { + obj['NationalClearingCode'] = ApiClient.convertToType(data['NationalClearingCode'], 'String'); + } + if (data.hasOwnProperty('PopulatedAccountFields')) { + obj['PopulatedAccountFields'] = ApiClient.convertToType(data['PopulatedAccountFields'], [AccountFieldKeyValuePair]); + } + if (data.hasOwnProperty('RejectionReason')) { + obj['RejectionReason'] = ApiClient.convertToType(data['RejectionReason'], 'String'); + } + if (data.hasOwnProperty('BusinessType')) { + obj['BusinessType'] = ApiClient.convertToType(data['BusinessType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Address lf the bank + * @member {String} BankAddress + */ +BankAccountCreate.prototype['BankAddress'] = undefined; + +/** + * CountryCode of the Bank Account + * @member {String} BankCountryCode + */ +BankAccountCreate.prototype['BankCountryCode'] = undefined; + +/** + * Account Holders Address + * @member {String} AccountHolderAddress + */ +BankAccountCreate.prototype['AccountHolderAddress'] = undefined; + +/** + * Account Holders Country Code + * @member {String} AccountHolderCountryCode + */ +BankAccountCreate.prototype['AccountHolderCountryCode'] = undefined; + +/** + * Account Holders Vat Number + * @member {String} VatNumber + */ +BankAccountCreate.prototype['VatNumber'] = undefined; + +/** + * Currency of Account + * @member {module:model/BankAccountCreate.CurrencyCodeEnum} CurrencyCode + */ +BankAccountCreate.prototype['CurrencyCode'] = undefined; + +/** + * List of stores to attach to Account + * @member {Array.} StoreIds + */ +BankAccountCreate.prototype['StoreIds'] = undefined; + +/** + * Name of Bank + * @member {String} BankName + */ +BankAccountCreate.prototype['BankName'] = undefined; + +/** + * Name of this account + * @member {String} AccountName + */ +BankAccountCreate.prototype['AccountName'] = undefined; + +/** + * IBAN of this account + * @member {String} Iban + */ +BankAccountCreate.prototype['Iban'] = undefined; + +/** + * SWIFT of this bank account + * @member {String} Swift + */ +BankAccountCreate.prototype['Swift'] = undefined; + +/** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ +BankAccountCreate.prototype['NationalClearingCode'] = undefined; + +/** + * 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. + * @member {Array.} PopulatedAccountFields + */ +BankAccountCreate.prototype['PopulatedAccountFields'] = undefined; + +/** + * Reason for Rejection + * @member {String} RejectionReason + */ +BankAccountCreate.prototype['RejectionReason'] = undefined; + +/** + * Business Type + * @member {module:model/BankAccountCreate.BusinessTypeEnum} BusinessType + */ +BankAccountCreate.prototype['BusinessType'] = undefined; + + + + + +/** + * Allowed values for the CurrencyCode property. + * @enum {String} + * @readonly + */ +BankAccountCreate['CurrencyCodeEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the BusinessType property. + * @enum {String} + * @readonly + */ +BankAccountCreate['BusinessTypeEnum'] = { + + /** + * value: "Individual" + * @const + */ + "Individual": "Individual", + + /** + * value: "Company" + * @const + */ + "Company": "Company", + + /** + * value: "NonProfit" + * @const + */ + "NonProfit": "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + "GovernmentEntity": "GovernmentEntity" +}; + + + +export default BankAccountCreate; + diff --git a/src/model/BankAccountCreatedEvent.js b/src/model/BankAccountCreatedEvent.js new file mode 100644 index 00000000..e98dfa9f --- /dev/null +++ b/src/model/BankAccountCreatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BankAccount from './BankAccount'; +import UserEventInfo from './UserEventInfo'; + +/** + * The BankAccountCreatedEvent model module. + * @module model/BankAccountCreatedEvent + * @version 1.0.0 + */ +class BankAccountCreatedEvent { + /** + * Constructs a new BankAccountCreatedEvent. + * + * @alias module:model/BankAccountCreatedEvent + */ + constructor() { + + BankAccountCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountCreatedEvent} obj Optional instance to populate. + * @return {module:model/BankAccountCreatedEvent} The populated BankAccountCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountCreatedEvent(); + + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('BankAccount')) { + obj['BankAccount'] = BankAccount.constructFromObject(data['BankAccount']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Organisation Id + * @member {String} OrgId + */ +BankAccountCreatedEvent.prototype['OrgId'] = undefined; + +/** + * @member {module:model/BankAccount} BankAccount + */ +BankAccountCreatedEvent.prototype['BankAccount'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +BankAccountCreatedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +BankAccountCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +BankAccountCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +BankAccountCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +BankAccountCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +BankAccountCreatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +BankAccountCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default BankAccountCreatedEvent; + diff --git a/src/model/BankAccountDeletedEvent.js b/src/model/BankAccountDeletedEvent.js new file mode 100644 index 00000000..5e6cdbee --- /dev/null +++ b/src/model/BankAccountDeletedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BankAccount from './BankAccount'; +import UserEventInfo from './UserEventInfo'; + +/** + * The BankAccountDeletedEvent model module. + * @module model/BankAccountDeletedEvent + * @version 1.0.0 + */ +class BankAccountDeletedEvent { + /** + * Constructs a new BankAccountDeletedEvent. + * + * @alias module:model/BankAccountDeletedEvent + */ + constructor() { + + BankAccountDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountDeletedEvent} obj Optional instance to populate. + * @return {module:model/BankAccountDeletedEvent} The populated BankAccountDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountDeletedEvent(); + + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('BankAccount')) { + obj['BankAccount'] = BankAccount.constructFromObject(data['BankAccount']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Organisation Id + * @member {String} OrgId + */ +BankAccountDeletedEvent.prototype['OrgId'] = undefined; + +/** + * @member {module:model/BankAccount} BankAccount + */ +BankAccountDeletedEvent.prototype['BankAccount'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +BankAccountDeletedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +BankAccountDeletedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +BankAccountDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +BankAccountDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +BankAccountDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +BankAccountDeletedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +BankAccountDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default BankAccountDeletedEvent; + diff --git a/src/model/BankAccountDetail.js b/src/model/BankAccountDetail.js new file mode 100644 index 00000000..38d62e50 --- /dev/null +++ b/src/model/BankAccountDetail.js @@ -0,0 +1,989 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldKeyValuePair from './AccountFieldKeyValuePair'; +import StripeConnectedAccountInfo from './StripeConnectedAccountInfo'; + +/** + * The BankAccountDetail model module. + * @module model/BankAccountDetail + * @version 1.0.0 + */ +class BankAccountDetail { + /** + * Constructs a new BankAccountDetail. + * + * @alias module:model/BankAccountDetail + */ + constructor() { + + BankAccountDetail.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountDetail} obj Optional instance to populate. + * @return {module:model/BankAccountDetail} The populated BankAccountDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountDetail(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], ['String']); + } + if (data.hasOwnProperty('AccountState')) { + obj['AccountState'] = ApiClient.convertToType(data['AccountState'], 'String'); + } + if (data.hasOwnProperty('StripeConnectedAccountInfo')) { + obj['StripeConnectedAccountInfo'] = StripeConnectedAccountInfo.constructFromObject(data['StripeConnectedAccountInfo']); + } + if (data.hasOwnProperty('BankAddress')) { + obj['BankAddress'] = ApiClient.convertToType(data['BankAddress'], 'String'); + } + if (data.hasOwnProperty('BankCountryCode')) { + obj['BankCountryCode'] = ApiClient.convertToType(data['BankCountryCode'], 'String'); + } + if (data.hasOwnProperty('AccountHolderAddress')) { + obj['AccountHolderAddress'] = ApiClient.convertToType(data['AccountHolderAddress'], 'String'); + } + if (data.hasOwnProperty('AccountHolderCountryCode')) { + obj['AccountHolderCountryCode'] = ApiClient.convertToType(data['AccountHolderCountryCode'], 'String'); + } + if (data.hasOwnProperty('VatNumber')) { + obj['VatNumber'] = ApiClient.convertToType(data['VatNumber'], 'String'); + } + if (data.hasOwnProperty('CurrencyCode')) { + obj['CurrencyCode'] = ApiClient.convertToType(data['CurrencyCode'], 'String'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('BankName')) { + obj['BankName'] = ApiClient.convertToType(data['BankName'], 'String'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('Iban')) { + obj['Iban'] = ApiClient.convertToType(data['Iban'], 'String'); + } + if (data.hasOwnProperty('Swift')) { + obj['Swift'] = ApiClient.convertToType(data['Swift'], 'String'); + } + if (data.hasOwnProperty('NationalClearingCode')) { + obj['NationalClearingCode'] = ApiClient.convertToType(data['NationalClearingCode'], 'String'); + } + if (data.hasOwnProperty('PopulatedAccountFields')) { + obj['PopulatedAccountFields'] = ApiClient.convertToType(data['PopulatedAccountFields'], [AccountFieldKeyValuePair]); + } + if (data.hasOwnProperty('RejectionReason')) { + obj['RejectionReason'] = ApiClient.convertToType(data['RejectionReason'], 'String'); + } + if (data.hasOwnProperty('BusinessType')) { + obj['BusinessType'] = ApiClient.convertToType(data['BusinessType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of this account + * @member {Number} Id + */ +BankAccountDetail.prototype['Id'] = undefined; + +/** + * Store Names that are attached to this account + * @member {Array.} StoreNames + */ +BankAccountDetail.prototype['StoreNames'] = undefined; + +/** + * Status of Account + * @member {module:model/BankAccountDetail.AccountStateEnum} AccountState + */ +BankAccountDetail.prototype['AccountState'] = undefined; + +/** + * @member {module:model/StripeConnectedAccountInfo} StripeConnectedAccountInfo + */ +BankAccountDetail.prototype['StripeConnectedAccountInfo'] = undefined; + +/** + * Address lf the bank + * @member {String} BankAddress + */ +BankAccountDetail.prototype['BankAddress'] = undefined; + +/** + * CountryCode of the Bank Account + * @member {String} BankCountryCode + */ +BankAccountDetail.prototype['BankCountryCode'] = undefined; + +/** + * Account Holders Address + * @member {String} AccountHolderAddress + */ +BankAccountDetail.prototype['AccountHolderAddress'] = undefined; + +/** + * Account Holders Country Code + * @member {String} AccountHolderCountryCode + */ +BankAccountDetail.prototype['AccountHolderCountryCode'] = undefined; + +/** + * Account Holders Vat Number + * @member {String} VatNumber + */ +BankAccountDetail.prototype['VatNumber'] = undefined; + +/** + * Currency of Account + * @member {module:model/BankAccountDetail.CurrencyCodeEnum} CurrencyCode + */ +BankAccountDetail.prototype['CurrencyCode'] = undefined; + +/** + * List of stores to attach to Account + * @member {Array.} StoreIds + */ +BankAccountDetail.prototype['StoreIds'] = undefined; + +/** + * Name of Bank + * @member {String} BankName + */ +BankAccountDetail.prototype['BankName'] = undefined; + +/** + * Name of this account + * @member {String} AccountName + */ +BankAccountDetail.prototype['AccountName'] = undefined; + +/** + * IBAN of this account + * @member {String} Iban + */ +BankAccountDetail.prototype['Iban'] = undefined; + +/** + * SWIFT of this bank account + * @member {String} Swift + */ +BankAccountDetail.prototype['Swift'] = undefined; + +/** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ +BankAccountDetail.prototype['NationalClearingCode'] = undefined; + +/** + * 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. + * @member {Array.} PopulatedAccountFields + */ +BankAccountDetail.prototype['PopulatedAccountFields'] = undefined; + +/** + * Reason for Rejection + * @member {String} RejectionReason + */ +BankAccountDetail.prototype['RejectionReason'] = undefined; + +/** + * Business Type + * @member {module:model/BankAccountDetail.BusinessTypeEnum} BusinessType + */ +BankAccountDetail.prototype['BusinessType'] = undefined; + + + + + +/** + * Allowed values for the AccountState property. + * @enum {String} + * @readonly + */ +BankAccountDetail['AccountStateEnum'] = { + + /** + * value: "Unverified" + * @const + */ + "Unverified": "Unverified", + + /** + * value: "AwatingVerification" + * @const + */ + "AwatingVerification": "AwatingVerification", + + /** + * value: "Verified" + * @const + */ + "Verified": "Verified", + + /** + * value: "Grandfathered" + * @const + */ + "Grandfathered": "Grandfathered" +}; + + +/** + * Allowed values for the CurrencyCode property. + * @enum {String} + * @readonly + */ +BankAccountDetail['CurrencyCodeEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the BusinessType property. + * @enum {String} + * @readonly + */ +BankAccountDetail['BusinessTypeEnum'] = { + + /** + * value: "Individual" + * @const + */ + "Individual": "Individual", + + /** + * value: "Company" + * @const + */ + "Company": "Company", + + /** + * value: "NonProfit" + * @const + */ + "NonProfit": "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + "GovernmentEntity": "GovernmentEntity" +}; + + + +export default BankAccountDetail; + diff --git a/src/model/BankAccountDetailsUpdateRequest.js b/src/model/BankAccountDetailsUpdateRequest.js new file mode 100644 index 00000000..423dc514 --- /dev/null +++ b/src/model/BankAccountDetailsUpdateRequest.js @@ -0,0 +1,206 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldKeyValuePair from './AccountFieldKeyValuePair'; + +/** + * The BankAccountDetailsUpdateRequest model module. + * @module model/BankAccountDetailsUpdateRequest + * @version 1.0.0 + */ +class BankAccountDetailsUpdateRequest { + /** + * Constructs a new BankAccountDetailsUpdateRequest. + * Represents a request to update bank account information details + * @alias module:model/BankAccountDetailsUpdateRequest + */ + constructor() { + + BankAccountDetailsUpdateRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountDetailsUpdateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountDetailsUpdateRequest} obj Optional instance to populate. + * @return {module:model/BankAccountDetailsUpdateRequest} The populated BankAccountDetailsUpdateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountDetailsUpdateRequest(); + + if (data.hasOwnProperty('BankAddress')) { + obj['BankAddress'] = ApiClient.convertToType(data['BankAddress'], 'String'); + } + if (data.hasOwnProperty('AccountHolderAddress')) { + obj['AccountHolderAddress'] = ApiClient.convertToType(data['AccountHolderAddress'], 'String'); + } + if (data.hasOwnProperty('VatNumber')) { + obj['VatNumber'] = ApiClient.convertToType(data['VatNumber'], 'String'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('BankName')) { + obj['BankName'] = ApiClient.convertToType(data['BankName'], 'String'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('Iban')) { + obj['Iban'] = ApiClient.convertToType(data['Iban'], 'String'); + } + if (data.hasOwnProperty('Swift')) { + obj['Swift'] = ApiClient.convertToType(data['Swift'], 'String'); + } + if (data.hasOwnProperty('NationalClearingCode')) { + obj['NationalClearingCode'] = ApiClient.convertToType(data['NationalClearingCode'], 'String'); + } + if (data.hasOwnProperty('PopulatedAccountFields')) { + obj['PopulatedAccountFields'] = ApiClient.convertToType(data['PopulatedAccountFields'], [AccountFieldKeyValuePair]); + } + if (data.hasOwnProperty('RejectionReason')) { + obj['RejectionReason'] = ApiClient.convertToType(data['RejectionReason'], 'String'); + } + if (data.hasOwnProperty('BusinessType')) { + obj['BusinessType'] = ApiClient.convertToType(data['BusinessType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Address of the bank account + * @member {String} BankAddress + */ +BankAccountDetailsUpdateRequest.prototype['BankAddress'] = undefined; + +/** + * Address of the payee + * @member {String} AccountHolderAddress + */ +BankAccountDetailsUpdateRequest.prototype['AccountHolderAddress'] = undefined; + +/** + * Account Holders Vat Number + * @member {String} VatNumber + */ +BankAccountDetailsUpdateRequest.prototype['VatNumber'] = undefined; + +/** + * List of stores to attach to Account + * @member {Array.} StoreIds + */ +BankAccountDetailsUpdateRequest.prototype['StoreIds'] = undefined; + +/** + * Name of Bank + * @member {String} BankName + */ +BankAccountDetailsUpdateRequest.prototype['BankName'] = undefined; + +/** + * Name of this account + * @member {String} AccountName + */ +BankAccountDetailsUpdateRequest.prototype['AccountName'] = undefined; + +/** + * IBAN of this account + * @member {String} Iban + */ +BankAccountDetailsUpdateRequest.prototype['Iban'] = undefined; + +/** + * SWIFT of this bank account + * @member {String} Swift + */ +BankAccountDetailsUpdateRequest.prototype['Swift'] = undefined; + +/** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ +BankAccountDetailsUpdateRequest.prototype['NationalClearingCode'] = undefined; + +/** + * 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. + * @member {Array.} PopulatedAccountFields + */ +BankAccountDetailsUpdateRequest.prototype['PopulatedAccountFields'] = undefined; + +/** + * Reason for Rejection + * @member {String} RejectionReason + */ +BankAccountDetailsUpdateRequest.prototype['RejectionReason'] = undefined; + +/** + * Business Type + * @member {module:model/BankAccountDetailsUpdateRequest.BusinessTypeEnum} BusinessType + */ +BankAccountDetailsUpdateRequest.prototype['BusinessType'] = undefined; + + + + + +/** + * Allowed values for the BusinessType property. + * @enum {String} + * @readonly + */ +BankAccountDetailsUpdateRequest['BusinessTypeEnum'] = { + + /** + * value: "Individual" + * @const + */ + "Individual": "Individual", + + /** + * value: "Company" + * @const + */ + "Company": "Company", + + /** + * value: "NonProfit" + * @const + */ + "NonProfit": "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + "GovernmentEntity": "GovernmentEntity" +}; + + + +export default BankAccountDetailsUpdateRequest; + diff --git a/src/model/BankAccountSummary.js b/src/model/BankAccountSummary.js new file mode 100644 index 00000000..0f974eb0 --- /dev/null +++ b/src/model/BankAccountSummary.js @@ -0,0 +1,248 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldKeyValuePair from './AccountFieldKeyValuePair'; +import StripeConnectedAccountInfo from './StripeConnectedAccountInfo'; + +/** + * The BankAccountSummary model module. + * @module model/BankAccountSummary + * @version 1.0.0 + */ +class BankAccountSummary { + /** + * Constructs a new BankAccountSummary. + * + * @alias module:model/BankAccountSummary + */ + constructor() { + + BankAccountSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountSummary} obj Optional instance to populate. + * @return {module:model/BankAccountSummary} The populated BankAccountSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountSummary(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], ['String']); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('AccountState')) { + obj['AccountState'] = ApiClient.convertToType(data['AccountState'], 'String'); + } + if (data.hasOwnProperty('CurrencyCode')) { + obj['CurrencyCode'] = ApiClient.convertToType(data['CurrencyCode'], 'String'); + } + if (data.hasOwnProperty('StripeConnectedAccountInfo')) { + obj['StripeConnectedAccountInfo'] = StripeConnectedAccountInfo.constructFromObject(data['StripeConnectedAccountInfo']); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('Iban')) { + obj['Iban'] = ApiClient.convertToType(data['Iban'], 'String'); + } + if (data.hasOwnProperty('Swift')) { + obj['Swift'] = ApiClient.convertToType(data['Swift'], 'String'); + } + if (data.hasOwnProperty('NationalClearingCode')) { + obj['NationalClearingCode'] = ApiClient.convertToType(data['NationalClearingCode'], 'String'); + } + if (data.hasOwnProperty('PopulatedAccountFields')) { + obj['PopulatedAccountFields'] = ApiClient.convertToType(data['PopulatedAccountFields'], [AccountFieldKeyValuePair]); + } + if (data.hasOwnProperty('RejectionReason')) { + obj['RejectionReason'] = ApiClient.convertToType(data['RejectionReason'], 'String'); + } + if (data.hasOwnProperty('BusinessType')) { + obj['BusinessType'] = ApiClient.convertToType(data['BusinessType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of this account + * @member {Number} Id + */ +BankAccountSummary.prototype['Id'] = undefined; + +/** + * Store Names that are attached to this account + * @member {Array.} StoreNames + */ +BankAccountSummary.prototype['StoreNames'] = undefined; + +/** + * Store Ids that are attached to this account + * @member {Array.} StoreIds + */ +BankAccountSummary.prototype['StoreIds'] = undefined; + +/** + * Status of Account + * @member {module:model/BankAccountSummary.AccountStateEnum} AccountState + */ +BankAccountSummary.prototype['AccountState'] = undefined; + +/** + * Currency of Account + * @member {String} CurrencyCode + */ +BankAccountSummary.prototype['CurrencyCode'] = undefined; + +/** + * @member {module:model/StripeConnectedAccountInfo} StripeConnectedAccountInfo + */ +BankAccountSummary.prototype['StripeConnectedAccountInfo'] = undefined; + +/** + * Name of this account + * @member {String} AccountName + */ +BankAccountSummary.prototype['AccountName'] = undefined; + +/** + * IBAN of this account + * @member {String} Iban + */ +BankAccountSummary.prototype['Iban'] = undefined; + +/** + * SWIFT of this bank account + * @member {String} Swift + */ +BankAccountSummary.prototype['Swift'] = undefined; + +/** + * National Clearing Code (BSB in Australia, Routing Number in USA/Canada, NCC in NZ) + * @member {String} NationalClearingCode + */ +BankAccountSummary.prototype['NationalClearingCode'] = undefined; + +/** + * 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. + * @member {Array.} PopulatedAccountFields + */ +BankAccountSummary.prototype['PopulatedAccountFields'] = undefined; + +/** + * Reason for Rejection + * @member {String} RejectionReason + */ +BankAccountSummary.prototype['RejectionReason'] = undefined; + +/** + * Business Type + * @member {module:model/BankAccountSummary.BusinessTypeEnum} BusinessType + */ +BankAccountSummary.prototype['BusinessType'] = undefined; + + + + + +/** + * Allowed values for the AccountState property. + * @enum {String} + * @readonly + */ +BankAccountSummary['AccountStateEnum'] = { + + /** + * value: "Unverified" + * @const + */ + "Unverified": "Unverified", + + /** + * value: "AwatingVerification" + * @const + */ + "AwatingVerification": "AwatingVerification", + + /** + * value: "Verified" + * @const + */ + "Verified": "Verified", + + /** + * value: "Grandfathered" + * @const + */ + "Grandfathered": "Grandfathered" +}; + + +/** + * Allowed values for the BusinessType property. + * @enum {String} + * @readonly + */ +BankAccountSummary['BusinessTypeEnum'] = { + + /** + * value: "Individual" + * @const + */ + "Individual": "Individual", + + /** + * value: "Company" + * @const + */ + "Company": "Company", + + /** + * value: "NonProfit" + * @const + */ + "NonProfit": "NonProfit", + + /** + * value: "GovernmentEntity" + * @const + */ + "GovernmentEntity": "GovernmentEntity" +}; + + + +export default BankAccountSummary; + diff --git a/src/model/BankAccountUpdatedEvent.js b/src/model/BankAccountUpdatedEvent.js new file mode 100644 index 00000000..1d020cce --- /dev/null +++ b/src/model/BankAccountUpdatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BankAccount from './BankAccount'; +import UserEventInfo from './UserEventInfo'; + +/** + * The BankAccountUpdatedEvent model module. + * @module model/BankAccountUpdatedEvent + * @version 1.0.0 + */ +class BankAccountUpdatedEvent { + /** + * Constructs a new BankAccountUpdatedEvent. + * + * @alias module:model/BankAccountUpdatedEvent + */ + constructor() { + + BankAccountUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BankAccountUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BankAccountUpdatedEvent} obj Optional instance to populate. + * @return {module:model/BankAccountUpdatedEvent} The populated BankAccountUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BankAccountUpdatedEvent(); + + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('BankAccount')) { + obj['BankAccount'] = BankAccount.constructFromObject(data['BankAccount']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Organisation Id + * @member {String} OrgId + */ +BankAccountUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * @member {module:model/BankAccount} BankAccount + */ +BankAccountUpdatedEvent.prototype['BankAccount'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +BankAccountUpdatedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +BankAccountUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +BankAccountUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +BankAccountUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +BankAccountUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +BankAccountUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +BankAccountUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default BankAccountUpdatedEvent; + diff --git a/src/model/BluetoothTerminalStatus.js b/src/model/BluetoothTerminalStatus.js new file mode 100644 index 00000000..ad05ea81 --- /dev/null +++ b/src/model/BluetoothTerminalStatus.js @@ -0,0 +1,205 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The BluetoothTerminalStatus model module. + * @module model/BluetoothTerminalStatus + * @version 1.0.0 + */ +class BluetoothTerminalStatus { + /** + * Constructs a new BluetoothTerminalStatus. + * Status of the bluetooth terminal + * @alias module:model/BluetoothTerminalStatus + */ + constructor() { + + BluetoothTerminalStatus.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BluetoothTerminalStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BluetoothTerminalStatus} obj Optional instance to populate. + * @return {module:model/BluetoothTerminalStatus} The populated BluetoothTerminalStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BluetoothTerminalStatus(); + + if (data.hasOwnProperty('SerialNumber')) { + obj['SerialNumber'] = ApiClient.convertToType(data['SerialNumber'], 'String'); + } + if (data.hasOwnProperty('SoftwareVersion')) { + obj['SoftwareVersion'] = ApiClient.convertToType(data['SoftwareVersion'], 'String'); + } + if (data.hasOwnProperty('DeviceType')) { + obj['DeviceType'] = ApiClient.convertToType(data['DeviceType'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('BatteryLevel')) { + obj['BatteryLevel'] = ApiClient.convertToType(data['BatteryLevel'], 'Number'); + } + if (data.hasOwnProperty('UpdateTime')) { + obj['UpdateTime'] = ApiClient.convertToType(data['UpdateTime'], 'Date'); + } + if (data.hasOwnProperty('ReaderId')) { + obj['ReaderId'] = ApiClient.convertToType(data['ReaderId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Serial Number + * @member {String} SerialNumber + */ +BluetoothTerminalStatus.prototype['SerialNumber'] = undefined; + +/** + * Software Version + * @member {String} SoftwareVersion + */ +BluetoothTerminalStatus.prototype['SoftwareVersion'] = undefined; + +/** + * Device Type + * @member {module:model/BluetoothTerminalStatus.DeviceTypeEnum} DeviceType + */ +BluetoothTerminalStatus.prototype['DeviceType'] = undefined; + +/** + * Device Status + * @member {module:model/BluetoothTerminalStatus.StatusEnum} Status + */ +BluetoothTerminalStatus.prototype['Status'] = undefined; + +/** + * Indication of the battery level from 0 to 1 + * @member {Number} BatteryLevel + */ +BluetoothTerminalStatus.prototype['BatteryLevel'] = undefined; + +/** + * Last time the status was updated + * @member {Date} UpdateTime + */ +BluetoothTerminalStatus.prototype['UpdateTime'] = undefined; + +/** + * ReaderId for Stripe Terminal + * @member {String} ReaderId + */ +BluetoothTerminalStatus.prototype['ReaderId'] = undefined; + + + + + +/** + * Allowed values for the DeviceType property. + * @enum {String} + * @readonly + */ +BluetoothTerminalStatus['DeviceTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +BluetoothTerminalStatus['StatusEnum'] = { + + /** + * value: "Not_Connected" + * @const + */ + "Not_Connected": "Not_Connected", + + /** + * value: "Connecting" + * @const + */ + "Connecting": "Connecting", + + /** + * value: "Connected" + * @const + */ + "Connected": "Connected", + + /** + * value: "Online" + * @const + */ + "Online": "Online", + + /** + * value: "Offline" + * @const + */ + "Offline": "Offline" +}; + + + +export default BluetoothTerminalStatus; + diff --git a/src/model/BusinessHoursOverride.js b/src/model/BusinessHoursOverride.js new file mode 100644 index 00000000..c9482fcf --- /dev/null +++ b/src/model/BusinessHoursOverride.js @@ -0,0 +1,161 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The BusinessHoursOverride model module. + * @module model/BusinessHoursOverride + * @version 1.0.0 + */ +class BusinessHoursOverride { + /** + * Constructs a new BusinessHoursOverride. + * + * @alias module:model/BusinessHoursOverride + * @param StartTime {Date} Date and time in ISO 8601 format. + * @param EndTime {Date} Date and time in ISO 8601 format. + */ + constructor(StartTime, EndTime) { + + BusinessHoursOverride.initialize(this, StartTime, EndTime); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, StartTime, EndTime) { + obj['StartTime'] = StartTime; + obj['EndTime'] = EndTime; + } + + /** + * Constructs a BusinessHoursOverride from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BusinessHoursOverride} obj Optional instance to populate. + * @return {module:model/BusinessHoursOverride} The populated BusinessHoursOverride instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BusinessHoursOverride(); + + if (data.hasOwnProperty('BusinessHoursOverrideId')) { + obj['BusinessHoursOverrideId'] = ApiClient.convertToType(data['BusinessHoursOverrideId'], 'Number'); + } + if (data.hasOwnProperty('DeliveryType')) { + obj['DeliveryType'] = ApiClient.convertToType(data['DeliveryType'], 'String'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'Date'); + } + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'Date'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + } + return obj; + } + + +} + +/** + * Unique identifier + * @member {Number} BusinessHoursOverrideId + */ +BusinessHoursOverride.prototype['BusinessHoursOverrideId'] = undefined; + +/** + * Delivery or Pickup + * @member {module:model/BusinessHoursOverride.DeliveryTypeEnum} DeliveryType + */ +BusinessHoursOverride.prototype['DeliveryType'] = undefined; + +/** + * Date and time in ISO 8601 format. + * @member {Date} StartTime + */ +BusinessHoursOverride.prototype['StartTime'] = undefined; + +/** + * Date and time in ISO 8601 format. + * @member {Date} EndTime + */ +BusinessHoursOverride.prototype['EndTime'] = undefined; + +/** + * Open, Closed or ClosedAllowPreOrders + * @member {module:model/BusinessHoursOverride.TypeEnum} Type + */ +BusinessHoursOverride.prototype['Type'] = undefined; + + + + + +/** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ +BusinessHoursOverride['DeliveryTypeEnum'] = { + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Pickup" + * @const + */ + "Pickup": "Pickup" +}; + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +BusinessHoursOverride['TypeEnum'] = { + + /** + * value: "Open" + * @const + */ + "Open": "Open", + + /** + * value: "Closed" + * @const + */ + "Closed": "Closed", + + /** + * value: "ClosedAllowPreOrders" + * @const + */ + "ClosedAllowPreOrders": "ClosedAllowPreOrders" +}; + + + +export default BusinessHoursOverride; + diff --git a/src/model/BusinessHoursOverrideBase.js b/src/model/BusinessHoursOverrideBase.js new file mode 100644 index 00000000..25e9dca3 --- /dev/null +++ b/src/model/BusinessHoursOverrideBase.js @@ -0,0 +1,152 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The BusinessHoursOverrideBase model module. + * @module model/BusinessHoursOverrideBase + * @version 1.0.0 + */ +class BusinessHoursOverrideBase { + /** + * Constructs a new BusinessHoursOverrideBase. + * + * @alias module:model/BusinessHoursOverrideBase + * @param StartTime {Date} Date and time in ISO 8601 format. + * @param EndTime {Date} Date and time in ISO 8601 format. + */ + constructor(StartTime, EndTime) { + + BusinessHoursOverrideBase.initialize(this, StartTime, EndTime); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, StartTime, EndTime) { + obj['StartTime'] = StartTime; + obj['EndTime'] = EndTime; + } + + /** + * Constructs a BusinessHoursOverrideBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BusinessHoursOverrideBase} obj Optional instance to populate. + * @return {module:model/BusinessHoursOverrideBase} The populated BusinessHoursOverrideBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BusinessHoursOverrideBase(); + + if (data.hasOwnProperty('DeliveryType')) { + obj['DeliveryType'] = ApiClient.convertToType(data['DeliveryType'], 'String'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'Date'); + } + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'Date'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + } + return obj; + } + + +} + +/** + * Delivery or Pickup + * @member {module:model/BusinessHoursOverrideBase.DeliveryTypeEnum} DeliveryType + */ +BusinessHoursOverrideBase.prototype['DeliveryType'] = undefined; + +/** + * Date and time in ISO 8601 format. + * @member {Date} StartTime + */ +BusinessHoursOverrideBase.prototype['StartTime'] = undefined; + +/** + * Date and time in ISO 8601 format. + * @member {Date} EndTime + */ +BusinessHoursOverrideBase.prototype['EndTime'] = undefined; + +/** + * Open, Closed or ClosedAllowPreOrders + * @member {module:model/BusinessHoursOverrideBase.TypeEnum} Type + */ +BusinessHoursOverrideBase.prototype['Type'] = undefined; + + + + + +/** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ +BusinessHoursOverrideBase['DeliveryTypeEnum'] = { + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Pickup" + * @const + */ + "Pickup": "Pickup" +}; + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +BusinessHoursOverrideBase['TypeEnum'] = { + + /** + * value: "Open" + * @const + */ + "Open": "Open", + + /** + * value: "Closed" + * @const + */ + "Closed": "Closed", + + /** + * value: "ClosedAllowPreOrders" + * @const + */ + "ClosedAllowPreOrders": "ClosedAllowPreOrders" +}; + + + +export default BusinessHoursOverrideBase; + diff --git a/src/model/BusinessHoursPeriod.js b/src/model/BusinessHoursPeriod.js new file mode 100644 index 00000000..eb18c805 --- /dev/null +++ b/src/model/BusinessHoursPeriod.js @@ -0,0 +1,186 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Range from './Range'; + +/** + * The BusinessHoursPeriod model module. + * @module model/BusinessHoursPeriod + * @version 1.0.0 + */ +class BusinessHoursPeriod { + /** + * Constructs a new BusinessHoursPeriod. + * Business hours period + * @alias module:model/BusinessHoursPeriod + */ + constructor() { + + BusinessHoursPeriod.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BusinessHoursPeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BusinessHoursPeriod} obj Optional instance to populate. + * @return {module:model/BusinessHoursPeriod} The populated BusinessHoursPeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BusinessHoursPeriod(); + + if (data.hasOwnProperty('Early')) { + obj['Early'] = Range.constructFromObject(data['Early']); + } + if (data.hasOwnProperty('Late')) { + obj['Late'] = Range.constructFromObject(data['Late']); + } + if (data.hasOwnProperty('Ranges')) { + obj['Ranges'] = ApiClient.convertToType(data['Ranges'], [Range]); + } + if (data.hasOwnProperty('DayOfWeek')) { + obj['DayOfWeek'] = ApiClient.convertToType(data['DayOfWeek'], 'String'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'String'); + } + if (data.hasOwnProperty('Period')) { + obj['Period'] = ApiClient.convertToType(data['Period'], 'String'); + } + if (data.hasOwnProperty('StartTimeEarly')) { + obj['StartTimeEarly'] = ApiClient.convertToType(data['StartTimeEarly'], 'String'); + } + if (data.hasOwnProperty('PeriodEarly')) { + obj['PeriodEarly'] = ApiClient.convertToType(data['PeriodEarly'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Range} Early + */ +BusinessHoursPeriod.prototype['Early'] = undefined; + +/** + * @member {module:model/Range} Late + */ +BusinessHoursPeriod.prototype['Late'] = undefined; + +/** + * Ranges + * @member {Array.} Ranges + */ +BusinessHoursPeriod.prototype['Ranges'] = undefined; + +/** + * Day of week + * @member {module:model/BusinessHoursPeriod.DayOfWeekEnum} DayOfWeek + */ +BusinessHoursPeriod.prototype['DayOfWeek'] = undefined; + +/** + * Start time + * @member {String} StartTime + */ +BusinessHoursPeriod.prototype['StartTime'] = undefined; + +/** + * Period + * @member {String} Period + */ +BusinessHoursPeriod.prototype['Period'] = undefined; + +/** + * Start time early + * @member {String} StartTimeEarly + */ +BusinessHoursPeriod.prototype['StartTimeEarly'] = undefined; + +/** + * Period early + * @member {String} PeriodEarly + */ +BusinessHoursPeriod.prototype['PeriodEarly'] = undefined; + + + + + +/** + * Allowed values for the DayOfWeek property. + * @enum {String} + * @readonly + */ +BusinessHoursPeriod['DayOfWeekEnum'] = { + + /** + * value: "Sunday" + * @const + */ + "Sunday": "Sunday", + + /** + * value: "Monday" + * @const + */ + "Monday": "Monday", + + /** + * value: "Tuesday" + * @const + */ + "Tuesday": "Tuesday", + + /** + * value: "Wednesday" + * @const + */ + "Wednesday": "Wednesday", + + /** + * value: "Thursday" + * @const + */ + "Thursday": "Thursday", + + /** + * value: "Friday" + * @const + */ + "Friday": "Friday", + + /** + * value: "Saturday" + * @const + */ + "Saturday": "Saturday" +}; + + + +export default BusinessHoursPeriod; + diff --git a/src/model/BusinessHoursPeriodBase.js b/src/model/BusinessHoursPeriodBase.js new file mode 100644 index 00000000..7dce9b40 --- /dev/null +++ b/src/model/BusinessHoursPeriodBase.js @@ -0,0 +1,160 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The BusinessHoursPeriodBase model module. + * @module model/BusinessHoursPeriodBase + * @version 1.0.0 + */ +class BusinessHoursPeriodBase { + /** + * Constructs a new BusinessHoursPeriodBase. + * Business hours period + * @alias module:model/BusinessHoursPeriodBase + */ + constructor() { + + BusinessHoursPeriodBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BusinessHoursPeriodBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BusinessHoursPeriodBase} obj Optional instance to populate. + * @return {module:model/BusinessHoursPeriodBase} The populated BusinessHoursPeriodBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BusinessHoursPeriodBase(); + + if (data.hasOwnProperty('DayOfWeek')) { + obj['DayOfWeek'] = ApiClient.convertToType(data['DayOfWeek'], 'String'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'String'); + } + if (data.hasOwnProperty('Period')) { + obj['Period'] = ApiClient.convertToType(data['Period'], 'String'); + } + if (data.hasOwnProperty('StartTimeEarly')) { + obj['StartTimeEarly'] = ApiClient.convertToType(data['StartTimeEarly'], 'String'); + } + if (data.hasOwnProperty('PeriodEarly')) { + obj['PeriodEarly'] = ApiClient.convertToType(data['PeriodEarly'], 'String'); + } + } + return obj; + } + + +} + +/** + * Day of week + * @member {module:model/BusinessHoursPeriodBase.DayOfWeekEnum} DayOfWeek + */ +BusinessHoursPeriodBase.prototype['DayOfWeek'] = undefined; + +/** + * Start time + * @member {String} StartTime + */ +BusinessHoursPeriodBase.prototype['StartTime'] = undefined; + +/** + * Period + * @member {String} Period + */ +BusinessHoursPeriodBase.prototype['Period'] = undefined; + +/** + * Start time early + * @member {String} StartTimeEarly + */ +BusinessHoursPeriodBase.prototype['StartTimeEarly'] = undefined; + +/** + * Period early + * @member {String} PeriodEarly + */ +BusinessHoursPeriodBase.prototype['PeriodEarly'] = undefined; + + + + + +/** + * Allowed values for the DayOfWeek property. + * @enum {String} + * @readonly + */ +BusinessHoursPeriodBase['DayOfWeekEnum'] = { + + /** + * value: "Sunday" + * @const + */ + "Sunday": "Sunday", + + /** + * value: "Monday" + * @const + */ + "Monday": "Monday", + + /** + * value: "Tuesday" + * @const + */ + "Tuesday": "Tuesday", + + /** + * value: "Wednesday" + * @const + */ + "Wednesday": "Wednesday", + + /** + * value: "Thursday" + * @const + */ + "Thursday": "Thursday", + + /** + * value: "Friday" + * @const + */ + "Friday": "Friday", + + /** + * value: "Saturday" + * @const + */ + "Saturday": "Saturday" +}; + + + +export default BusinessHoursPeriodBase; + diff --git a/src/model/CampaignStatistics.js b/src/model/CampaignStatistics.js new file mode 100644 index 00000000..eb99fcfc --- /dev/null +++ b/src/model/CampaignStatistics.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CampaignStatistics model module. + * @module model/CampaignStatistics + * @version 1.0.0 + */ +class CampaignStatistics { + /** + * Constructs a new CampaignStatistics. + * Campaign statistics + * @alias module:model/CampaignStatistics + */ + constructor() { + + CampaignStatistics.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CampaignStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CampaignStatistics} obj Optional instance to populate. + * @return {module:model/CampaignStatistics} The populated CampaignStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CampaignStatistics(); + + if (data.hasOwnProperty('VouchersIssued')) { + obj['VouchersIssued'] = ApiClient.convertToType(data['VouchersIssued'], 'Number'); + } + if (data.hasOwnProperty('VouchersRedeemed')) { + obj['VouchersRedeemed'] = ApiClient.convertToType(data['VouchersRedeemed'], 'Number'); + } + if (data.hasOwnProperty('Conversion')) { + obj['Conversion'] = ApiClient.convertToType(data['Conversion'], 'Number'); + } + if (data.hasOwnProperty('SalesGenerated')) { + obj['SalesGenerated'] = ApiClient.convertToType(data['SalesGenerated'], 'Number'); + } + if (data.hasOwnProperty('ReturnOfInvestment')) { + obj['ReturnOfInvestment'] = ApiClient.convertToType(data['ReturnOfInvestment'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Deprecated. Number of issued vouchers. This field is always zero. + * @member {Number} VouchersIssued + */ +CampaignStatistics.prototype['VouchersIssued'] = undefined; + +/** + * Deprecated. Number of redeemed vouchers. This field is always zero. This field is always zero. + * @member {Number} VouchersRedeemed + */ +CampaignStatistics.prototype['VouchersRedeemed'] = undefined; + +/** + * Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero. + * @member {Number} Conversion + */ +CampaignStatistics.prototype['Conversion'] = undefined; + +/** + * Deprecated. Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). This field is always zero. + * @member {Number} SalesGenerated + */ +CampaignStatistics.prototype['SalesGenerated'] = undefined; + +/** + * Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero. + * @member {Number} ReturnOfInvestment + */ +CampaignStatistics.prototype['ReturnOfInvestment'] = undefined; + + + + + + +export default CampaignStatistics; + diff --git a/src/model/CancellationToken.js b/src/model/CancellationToken.js new file mode 100644 index 00000000..96b4b16c --- /dev/null +++ b/src/model/CancellationToken.js @@ -0,0 +1,88 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WaitHandle from './WaitHandle'; + +/** + * The CancellationToken model module. + * @module model/CancellationToken + * @version 1.0.0 + */ +class CancellationToken { + /** + * Constructs a new CancellationToken. + * @alias module:model/CancellationToken + */ + constructor() { + + CancellationToken.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CancellationToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CancellationToken} obj Optional instance to populate. + * @return {module:model/CancellationToken} The populated CancellationToken instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CancellationToken(); + + if (data.hasOwnProperty('IsCancellationRequested')) { + obj['IsCancellationRequested'] = ApiClient.convertToType(data['IsCancellationRequested'], 'Boolean'); + } + if (data.hasOwnProperty('CanBeCanceled')) { + obj['CanBeCanceled'] = ApiClient.convertToType(data['CanBeCanceled'], 'Boolean'); + } + if (data.hasOwnProperty('WaitHandle')) { + obj['WaitHandle'] = WaitHandle.constructFromObject(data['WaitHandle']); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} IsCancellationRequested + */ +CancellationToken.prototype['IsCancellationRequested'] = undefined; + +/** + * @member {Boolean} CanBeCanceled + */ +CancellationToken.prototype['CanBeCanceled'] = undefined; + +/** + * @member {module:model/WaitHandle} WaitHandle + */ +CancellationToken.prototype['WaitHandle'] = undefined; + + + + + + +export default CancellationToken; + diff --git a/src/model/CardReader.js b/src/model/CardReader.js new file mode 100644 index 00000000..b72f66f1 --- /dev/null +++ b/src/model/CardReader.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ReaderActionStateInfo from './ReaderActionStateInfo'; + +/** + * The CardReader model module. + * @module model/CardReader + * @version 1.0.0 + */ +class CardReader { + /** + * Constructs a new CardReader. + * Card reader + * @alias module:model/CardReader + */ + constructor() { + + CardReader.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CardReader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CardReader} obj Optional instance to populate. + * @return {module:model/CardReader} The populated CardReader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CardReader(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('DeviceSoftwareVersion')) { + obj['DeviceSoftwareVersion'] = ApiClient.convertToType(data['DeviceSoftwareVersion'], 'String'); + } + if (data.hasOwnProperty('SerialNumber')) { + obj['SerialNumber'] = ApiClient.convertToType(data['SerialNumber'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('RegistrationCode')) { + obj['RegistrationCode'] = ApiClient.convertToType(data['RegistrationCode'], 'String'); + } + if (data.hasOwnProperty('DeviceType')) { + obj['DeviceType'] = ApiClient.convertToType(data['DeviceType'], 'String'); + } + if (data.hasOwnProperty('Deleted')) { + obj['Deleted'] = ApiClient.convertToType(data['Deleted'], 'Boolean'); + } + if (data.hasOwnProperty('Action')) { + obj['Action'] = ReaderActionStateInfo.constructFromObject(data['Action']); + } + } + return obj; + } + + +} + +/** + * Stripe reader id + * @member {String} Id + */ +CardReader.prototype['Id'] = undefined; + +/** + * Software version + * @member {String} DeviceSoftwareVersion + */ +CardReader.prototype['DeviceSoftwareVersion'] = undefined; + +/** + * Device serial number + * @member {String} SerialNumber + */ +CardReader.prototype['SerialNumber'] = undefined; + +/** + * Device status online or offline + * @member {String} Status + */ +CardReader.prototype['Status'] = undefined; + +/** + * Registration code + * @member {String} RegistrationCode + */ +CardReader.prototype['RegistrationCode'] = undefined; + +/** + * Device type + * @member {String} DeviceType + */ +CardReader.prototype['DeviceType'] = undefined; + +/** + * Indicates that the reader is deleted or not + * @member {Boolean} Deleted + */ +CardReader.prototype['Deleted'] = undefined; + +/** + * @member {module:model/ReaderActionStateInfo} Action + */ +CardReader.prototype['Action'] = undefined; + + + + + + +export default CardReader; + diff --git a/src/model/CardReaderRegistrationRequest.js b/src/model/CardReaderRegistrationRequest.js new file mode 100644 index 00000000..2cf7ea83 --- /dev/null +++ b/src/model/CardReaderRegistrationRequest.js @@ -0,0 +1,84 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CardReaderRegistrationRequest model module. + * @module model/CardReaderRegistrationRequest + * @version 1.0.0 + */ +class CardReaderRegistrationRequest { + /** + * Constructs a new CardReaderRegistrationRequest. + * Card reader registration request + * @alias module:model/CardReaderRegistrationRequest + * @param RegistrationCode {String} The reader registration code + */ + constructor(RegistrationCode) { + + CardReaderRegistrationRequest.initialize(this, RegistrationCode); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, RegistrationCode) { + obj['RegistrationCode'] = RegistrationCode; + } + + /** + * Constructs a CardReaderRegistrationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CardReaderRegistrationRequest} obj Optional instance to populate. + * @return {module:model/CardReaderRegistrationRequest} The populated CardReaderRegistrationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CardReaderRegistrationRequest(); + + if (data.hasOwnProperty('RegistrationCode')) { + obj['RegistrationCode'] = ApiClient.convertToType(data['RegistrationCode'], 'String'); + } + if (data.hasOwnProperty('KioskDeviceId')) { + obj['KioskDeviceId'] = ApiClient.convertToType(data['KioskDeviceId'], 'String'); + } + } + return obj; + } + + +} + +/** + * The reader registration code + * @member {String} RegistrationCode + */ +CardReaderRegistrationRequest.prototype['RegistrationCode'] = undefined; + +/** + * The kiosk device id + * @member {String} KioskDeviceId + */ +CardReaderRegistrationRequest.prototype['KioskDeviceId'] = undefined; + + + + + + +export default CardReaderRegistrationRequest; + diff --git a/src/model/CatalogGroupArchivedEvent.js b/src/model/CatalogGroupArchivedEvent.js new file mode 100644 index 00000000..78f54659 --- /dev/null +++ b/src/model/CatalogGroupArchivedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Group from './Group'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CatalogGroupArchivedEvent model module. + * @module model/CatalogGroupArchivedEvent + * @version 1.0.0 + */ +class CatalogGroupArchivedEvent { + /** + * Constructs a new CatalogGroupArchivedEvent. + * + * @alias module:model/CatalogGroupArchivedEvent + */ + constructor() { + + CatalogGroupArchivedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CatalogGroupArchivedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogGroupArchivedEvent} obj Optional instance to populate. + * @return {module:model/CatalogGroupArchivedEvent} The populated CatalogGroupArchivedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogGroupArchivedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Group')) { + obj['Group'] = Group.constructFromObject(data['Group']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CatalogGroupArchivedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +CatalogGroupArchivedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CatalogGroupArchivedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Group} Group + */ +CatalogGroupArchivedEvent.prototype['Group'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CatalogGroupArchivedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CatalogGroupArchivedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CatalogGroupArchivedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CatalogGroupArchivedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CatalogGroupArchivedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CatalogGroupArchivedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CatalogGroupArchivedEvent; + diff --git a/src/model/CatalogGroupCreatedEvent.js b/src/model/CatalogGroupCreatedEvent.js new file mode 100644 index 00000000..ac5a0e5e --- /dev/null +++ b/src/model/CatalogGroupCreatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Group from './Group'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CatalogGroupCreatedEvent model module. + * @module model/CatalogGroupCreatedEvent + * @version 1.0.0 + */ +class CatalogGroupCreatedEvent { + /** + * Constructs a new CatalogGroupCreatedEvent. + * + * @alias module:model/CatalogGroupCreatedEvent + */ + constructor() { + + CatalogGroupCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CatalogGroupCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogGroupCreatedEvent} obj Optional instance to populate. + * @return {module:model/CatalogGroupCreatedEvent} The populated CatalogGroupCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogGroupCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Group')) { + obj['Group'] = Group.constructFromObject(data['Group']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CatalogGroupCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +CatalogGroupCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CatalogGroupCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Group} Group + */ +CatalogGroupCreatedEvent.prototype['Group'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CatalogGroupCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CatalogGroupCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CatalogGroupCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CatalogGroupCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CatalogGroupCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CatalogGroupCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CatalogGroupCreatedEvent; + diff --git a/src/model/CatalogGroupReference.js b/src/model/CatalogGroupReference.js new file mode 100644 index 00000000..da45b2ab --- /dev/null +++ b/src/model/CatalogGroupReference.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Group from './Group'; + +/** + * The CatalogGroupReference model module. + * @module model/CatalogGroupReference + * @version 1.0.0 + */ +class CatalogGroupReference { + /** + * Constructs a new CatalogGroupReference. + * Reference to an existing {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} + * @alias module:model/CatalogGroupReference + * @param CatalogGroupId {String} Identifier of the ProductId to use as SubProduct + * @param GroupType {module:model/CatalogGroupReference.GroupTypeEnum} Type of the SupProduct + */ + constructor(CatalogGroupId, GroupType) { + + CatalogGroupReference.initialize(this, CatalogGroupId, GroupType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogGroupId, GroupType) { + obj['CatalogGroupId'] = CatalogGroupId; + obj['GroupType'] = GroupType; + } + + /** + * Constructs a CatalogGroupReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogGroupReference} obj Optional instance to populate. + * @return {module:model/CatalogGroupReference} The populated CatalogGroupReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogGroupReference(); + + if (data.hasOwnProperty('Group')) { + obj['Group'] = Group.constructFromObject(data['Group']); + } + if (data.hasOwnProperty('CatalogGroupId')) { + obj['CatalogGroupId'] = ApiClient.convertToType(data['CatalogGroupId'], 'String'); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Group} Group + */ +CatalogGroupReference.prototype['Group'] = undefined; + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogGroupId + */ +CatalogGroupReference.prototype['CatalogGroupId'] = undefined; + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogItemId + */ +CatalogGroupReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/CatalogGroupReference.GroupTypeEnum} GroupType + */ +CatalogGroupReference.prototype['GroupType'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +CatalogGroupReference['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default CatalogGroupReference; + diff --git a/src/model/CatalogGroupUpdatedEvent.js b/src/model/CatalogGroupUpdatedEvent.js new file mode 100644 index 00000000..f0819f0e --- /dev/null +++ b/src/model/CatalogGroupUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Group from './Group'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CatalogGroupUpdatedEvent model module. + * @module model/CatalogGroupUpdatedEvent + * @version 1.0.0 + */ +class CatalogGroupUpdatedEvent { + /** + * Constructs a new CatalogGroupUpdatedEvent. + * + * @alias module:model/CatalogGroupUpdatedEvent + */ + constructor() { + + CatalogGroupUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CatalogGroupUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogGroupUpdatedEvent} obj Optional instance to populate. + * @return {module:model/CatalogGroupUpdatedEvent} The populated CatalogGroupUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogGroupUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Group')) { + obj['Group'] = Group.constructFromObject(data['Group']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CatalogGroupUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +CatalogGroupUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CatalogGroupUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Group} Group + */ +CatalogGroupUpdatedEvent.prototype['Group'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CatalogGroupUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CatalogGroupUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CatalogGroupUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CatalogGroupUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CatalogGroupUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CatalogGroupUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CatalogGroupUpdatedEvent; + diff --git a/src/model/CatalogImage.js b/src/model/CatalogImage.js new file mode 100644 index 00000000..f447420f --- /dev/null +++ b/src/model/CatalogImage.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CatalogImage model module. + * @module model/CatalogImage + * @version 1.0.0 + */ +class CatalogImage { + /** + * Constructs a new CatalogImage. + * Catalog Image + * @alias module:model/CatalogImage + */ + constructor() { + + CatalogImage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CatalogImage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogImage} obj Optional instance to populate. + * @return {module:model/CatalogImage} The populated CatalogImage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogImage(); + + if (data.hasOwnProperty('ImageUri')) { + obj['ImageUri'] = ApiClient.convertToType(data['ImageUri'], 'String'); + } + } + return obj; + } + + +} + +/** + * Unique catalog Item id + * @member {String} ImageUri + */ +CatalogImage.prototype['ImageUri'] = undefined; + + + + + + +export default CatalogImage; + diff --git a/src/model/CatalogItem.js b/src/model/CatalogItem.js new file mode 100644 index 00000000..e1d1436c --- /dev/null +++ b/src/model/CatalogItem.js @@ -0,0 +1,194 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CatalogGroupReference from './CatalogGroupReference'; +import Metafield from './Metafield'; + +/** + * The CatalogItem model module. + * @module model/CatalogItem + * @version 1.0.0 + */ +class CatalogItem { + /** + * Constructs a new CatalogItem. + * CatalogItem + * @alias module:model/CatalogItem + * @param ItemType {module:model/CatalogItem.ItemTypeEnum} Type of item (Product, Modifier, etc) + * @param Sku {String} Stock Keeping Unit (SKU) + * @param Name {String} Item name + * @param Price {Number} Item price + */ + constructor(ItemType, Sku, Name, Price) { + + CatalogItem.initialize(this, ItemType, Sku, Name, Price); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, ItemType, Sku, Name, Price) { + obj['ItemType'] = ItemType; + obj['Sku'] = Sku; + obj['Name'] = Name; + obj['Price'] = Price; + } + + /** + * Constructs a CatalogItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogItem} obj Optional instance to populate. + * @return {module:model/CatalogItem} The populated CatalogItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogItem(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('IsArchived')) { + obj['IsArchived'] = ApiClient.convertToType(data['IsArchived'], 'Boolean'); + } + if (data.hasOwnProperty('Groups')) { + obj['Groups'] = ApiClient.convertToType(data['Groups'], [CatalogGroupReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + if (data.hasOwnProperty('ItemType')) { + obj['ItemType'] = ApiClient.convertToType(data['ItemType'], 'String'); + } + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Unique catalog Item id + * @member {String} CatalogItemId + */ +CatalogItem.prototype['CatalogItemId'] = undefined; + +/** + * Returns true if the item is archived + * @member {Boolean} IsArchived + */ +CatalogItem.prototype['IsArchived'] = undefined; + +/** + * Collection of groups associated with this item + * @member {Array.} Groups + */ +CatalogItem.prototype['Groups'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +CatalogItem.prototype['Metafields'] = undefined; + +/** + * Type of item (Product, Modifier, etc) + * @member {module:model/CatalogItem.ItemTypeEnum} ItemType + */ +CatalogItem.prototype['ItemType'] = undefined; + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +CatalogItem.prototype['Sku'] = undefined; + +/** + * Item name + * @member {String} Name + */ +CatalogItem.prototype['Name'] = undefined; + +/** + * Item description + * @member {String} Description + */ +CatalogItem.prototype['Description'] = undefined; + +/** + * Item price + * @member {Number} Price + */ +CatalogItem.prototype['Price'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +CatalogItem.prototype['ImageFileName'] = undefined; + +/** + * item contains alcohol + * @member {Boolean} Alcohol + */ +CatalogItem.prototype['Alcohol'] = undefined; + + + + + +/** + * Allowed values for the ItemType property. + * @enum {String} + * @readonly + */ +CatalogItem['ItemTypeEnum'] = { + + /** + * value: "Product" + * @const + */ + "Product": "Product", + + /** + * value: "Modifier" + * @const + */ + "Modifier": "Modifier" +}; + + + +export default CatalogItem; + diff --git a/src/model/CatalogItemArchivedEvent.js b/src/model/CatalogItemArchivedEvent.js new file mode 100644 index 00000000..c074604d --- /dev/null +++ b/src/model/CatalogItemArchivedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CatalogItem from './CatalogItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CatalogItemArchivedEvent model module. + * @module model/CatalogItemArchivedEvent + * @version 1.0.0 + */ +class CatalogItemArchivedEvent { + /** + * Constructs a new CatalogItemArchivedEvent. + * + * @alias module:model/CatalogItemArchivedEvent + */ + constructor() { + + CatalogItemArchivedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CatalogItemArchivedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogItemArchivedEvent} obj Optional instance to populate. + * @return {module:model/CatalogItemArchivedEvent} The populated CatalogItemArchivedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogItemArchivedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('CatalogItem')) { + obj['CatalogItem'] = CatalogItem.constructFromObject(data['CatalogItem']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CatalogItemArchivedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +CatalogItemArchivedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CatalogItemArchivedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/CatalogItem} CatalogItem + */ +CatalogItemArchivedEvent.prototype['CatalogItem'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CatalogItemArchivedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CatalogItemArchivedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CatalogItemArchivedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CatalogItemArchivedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CatalogItemArchivedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CatalogItemArchivedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CatalogItemArchivedEvent; + diff --git a/src/model/CatalogItemCreatedEvent.js b/src/model/CatalogItemCreatedEvent.js new file mode 100644 index 00000000..23a43bf9 --- /dev/null +++ b/src/model/CatalogItemCreatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CatalogItem from './CatalogItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CatalogItemCreatedEvent model module. + * @module model/CatalogItemCreatedEvent + * @version 1.0.0 + */ +class CatalogItemCreatedEvent { + /** + * Constructs a new CatalogItemCreatedEvent. + * + * @alias module:model/CatalogItemCreatedEvent + */ + constructor() { + + CatalogItemCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CatalogItemCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogItemCreatedEvent} obj Optional instance to populate. + * @return {module:model/CatalogItemCreatedEvent} The populated CatalogItemCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogItemCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('CatalogItem')) { + obj['CatalogItem'] = CatalogItem.constructFromObject(data['CatalogItem']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CatalogItemCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +CatalogItemCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CatalogItemCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/CatalogItem} CatalogItem + */ +CatalogItemCreatedEvent.prototype['CatalogItem'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CatalogItemCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CatalogItemCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CatalogItemCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CatalogItemCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CatalogItemCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CatalogItemCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CatalogItemCreatedEvent; + diff --git a/src/model/CatalogItemUpdatedEvent.js b/src/model/CatalogItemUpdatedEvent.js new file mode 100644 index 00000000..dfa77854 --- /dev/null +++ b/src/model/CatalogItemUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CatalogItem from './CatalogItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CatalogItemUpdatedEvent model module. + * @module model/CatalogItemUpdatedEvent + * @version 1.0.0 + */ +class CatalogItemUpdatedEvent { + /** + * Constructs a new CatalogItemUpdatedEvent. + * + * @alias module:model/CatalogItemUpdatedEvent + */ + constructor() { + + CatalogItemUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CatalogItemUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CatalogItemUpdatedEvent} obj Optional instance to populate. + * @return {module:model/CatalogItemUpdatedEvent} The populated CatalogItemUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CatalogItemUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('CatalogItem')) { + obj['CatalogItem'] = CatalogItem.constructFromObject(data['CatalogItem']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CatalogItemUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +CatalogItemUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CatalogItemUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/CatalogItem} CatalogItem + */ +CatalogItemUpdatedEvent.prototype['CatalogItem'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CatalogItemUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CatalogItemUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CatalogItemUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CatalogItemUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CatalogItemUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CatalogItemUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CatalogItemUpdatedEvent; + diff --git a/src/model/CertificateCreatedEvent.js b/src/model/CertificateCreatedEvent.js new file mode 100644 index 00000000..167ee179 --- /dev/null +++ b/src/model/CertificateCreatedEvent.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CertificateCreatedEvent model module. + * @module model/CertificateCreatedEvent + * @version 1.0.0 + */ +class CertificateCreatedEvent { + /** + * Constructs a new CertificateCreatedEvent. + * The DNS for the Hostname verified + * @alias module:model/CertificateCreatedEvent + */ + constructor() { + + CertificateCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CertificateCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateCreatedEvent} obj Optional instance to populate. + * @return {module:model/CertificateCreatedEvent} The populated CertificateCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateCreatedEvent(); + + if (data.hasOwnProperty('Hostname')) { + obj['Hostname'] = ApiClient.convertToType(data['Hostname'], 'String'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Description + * @member {String} Hostname + */ +CertificateCreatedEvent.prototype['Hostname'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +CertificateCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CertificateCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CertificateCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CertificateCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CertificateCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CertificateCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CertificateCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CertificateCreatedEvent; + diff --git a/src/model/CertificateRenewedEvent.js b/src/model/CertificateRenewedEvent.js new file mode 100644 index 00000000..f3a696b0 --- /dev/null +++ b/src/model/CertificateRenewedEvent.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CertificateRenewedEvent model module. + * @module model/CertificateRenewedEvent + * @version 1.0.0 + */ +class CertificateRenewedEvent { + /** + * Constructs a new CertificateRenewedEvent. + * The DNS for the Hostname verified + * @alias module:model/CertificateRenewedEvent + */ + constructor() { + + CertificateRenewedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CertificateRenewedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateRenewedEvent} obj Optional instance to populate. + * @return {module:model/CertificateRenewedEvent} The populated CertificateRenewedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateRenewedEvent(); + + if (data.hasOwnProperty('Hostname')) { + obj['Hostname'] = ApiClient.convertToType(data['Hostname'], 'String'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Description + * @member {String} Hostname + */ +CertificateRenewedEvent.prototype['Hostname'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +CertificateRenewedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CertificateRenewedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CertificateRenewedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CertificateRenewedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CertificateRenewedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CertificateRenewedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CertificateRenewedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CertificateRenewedEvent; + diff --git a/src/model/ChangePasswordModel.js b/src/model/ChangePasswordModel.js new file mode 100644 index 00000000..08e7808e --- /dev/null +++ b/src/model/ChangePasswordModel.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ChangePasswordModel model module. + * @module model/ChangePasswordModel + * @version 1.0.0 + */ +class ChangePasswordModel { + /** + * Constructs a new ChangePasswordModel. + * Change password model + * @alias module:model/ChangePasswordModel + * @param OldPassword {String} Old password + * @param NewPassword {String} New password + */ + constructor(OldPassword, NewPassword) { + + ChangePasswordModel.initialize(this, OldPassword, NewPassword); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, OldPassword, NewPassword) { + obj['OldPassword'] = OldPassword; + obj['NewPassword'] = NewPassword; + } + + /** + * Constructs a ChangePasswordModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChangePasswordModel} obj Optional instance to populate. + * @return {module:model/ChangePasswordModel} The populated ChangePasswordModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ChangePasswordModel(); + + if (data.hasOwnProperty('OldPassword')) { + obj['OldPassword'] = ApiClient.convertToType(data['OldPassword'], 'String'); + } + if (data.hasOwnProperty('NewPassword')) { + obj['NewPassword'] = ApiClient.convertToType(data['NewPassword'], 'String'); + } + } + return obj; + } + + +} + +/** + * Old password + * @member {String} OldPassword + */ +ChangePasswordModel.prototype['OldPassword'] = undefined; + +/** + * New password + * @member {String} NewPassword + */ +ChangePasswordModel.prototype['NewPassword'] = undefined; + + + + + + +export default ChangePasswordModel; + diff --git a/src/model/Channel.js b/src/model/Channel.js new file mode 100644 index 00000000..35bd93e9 --- /dev/null +++ b/src/model/Channel.js @@ -0,0 +1,138 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Channel model module. + * @module model/Channel + * @version 1.0.0 + */ +class Channel { + /** + * Constructs a new Channel. + * @alias module:model/Channel + */ + constructor() { + + Channel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Channel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Channel} obj Optional instance to populate. + * @return {module:model/Channel} The populated Channel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Channel(); + + if (data.hasOwnProperty('ChannelId')) { + obj['ChannelId'] = ApiClient.convertToType(data['ChannelId'], 'Number'); + } + if (data.hasOwnProperty('TranslationKey')) { + obj['TranslationKey'] = ApiClient.convertToType(data['TranslationKey'], 'String'); + } + if (data.hasOwnProperty('Source')) { + obj['Source'] = ApiClient.convertToType(data['Source'], 'String'); + } + if (data.hasOwnProperty('LogoUri')) { + obj['LogoUri'] = ApiClient.convertToType(data['LogoUri'], 'String'); + } + if (data.hasOwnProperty('Available')) { + obj['Available'] = ApiClient.convertToType(data['Available'], 'Boolean'); + } + if (data.hasOwnProperty('MaintainedExternally')) { + obj['MaintainedExternally'] = ApiClient.convertToType(data['MaintainedExternally'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Channel Id + * @member {Number} ChannelId + */ +Channel.prototype['ChannelId'] = undefined; + +/** + * Channel TranslationKey + * @member {String} TranslationKey + */ +Channel.prototype['TranslationKey'] = undefined; + +/** + * Channel Source + * @member {module:model/Channel.SourceEnum} Source + */ +Channel.prototype['Source'] = undefined; + +/** + * Channel Logo URl + * @member {String} LogoUri + */ +Channel.prototype['LogoUri'] = undefined; + +/** + * Channel is Available or not + * @member {Boolean} Available + */ +Channel.prototype['Available'] = undefined; + +/** + * Channel is Maintained Externally or not + * @member {Boolean} MaintainedExternally + */ +Channel.prototype['MaintainedExternally'] = undefined; + + + + + +/** + * Allowed values for the Source property. + * @enum {String} + * @readonly + */ +Channel['SourceEnum'] = { + + /** + * value: "Internal" + * @const + */ + "Internal": "Internal", + + /** + * value: "External" + * @const + */ + "External": "External" +}; + + + +export default Channel; + diff --git a/src/model/ChannelStoresUpdatedEvent.js b/src/model/ChannelStoresUpdatedEvent.js new file mode 100644 index 00000000..3c7daac8 --- /dev/null +++ b/src/model/ChannelStoresUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The ChannelStoresUpdatedEvent model module. + * @module model/ChannelStoresUpdatedEvent + * @version 1.0.0 + */ +class ChannelStoresUpdatedEvent { + /** + * Constructs a new ChannelStoresUpdatedEvent. + * Channel Stores Updated Event + * @alias module:model/ChannelStoresUpdatedEvent + */ + constructor() { + + ChannelStoresUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ChannelStoresUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChannelStoresUpdatedEvent} obj Optional instance to populate. + * @return {module:model/ChannelStoresUpdatedEvent} The populated ChannelStoresUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ChannelStoresUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('ChannelId')) { + obj['ChannelId'] = ApiClient.convertToType(data['ChannelId'], 'Number'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +ChannelStoresUpdatedEvent.prototype['EventName'] = undefined; + +/** + * ID of the channel + * @member {Number} ChannelId + */ +ChannelStoresUpdatedEvent.prototype['ChannelId'] = undefined; + +/** + * List of store ids + * @member {Array.} StoreIds + */ +ChannelStoresUpdatedEvent.prototype['StoreIds'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +ChannelStoresUpdatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +ChannelStoresUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +ChannelStoresUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +ChannelStoresUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +ChannelStoresUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +ChannelStoresUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +ChannelStoresUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default ChannelStoresUpdatedEvent; + diff --git a/src/model/ChargebackDetails.js b/src/model/ChargebackDetails.js new file mode 100644 index 00000000..e73c2369 --- /dev/null +++ b/src/model/ChargebackDetails.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ChargebackDetails model module. + * @module model/ChargebackDetails + * @version 1.0.0 + */ +class ChargebackDetails { + /** + * Constructs a new ChargebackDetails. + * Chargebacks breakdown + * @alias module:model/ChargebackDetails + */ + constructor() { + + ChargebackDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ChargebackDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChargebackDetails} obj Optional instance to populate. + * @return {module:model/ChargebackDetails} The populated ChargebackDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ChargebackDetails(); + + if (data.hasOwnProperty('ChargebackAmount')) { + obj['ChargebackAmount'] = ApiClient.convertToType(data['ChargebackAmount'], 'Number'); + } + if (data.hasOwnProperty('PosSalesChargebackAmount')) { + obj['PosSalesChargebackAmount'] = ApiClient.convertToType(data['PosSalesChargebackAmount'], 'Number'); + } + if (data.hasOwnProperty('ChargebackRefundedFees')) { + obj['ChargebackRefundedFees'] = ApiClient.convertToType(data['ChargebackRefundedFees'], 'Number'); + } + if (data.hasOwnProperty('ChargebacksCount')) { + obj['ChargebacksCount'] = ApiClient.convertToType(data['ChargebacksCount'], 'Number'); + } + if (data.hasOwnProperty('TotalChargebackCost')) { + obj['TotalChargebackCost'] = ApiClient.convertToType(data['TotalChargebackCost'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Chargeback amount + * @member {Number} ChargebackAmount + */ +ChargebackDetails.prototype['ChargebackAmount'] = undefined; + +/** + * POS Chargeback amount + * @member {Number} PosSalesChargebackAmount + */ +ChargebackDetails.prototype['PosSalesChargebackAmount'] = undefined; + +/** + * Chargeback refunded feeds + * @member {Number} ChargebackRefundedFees + */ +ChargebackDetails.prototype['ChargebackRefundedFees'] = undefined; + +/** + * Number of chargebacks + * @member {Number} ChargebacksCount + */ +ChargebackDetails.prototype['ChargebacksCount'] = undefined; + +/** + * Total amount + * @member {Number} TotalChargebackCost + */ +ChargebackDetails.prototype['TotalChargebackCost'] = undefined; + + + + + + +export default ChargebackDetails; + diff --git a/src/model/ClientDevice.js b/src/model/ClientDevice.js new file mode 100644 index 00000000..6ecc7cd1 --- /dev/null +++ b/src/model/ClientDevice.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ClientDevice model module. + * @module model/ClientDevice + * @version 1.0.0 + */ +class ClientDevice { + /** + * Constructs a new ClientDevice. + * Client Device + * @alias module:model/ClientDevice + */ + constructor() { + + ClientDevice.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ClientDevice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientDevice} obj Optional instance to populate. + * @return {module:model/ClientDevice} The populated ClientDevice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientDevice(); + + if (data.hasOwnProperty('DeviceModel')) { + obj['DeviceModel'] = ApiClient.convertToType(data['DeviceModel'], 'String'); + } + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('DeviceName')) { + obj['DeviceName'] = ApiClient.convertToType(data['DeviceName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Model + * @member {String} DeviceModel + */ +ClientDevice.prototype['DeviceModel'] = undefined; + +/** + * Device Id + * @member {String} DeviceId + */ +ClientDevice.prototype['DeviceId'] = undefined; + +/** + * Device Name + * @member {String} DeviceName + */ +ClientDevice.prototype['DeviceName'] = undefined; + + + + + + +export default ClientDevice; + diff --git a/src/model/ClientDeviceAssignEnrolledDevice.js b/src/model/ClientDeviceAssignEnrolledDevice.js new file mode 100644 index 00000000..dca52fae --- /dev/null +++ b/src/model/ClientDeviceAssignEnrolledDevice.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ClientDeviceAssignEnrolledDevice model module. + * @module model/ClientDeviceAssignEnrolledDevice + * @version 1.0.0 + */ +class ClientDeviceAssignEnrolledDevice { + /** + * Constructs a new ClientDeviceAssignEnrolledDevice. + * Assign enrolled device to AppId + * @alias module:model/ClientDeviceAssignEnrolledDevice + */ + constructor() { + + ClientDeviceAssignEnrolledDevice.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ClientDeviceAssignEnrolledDevice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientDeviceAssignEnrolledDevice} obj Optional instance to populate. + * @return {module:model/ClientDeviceAssignEnrolledDevice} The populated ClientDeviceAssignEnrolledDevice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientDeviceAssignEnrolledDevice(); + + if (data.hasOwnProperty('DeviceModel')) { + obj['DeviceModel'] = ApiClient.convertToType(data['DeviceModel'], 'String'); + } + if (data.hasOwnProperty('PinCode')) { + obj['PinCode'] = ApiClient.convertToType(data['PinCode'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Model + * @member {String} DeviceModel + */ +ClientDeviceAssignEnrolledDevice.prototype['DeviceModel'] = undefined; + +/** + * Pin Code + * @member {String} PinCode + */ +ClientDeviceAssignEnrolledDevice.prototype['PinCode'] = undefined; + + + + + + +export default ClientDeviceAssignEnrolledDevice; + diff --git a/src/model/ClientDeviceEnroll.js b/src/model/ClientDeviceEnroll.js new file mode 100644 index 00000000..bc11d643 --- /dev/null +++ b/src/model/ClientDeviceEnroll.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ClientDeviceEnroll model module. + * @module model/ClientDeviceEnroll + * @version 1.0.0 + */ +class ClientDeviceEnroll { + /** + * Constructs a new ClientDeviceEnroll. + * Enroll a client device + * @alias module:model/ClientDeviceEnroll + */ + constructor() { + + ClientDeviceEnroll.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ClientDeviceEnroll from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientDeviceEnroll} obj Optional instance to populate. + * @return {module:model/ClientDeviceEnroll} The populated ClientDeviceEnroll instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientDeviceEnroll(); + + if (data.hasOwnProperty('DeviceModel')) { + obj['DeviceModel'] = ApiClient.convertToType(data['DeviceModel'], 'String'); + } + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('DeviceName')) { + obj['DeviceName'] = ApiClient.convertToType(data['DeviceName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device model + * @member {String} DeviceModel + */ +ClientDeviceEnroll.prototype['DeviceModel'] = undefined; + +/** + * Device Id + * @member {String} DeviceId + */ +ClientDeviceEnroll.prototype['DeviceId'] = undefined; + +/** + * Device Name + * @member {String} DeviceName + */ +ClientDeviceEnroll.prototype['DeviceName'] = undefined; + + + + + + +export default ClientDeviceEnroll; + diff --git a/src/model/ClientDeviceEnrollmentResult.js b/src/model/ClientDeviceEnrollmentResult.js new file mode 100644 index 00000000..ade7cd0c --- /dev/null +++ b/src/model/ClientDeviceEnrollmentResult.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ClientDeviceEnrollmentResult model module. + * @module model/ClientDeviceEnrollmentResult + * @version 1.0.0 + */ +class ClientDeviceEnrollmentResult { + /** + * Constructs a new ClientDeviceEnrollmentResult. + * Device enrollment result + * @alias module:model/ClientDeviceEnrollmentResult + */ + constructor() { + + ClientDeviceEnrollmentResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ClientDeviceEnrollmentResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientDeviceEnrollmentResult} obj Optional instance to populate. + * @return {module:model/ClientDeviceEnrollmentResult} The populated ClientDeviceEnrollmentResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientDeviceEnrollmentResult(); + + if (data.hasOwnProperty('PinCode')) { + obj['PinCode'] = ApiClient.convertToType(data['PinCode'], 'String'); + } + } + return obj; + } + + +} + +/** + * PIN Code for assigning + * @member {String} PinCode + */ +ClientDeviceEnrollmentResult.prototype['PinCode'] = undefined; + + + + + + +export default ClientDeviceEnrollmentResult; + diff --git a/src/model/ClientDeviceSummary.js b/src/model/ClientDeviceSummary.js new file mode 100644 index 00000000..fd0445ce --- /dev/null +++ b/src/model/ClientDeviceSummary.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ClientDeviceSummary model module. + * @module model/ClientDeviceSummary + * @version 1.0.0 + */ +class ClientDeviceSummary { + /** + * Constructs a new ClientDeviceSummary. + * Client Device summary (header fields) + * @alias module:model/ClientDeviceSummary + */ + constructor() { + + ClientDeviceSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ClientDeviceSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientDeviceSummary} obj Optional instance to populate. + * @return {module:model/ClientDeviceSummary} The populated ClientDeviceSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientDeviceSummary(); + + if (data.hasOwnProperty('DeviceModel')) { + obj['DeviceModel'] = ApiClient.convertToType(data['DeviceModel'], 'String'); + } + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('DeviceName')) { + obj['DeviceName'] = ApiClient.convertToType(data['DeviceName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Model + * @member {String} DeviceModel + */ +ClientDeviceSummary.prototype['DeviceModel'] = undefined; + +/** + * Device Id + * @member {String} DeviceId + */ +ClientDeviceSummary.prototype['DeviceId'] = undefined; + +/** + * Device Name + * @member {String} DeviceName + */ +ClientDeviceSummary.prototype['DeviceName'] = undefined; + + + + + + +export default ClientDeviceSummary; + diff --git a/src/model/ConfiguredStore.js b/src/model/ConfiguredStore.js new file mode 100644 index 00000000..4fb0b4c3 --- /dev/null +++ b/src/model/ConfiguredStore.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ConfiguredStore model module. + * @module model/ConfiguredStore + * @version 1.0.0 + */ +class ConfiguredStore { + /** + * Constructs a new ConfiguredStore. + * @alias module:model/ConfiguredStore + */ + constructor() { + + ConfiguredStore.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ConfiguredStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfiguredStore} obj Optional instance to populate. + * @return {module:model/ConfiguredStore} The populated ConfiguredStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ConfiguredStore(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} StoreId + */ +ConfiguredStore.prototype['StoreId'] = undefined; + +/** + * @member {String} Name + */ +ConfiguredStore.prototype['Name'] = undefined; + + + + + + +export default ConfiguredStore; + diff --git a/src/model/Coordinates.js b/src/model/Coordinates.js new file mode 100644 index 00000000..c1b1d3d0 --- /dev/null +++ b/src/model/Coordinates.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Coordinates model module. + * @module model/Coordinates + * @version 1.0.0 + */ +class Coordinates { + /** + * Constructs a new Coordinates. + * Coordinates + * @alias module:model/Coordinates + */ + constructor() { + + Coordinates.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Coordinates from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Coordinates} obj Optional instance to populate. + * @return {module:model/Coordinates} The populated Coordinates instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Coordinates(); + + if (data.hasOwnProperty('Latitude')) { + obj['Latitude'] = ApiClient.convertToType(data['Latitude'], 'Number'); + } + if (data.hasOwnProperty('Longitude')) { + obj['Longitude'] = ApiClient.convertToType(data['Longitude'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Latitude + * @member {Number} Latitude + */ +Coordinates.prototype['Latitude'] = undefined; + +/** + * Longitude + * @member {Number} Longitude + */ +Coordinates.prototype['Longitude'] = undefined; + + + + + + +export default Coordinates; + diff --git a/src/model/CountryFormResponse.js b/src/model/CountryFormResponse.js new file mode 100644 index 00000000..21611f32 --- /dev/null +++ b/src/model/CountryFormResponse.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CountryFormResponse model module. + * @module model/CountryFormResponse + * @version 1.0.0 + */ +class CountryFormResponse { + /** + * Constructs a new CountryFormResponse. + * Country + * @alias module:model/CountryFormResponse + */ + constructor() { + + CountryFormResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CountryFormResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CountryFormResponse} obj Optional instance to populate. + * @return {module:model/CountryFormResponse} The populated CountryFormResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CountryFormResponse(); + + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + } + return obj; + } + + +} + +/** + * ISO two letter code. + * @member {String} Value + */ +CountryFormResponse.prototype['Value'] = undefined; + +/** + * Label + * @member {String} Label + */ +CountryFormResponse.prototype['Label'] = undefined; + + + + + + +export default CountryFormResponse; + diff --git a/src/model/CountryWithAccountFieldsDefinitions.js b/src/model/CountryWithAccountFieldsDefinitions.js new file mode 100644 index 00000000..a0a4ea18 --- /dev/null +++ b/src/model/CountryWithAccountFieldsDefinitions.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldDefinition from './AccountFieldDefinition'; + +/** + * The CountryWithAccountFieldsDefinitions model module. + * @module model/CountryWithAccountFieldsDefinitions + * @version 1.0.0 + */ +class CountryWithAccountFieldsDefinitions { + /** + * Constructs a new CountryWithAccountFieldsDefinitions. + * List of field definitions per country + * @alias module:model/CountryWithAccountFieldsDefinitions + */ + constructor() { + + CountryWithAccountFieldsDefinitions.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CountryWithAccountFieldsDefinitions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CountryWithAccountFieldsDefinitions} obj Optional instance to populate. + * @return {module:model/CountryWithAccountFieldsDefinitions} The populated CountryWithAccountFieldsDefinitions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CountryWithAccountFieldsDefinitions(); + + if (data.hasOwnProperty('CountryCode')) { + obj['CountryCode'] = ApiClient.convertToType(data['CountryCode'], 'String'); + } + if (data.hasOwnProperty('DisplayName')) { + obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); + } + if (data.hasOwnProperty('SupportType')) { + obj['SupportType'] = ApiClient.convertToType(data['SupportType'], 'String'); + } + if (data.hasOwnProperty('FieldDefinitions')) { + obj['FieldDefinitions'] = ApiClient.convertToType(data['FieldDefinitions'], [AccountFieldDefinition]); + } + } + return obj; + } + + +} + +/** + * Country 2-letter ISO code + * @member {String} CountryCode + */ +CountryWithAccountFieldsDefinitions.prototype['CountryCode'] = undefined; + +/** + * Display name of the country + * @member {String} DisplayName + */ +CountryWithAccountFieldsDefinitions.prototype['DisplayName'] = undefined; + +/** + * Country support type (supported-by-stripe-cc, supported-by-flipdish,not-supported) + * @member {String} SupportType + */ +CountryWithAccountFieldsDefinitions.prototype['SupportType'] = undefined; + +/** + * Bank Account field definitions + * @member {Array.} FieldDefinitions + */ +CountryWithAccountFieldsDefinitions.prototype['FieldDefinitions'] = undefined; + + + + + + +export default CountryWithAccountFieldsDefinitions; + diff --git a/src/model/CreateAccountModel.js b/src/model/CreateAccountModel.js new file mode 100644 index 00000000..e9eaeeb0 --- /dev/null +++ b/src/model/CreateAccountModel.js @@ -0,0 +1,122 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateAccountModel model module. + * @module model/CreateAccountModel + * @version 1.0.0 + */ +class CreateAccountModel { + /** + * Constructs a new CreateAccountModel. + * Create account model + * @alias module:model/CreateAccountModel + * @param Email {String} Email address + * @param StoreName {String} Store name + */ + constructor(Email, StoreName) { + + CreateAccountModel.initialize(this, Email, StoreName); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Email, StoreName) { + obj['Email'] = Email; + obj['StoreName'] = StoreName; + } + + /** + * Constructs a CreateAccountModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAccountModel} obj Optional instance to populate. + * @return {module:model/CreateAccountModel} The populated CreateAccountModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAccountModel(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('LanguageId')) { + obj['LanguageId'] = ApiClient.convertToType(data['LanguageId'], 'String'); + } + if (data.hasOwnProperty('Rid')) { + obj['Rid'] = ApiClient.convertToType(data['Rid'], 'Number'); + } + if (data.hasOwnProperty('Cid')) { + obj['Cid'] = ApiClient.convertToType(data['Cid'], 'String'); + } + if (data.hasOwnProperty('RecaptchaToken')) { + obj['RecaptchaToken'] = ApiClient.convertToType(data['RecaptchaToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * Email address + * @member {String} Email + */ +CreateAccountModel.prototype['Email'] = undefined; + +/** + * Store name + * @member {String} StoreName + */ +CreateAccountModel.prototype['StoreName'] = undefined; + +/** + * LanguageId + * @member {String} LanguageId + */ +CreateAccountModel.prototype['LanguageId'] = undefined; + +/** + * Referral ID + * @member {Number} Rid + */ +CreateAccountModel.prototype['Rid'] = undefined; + +/** + * Campaign ID + * @member {String} Cid + */ +CreateAccountModel.prototype['Cid'] = undefined; + +/** + * Google Recaptcha Token + * @member {String} RecaptchaToken + */ +CreateAccountModel.prototype['RecaptchaToken'] = undefined; + + + + + + +export default CreateAccountModel; + diff --git a/src/model/CreateAppParameters.js b/src/model/CreateAppParameters.js new file mode 100644 index 00000000..f812f8d6 --- /dev/null +++ b/src/model/CreateAppParameters.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateAppParameters model module. + * @module model/CreateAppParameters + * @version 1.0.0 + */ +class CreateAppParameters { + /** + * Constructs a new CreateAppParameters. + * The parameters required to create a new app. + * @alias module:model/CreateAppParameters + */ + constructor() { + + CreateAppParameters.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateAppParameters from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAppParameters} obj Optional instance to populate. + * @return {module:model/CreateAppParameters} The populated CreateAppParameters instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAppParameters(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * The name of the brand that this app/white-label represents. + * @member {String} Name + */ +CreateAppParameters.prototype['Name'] = undefined; + + + + + + +export default CreateAppParameters; + diff --git a/src/model/CreateAppStoreApp.js b/src/model/CreateAppStoreApp.js new file mode 100644 index 00000000..5fb6cfdb --- /dev/null +++ b/src/model/CreateAppStoreApp.js @@ -0,0 +1,519 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppSupportInfo from './AppStoreAppSupportInfo'; +import FieldGroup from './FieldGroup'; + +/** + * The CreateAppStoreApp model module. + * @module model/CreateAppStoreApp + * @version 1.0.0 + */ +class CreateAppStoreApp { + /** + * Constructs a new CreateAppStoreApp. + * @alias module:model/CreateAppStoreApp + * @param Details {String} + * @param ConfigurationType {module:model/CreateAppStoreApp.ConfigurationTypeEnum} + * @param StoreSelectorType {module:model/CreateAppStoreApp.StoreSelectorTypeEnum} + * @param PermissionsType {module:model/CreateAppStoreApp.PermissionsTypeEnum} + * @param Name {String} + * @param Description {String} + * @param Categories {Array.} + * @param Countries {Array.} + */ + constructor(Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + + CreateAppStoreApp.initialize(this, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + obj['Details'] = Details; + obj['ConfigurationType'] = ConfigurationType; + obj['StoreSelectorType'] = StoreSelectorType; + obj['PermissionsType'] = PermissionsType; + obj['Name'] = Name; + obj['Description'] = Description; + obj['Categories'] = Categories; + obj['Countries'] = Countries; + } + + /** + * Constructs a CreateAppStoreApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAppStoreApp} obj Optional instance to populate. + * @return {module:model/CreateAppStoreApp} The populated CreateAppStoreApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAppStoreApp(); + + if (data.hasOwnProperty('Details')) { + obj['Details'] = ApiClient.convertToType(data['Details'], 'String'); + } + if (data.hasOwnProperty('ConfigurationType')) { + obj['ConfigurationType'] = ApiClient.convertToType(data['ConfigurationType'], 'String'); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('FieldGroups')) { + obj['FieldGroups'] = ApiClient.convertToType(data['FieldGroups'], [FieldGroup]); + } + if (data.hasOwnProperty('SetupInstructions')) { + obj['SetupInstructions'] = ApiClient.convertToType(data['SetupInstructions'], 'String'); + } + if (data.hasOwnProperty('ExternalSetupLink')) { + obj['ExternalSetupLink'] = ApiClient.convertToType(data['ExternalSetupLink'], 'String'); + } + if (data.hasOwnProperty('TeammateAppAccessLevel')) { + obj['TeammateAppAccessLevel'] = ApiClient.convertToType(data['TeammateAppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('PermissionsType')) { + obj['PermissionsType'] = ApiClient.convertToType(data['PermissionsType'], 'String'); + } + if (data.hasOwnProperty('Support')) { + obj['Support'] = AppStoreAppSupportInfo.constructFromObject(data['Support']); + } + if (data.hasOwnProperty('ExternalFunctionActionUrl')) { + obj['ExternalFunctionActionUrl'] = ApiClient.convertToType(data['ExternalFunctionActionUrl'], 'String'); + } + if (data.hasOwnProperty('ExternalFunctionSignatureKey')) { + obj['ExternalFunctionSignatureKey'] = ApiClient.convertToType(data['ExternalFunctionSignatureKey'], 'String'); + } + if (data.hasOwnProperty('IsPaid')) { + obj['IsPaid'] = ApiClient.convertToType(data['IsPaid'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Categories')) { + obj['Categories'] = ApiClient.convertToType(data['Categories'], ['String']); + } + if (data.hasOwnProperty('Countries')) { + obj['Countries'] = ApiClient.convertToType(data['Countries'], ['String']); + } + if (data.hasOwnProperty('DeveloperName')) { + obj['DeveloperName'] = ApiClient.convertToType(data['DeveloperName'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Details + */ +CreateAppStoreApp.prototype['Details'] = undefined; + +/** + * @member {module:model/CreateAppStoreApp.ConfigurationTypeEnum} ConfigurationType + */ +CreateAppStoreApp.prototype['ConfigurationType'] = undefined; + +/** + * @member {module:model/CreateAppStoreApp.StoreSelectorTypeEnum} StoreSelectorType + */ +CreateAppStoreApp.prototype['StoreSelectorType'] = undefined; + +/** + * @member {Array.} FieldGroups + */ +CreateAppStoreApp.prototype['FieldGroups'] = undefined; + +/** + * @member {String} SetupInstructions + */ +CreateAppStoreApp.prototype['SetupInstructions'] = undefined; + +/** + * @member {String} ExternalSetupLink + */ +CreateAppStoreApp.prototype['ExternalSetupLink'] = undefined; + +/** + * @member {module:model/CreateAppStoreApp.TeammateAppAccessLevelEnum} TeammateAppAccessLevel + */ +CreateAppStoreApp.prototype['TeammateAppAccessLevel'] = undefined; + +/** + * @member {module:model/CreateAppStoreApp.PermissionsTypeEnum} PermissionsType + */ +CreateAppStoreApp.prototype['PermissionsType'] = undefined; + +/** + * @member {module:model/AppStoreAppSupportInfo} Support + */ +CreateAppStoreApp.prototype['Support'] = undefined; + +/** + * @member {String} ExternalFunctionActionUrl + */ +CreateAppStoreApp.prototype['ExternalFunctionActionUrl'] = undefined; + +/** + * @member {String} ExternalFunctionSignatureKey + */ +CreateAppStoreApp.prototype['ExternalFunctionSignatureKey'] = undefined; + +/** + * @member {Boolean} IsPaid + */ +CreateAppStoreApp.prototype['IsPaid'] = undefined; + +/** + * @member {String} Name + */ +CreateAppStoreApp.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +CreateAppStoreApp.prototype['Description'] = undefined; + +/** + * @member {Boolean} IsEnabled + */ +CreateAppStoreApp.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} Categories + */ +CreateAppStoreApp.prototype['Categories'] = undefined; + +/** + * @member {Array.} Countries + */ +CreateAppStoreApp.prototype['Countries'] = undefined; + +/** + * @member {String} DeveloperName + */ +CreateAppStoreApp.prototype['DeveloperName'] = undefined; + + + + + +/** + * Allowed values for the ConfigurationType property. + * @enum {String} + * @readonly + */ +CreateAppStoreApp['ConfigurationTypeEnum'] = { + + /** + * value: "ExternalLink" + * @const + */ + "ExternalLink": "ExternalLink", + + /** + * value: "FlipdishHosted" + * @const + */ + "FlipdishHosted": "FlipdishHosted" +}; + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +CreateAppStoreApp['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + +/** + * Allowed values for the TeammateAppAccessLevel property. + * @enum {String} + * @readonly + */ +CreateAppStoreApp['TeammateAppAccessLevelEnum'] = { + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger" +}; + + +/** + * Allowed values for the PermissionsType property. + * @enum {String} + * @readonly + */ +CreateAppStoreApp['PermissionsTypeEnum'] = { + + /** + * value: "Teammate" + * @const + */ + "Teammate": "Teammate" +}; + + +/** + * Allowed values for the Categories property. + * @enum {String} + * @readonly + */ +CreateAppStoreApp['CategoriesEnum'] = { + + /** + * value: "PointOfSale" + * @const + */ + "PointOfSale": "PointOfSale", + + /** + * value: "DeliveryAndLogistics" + * @const + */ + "DeliveryAndLogistics": "DeliveryAndLogistics", + + /** + * value: "CRM" + * @const + */ + "CRM": "CRM", + + /** + * value: "GiftCard" + * @const + */ + "GiftCard": "GiftCard", + + /** + * value: "Accounting" + * @const + */ + "Accounting": "Accounting", + + /** + * value: "LoyaltyAndMarketing" + * @const + */ + "LoyaltyAndMarketing": "LoyaltyAndMarketing", + + /** + * value: "Other" + * @const + */ + "Other": "Other" +}; + + +/** + * Allowed values for the Countries property. + * @enum {String} + * @readonly + */ +CreateAppStoreApp['CountriesEnum'] = { + + /** + * value: "GB" + * @const + */ + "GB": "GB", + + /** + * value: "IE" + * @const + */ + "IE": "IE", + + /** + * value: "FR" + * @const + */ + "FR": "FR", + + /** + * value: "ES" + * @const + */ + "ES": "ES", + + /** + * value: "PT" + * @const + */ + "PT": "PT", + + /** + * value: "IT" + * @const + */ + "IT": "IT", + + /** + * value: "DE" + * @const + */ + "DE": "DE", + + /** + * value: "PL" + * @const + */ + "PL": "PL", + + /** + * value: "BE" + * @const + */ + "BE": "BE", + + /** + * value: "LU" + * @const + */ + "LU": "LU", + + /** + * value: "NL" + * @const + */ + "NL": "NL", + + /** + * value: "US" + * @const + */ + "US": "US", + + /** + * value: "CA" + * @const + */ + "CA": "CA", + + /** + * value: "BG" + * @const + */ + "BG": "BG", + + /** + * value: "MX" + * @const + */ + "MX": "MX", + + /** + * value: "AU" + * @const + */ + "AU": "AU", + + /** + * value: "NZ" + * @const + */ + "NZ": "NZ" +}; + + + +export default CreateAppStoreApp; + diff --git a/src/model/CreateBasicAccountModel.js b/src/model/CreateBasicAccountModel.js new file mode 100644 index 00000000..8ef9fda2 --- /dev/null +++ b/src/model/CreateBasicAccountModel.js @@ -0,0 +1,84 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateBasicAccountModel model module. + * @module model/CreateBasicAccountModel + * @version 1.0.0 + */ +class CreateBasicAccountModel { + /** + * Constructs a new CreateBasicAccountModel. + * Basic attributes for creating an account + * @alias module:model/CreateBasicAccountModel + * @param StoreName {String} Store name + */ + constructor(StoreName) { + + CreateBasicAccountModel.initialize(this, StoreName); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, StoreName) { + obj['StoreName'] = StoreName; + } + + /** + * Constructs a CreateBasicAccountModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateBasicAccountModel} obj Optional instance to populate. + * @return {module:model/CreateBasicAccountModel} The populated CreateBasicAccountModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateBasicAccountModel(); + + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('LanguageId')) { + obj['LanguageId'] = ApiClient.convertToType(data['LanguageId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Store name + * @member {String} StoreName + */ +CreateBasicAccountModel.prototype['StoreName'] = undefined; + +/** + * LanguageId + * @member {String} LanguageId + */ +CreateBasicAccountModel.prototype['LanguageId'] = undefined; + + + + + + +export default CreateBasicAccountModel; + diff --git a/src/model/CreateCatalogGroupReference.js b/src/model/CreateCatalogGroupReference.js new file mode 100644 index 00000000..db7af61a --- /dev/null +++ b/src/model/CreateCatalogGroupReference.js @@ -0,0 +1,110 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateCatalogGroupReference model module. + * @module model/CreateCatalogGroupReference + * @version 1.0.0 + */ +class CreateCatalogGroupReference { + /** + * Constructs a new CreateCatalogGroupReference. + * Information to create a reference to a {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} + * @alias module:model/CreateCatalogGroupReference + * @param CatalogGroupId {String} Identifier of the ProductId to use as SubProduct + * @param GroupType {module:model/CreateCatalogGroupReference.GroupTypeEnum} Type of the SupProduct + */ + constructor(CatalogGroupId, GroupType) { + + CreateCatalogGroupReference.initialize(this, CatalogGroupId, GroupType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogGroupId, GroupType) { + obj['CatalogGroupId'] = CatalogGroupId; + obj['GroupType'] = GroupType; + } + + /** + * Constructs a CreateCatalogGroupReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCatalogGroupReference} obj Optional instance to populate. + * @return {module:model/CreateCatalogGroupReference} The populated CreateCatalogGroupReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateCatalogGroupReference(); + + if (data.hasOwnProperty('CatalogGroupId')) { + obj['CatalogGroupId'] = ApiClient.convertToType(data['CatalogGroupId'], 'String'); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogGroupId + */ +CreateCatalogGroupReference.prototype['CatalogGroupId'] = undefined; + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogItemId + */ +CreateCatalogGroupReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/CreateCatalogGroupReference.GroupTypeEnum} GroupType + */ +CreateCatalogGroupReference.prototype['GroupType'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +CreateCatalogGroupReference['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default CreateCatalogGroupReference; + diff --git a/src/model/CreateCatalogItem.js b/src/model/CreateCatalogItem.js new file mode 100644 index 00000000..77ec0a56 --- /dev/null +++ b/src/model/CreateCatalogItem.js @@ -0,0 +1,176 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateCatalogGroupReference from './CreateCatalogGroupReference'; +import Metafield from './Metafield'; + +/** + * The CreateCatalogItem model module. + * @module model/CreateCatalogItem + * @version 1.0.0 + */ +class CreateCatalogItem { + /** + * Constructs a new CreateCatalogItem. + * Create a Catalog Item + * @alias module:model/CreateCatalogItem + * @param ItemType {module:model/CreateCatalogItem.ItemTypeEnum} Type of item (Product, Modifier, etc) + * @param Sku {String} Stock Keeping Unit (SKU) + * @param Name {String} Item name + * @param Price {Number} Item price + */ + constructor(ItemType, Sku, Name, Price) { + + CreateCatalogItem.initialize(this, ItemType, Sku, Name, Price); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, ItemType, Sku, Name, Price) { + obj['ItemType'] = ItemType; + obj['Sku'] = Sku; + obj['Name'] = Name; + obj['Price'] = Price; + } + + /** + * Constructs a CreateCatalogItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCatalogItem} obj Optional instance to populate. + * @return {module:model/CreateCatalogItem} The populated CreateCatalogItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateCatalogItem(); + + if (data.hasOwnProperty('Groups')) { + obj['Groups'] = ApiClient.convertToType(data['Groups'], [CreateCatalogGroupReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + if (data.hasOwnProperty('ItemType')) { + obj['ItemType'] = ApiClient.convertToType(data['ItemType'], 'String'); + } + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Collection of groups associated with this item + * @member {Array.} Groups + */ +CreateCatalogItem.prototype['Groups'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +CreateCatalogItem.prototype['Metafields'] = undefined; + +/** + * Type of item (Product, Modifier, etc) + * @member {module:model/CreateCatalogItem.ItemTypeEnum} ItemType + */ +CreateCatalogItem.prototype['ItemType'] = undefined; + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +CreateCatalogItem.prototype['Sku'] = undefined; + +/** + * Item name + * @member {String} Name + */ +CreateCatalogItem.prototype['Name'] = undefined; + +/** + * Item description + * @member {String} Description + */ +CreateCatalogItem.prototype['Description'] = undefined; + +/** + * Item price + * @member {Number} Price + */ +CreateCatalogItem.prototype['Price'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +CreateCatalogItem.prototype['ImageFileName'] = undefined; + +/** + * item contains alcohol + * @member {Boolean} Alcohol + */ +CreateCatalogItem.prototype['Alcohol'] = undefined; + + + + + +/** + * Allowed values for the ItemType property. + * @enum {String} + * @readonly + */ +CreateCatalogItem['ItemTypeEnum'] = { + + /** + * value: "Product" + * @const + */ + "Product": "Product", + + /** + * value: "Modifier" + * @const + */ + "Modifier": "Modifier" +}; + + + +export default CreateCatalogItem; + diff --git a/src/model/CreateFulfillmentStatesConfiguration.js b/src/model/CreateFulfillmentStatesConfiguration.js new file mode 100644 index 00000000..bceab2da --- /dev/null +++ b/src/model/CreateFulfillmentStatesConfiguration.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FulfillmentStatusConfigurationItem from './FulfillmentStatusConfigurationItem'; + +/** + * The CreateFulfillmentStatesConfiguration model module. + * @module model/CreateFulfillmentStatesConfiguration + * @version 1.0.0 + */ +class CreateFulfillmentStatesConfiguration { + /** + * Constructs a new CreateFulfillmentStatesConfiguration. + * Create fulfillment states configuration + * @alias module:model/CreateFulfillmentStatesConfiguration + */ + constructor() { + + CreateFulfillmentStatesConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateFulfillmentStatesConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateFulfillmentStatesConfiguration} obj Optional instance to populate. + * @return {module:model/CreateFulfillmentStatesConfiguration} The populated CreateFulfillmentStatesConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateFulfillmentStatesConfiguration(); + + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('States')) { + obj['States'] = ApiClient.convertToType(data['States'], [FulfillmentStatusConfigurationItem]); + } + if (data.hasOwnProperty('AutomaticTransitionsEnabled')) { + obj['AutomaticTransitionsEnabled'] = ApiClient.convertToType(data['AutomaticTransitionsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Stores id's + * @member {Array.} StoreIds + */ +CreateFulfillmentStatesConfiguration.prototype['StoreIds'] = undefined; + +/** + * Store Selector Type + * @member {module:model/CreateFulfillmentStatesConfiguration.StoreSelectorTypeEnum} StoreSelectorType + */ +CreateFulfillmentStatesConfiguration.prototype['StoreSelectorType'] = undefined; + +/** + * Settings + * @member {Array.} States + */ +CreateFulfillmentStatesConfiguration.prototype['States'] = undefined; + +/** + * Enable automatic transitions + * @member {Boolean} AutomaticTransitionsEnabled + */ +CreateFulfillmentStatesConfiguration.prototype['AutomaticTransitionsEnabled'] = undefined; + +/** + * Name + * @member {String} Name + */ +CreateFulfillmentStatesConfiguration.prototype['Name'] = undefined; + + + + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +CreateFulfillmentStatesConfiguration['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + + +export default CreateFulfillmentStatesConfiguration; + diff --git a/src/model/CreateFullMenu.js b/src/model/CreateFullMenu.js new file mode 100644 index 00000000..fb61539c --- /dev/null +++ b/src/model/CreateFullMenu.js @@ -0,0 +1,180 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateFullMenuSection from './CreateFullMenuSection'; +import CreateMenuTaxRate from './CreateMenuTaxRate'; + +/** + * The CreateFullMenu model module. + * @module model/CreateFullMenu + * @version 1.0.0 + */ +class CreateFullMenu { + /** + * Constructs a new CreateFullMenu. + * Create menu object + * @alias module:model/CreateFullMenu + */ + constructor() { + + CreateFullMenu.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateFullMenu from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateFullMenu} obj Optional instance to populate. + * @return {module:model/CreateFullMenu} The populated CreateFullMenu instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateFullMenu(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('MenuSections')) { + obj['MenuSections'] = ApiClient.convertToType(data['MenuSections'], [CreateFullMenuSection]); + } + if (data.hasOwnProperty('TaxRates')) { + obj['TaxRates'] = ApiClient.convertToType(data['TaxRates'], [CreateMenuTaxRate]); + } + if (data.hasOwnProperty('DisplaySectionLinks')) { + obj['DisplaySectionLinks'] = ApiClient.convertToType(data['DisplaySectionLinks'], 'Boolean'); + } + if (data.hasOwnProperty('MenuSectionBehaviour')) { + obj['MenuSectionBehaviour'] = ApiClient.convertToType(data['MenuSectionBehaviour'], 'String'); + } + if (data.hasOwnProperty('TaxType')) { + obj['TaxType'] = ApiClient.convertToType(data['TaxType'], 'String'); + } + if (data.hasOwnProperty('IsIntegrated')) { + obj['IsIntegrated'] = ApiClient.convertToType(data['IsIntegrated'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Name of Menu, only shown in portal + * @member {String} Name + */ +CreateFullMenu.prototype['Name'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +CreateFullMenu.prototype['ImageUrl'] = undefined; + +/** + * Menu sections (starters, main etc) + * @member {Array.} MenuSections + */ +CreateFullMenu.prototype['MenuSections'] = undefined; + +/** + * Menu tax rates + * @member {Array.} TaxRates + */ +CreateFullMenu.prototype['TaxRates'] = undefined; + +/** + * Display menu section link on UI + * @member {Boolean} DisplaySectionLinks + */ +CreateFullMenu.prototype['DisplaySectionLinks'] = undefined; + +/** + * Menu section behaviour + * @member {module:model/CreateFullMenu.MenuSectionBehaviourEnum} MenuSectionBehaviour + */ +CreateFullMenu.prototype['MenuSectionBehaviour'] = undefined; + +/** + * Tax type + * @member {module:model/CreateFullMenu.TaxTypeEnum} TaxType + */ +CreateFullMenu.prototype['TaxType'] = undefined; + +/** + * Flag to indicate if the menu is integrated (contains metadata) + * @member {Boolean} IsIntegrated + */ +CreateFullMenu.prototype['IsIntegrated'] = undefined; + + + + + +/** + * Allowed values for the MenuSectionBehaviour property. + * @enum {String} + * @readonly + */ +CreateFullMenu['MenuSectionBehaviourEnum'] = { + + /** + * value: "ExpandSingle" + * @const + */ + "ExpandSingle": "ExpandSingle", + + /** + * value: "ExpandMultiple" + * @const + */ + "ExpandMultiple": "ExpandMultiple" +}; + + +/** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ +CreateFullMenu['TaxTypeEnum'] = { + + /** + * value: "IncludedInBasePrice" + * @const + */ + "IncludedInBasePrice": "IncludedInBasePrice", + + /** + * value: "ExcludedFromBasePrice" + * @const + */ + "ExcludedFromBasePrice": "ExcludedFromBasePrice" +}; + + + +export default CreateFullMenu; + diff --git a/src/model/CreateFullMenuItemOptionSet.js b/src/model/CreateFullMenuItemOptionSet.js new file mode 100644 index 00000000..c03bb1dd --- /dev/null +++ b/src/model/CreateFullMenuItemOptionSet.js @@ -0,0 +1,179 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateFullMenuItemOptionSetItem from './CreateFullMenuItemOptionSetItem'; + +/** + * The CreateFullMenuItemOptionSet model module. + * @module model/CreateFullMenuItemOptionSet + * @version 1.0.0 + */ +class CreateFullMenuItemOptionSet { + /** + * Constructs a new CreateFullMenuItemOptionSet. + * Create menu item option set + * @alias module:model/CreateFullMenuItemOptionSet + */ + constructor() { + + CreateFullMenuItemOptionSet.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateFullMenuItemOptionSet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateFullMenuItemOptionSet} obj Optional instance to populate. + * @return {module:model/CreateFullMenuItemOptionSet} The populated CreateFullMenuItemOptionSet instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateFullMenuItemOptionSet(); + + if (data.hasOwnProperty('MenuItemOptionSetId')) { + obj['MenuItemOptionSetId'] = ApiClient.convertToType(data['MenuItemOptionSetId'], 'Number'); + } + if (data.hasOwnProperty('MenuItemOptionSetItems')) { + obj['MenuItemOptionSetItems'] = ApiClient.convertToType(data['MenuItemOptionSetItems'], [CreateFullMenuItemOptionSetItem]); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('IsMasterOptionSet')) { + obj['IsMasterOptionSet'] = ApiClient.convertToType(data['IsMasterOptionSet'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('MinSelectCount')) { + obj['MinSelectCount'] = ApiClient.convertToType(data['MinSelectCount'], 'Number'); + } + if (data.hasOwnProperty('MaxSelectCount')) { + obj['MaxSelectCount'] = ApiClient.convertToType(data['MaxSelectCount'], 'Number'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu item option set identifier + * @member {Number} MenuItemOptionSetId + */ +CreateFullMenuItemOptionSet.prototype['MenuItemOptionSetId'] = undefined; + +/** + * Option set items + * @member {Array.} MenuItemOptionSetItems + */ +CreateFullMenuItemOptionSet.prototype['MenuItemOptionSetItems'] = undefined; + +/** + * Menu item option set name + * @member {String} Name + */ +CreateFullMenuItemOptionSet.prototype['Name'] = undefined; + +/** + * Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + * @member {Boolean} IsMasterOptionSet + */ +CreateFullMenuItemOptionSet.prototype['IsMasterOptionSet'] = undefined; + +/** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ +CreateFullMenuItemOptionSet.prototype['DisplayOrder'] = undefined; + +/** + * Minimum items must be selected + * @member {Number} MinSelectCount + */ +CreateFullMenuItemOptionSet.prototype['MinSelectCount'] = undefined; + +/** + * Maximum number of items can be selected + * @member {Number} MaxSelectCount + */ +CreateFullMenuItemOptionSet.prototype['MaxSelectCount'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/CreateFullMenuItemOptionSet.CellLayoutTypeEnum} CellLayoutType + */ +CreateFullMenuItemOptionSet.prototype['CellLayoutType'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +CreateFullMenuItemOptionSet.prototype['PublicId'] = undefined; + + + + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +CreateFullMenuItemOptionSet['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default CreateFullMenuItemOptionSet; + diff --git a/src/model/CreateFullMenuItemOptionSetItem.js b/src/model/CreateFullMenuItemOptionSetItem.js new file mode 100644 index 00000000..9bebbf54 --- /dev/null +++ b/src/model/CreateFullMenuItemOptionSetItem.js @@ -0,0 +1,206 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateMetadata from './CreateMetadata'; + +/** + * The CreateFullMenuItemOptionSetItem model module. + * @module model/CreateFullMenuItemOptionSetItem + * @version 1.0.0 + */ +class CreateFullMenuItemOptionSetItem { + /** + * Constructs a new CreateFullMenuItemOptionSetItem. + * Create menu item option set item + * @alias module:model/CreateFullMenuItemOptionSetItem + */ + constructor() { + + CreateFullMenuItemOptionSetItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateFullMenuItemOptionSetItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateFullMenuItemOptionSetItem} obj Optional instance to populate. + * @return {module:model/CreateFullMenuItemOptionSetItem} The populated CreateFullMenuItemOptionSetItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateFullMenuItemOptionSetItem(); + + if (data.hasOwnProperty('MenuItemOptionSetItemId')) { + obj['MenuItemOptionSetItemId'] = ApiClient.convertToType(data['MenuItemOptionSetItemId'], 'Number'); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], [CreateMetadata]); + } + if (data.hasOwnProperty('TaxRateName')) { + obj['TaxRateName'] = ApiClient.convertToType(data['TaxRateName'], 'String'); + } + if (data.hasOwnProperty('NextMenuItemOptionSetId')) { + obj['NextMenuItemOptionSetId'] = ApiClient.convertToType(data['NextMenuItemOptionSetId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu item option set item identifier + * @member {Number} MenuItemOptionSetItemId + */ +CreateFullMenuItemOptionSetItem.prototype['MenuItemOptionSetItemId'] = undefined; + +/** + * List of metadata + * @member {Array.} Metadata + */ +CreateFullMenuItemOptionSetItem.prototype['Metadata'] = undefined; + +/** + * Tax rate name + * @member {String} TaxRateName + */ +CreateFullMenuItemOptionSetItem.prototype['TaxRateName'] = undefined; + +/** + * if null, next option set is next. if -1, this is the final option set + * @member {Number} NextMenuItemOptionSetId + */ +CreateFullMenuItemOptionSetItem.prototype['NextMenuItemOptionSetId'] = undefined; + +/** + * Name + * @member {String} Name + */ +CreateFullMenuItemOptionSetItem.prototype['Name'] = undefined; + +/** + * Price + * @member {Number} Price + */ +CreateFullMenuItemOptionSetItem.prototype['Price'] = undefined; + +/** + * An optional fee that can be added to the price of the item. + * @member {Number} DepositReturnFee + */ +CreateFullMenuItemOptionSetItem.prototype['DepositReturnFee'] = undefined; + +/** + * Is available + * @member {Boolean} IsAvailable + */ +CreateFullMenuItemOptionSetItem.prototype['IsAvailable'] = undefined; + +/** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ +CreateFullMenuItemOptionSetItem.prototype['DisplayOrder'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/CreateFullMenuItemOptionSetItem.CellLayoutTypeEnum} CellLayoutType + */ +CreateFullMenuItemOptionSetItem.prototype['CellLayoutType'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +CreateFullMenuItemOptionSetItem.prototype['ImageUrl'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +CreateFullMenuItemOptionSetItem.prototype['PublicId'] = undefined; + + + + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +CreateFullMenuItemOptionSetItem['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default CreateFullMenuItemOptionSetItem; + diff --git a/src/model/CreateFullMenuSection.js b/src/model/CreateFullMenuSection.js new file mode 100644 index 00000000..bcd5a1f6 --- /dev/null +++ b/src/model/CreateFullMenuSection.js @@ -0,0 +1,155 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateFullMenuSectionItem from './CreateFullMenuSectionItem'; +import MenuSectionAvailability from './MenuSectionAvailability'; + +/** + * The CreateFullMenuSection model module. + * @module model/CreateFullMenuSection + * @version 1.0.0 + */ +class CreateFullMenuSection { + /** + * Constructs a new CreateFullMenuSection. + * Create menu section + * @alias module:model/CreateFullMenuSection + */ + constructor() { + + CreateFullMenuSection.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateFullMenuSection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateFullMenuSection} obj Optional instance to populate. + * @return {module:model/CreateFullMenuSection} The populated CreateFullMenuSection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateFullMenuSection(); + + if (data.hasOwnProperty('MenuSectionAvailability')) { + obj['MenuSectionAvailability'] = MenuSectionAvailability.constructFromObject(data['MenuSectionAvailability']); + } + if (data.hasOwnProperty('MenuItems')) { + obj['MenuItems'] = ApiClient.convertToType(data['MenuItems'], [CreateFullMenuSectionItem]); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('IsHiddenFromCustomers')) { + obj['IsHiddenFromCustomers'] = ApiClient.convertToType(data['IsHiddenFromCustomers'], 'Boolean'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('MenuSectionId')) { + obj['MenuSectionId'] = ApiClient.convertToType(data['MenuSectionId'], 'Number'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuSectionAvailability} MenuSectionAvailability + */ +CreateFullMenuSection.prototype['MenuSectionAvailability'] = undefined; + +/** + * Menu items + * @member {Array.} MenuItems + */ +CreateFullMenuSection.prototype['MenuItems'] = undefined; + +/** + * Name + * @member {String} Name + */ +CreateFullMenuSection.prototype['Name'] = undefined; + +/** + * Description + * @member {String} Description + */ +CreateFullMenuSection.prototype['Description'] = undefined; + +/** + * Display order + * @member {Number} DisplayOrder + */ +CreateFullMenuSection.prototype['DisplayOrder'] = undefined; + +/** + * Is available + * @member {Boolean} IsAvailable + */ +CreateFullMenuSection.prototype['IsAvailable'] = undefined; + +/** + * Is hidden from customer. Perhaps when the item is out of stock. + * @member {Boolean} IsHiddenFromCustomers + */ +CreateFullMenuSection.prototype['IsHiddenFromCustomers'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +CreateFullMenuSection.prototype['ImageUrl'] = undefined; + +/** + * Menu Section Id + * @member {Number} MenuSectionId + */ +CreateFullMenuSection.prototype['MenuSectionId'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +CreateFullMenuSection.prototype['PublicId'] = undefined; + + + + + + +export default CreateFullMenuSection; + diff --git a/src/model/CreateFullMenuSectionItem.js b/src/model/CreateFullMenuSectionItem.js new file mode 100644 index 00000000..16cb6e7e --- /dev/null +++ b/src/model/CreateFullMenuSectionItem.js @@ -0,0 +1,294 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateFullMenuItemOptionSet from './CreateFullMenuItemOptionSet'; +import CreateMetadata from './CreateMetadata'; + +/** + * The CreateFullMenuSectionItem model module. + * @module model/CreateFullMenuSectionItem + * @version 1.0.0 + */ +class CreateFullMenuSectionItem { + /** + * Constructs a new CreateFullMenuSectionItem. + * Create menu section item + * @alias module:model/CreateFullMenuSectionItem + */ + constructor() { + + CreateFullMenuSectionItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateFullMenuSectionItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateFullMenuSectionItem} obj Optional instance to populate. + * @return {module:model/CreateFullMenuSectionItem} The populated CreateFullMenuSectionItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateFullMenuSectionItem(); + + if (data.hasOwnProperty('MenuItemOptionSets')) { + obj['MenuItemOptionSets'] = ApiClient.convertToType(data['MenuItemOptionSets'], [CreateFullMenuItemOptionSet]); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], [CreateMetadata]); + } + if (data.hasOwnProperty('TaxRateName')) { + obj['TaxRateName'] = ApiClient.convertToType(data['TaxRateName'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('SpicinessRating')) { + obj['SpicinessRating'] = ApiClient.convertToType(data['SpicinessRating'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('DisableVouchers')) { + obj['DisableVouchers'] = ApiClient.convertToType(data['DisableVouchers'], 'Boolean'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('MenuItemId')) { + obj['MenuItemId'] = ApiClient.convertToType(data['MenuItemId'], 'Number'); + } + if (data.hasOwnProperty('ExcludeFromVoucherDiscounting')) { + obj['ExcludeFromVoucherDiscounting'] = ApiClient.convertToType(data['ExcludeFromVoucherDiscounting'], 'Boolean'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu item option sets + * @member {Array.} MenuItemOptionSets + */ +CreateFullMenuSectionItem.prototype['MenuItemOptionSets'] = undefined; + +/** + * List of metadata + * @member {Array.} Metadata + */ +CreateFullMenuSectionItem.prototype['Metadata'] = undefined; + +/** + * Tax rate name + * @member {String} TaxRateName + */ +CreateFullMenuSectionItem.prototype['TaxRateName'] = undefined; + +/** + * Menu item name (like \"Korma\") + * @member {String} Name + */ +CreateFullMenuSectionItem.prototype['Name'] = undefined; + +/** + * Description (like \"A lovely dish from the east\") + * @member {String} Description + */ +CreateFullMenuSectionItem.prototype['Description'] = undefined; + +/** + * Spiciness rating + * @member {module:model/CreateFullMenuSectionItem.SpicinessRatingEnum} SpicinessRating + */ +CreateFullMenuSectionItem.prototype['SpicinessRating'] = undefined; + +/** + * Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + * @member {Number} Price + */ +CreateFullMenuSectionItem.prototype['Price'] = undefined; + +/** + * An optional fee that can be added to the price of the item. + * @member {Number} DepositReturnFee + */ +CreateFullMenuSectionItem.prototype['DepositReturnFee'] = undefined; + +/** + * Display order + * @member {Number} DisplayOrder + */ +CreateFullMenuSectionItem.prototype['DisplayOrder'] = undefined; + +/** + * To be set true if the item or an option of the item contains an alcoholic drink. + * @member {Boolean} Alcohol + */ +CreateFullMenuSectionItem.prototype['Alcohol'] = undefined; + +/** + * True if we accept orders for this item still + * @member {Boolean} IsAvailable + */ +CreateFullMenuSectionItem.prototype['IsAvailable'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/CreateFullMenuSectionItem.CellLayoutTypeEnum} CellLayoutType + */ +CreateFullMenuSectionItem.prototype['CellLayoutType'] = undefined; + +/** + * If true, then vouchers won't be applied for this item + * @member {Boolean} DisableVouchers + */ +CreateFullMenuSectionItem.prototype['DisableVouchers'] = undefined; + +/** + * Image url + * @member {String} ImageName + */ +CreateFullMenuSectionItem.prototype['ImageName'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +CreateFullMenuSectionItem.prototype['ImageUrl'] = undefined; + +/** + * Menu Item Id + * @member {Number} MenuItemId + */ +CreateFullMenuSectionItem.prototype['MenuItemId'] = undefined; + +/** + * If true, the item is excluded from voucher discount calculations + * @member {Boolean} ExcludeFromVoucherDiscounting + */ +CreateFullMenuSectionItem.prototype['ExcludeFromVoucherDiscounting'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +CreateFullMenuSectionItem.prototype['PublicId'] = undefined; + + + + + +/** + * Allowed values for the SpicinessRating property. + * @enum {String} + * @readonly + */ +CreateFullMenuSectionItem['SpicinessRatingEnum'] = { + + /** + * value: "NotRated" + * @const + */ + "NotRated": "NotRated", + + /** + * value: "Mild" + * @const + */ + "Mild": "Mild", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Hot" + * @const + */ + "Hot": "Hot" +}; + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +CreateFullMenuSectionItem['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default CreateFullMenuSectionItem; + diff --git a/src/model/CreateGroup.js b/src/model/CreateGroup.js new file mode 100644 index 00000000..afca01fb --- /dev/null +++ b/src/model/CreateGroup.js @@ -0,0 +1,168 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateProductReference from './CreateProductReference'; +import Metafield from './Metafield'; + +/** + * The CreateGroup model module. + * @module model/CreateGroup + * @version 1.0.0 + */ +class CreateGroup { + /** + * Constructs a new CreateGroup. + * Create a Catalog Group + * @alias module:model/CreateGroup + * @param GroupType {module:model/CreateGroup.GroupTypeEnum} Type of group (ModifierGroup, etc) + * @param Sku {String} Stock Keeping Unit (SKU) + * @param Name {String} Group name + */ + constructor(GroupType, Sku, Name) { + + CreateGroup.initialize(this, GroupType, Sku, Name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, GroupType, Sku, Name) { + obj['GroupType'] = GroupType; + obj['Sku'] = Sku; + obj['Name'] = Name; + } + + /** + * Constructs a CreateGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGroup} obj Optional instance to populate. + * @return {module:model/CreateGroup} The populated CreateGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGroup(); + + if (data.hasOwnProperty('MinSelectCount')) { + obj['MinSelectCount'] = ApiClient.convertToType(data['MinSelectCount'], 'Number'); + } + if (data.hasOwnProperty('MaxSelectCount')) { + obj['MaxSelectCount'] = ApiClient.convertToType(data['MaxSelectCount'], 'Number'); + } + if (data.hasOwnProperty('Products')) { + obj['Products'] = ApiClient.convertToType(data['Products'], [CreateProductReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('AutogenerateDisplayText')) { + obj['AutogenerateDisplayText'] = ApiClient.convertToType(data['AutogenerateDisplayText'], 'Boolean'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Minimum number of items that the user has to select + * @member {Number} MinSelectCount + */ +CreateGroup.prototype['MinSelectCount'] = undefined; + +/** + * Maximum number of items that the user has to select + * @member {Number} MaxSelectCount + */ +CreateGroup.prototype['MaxSelectCount'] = undefined; + +/** + * Collection of items associated with this group + * @member {Array.} Products + */ +CreateGroup.prototype['Products'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +CreateGroup.prototype['Metafields'] = undefined; + +/** + * Type of group (ModifierGroup, etc) + * @member {module:model/CreateGroup.GroupTypeEnum} GroupType + */ +CreateGroup.prototype['GroupType'] = undefined; + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +CreateGroup.prototype['Sku'] = undefined; + +/** + * Group name + * @member {String} Name + */ +CreateGroup.prototype['Name'] = undefined; + +/** + * Autogenerate display text in ordering applications + * @member {Boolean} AutogenerateDisplayText + */ +CreateGroup.prototype['AutogenerateDisplayText'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +CreateGroup.prototype['ImageFileName'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +CreateGroup['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default CreateGroup; + diff --git a/src/model/CreateGroupReference.js b/src/model/CreateGroupReference.js new file mode 100644 index 00000000..b30896ae --- /dev/null +++ b/src/model/CreateGroupReference.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateGroupReference model module. + * @module model/CreateGroupReference + * @version 1.0.0 + */ +class CreateGroupReference { + /** + * Constructs a new CreateGroupReference. + * Information to create a reference to a {System.Text.RegularExpressions.Group} + * @alias module:model/CreateGroupReference + * @param CatalogItemId {String} Identifier of the ProductId to use as SubProduct + * @param GroupType {module:model/CreateGroupReference.GroupTypeEnum} Type of the SupProduct + */ + constructor(CatalogItemId, GroupType) { + + CreateGroupReference.initialize(this, CatalogItemId, GroupType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogItemId, GroupType) { + obj['CatalogItemId'] = CatalogItemId; + obj['GroupType'] = GroupType; + } + + /** + * Constructs a CreateGroupReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGroupReference} obj Optional instance to populate. + * @return {module:model/CreateGroupReference} The populated CreateGroupReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGroupReference(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogItemId + */ +CreateGroupReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/CreateGroupReference.GroupTypeEnum} GroupType + */ +CreateGroupReference.prototype['GroupType'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +CreateGroupReference['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default CreateGroupReference; + diff --git a/src/model/CreateLocation.js b/src/model/CreateLocation.js new file mode 100644 index 00000000..eb6c3705 --- /dev/null +++ b/src/model/CreateLocation.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateLocation model module. + * @module model/CreateLocation + * @version 1.0.0 + */ +class CreateLocation { + /** + * Constructs a new CreateLocation. + * Input model for creating a Location + * @alias module:model/CreateLocation + */ + constructor() { + + CreateLocation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLocation} obj Optional instance to populate. + * @return {module:model/CreateLocation} The populated CreateLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLocation(); + + if (data.hasOwnProperty('LocationId')) { + obj['LocationId'] = ApiClient.convertToType(data['LocationId'], 'Number'); + } + if (data.hasOwnProperty('LocationName')) { + obj['LocationName'] = ApiClient.convertToType(data['LocationName'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('ExternalLocationId')) { + obj['ExternalLocationId'] = ApiClient.convertToType(data['ExternalLocationId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Location Id + * @member {Number} LocationId + */ +CreateLocation.prototype['LocationId'] = undefined; + +/** + * Descriptive LocationArea name + * @member {String} LocationName + */ +CreateLocation.prototype['LocationName'] = undefined; + +/** + * The order that the Location should be displayed on the screen + * @member {Number} DisplayOrder + */ +CreateLocation.prototype['DisplayOrder'] = undefined; + +/** + * Id of the Location on an external system + * @member {String} ExternalLocationId + */ +CreateLocation.prototype['ExternalLocationId'] = undefined; + + + + + + +export default CreateLocation; + diff --git a/src/model/CreateLocationArea.js b/src/model/CreateLocationArea.js new file mode 100644 index 00000000..26597dbf --- /dev/null +++ b/src/model/CreateLocationArea.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateLocationArea model module. + * @module model/CreateLocationArea + * @version 1.0.0 + */ +class CreateLocationArea { + /** + * Constructs a new CreateLocationArea. + * Input model for creating a LocationArea + * @alias module:model/CreateLocationArea + * @param LocationAreaName {String} Descriptive LocationArea name + */ + constructor(LocationAreaName) { + + CreateLocationArea.initialize(this, LocationAreaName); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, LocationAreaName) { + obj['LocationAreaName'] = LocationAreaName; + } + + /** + * Constructs a CreateLocationArea from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLocationArea} obj Optional instance to populate. + * @return {module:model/CreateLocationArea} The populated CreateLocationArea instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLocationArea(); + + if (data.hasOwnProperty('LocationAreaName')) { + obj['LocationAreaName'] = ApiClient.convertToType(data['LocationAreaName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Descriptive LocationArea name + * @member {String} LocationAreaName + */ +CreateLocationArea.prototype['LocationAreaName'] = undefined; + + + + + + +export default CreateLocationArea; + diff --git a/src/model/CreateMenuSectionItemFromCatalogItems.js b/src/model/CreateMenuSectionItemFromCatalogItems.js new file mode 100644 index 00000000..c79e34cb --- /dev/null +++ b/src/model/CreateMenuSectionItemFromCatalogItems.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuCatalogItem from './MenuCatalogItem'; + +/** + * The CreateMenuSectionItemFromCatalogItems model module. + * @module model/CreateMenuSectionItemFromCatalogItems + * @version 1.0.0 + */ +class CreateMenuSectionItemFromCatalogItems { + /** + * Constructs a new CreateMenuSectionItemFromCatalogItems. + * Add CatalogItems to a Menu + * @alias module:model/CreateMenuSectionItemFromCatalogItems + * @param MenuCatalogItems {Array.} List of CatalogItems to add to the section + */ + constructor(MenuCatalogItems) { + + CreateMenuSectionItemFromCatalogItems.initialize(this, MenuCatalogItems); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, MenuCatalogItems) { + obj['MenuCatalogItems'] = MenuCatalogItems; + } + + /** + * Constructs a CreateMenuSectionItemFromCatalogItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateMenuSectionItemFromCatalogItems} obj Optional instance to populate. + * @return {module:model/CreateMenuSectionItemFromCatalogItems} The populated CreateMenuSectionItemFromCatalogItems instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateMenuSectionItemFromCatalogItems(); + + if (data.hasOwnProperty('MenuCatalogItems')) { + obj['MenuCatalogItems'] = ApiClient.convertToType(data['MenuCatalogItems'], [MenuCatalogItem]); + } + } + return obj; + } + + +} + +/** + * List of CatalogItems to add to the section + * @member {Array.} MenuCatalogItems + */ +CreateMenuSectionItemFromCatalogItems.prototype['MenuCatalogItems'] = undefined; + + + + + + +export default CreateMenuSectionItemFromCatalogItems; + diff --git a/src/model/CreateMenuTaxRate.js b/src/model/CreateMenuTaxRate.js new file mode 100644 index 00000000..2b6652ab --- /dev/null +++ b/src/model/CreateMenuTaxRate.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateMenuTaxRate model module. + * @module model/CreateMenuTaxRate + * @version 1.0.0 + */ +class CreateMenuTaxRate { + /** + * Constructs a new CreateMenuTaxRate. + * Tax Rates Associated with a Menu + * @alias module:model/CreateMenuTaxRate + */ + constructor() { + + CreateMenuTaxRate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateMenuTaxRate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateMenuTaxRate} obj Optional instance to populate. + * @return {module:model/CreateMenuTaxRate} The populated CreateMenuTaxRate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateMenuTaxRate(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Rate')) { + obj['Rate'] = ApiClient.convertToType(data['Rate'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Name of Tax Rate + * @member {String} Name + */ +CreateMenuTaxRate.prototype['Name'] = undefined; + +/** + * In Percentage + * @member {Number} Rate + */ +CreateMenuTaxRate.prototype['Rate'] = undefined; + + + + + + +export default CreateMenuTaxRate; + diff --git a/src/model/CreateMetadata.js b/src/model/CreateMetadata.js new file mode 100644 index 00000000..8c6c3ee7 --- /dev/null +++ b/src/model/CreateMetadata.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateMetadata model module. + * @module model/CreateMetadata + * @version 1.0.0 + */ +class CreateMetadata { + /** + * Constructs a new CreateMetadata. + * Create metadata + * @alias module:model/CreateMetadata + */ + constructor() { + + CreateMetadata.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateMetadata} obj Optional instance to populate. + * @return {module:model/CreateMetadata} The populated CreateMetadata instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateMetadata(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + } + return obj; + } + + +} + +/** + * Store identifier + * @member {Number} StoreId + */ +CreateMetadata.prototype['StoreId'] = undefined; + +/** + * Metadata key (Unique identifier) + * @member {String} Key + */ +CreateMetadata.prototype['Key'] = undefined; + +/** + * Metadata value + * @member {String} Value + */ +CreateMetadata.prototype['Value'] = undefined; + + + + + + +export default CreateMetadata; + diff --git a/src/model/CreateMetafieldDefinition.js b/src/model/CreateMetafieldDefinition.js new file mode 100644 index 00000000..cf6b61be --- /dev/null +++ b/src/model/CreateMetafieldDefinition.js @@ -0,0 +1,221 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateMetafieldDefinition model module. + * @module model/CreateMetafieldDefinition + * @version 1.0.0 + */ +class CreateMetafieldDefinition { + /** + * Constructs a new CreateMetafieldDefinition. + * Information to create a {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition} + * @alias module:model/CreateMetafieldDefinition + * @param 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 + * @param Name {String} Field Name + */ + constructor(Key, Name) { + + CreateMetafieldDefinition.initialize(this, Key, Name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Key, Name) { + obj['Key'] = Key; + obj['Name'] = Name; + } + + /** + * Constructs a CreateMetafieldDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateMetafieldDefinition} obj Optional instance to populate. + * @return {module:model/CreateMetafieldDefinition} The populated CreateMetafieldDefinition instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateMetafieldDefinition(); + + if (data.hasOwnProperty('IsReadOnly')) { + obj['IsReadOnly'] = ApiClient.convertToType(data['IsReadOnly'], 'Boolean'); + } + if (data.hasOwnProperty('OwnerEntity')) { + obj['OwnerEntity'] = ApiClient.convertToType(data['OwnerEntity'], 'String'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('ValueType')) { + obj['ValueType'] = ApiClient.convertToType(data['ValueType'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Behaviors')) { + obj['Behaviors'] = ApiClient.convertToType(data['Behaviors'], ['String']); + } + if (data.hasOwnProperty('MetafieldDefinitionRecommendationId')) { + obj['MetafieldDefinitionRecommendationId'] = ApiClient.convertToType(data['MetafieldDefinitionRecommendationId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Indicates if a definition can be edited or not + * @member {Boolean} IsReadOnly + */ +CreateMetafieldDefinition.prototype['IsReadOnly'] = undefined; + +/** + * The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + * @member {module:model/CreateMetafieldDefinition.OwnerEntityEnum} OwnerEntity + */ +CreateMetafieldDefinition.prototype['OwnerEntity'] = undefined; + +/** + * 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 + * @member {String} Key + */ +CreateMetafieldDefinition.prototype['Key'] = undefined; + +/** + * The excepted type for the Value field + * @member {module:model/CreateMetafieldDefinition.ValueTypeEnum} ValueType + */ +CreateMetafieldDefinition.prototype['ValueType'] = undefined; + +/** + * Field Name + * @member {String} Name + */ +CreateMetafieldDefinition.prototype['Name'] = undefined; + +/** + * Field Description + * @member {String} Description + */ +CreateMetafieldDefinition.prototype['Description'] = undefined; + +/** + * Enable Metafield Behaviors + * @member {Array.} Behaviors + */ +CreateMetafieldDefinition.prototype['Behaviors'] = undefined; + +/** + * Metafield Recommendation Id + * @member {Number} MetafieldDefinitionRecommendationId + */ +CreateMetafieldDefinition.prototype['MetafieldDefinitionRecommendationId'] = undefined; + + + + + +/** + * Allowed values for the OwnerEntity property. + * @enum {String} + * @readonly + */ +CreateMetafieldDefinition['OwnerEntityEnum'] = { + + /** + * value: "CatalogItem" + * @const + */ + "CatalogItem": "CatalogItem", + + /** + * value: "CatalogGroup" + * @const + */ + "CatalogGroup": "CatalogGroup", + + /** + * value: "Menu" + * @const + */ + "Menu": "Menu" +}; + + +/** + * Allowed values for the ValueType property. + * @enum {String} + * @readonly + */ +CreateMetafieldDefinition['ValueTypeEnum'] = { + + /** + * value: "Boolean" + * @const + */ + "Boolean": "Boolean", + + /** + * value: "Json" + * @const + */ + "Json": "Json", + + /** + * value: "SingleLineString" + * @const + */ + "SingleLineString": "SingleLineString", + + /** + * value: "MultiLineString" + * @const + */ + "MultiLineString": "MultiLineString" +}; + + +/** + * Allowed values for the Behaviors property. + * @enum {String} + * @readonly + */ +CreateMetafieldDefinition['BehaviorsEnum'] = { + + /** + * value: "SendToOrder" + * @const + */ + "SendToOrder": "SendToOrder", + + /** + * value: "SendToMenu" + * @const + */ + "SendToMenu": "SendToMenu" +}; + + + +export default CreateMetafieldDefinition; + diff --git a/src/model/CreatePayGreenConfigurationRequest.js b/src/model/CreatePayGreenConfigurationRequest.js new file mode 100644 index 00000000..8de61c40 --- /dev/null +++ b/src/model/CreatePayGreenConfigurationRequest.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreatePayGreenConfigurationRequest model module. + * @module model/CreatePayGreenConfigurationRequest + * @version 1.0.0 + */ +class CreatePayGreenConfigurationRequest { + /** + * Constructs a new CreatePayGreenConfigurationRequest. + * @alias module:model/CreatePayGreenConfigurationRequest + */ + constructor() { + + CreatePayGreenConfigurationRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreatePayGreenConfigurationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePayGreenConfigurationRequest} obj Optional instance to populate. + * @return {module:model/CreatePayGreenConfigurationRequest} The populated CreatePayGreenConfigurationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePayGreenConfigurationRequest(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('PayGreenId')) { + obj['PayGreenId'] = ApiClient.convertToType(data['PayGreenId'], 'String'); + } + if (data.hasOwnProperty('PayGreenPrivateKey')) { + obj['PayGreenPrivateKey'] = ApiClient.convertToType(data['PayGreenPrivateKey'], 'String'); + } + if (data.hasOwnProperty('AssignedStores')) { + obj['AssignedStores'] = ApiClient.convertToType(data['AssignedStores'], ['Number']); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +CreatePayGreenConfigurationRequest.prototype['Name'] = undefined; + +/** + * @member {String} PayGreenId + */ +CreatePayGreenConfigurationRequest.prototype['PayGreenId'] = undefined; + +/** + * @member {String} PayGreenPrivateKey + */ +CreatePayGreenConfigurationRequest.prototype['PayGreenPrivateKey'] = undefined; + +/** + * @member {Array.} AssignedStores + */ +CreatePayGreenConfigurationRequest.prototype['AssignedStores'] = undefined; + + + + + + +export default CreatePayGreenConfigurationRequest; + diff --git a/src/model/CreateProduct.js b/src/model/CreateProduct.js new file mode 100644 index 00000000..357ec9b8 --- /dev/null +++ b/src/model/CreateProduct.js @@ -0,0 +1,176 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateGroupReference from './CreateGroupReference'; +import Metafield from './Metafield'; + +/** + * The CreateProduct model module. + * @module model/CreateProduct + * @version 1.0.0 + */ +class CreateProduct { + /** + * Constructs a new CreateProduct. + * Create a Catalog Item + * @alias module:model/CreateProduct + * @param ProductType {module:model/CreateProduct.ProductTypeEnum} Type of item (Product, Modifier, etc) + * @param Sku {String} Stock Keeping Unit (SKU) + * @param Name {String} Product name + * @param Price {Number} Product price + */ + constructor(ProductType, Sku, Name, Price) { + + CreateProduct.initialize(this, ProductType, Sku, Name, Price); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, ProductType, Sku, Name, Price) { + obj['ProductType'] = ProductType; + obj['Sku'] = Sku; + obj['Name'] = Name; + obj['Price'] = Price; + } + + /** + * Constructs a CreateProduct from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateProduct} obj Optional instance to populate. + * @return {module:model/CreateProduct} The populated CreateProduct instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateProduct(); + + if (data.hasOwnProperty('Groups')) { + obj['Groups'] = ApiClient.convertToType(data['Groups'], [CreateGroupReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + if (data.hasOwnProperty('ProductType')) { + obj['ProductType'] = ApiClient.convertToType(data['ProductType'], 'String'); + } + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Collection of groups associated with this item + * @member {Array.} Groups + */ +CreateProduct.prototype['Groups'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +CreateProduct.prototype['Metafields'] = undefined; + +/** + * Type of item (Product, Modifier, etc) + * @member {module:model/CreateProduct.ProductTypeEnum} ProductType + */ +CreateProduct.prototype['ProductType'] = undefined; + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +CreateProduct.prototype['Sku'] = undefined; + +/** + * Product name + * @member {String} Name + */ +CreateProduct.prototype['Name'] = undefined; + +/** + * Product description + * @member {String} Description + */ +CreateProduct.prototype['Description'] = undefined; + +/** + * Product price + * @member {Number} Price + */ +CreateProduct.prototype['Price'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +CreateProduct.prototype['ImageFileName'] = undefined; + +/** + * Product contains alcohol + * @member {Boolean} Alcohol + */ +CreateProduct.prototype['Alcohol'] = undefined; + + + + + +/** + * Allowed values for the ProductType property. + * @enum {String} + * @readonly + */ +CreateProduct['ProductTypeEnum'] = { + + /** + * value: "Product" + * @const + */ + "Product": "Product", + + /** + * value: "Modifier" + * @const + */ + "Modifier": "Modifier" +}; + + + +export default CreateProduct; + diff --git a/src/model/CreateProductReference.js b/src/model/CreateProductReference.js new file mode 100644 index 00000000..fa5aea48 --- /dev/null +++ b/src/model/CreateProductReference.js @@ -0,0 +1,116 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateProductReference model module. + * @module model/CreateProductReference + * @version 1.0.0 + */ +class CreateProductReference { + /** + * Constructs a new CreateProductReference. + * Information to create a reference to a {Flipdish.Menus.PublicModels.V1.Catalog.Product} + * @alias module:model/CreateProductReference + * @param CatalogItemId {String} Identifier of the CatalogItemId to use as SubProduct + * @param ProductType {module:model/CreateProductReference.ProductTypeEnum} Type of the SupProduct + */ + constructor(CatalogItemId, ProductType) { + + CreateProductReference.initialize(this, CatalogItemId, ProductType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogItemId, ProductType) { + obj['CatalogItemId'] = CatalogItemId; + obj['ProductType'] = ProductType; + } + + /** + * Constructs a CreateProductReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateProductReference} obj Optional instance to populate. + * @return {module:model/CreateProductReference} The populated CreateProductReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateProductReference(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('ProductType')) { + obj['ProductType'] = ApiClient.convertToType(data['ProductType'], 'String'); + } + if (data.hasOwnProperty('PreselectedQuantity')) { + obj['PreselectedQuantity'] = ApiClient.convertToType(data['PreselectedQuantity'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Identifier of the CatalogItemId to use as SubProduct + * @member {String} CatalogItemId + */ +CreateProductReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/CreateProductReference.ProductTypeEnum} ProductType + */ +CreateProductReference.prototype['ProductType'] = undefined; + +/** + * Quantity of the modifier that will be set when the parent product is placed in the basket + * @member {Number} PreselectedQuantity + */ +CreateProductReference.prototype['PreselectedQuantity'] = undefined; + + + + + +/** + * Allowed values for the ProductType property. + * @enum {String} + * @readonly + */ +CreateProductReference['ProductTypeEnum'] = { + + /** + * value: "Product" + * @const + */ + "Product": "Product", + + /** + * value: "Modifier" + * @const + */ + "Modifier": "Modifier" +}; + + + +export default CreateProductReference; + diff --git a/src/model/CreatePromotion.js b/src/model/CreatePromotion.js new file mode 100644 index 00000000..215884c8 --- /dev/null +++ b/src/model/CreatePromotion.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreatePromotion model module. + * @module model/CreatePromotion + * @version 1.0.0 + */ +class CreatePromotion { + /** + * Constructs a new CreatePromotion. + * Create Promotion + * @alias module:model/CreatePromotion + */ + constructor() { + + CreatePromotion.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreatePromotion from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePromotion} obj Optional instance to populate. + * @return {module:model/CreatePromotion} The populated CreatePromotion instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePromotion(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('MenuItemPublicIds')) { + obj['MenuItemPublicIds'] = ApiClient.convertToType(data['MenuItemPublicIds'], ['String']); + } + } + return obj; + } + + +} + +/** + * Promotion Name + * @member {String} Name + */ +CreatePromotion.prototype['Name'] = undefined; + +/** + * Promotion Menu Item Awards + * @member {Array.} MenuItemPublicIds + */ +CreatePromotion.prototype['MenuItemPublicIds'] = undefined; + + + + + + +export default CreatePromotion; + diff --git a/src/model/CreateTeammate.js b/src/model/CreateTeammate.js new file mode 100644 index 00000000..0a0b475c --- /dev/null +++ b/src/model/CreateTeammate.js @@ -0,0 +1,196 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateTeammate model module. + * @module model/CreateTeammate + * @version 1.0.0 + */ +class CreateTeammate { + /** + * Constructs a new CreateTeammate. + * + * @alias module:model/CreateTeammate + */ + constructor() { + + CreateTeammate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateTeammate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateTeammate} obj Optional instance to populate. + * @return {module:model/CreateTeammate} The populated CreateTeammate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateTeammate(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('AppAccessLevel')) { + obj['AppAccessLevel'] = ApiClient.convertToType(data['AppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('HasAccessToAllStores')) { + obj['HasAccessToAllStores'] = ApiClient.convertToType(data['HasAccessToAllStores'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('PropertyIds')) { + obj['PropertyIds'] = ApiClient.convertToType(data['PropertyIds'], ['String']); + } + } + return obj; + } + + +} + +/** + * Email address + * @member {String} Email + */ +CreateTeammate.prototype['Email'] = undefined; + +/** + * App access level + * @member {module:model/CreateTeammate.AppAccessLevelEnum} AppAccessLevel + */ +CreateTeammate.prototype['AppAccessLevel'] = undefined; + +/** + * The user has access to all stores for the app (including new stores that added later) + * @member {Boolean} HasAccessToAllStores + */ +CreateTeammate.prototype['HasAccessToAllStores'] = undefined; + +/** + * Store IDs the user has access to (if HasAccessToAllStores is false) + * @member {Array.} StoreIds + */ +CreateTeammate.prototype['StoreIds'] = undefined; + +/** + * Property Ids the user has access to (if HasAccessToAllStores is false) + * @member {Array.} PropertyIds + */ +CreateTeammate.prototype['PropertyIds'] = undefined; + + + + + +/** + * Allowed values for the AppAccessLevel property. + * @enum {String} + * @readonly + */ +CreateTeammate['AppAccessLevelEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger", + + /** + * value: "Onboarding" + * @const + */ + "Onboarding": "Onboarding", + + /** + * value: "Support" + * @const + */ + "Support": "Support" +}; + + + +export default CreateTeammate; + diff --git a/src/model/CreateVoucher.js b/src/model/CreateVoucher.js new file mode 100644 index 00000000..7f4875d7 --- /dev/null +++ b/src/model/CreateVoucher.js @@ -0,0 +1,461 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreatePromotion from './CreatePromotion'; +import CreditNoteDetails from './CreditNoteDetails'; +import LumpDiscountDetails from './LumpDiscountDetails'; +import PercentDiscountDetails from './PercentDiscountDetails'; +import ValidityPeriod from './ValidityPeriod'; + +/** + * The CreateVoucher model module. + * @module model/CreateVoucher + * @version 1.0.0 + */ +class CreateVoucher { + /** + * Constructs a new CreateVoucher. + * Create Voucher + * @alias module:model/CreateVoucher + */ + constructor() { + + CreateVoucher.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateVoucher from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateVoucher} obj Optional instance to populate. + * @return {module:model/CreateVoucher} The populated CreateVoucher instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateVoucher(); + + if (data.hasOwnProperty('VoucherType')) { + obj['VoucherType'] = ApiClient.convertToType(data['VoucherType'], 'String'); + } + if (data.hasOwnProperty('Promotion')) { + obj['Promotion'] = CreatePromotion.constructFromObject(data['Promotion']); + } + if (data.hasOwnProperty('CreditNoteDetails')) { + obj['CreditNoteDetails'] = CreditNoteDetails.constructFromObject(data['CreditNoteDetails']); + } + if (data.hasOwnProperty('LumpDiscountDetails')) { + obj['LumpDiscountDetails'] = LumpDiscountDetails.constructFromObject(data['LumpDiscountDetails']); + } + if (data.hasOwnProperty('PercentDiscountDetails')) { + obj['PercentDiscountDetails'] = PercentDiscountDetails.constructFromObject(data['PercentDiscountDetails']); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], ['Number']); + } + if (data.hasOwnProperty('ValidOnOrdersOver')) { + obj['ValidOnOrdersOver'] = ApiClient.convertToType(data['ValidOnOrdersOver'], 'Number'); + } + if (data.hasOwnProperty('TakesPriority')) { + obj['TakesPriority'] = ApiClient.convertToType(data['TakesPriority'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsAutomaticallyApplied')) { + obj['IsAutomaticallyApplied'] = ApiClient.convertToType(data['IsAutomaticallyApplied'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForDeliveryOrders')) { + obj['IsValidForDeliveryOrders'] = ApiClient.convertToType(data['IsValidForDeliveryOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForPickupOrders')) { + obj['IsValidForPickupOrders'] = ApiClient.convertToType(data['IsValidForPickupOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedOnline')) { + obj['IsValidForOrdersPayedOnline'] = ApiClient.convertToType(data['IsValidForOrdersPayedOnline'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedByCash')) { + obj['IsValidForOrdersPayedByCash'] = ApiClient.convertToType(data['IsValidForOrdersPayedByCash'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForFirstOrderOnly')) { + obj['IsValidForFirstOrderOnly'] = ApiClient.convertToType(data['IsValidForFirstOrderOnly'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOncePerCustomer')) { + obj['IsValidOncePerCustomer'] = ApiClient.convertToType(data['IsValidOncePerCustomer'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOnlyOnce')) { + obj['IsValidOnlyOnce'] = ApiClient.convertToType(data['IsValidOnlyOnce'], 'Boolean'); + } + if (data.hasOwnProperty('IsDiscoverable')) { + obj['IsDiscoverable'] = ApiClient.convertToType(data['IsDiscoverable'], 'Boolean'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + if (data.hasOwnProperty('StartDate')) { + obj['StartDate'] = ApiClient.convertToType(data['StartDate'], 'Date'); + } + if (data.hasOwnProperty('ExpiryDate')) { + obj['ExpiryDate'] = ApiClient.convertToType(data['ExpiryDate'], 'Date'); + } + if (data.hasOwnProperty('ChannelRestrictions')) { + obj['ChannelRestrictions'] = ApiClient.convertToType(data['ChannelRestrictions'], ['String']); + } + if (data.hasOwnProperty('ValidityPeriods')) { + obj['ValidityPeriods'] = ApiClient.convertToType(data['ValidityPeriods'], [ValidityPeriod]); + } + if (data.hasOwnProperty('VoucherSubType')) { + obj['VoucherSubType'] = ApiClient.convertToType(data['VoucherSubType'], 'String'); + } + if (data.hasOwnProperty('CustomerId')) { + obj['CustomerId'] = ApiClient.convertToType(data['CustomerId'], 'Number'); + } + if (data.hasOwnProperty('MaxRedemptions')) { + obj['MaxRedemptions'] = ApiClient.convertToType(data['MaxRedemptions'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Voucher Type + * @member {module:model/CreateVoucher.VoucherTypeEnum} VoucherType + */ +CreateVoucher.prototype['VoucherType'] = undefined; + +/** + * @member {module:model/CreatePromotion} Promotion + */ +CreateVoucher.prototype['Promotion'] = undefined; + +/** + * @member {module:model/CreditNoteDetails} CreditNoteDetails + */ +CreateVoucher.prototype['CreditNoteDetails'] = undefined; + +/** + * @member {module:model/LumpDiscountDetails} LumpDiscountDetails + */ +CreateVoucher.prototype['LumpDiscountDetails'] = undefined; + +/** + * @member {module:model/PercentDiscountDetails} PercentDiscountDetails + */ +CreateVoucher.prototype['PercentDiscountDetails'] = undefined; + +/** + * Voucher Code + * @member {String} Code + */ +CreateVoucher.prototype['Code'] = undefined; + +/** + * Voucher Description (Visible on printout) + * @member {String} Description + */ +CreateVoucher.prototype['Description'] = undefined; + +/** + * Stores that this voucher applies to + * @member {Array.} Stores + */ +CreateVoucher.prototype['Stores'] = undefined; + +/** + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver + */ +CreateVoucher.prototype['ValidOnOrdersOver'] = undefined; + +/** + * Takes priority + * @member {Boolean} TakesPriority + */ +CreateVoucher.prototype['TakesPriority'] = undefined; + +/** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ +CreateVoucher.prototype['IsEnabled'] = undefined; + +/** + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied + */ +CreateVoucher.prototype['IsAutomaticallyApplied'] = undefined; + +/** + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee + */ +CreateVoucher.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Valid for delivery orders + * @member {Boolean} IsValidForDeliveryOrders + */ +CreateVoucher.prototype['IsValidForDeliveryOrders'] = undefined; + +/** + * Valid for pickup orders + * @member {Boolean} IsValidForPickupOrders + */ +CreateVoucher.prototype['IsValidForPickupOrders'] = undefined; + +/** + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline + */ +CreateVoucher.prototype['IsValidForOrdersPayedOnline'] = undefined; + +/** + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash + */ +CreateVoucher.prototype['IsValidForOrdersPayedByCash'] = undefined; + +/** + * Valid only on the first order by the customer + * @member {Boolean} IsValidForFirstOrderOnly + */ +CreateVoucher.prototype['IsValidForFirstOrderOnly'] = undefined; + +/** + * Valid once per customer + * @member {Boolean} IsValidOncePerCustomer + */ +CreateVoucher.prototype['IsValidOncePerCustomer'] = undefined; + +/** + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce + */ +CreateVoucher.prototype['IsValidOnlyOnce'] = undefined; + +/** + * Enables the voucher to be offered in the Voucher Discoverability feature + * @member {Boolean} IsDiscoverable + */ +CreateVoucher.prototype['IsDiscoverable'] = undefined; + +/** + * Force the discount to be applied which bypasses some menu restrictions + * @member {Boolean} ForceDiscount + */ +CreateVoucher.prototype['ForceDiscount'] = undefined; + +/** + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate + */ +CreateVoucher.prototype['StartDate'] = undefined; + +/** + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate + */ +CreateVoucher.prototype['ExpiryDate'] = undefined; + +/** + * Limit the channels this voucher can be used on + * @member {Array.} ChannelRestrictions + */ +CreateVoucher.prototype['ChannelRestrictions'] = undefined; + +/** + * 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. + * @member {Array.} ValidityPeriods + */ +CreateVoucher.prototype['ValidityPeriods'] = undefined; + +/** + * Voucher Subtype + * @member {module:model/CreateVoucher.VoucherSubTypeEnum} VoucherSubType + */ +CreateVoucher.prototype['VoucherSubType'] = undefined; + +/** + * Customer UserID + * @member {Number} CustomerId + */ +CreateVoucher.prototype['CustomerId'] = undefined; + +/** + * Maximum number of times the voucher can be redeemed (used) + * @member {Number} MaxRedemptions + */ +CreateVoucher.prototype['MaxRedemptions'] = undefined; + + + + + +/** + * Allowed values for the VoucherType property. + * @enum {String} + * @readonly + */ +CreateVoucher['VoucherTypeEnum'] = { + + /** + * value: "PercentageDiscount" + * @const + */ + "PercentageDiscount": "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + "LumpDiscount": "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + "AddItem": "AddItem", + + /** + * value: "CreditNote" + * @const + */ + "CreditNote": "CreditNote", + + /** + * value: "FreeDelivery" + * @const + */ + "FreeDelivery": "FreeDelivery" +}; + + +/** + * Allowed values for the ChannelRestrictions property. + * @enum {String} + * @readonly + */ +CreateVoucher['ChannelRestrictionsEnum'] = { + + /** + * value: "Ios" + * @const + */ + "Ios": "Ios", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "Google" + * @const + */ + "Google": "Google" +}; + + +/** + * Allowed values for the VoucherSubType property. + * @enum {String} + * @readonly + */ +CreateVoucher['VoucherSubTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "SignUp" + * @const + */ + "SignUp": "SignUp", + + /** + * value: "Loyalty" + * @const + */ + "Loyalty": "Loyalty", + + /** + * value: "Loyalty25" + * @const + */ + "Loyalty25": "Loyalty25", + + /** + * value: "Retention" + * @const + */ + "Retention": "Retention", + + /** + * value: "SecondaryRetention" + * @const + */ + "SecondaryRetention": "SecondaryRetention", + + /** + * value: "Custom" + * @const + */ + "Custom": "Custom" +}; + + + +export default CreateVoucher; + diff --git a/src/model/CreatedMenuSectionItems.js b/src/model/CreatedMenuSectionItems.js new file mode 100644 index 00000000..9601f286 --- /dev/null +++ b/src/model/CreatedMenuSectionItems.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionItem from './MenuSectionItem'; + +/** + * The CreatedMenuSectionItems model module. + * @module model/CreatedMenuSectionItems + * @version 1.0.0 + */ +class CreatedMenuSectionItems { + /** + * Constructs a new CreatedMenuSectionItems. + * Response for the creation of multiple Menu Section Items + * @alias module:model/CreatedMenuSectionItems + */ + constructor() { + + CreatedMenuSectionItems.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreatedMenuSectionItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatedMenuSectionItems} obj Optional instance to populate. + * @return {module:model/CreatedMenuSectionItems} The populated CreatedMenuSectionItems instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatedMenuSectionItems(); + + if (data.hasOwnProperty('MenuSectionItems')) { + obj['MenuSectionItems'] = ApiClient.convertToType(data['MenuSectionItems'], [MenuSectionItem]); + } + } + return obj; + } + + +} + +/** + * Created Menu Section Items + * @member {Array.} MenuSectionItems + */ +CreatedMenuSectionItems.prototype['MenuSectionItems'] = undefined; + + + + + + +export default CreatedMenuSectionItems; + diff --git a/src/model/CreditNoteDetails.js b/src/model/CreditNoteDetails.js new file mode 100644 index 00000000..d54e1773 --- /dev/null +++ b/src/model/CreditNoteDetails.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreditNoteDetails model module. + * @module model/CreditNoteDetails + * @version 1.0.0 + */ +class CreditNoteDetails { + /** + * Constructs a new CreditNoteDetails. + * Credit note details + * @alias module:model/CreditNoteDetails + */ + constructor() { + + CreditNoteDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreditNoteDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreditNoteDetails} obj Optional instance to populate. + * @return {module:model/CreditNoteDetails} The populated CreditNoteDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreditNoteDetails(); + + if (data.hasOwnProperty('RemainingCredit')) { + obj['RemainingCredit'] = ApiClient.convertToType(data['RemainingCredit'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Remaining credit + * @member {Number} RemainingCredit + */ +CreditNoteDetails.prototype['RemainingCredit'] = undefined; + + + + + + +export default CreditNoteDetails; + diff --git a/src/model/CrossSellMenuItems.js b/src/model/CrossSellMenuItems.js new file mode 100644 index 00000000..087251e5 --- /dev/null +++ b/src/model/CrossSellMenuItems.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CrossSellMenuItems model module. + * @module model/CrossSellMenuItems + * @version 1.0.0 + */ +class CrossSellMenuItems { + /** + * Constructs a new CrossSellMenuItems. + * Menu Items for Cross-Sell + * @alias module:model/CrossSellMenuItems + */ + constructor() { + + CrossSellMenuItems.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CrossSellMenuItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CrossSellMenuItems} obj Optional instance to populate. + * @return {module:model/CrossSellMenuItems} The populated CrossSellMenuItems instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CrossSellMenuItems(); + + if (data.hasOwnProperty('MenuItemIds')) { + obj['MenuItemIds'] = ApiClient.convertToType(data['MenuItemIds'], ['Number']); + } + } + return obj; + } + + +} + +/** + * Menu Item Id's + * @member {Array.} MenuItemIds + */ +CrossSellMenuItems.prototype['MenuItemIds'] = undefined; + + + + + + +export default CrossSellMenuItems; + diff --git a/src/model/CspReport.js b/src/model/CspReport.js new file mode 100644 index 00000000..5c21a5aa --- /dev/null +++ b/src/model/CspReport.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CspReport model module. + * @module model/CspReport + * @version 1.0.0 + */ +class CspReport { + /** + * Constructs a new CspReport. + * @alias module:model/CspReport + */ + constructor() { + + CspReport.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CspReport from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CspReport} obj Optional instance to populate. + * @return {module:model/CspReport} The populated CspReport instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CspReport(); + + if (data.hasOwnProperty('Document-uri')) { + obj['Document-uri'] = ApiClient.convertToType(data['Document-uri'], 'String'); + } + if (data.hasOwnProperty('Referrer')) { + obj['Referrer'] = ApiClient.convertToType(data['Referrer'], 'String'); + } + if (data.hasOwnProperty('Violated-directive')) { + obj['Violated-directive'] = ApiClient.convertToType(data['Violated-directive'], 'String'); + } + if (data.hasOwnProperty('Effective-directive')) { + obj['Effective-directive'] = ApiClient.convertToType(data['Effective-directive'], 'String'); + } + if (data.hasOwnProperty('Original-policy')) { + obj['Original-policy'] = ApiClient.convertToType(data['Original-policy'], 'String'); + } + if (data.hasOwnProperty('Blocked-uri')) { + obj['Blocked-uri'] = ApiClient.convertToType(data['Blocked-uri'], 'String'); + } + if (data.hasOwnProperty('Status-code')) { + obj['Status-code'] = ApiClient.convertToType(data['Status-code'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} Document-uri + */ +CspReport.prototype['Document-uri'] = undefined; + +/** + * @member {String} Referrer + */ +CspReport.prototype['Referrer'] = undefined; + +/** + * @member {String} Violated-directive + */ +CspReport.prototype['Violated-directive'] = undefined; + +/** + * @member {String} Effective-directive + */ +CspReport.prototype['Effective-directive'] = undefined; + +/** + * @member {String} Original-policy + */ +CspReport.prototype['Original-policy'] = undefined; + +/** + * @member {String} Blocked-uri + */ +CspReport.prototype['Blocked-uri'] = undefined; + +/** + * @member {Number} Status-code + */ +CspReport.prototype['Status-code'] = undefined; + + + + + + +export default CspReport; + diff --git a/src/model/CspReportRequest.js b/src/model/CspReportRequest.js new file mode 100644 index 00000000..db4b3b5d --- /dev/null +++ b/src/model/CspReportRequest.js @@ -0,0 +1,72 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CspReport from './CspReport'; + +/** + * The CspReportRequest model module. + * @module model/CspReportRequest + * @version 1.0.0 + */ +class CspReportRequest { + /** + * Constructs a new CspReportRequest. + * @alias module:model/CspReportRequest + */ + constructor() { + + CspReportRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CspReportRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CspReportRequest} obj Optional instance to populate. + * @return {module:model/CspReportRequest} The populated CspReportRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CspReportRequest(); + + if (data.hasOwnProperty('Csp-report')) { + obj['Csp-report'] = CspReport.constructFromObject(data['Csp-report']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CspReport} Csp-report + */ +CspReportRequest.prototype['Csp-report'] = undefined; + + + + + + +export default CspReportRequest; + diff --git a/src/model/CurrencyData.js b/src/model/CurrencyData.js new file mode 100644 index 00000000..3f38fc7d --- /dev/null +++ b/src/model/CurrencyData.js @@ -0,0 +1,769 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CurrencyData model module. + * @module model/CurrencyData + * @version 1.0.0 + */ +class CurrencyData { + /** + * Constructs a new CurrencyData. + * A single currency data piece, with no date + * @alias module:model/CurrencyData + */ + constructor() { + + CurrencyData.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CurrencyData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CurrencyData} obj Optional instance to populate. + * @return {module:model/CurrencyData} The populated CurrencyData instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CurrencyData(); + + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Currency + * @member {module:model/CurrencyData.CurrencyEnum} Currency + */ +CurrencyData.prototype['Currency'] = undefined; + +/** + * Value + * @member {Number} Value + */ +CurrencyData.prototype['Value'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +CurrencyData['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default CurrencyData; + diff --git a/src/model/Customer.js b/src/model/Customer.js new file mode 100644 index 00000000..73ad797c --- /dev/null +++ b/src/model/Customer.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Customer model module. + * @module model/Customer + * @version 1.0.0 + */ +class Customer { + /** + * Constructs a new Customer. + * Defines a customer + * @alias module:model/Customer + */ + constructor() { + + Customer.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Customer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Customer} obj Optional instance to populate. + * @return {module:model/Customer} The populated Customer instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Customer(); + + if (data.hasOwnProperty('CustomerId')) { + obj['CustomerId'] = ApiClient.convertToType(data['CustomerId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('RegistrationDate')) { + obj['RegistrationDate'] = ApiClient.convertToType(data['RegistrationDate'], 'Date'); + } + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('CashOrdersEnabled')) { + obj['CashOrdersEnabled'] = ApiClient.convertToType(data['CashOrdersEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CardOrdersEnabled')) { + obj['CardOrdersEnabled'] = ApiClient.convertToType(data['CardOrdersEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('MarketingEnabled')) { + obj['MarketingEnabled'] = ApiClient.convertToType(data['MarketingEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Id of the customer + * @member {Number} CustomerId + */ +Customer.prototype['CustomerId'] = undefined; + +/** + * Customer name + * @member {String} Name + */ +Customer.prototype['Name'] = undefined; + +/** + * Customer registration date + * @member {Date} RegistrationDate + */ +Customer.prototype['RegistrationDate'] = undefined; + +/** + * Phone Number in international format + * @member {String} PhoneNumber + */ +Customer.prototype['PhoneNumber'] = undefined; + +/** + * Customer can place cash orders + * @member {Boolean} CashOrdersEnabled + */ +Customer.prototype['CashOrdersEnabled'] = undefined; + +/** + * Customer can place card orders + * @member {Boolean} CardOrdersEnabled + */ +Customer.prototype['CardOrdersEnabled'] = undefined; + +/** + * Customer can receive marketing + * @member {Boolean} MarketingEnabled + */ +Customer.prototype['MarketingEnabled'] = undefined; + + + + + + +export default Customer; + diff --git a/src/model/CustomerConsentUpdatedEvent.js b/src/model/CustomerConsentUpdatedEvent.js new file mode 100644 index 00000000..4162b9de --- /dev/null +++ b/src/model/CustomerConsentUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CustomerConsentUpdatedEvent model module. + * @module model/CustomerConsentUpdatedEvent + * @version 1.0.0 + */ +class CustomerConsentUpdatedEvent { + /** + * Constructs a new CustomerConsentUpdatedEvent. + * Customer consent updated + * @alias module:model/CustomerConsentUpdatedEvent + */ + constructor() { + + CustomerConsentUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerConsentUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerConsentUpdatedEvent} obj Optional instance to populate. + * @return {module:model/CustomerConsentUpdatedEvent} The populated CustomerConsentUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerConsentUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CustomerConsentUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +CustomerConsentUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Enabled + * @member {Boolean} Enabled + */ +CustomerConsentUpdatedEvent.prototype['Enabled'] = undefined; + +/** + * Description + * @member {String} Description + */ +CustomerConsentUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CustomerConsentUpdatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CustomerConsentUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CustomerConsentUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CustomerConsentUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CustomerConsentUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CustomerConsentUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CustomerConsentUpdatedEvent; + diff --git a/src/model/CustomerCreateModel.js b/src/model/CustomerCreateModel.js new file mode 100644 index 00000000..c8cc1772 --- /dev/null +++ b/src/model/CustomerCreateModel.js @@ -0,0 +1,166 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CustomerCreateModel model module. + * @module model/CustomerCreateModel + * @version 1.0.0 + */ +class CustomerCreateModel { + /** + * Constructs a new CustomerCreateModel. + * Defines a customer create model + * @alias module:model/CustomerCreateModel + */ + constructor() { + + CustomerCreateModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerCreateModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerCreateModel} obj Optional instance to populate. + * @return {module:model/CustomerCreateModel} The populated CustomerCreateModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerCreateModel(); + + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('AppType')) { + obj['AppType'] = ApiClient.convertToType(data['AppType'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Customer Phone Number + * @member {String} PhoneNumber + */ +CustomerCreateModel.prototype['PhoneNumber'] = undefined; + +/** + * Customer AppType + * @member {module:model/CustomerCreateModel.AppTypeEnum} AppType + */ +CustomerCreateModel.prototype['AppType'] = undefined; + +/** + * Customer Name + * @member {String} Name + */ +CustomerCreateModel.prototype['Name'] = undefined; + + + + + +/** + * Allowed values for the AppType property. + * @enum {String} + * @readonly + */ +CustomerCreateModel['AppTypeEnum'] = { + + /** + * value: "Unknown" + * @const + */ + "Unknown": "Unknown", + + /** + * value: "Ios" + * @const + */ + "Ios": "Ios", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "TelephoneCall" + * @const + */ + "TelephoneCall": "TelephoneCall", + + /** + * value: "Sms" + * @const + */ + "Sms": "Sms", + + /** + * value: "PwaAndroid" + * @const + */ + "PwaAndroid": "PwaAndroid", + + /** + * value: "PwaIos" + * @const + */ + "PwaIos": "PwaIos", + + /** + * value: "Google" + * @const + */ + "Google": "Google" +}; + + + +export default CustomerCreateModel; + diff --git a/src/model/CustomerCreatedEvent.js b/src/model/CustomerCreatedEvent.js new file mode 100644 index 00000000..cefeafc7 --- /dev/null +++ b/src/model/CustomerCreatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CustomerCreatedEvent model module. + * @module model/CustomerCreatedEvent + * @version 1.0.0 + */ +class CustomerCreatedEvent { + /** + * Constructs a new CustomerCreatedEvent. + * Customer created event + * @alias module:model/CustomerCreatedEvent + */ + constructor() { + + CustomerCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerCreatedEvent} obj Optional instance to populate. + * @return {module:model/CustomerCreatedEvent} The populated CustomerCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CustomerCreatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +CustomerCreatedEvent.prototype['OrgId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CustomerCreatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +CustomerCreatedEvent.prototype['Description'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CustomerCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CustomerCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CustomerCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CustomerCreatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CustomerCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CustomerCreatedEvent; + diff --git a/src/model/CustomerDeliveryTrackingOrder.js b/src/model/CustomerDeliveryTrackingOrder.js new file mode 100644 index 00000000..7bc2f52b --- /dev/null +++ b/src/model/CustomerDeliveryTrackingOrder.js @@ -0,0 +1,923 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CustomerDeliveryTrackingOrderLine from './CustomerDeliveryTrackingOrderLine'; + +/** + * The CustomerDeliveryTrackingOrder model module. + * @module model/CustomerDeliveryTrackingOrder + * @version 1.0.0 + */ +class CustomerDeliveryTrackingOrder { + /** + * Constructs a new CustomerDeliveryTrackingOrder. + * Defines the order data required for customer driver tracking + * @alias module:model/CustomerDeliveryTrackingOrder + */ + constructor() { + + CustomerDeliveryTrackingOrder.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerDeliveryTrackingOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerDeliveryTrackingOrder} obj Optional instance to populate. + * @return {module:model/CustomerDeliveryTrackingOrder} The populated CustomerDeliveryTrackingOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerDeliveryTrackingOrder(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('Address')) { + obj['Address'] = ApiClient.convertToType(data['Address'], 'String'); + } + if (data.hasOwnProperty('DeliveryNotes')) { + obj['DeliveryNotes'] = ApiClient.convertToType(data['DeliveryNotes'], 'String'); + } + if (data.hasOwnProperty('StorePhoneNumber')) { + obj['StorePhoneNumber'] = ApiClient.convertToType(data['StorePhoneNumber'], 'String'); + } + if (data.hasOwnProperty('AppIconUrl')) { + obj['AppIconUrl'] = ApiClient.convertToType(data['AppIconUrl'], 'String'); + } + if (data.hasOwnProperty('OrderTrackingCode')) { + obj['OrderTrackingCode'] = ApiClient.convertToType(data['OrderTrackingCode'], 'String'); + } + if (data.hasOwnProperty('PaymentMethodDescription')) { + obj['PaymentMethodDescription'] = ApiClient.convertToType(data['PaymentMethodDescription'], 'String'); + } + if (data.hasOwnProperty('LastFourDigits')) { + obj['LastFourDigits'] = ApiClient.convertToType(data['LastFourDigits'], 'String'); + } + if (data.hasOwnProperty('OrderLines')) { + obj['OrderLines'] = ApiClient.convertToType(data['OrderLines'], [CustomerDeliveryTrackingOrderLine]); + } + if (data.hasOwnProperty('TotalAmount')) { + obj['TotalAmount'] = ApiClient.convertToType(data['TotalAmount'], 'Number'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('Latitude')) { + obj['Latitude'] = ApiClient.convertToType(data['Latitude'], 'Number'); + } + if (data.hasOwnProperty('Longitude')) { + obj['Longitude'] = ApiClient.convertToType(data['Longitude'], 'Number'); + } + if (data.hasOwnProperty('Placed')) { + obj['Placed'] = ApiClient.convertToType(data['Placed'], 'Date'); + } + if (data.hasOwnProperty('RequestedFor')) { + obj['RequestedFor'] = ApiClient.convertToType(data['RequestedFor'], 'Date'); + } + if (data.hasOwnProperty('DriverId')) { + obj['DriverId'] = ApiClient.convertToType(data['DriverId'], 'Number'); + } + if (data.hasOwnProperty('DriverName')) { + obj['DriverName'] = ApiClient.convertToType(data['DriverName'], 'String'); + } + if (data.hasOwnProperty('DriverImage')) { + obj['DriverImage'] = ApiClient.convertToType(data['DriverImage'], 'String'); + } + if (data.hasOwnProperty('EstimatedMinutesForDelivery')) { + obj['EstimatedMinutesForDelivery'] = ApiClient.convertToType(data['EstimatedMinutesForDelivery'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Order Id + * @member {Number} OrderId + */ +CustomerDeliveryTrackingOrder.prototype['OrderId'] = undefined; + +/** + * Pretified address string in country format + * @member {String} Address + */ +CustomerDeliveryTrackingOrder.prototype['Address'] = undefined; + +/** + * Delivery Notes + * @member {String} DeliveryNotes + */ +CustomerDeliveryTrackingOrder.prototype['DeliveryNotes'] = undefined; + +/** + * Phone number of the store + * @member {String} StorePhoneNumber + */ +CustomerDeliveryTrackingOrder.prototype['StorePhoneNumber'] = undefined; + +/** + * App Icon of the store + * @member {String} AppIconUrl + */ +CustomerDeliveryTrackingOrder.prototype['AppIconUrl'] = undefined; + +/** + * Order Tracking Code + * @member {String} OrderTrackingCode + */ +CustomerDeliveryTrackingOrder.prototype['OrderTrackingCode'] = undefined; + +/** + * Payment method description i.e Cash/Card/iDeal/Paypal + * @member {String} PaymentMethodDescription + */ +CustomerDeliveryTrackingOrder.prototype['PaymentMethodDescription'] = undefined; + +/** + * Last 4 digits of the card if applicable otherwise null + * @member {String} LastFourDigits + */ +CustomerDeliveryTrackingOrder.prototype['LastFourDigits'] = undefined; + +/** + * Order lines of the order + * @member {Array.} OrderLines + */ +CustomerDeliveryTrackingOrder.prototype['OrderLines'] = undefined; + +/** + * Total amount for the order including tax + * @member {Number} TotalAmount + */ +CustomerDeliveryTrackingOrder.prototype['TotalAmount'] = undefined; + +/** + * Currency + * @member {module:model/CustomerDeliveryTrackingOrder.CurrencyEnum} Currency + */ +CustomerDeliveryTrackingOrder.prototype['Currency'] = undefined; + +/** + * Customer Location Latitude + * @member {Number} Latitude + */ +CustomerDeliveryTrackingOrder.prototype['Latitude'] = undefined; + +/** + * Customer Location Longitude + * @member {Number} Longitude + */ +CustomerDeliveryTrackingOrder.prototype['Longitude'] = undefined; + +/** + * Order placed time + * @member {Date} Placed + */ +CustomerDeliveryTrackingOrder.prototype['Placed'] = undefined; + +/** + * Order requested for + * @member {Date} RequestedFor + */ +CustomerDeliveryTrackingOrder.prototype['RequestedFor'] = undefined; + +/** + * Driver Id + * @member {Number} DriverId + */ +CustomerDeliveryTrackingOrder.prototype['DriverId'] = undefined; + +/** + * Driver Name + * @member {String} DriverName + */ +CustomerDeliveryTrackingOrder.prototype['DriverName'] = undefined; + +/** + * Driver Image + * @member {String} DriverImage + */ +CustomerDeliveryTrackingOrder.prototype['DriverImage'] = undefined; + +/** + * + * @member {Number} EstimatedMinutesForDelivery + */ +CustomerDeliveryTrackingOrder.prototype['EstimatedMinutesForDelivery'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +CustomerDeliveryTrackingOrder['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default CustomerDeliveryTrackingOrder; + diff --git a/src/model/CustomerDeliveryTrackingOrderLine.js b/src/model/CustomerDeliveryTrackingOrderLine.js new file mode 100644 index 00000000..69806b33 --- /dev/null +++ b/src/model/CustomerDeliveryTrackingOrderLine.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CustomerDeliveryTrackingOrderLine model module. + * @module model/CustomerDeliveryTrackingOrderLine + * @version 1.0.0 + */ +class CustomerDeliveryTrackingOrderLine { + /** + * Constructs a new CustomerDeliveryTrackingOrderLine. + * Defines an order line for driver tracking + * @alias module:model/CustomerDeliveryTrackingOrderLine + */ + constructor() { + + CustomerDeliveryTrackingOrderLine.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerDeliveryTrackingOrderLine from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerDeliveryTrackingOrderLine} obj Optional instance to populate. + * @return {module:model/CustomerDeliveryTrackingOrderLine} The populated CustomerDeliveryTrackingOrderLine instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerDeliveryTrackingOrderLine(); + + if (data.hasOwnProperty('ItemName')) { + obj['ItemName'] = ApiClient.convertToType(data['ItemName'], 'String'); + } + if (data.hasOwnProperty('SelectedOptions')) { + obj['SelectedOptions'] = ApiClient.convertToType(data['SelectedOptions'], ['String']); + } + } + return obj; + } + + +} + +/** + * Item name from the order + * @member {String} ItemName + */ +CustomerDeliveryTrackingOrderLine.prototype['ItemName'] = undefined; + +/** + * Selected option names + * @member {Array.} SelectedOptions + */ +CustomerDeliveryTrackingOrderLine.prototype['SelectedOptions'] = undefined; + + + + + + +export default CustomerDeliveryTrackingOrderLine; + diff --git a/src/model/CustomerMessages.js b/src/model/CustomerMessages.js new file mode 100644 index 00000000..31a56505 --- /dev/null +++ b/src/model/CustomerMessages.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CustomerMessages model module. + * @module model/CustomerMessages + * @version 1.0.0 + */ +class CustomerMessages { + /** + * Constructs a new CustomerMessages. + * Delivery and pickup menu messages for a customer + * @alias module:model/CustomerMessages + */ + constructor() { + + CustomerMessages.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerMessages from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerMessages} obj Optional instance to populate. + * @return {module:model/CustomerMessages} The populated CustomerMessages instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerMessages(); + + if (data.hasOwnProperty('DeliveryMenuMessage')) { + obj['DeliveryMenuMessage'] = ApiClient.convertToType(data['DeliveryMenuMessage'], 'String'); + } + if (data.hasOwnProperty('PickupMenuMessage')) { + obj['PickupMenuMessage'] = ApiClient.convertToType(data['PickupMenuMessage'], 'String'); + } + } + return obj; + } + + +} + +/** + * Delivery menu message + * @member {String} DeliveryMenuMessage + */ +CustomerMessages.prototype['DeliveryMenuMessage'] = undefined; + +/** + * Pickup menu message + * @member {String} PickupMenuMessage + */ +CustomerMessages.prototype['PickupMenuMessage'] = undefined; + + + + + + +export default CustomerMessages; + diff --git a/src/model/CustomerSummary.js b/src/model/CustomerSummary.js new file mode 100644 index 00000000..6f2d6f21 --- /dev/null +++ b/src/model/CustomerSummary.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CustomerSummary model module. + * @module model/CustomerSummary + * @version 1.0.0 + */ +class CustomerSummary { + /** + * Constructs a new CustomerSummary. + * Customer summary + * @alias module:model/CustomerSummary + */ + constructor() { + + CustomerSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerSummary} obj Optional instance to populate. + * @return {module:model/CustomerSummary} The populated CustomerSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerSummary(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('EmailAddress')) { + obj['EmailAddress'] = ApiClient.convertToType(data['EmailAddress'], 'String'); + } + if (data.hasOwnProperty('PhoneNumberLocalFormat')) { + obj['PhoneNumberLocalFormat'] = ApiClient.convertToType(data['PhoneNumberLocalFormat'], 'String'); + } + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('LanguagePreference')) { + obj['LanguagePreference'] = ApiClient.convertToType(data['LanguagePreference'], 'String'); + } + } + return obj; + } + + +} + +/** + * Customer identifier + * @member {Number} Id + */ +CustomerSummary.prototype['Id'] = undefined; + +/** + * Customer name + * @member {String} Name + */ +CustomerSummary.prototype['Name'] = undefined; + +/** + * Customer email address + * @member {String} EmailAddress + */ +CustomerSummary.prototype['EmailAddress'] = undefined; + +/** + * Customer local phone number + * @member {String} PhoneNumberLocalFormat + */ +CustomerSummary.prototype['PhoneNumberLocalFormat'] = undefined; + +/** + * Customer phone number + * @member {String} PhoneNumber + */ +CustomerSummary.prototype['PhoneNumber'] = undefined; + +/** + * Preferred language of the consumer + * @member {String} LanguagePreference + */ +CustomerSummary.prototype['LanguagePreference'] = undefined; + + + + + + +export default CustomerSummary; + diff --git a/src/model/CustomerUpdateModel.js b/src/model/CustomerUpdateModel.js new file mode 100644 index 00000000..9bf65e47 --- /dev/null +++ b/src/model/CustomerUpdateModel.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CustomerUpdateModel model module. + * @module model/CustomerUpdateModel + * @version 1.0.0 + */ +class CustomerUpdateModel { + /** + * Constructs a new CustomerUpdateModel. + * Defines a customer update model + * @alias module:model/CustomerUpdateModel + */ + constructor() { + + CustomerUpdateModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerUpdateModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerUpdateModel} obj Optional instance to populate. + * @return {module:model/CustomerUpdateModel} The populated CustomerUpdateModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerUpdateModel(); + + if (data.hasOwnProperty('CashOrdersEnabled')) { + obj['CashOrdersEnabled'] = ApiClient.convertToType(data['CashOrdersEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CardOrdersEnabled')) { + obj['CardOrdersEnabled'] = ApiClient.convertToType(data['CardOrdersEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('MarketingEnabled')) { + obj['MarketingEnabled'] = ApiClient.convertToType(data['MarketingEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Customer can place cash orders + * @member {Boolean} CashOrdersEnabled + */ +CustomerUpdateModel.prototype['CashOrdersEnabled'] = undefined; + +/** + * Customer can place card orders + * @member {Boolean} CardOrdersEnabled + */ +CustomerUpdateModel.prototype['CardOrdersEnabled'] = undefined; + +/** + * Customer can receive marketing + * @member {Boolean} MarketingEnabled + */ +CustomerUpdateModel.prototype['MarketingEnabled'] = undefined; + + + + + + +export default CustomerUpdateModel; + diff --git a/src/model/CustomerUpdatedEvent.js b/src/model/CustomerUpdatedEvent.js new file mode 100644 index 00000000..adda2ec0 --- /dev/null +++ b/src/model/CustomerUpdatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The CustomerUpdatedEvent model module. + * @module model/CustomerUpdatedEvent + * @version 1.0.0 + */ +class CustomerUpdatedEvent { + /** + * Constructs a new CustomerUpdatedEvent. + * Customer updated event + * @alias module:model/CustomerUpdatedEvent + */ + constructor() { + + CustomerUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CustomerUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerUpdatedEvent} obj Optional instance to populate. + * @return {module:model/CustomerUpdatedEvent} The populated CustomerUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +CustomerUpdatedEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +CustomerUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +CustomerUpdatedEvent.prototype['Description'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +CustomerUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +CustomerUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +CustomerUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +CustomerUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +CustomerUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +CustomerUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default CustomerUpdatedEvent; + diff --git a/src/model/Customers.js b/src/model/Customers.js new file mode 100644 index 00000000..8763e5bb --- /dev/null +++ b/src/model/Customers.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Customer from './Customer'; + +/** + * The Customers model module. + * @module model/Customers + * @version 1.0.0 + */ +class Customers { + /** + * Constructs a new Customers. + * Defines a list of customers + * @alias module:model/Customers + */ + constructor() { + + Customers.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Customers from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Customers} obj Optional instance to populate. + * @return {module:model/Customers} The populated Customers instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Customers(); + + if (data.hasOwnProperty('Items')) { + obj['Items'] = ApiClient.convertToType(data['Items'], [Customer]); + } + } + return obj; + } + + +} + +/** + * List of customers + * @member {Array.} Items + */ +Customers.prototype['Items'] = undefined; + + + + + + +export default Customers; + diff --git a/src/model/DashboardEmbed.js b/src/model/DashboardEmbed.js new file mode 100644 index 00000000..7a68263f --- /dev/null +++ b/src/model/DashboardEmbed.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DashboardEmbed model module. + * @module model/DashboardEmbed + * @version 1.0.0 + */ +class DashboardEmbed { + /** + * Constructs a new DashboardEmbed. + * SSO Embed URL Information + * @alias module:model/DashboardEmbed + */ + constructor() { + + DashboardEmbed.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DashboardEmbed from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DashboardEmbed} obj Optional instance to populate. + * @return {module:model/DashboardEmbed} The populated DashboardEmbed instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DashboardEmbed(); + + if (data.hasOwnProperty('EmbedUrl')) { + obj['EmbedUrl'] = ApiClient.convertToType(data['EmbedUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * SSO URL generated by Flipdish to embed Looker dashboard + * @member {String} EmbedUrl + */ +DashboardEmbed.prototype['EmbedUrl'] = undefined; + + + + + + +export default DashboardEmbed; + diff --git a/src/model/DeliveryLocation.js b/src/model/DeliveryLocation.js new file mode 100644 index 00000000..c176d5bd --- /dev/null +++ b/src/model/DeliveryLocation.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Coordinates from './Coordinates'; + +/** + * The DeliveryLocation model module. + * @module model/DeliveryLocation + * @version 1.0.0 + */ +class DeliveryLocation { + /** + * Constructs a new DeliveryLocation. + * Delivery location + * @alias module:model/DeliveryLocation + */ + constructor() { + + DeliveryLocation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeliveryLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeliveryLocation} obj Optional instance to populate. + * @return {module:model/DeliveryLocation} The populated DeliveryLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeliveryLocation(); + + if (data.hasOwnProperty('Coordinates')) { + obj['Coordinates'] = Coordinates.constructFromObject(data['Coordinates']); + } + if (data.hasOwnProperty('Building')) { + obj['Building'] = ApiClient.convertToType(data['Building'], 'String'); + } + if (data.hasOwnProperty('Street')) { + obj['Street'] = ApiClient.convertToType(data['Street'], 'String'); + } + if (data.hasOwnProperty('Town')) { + obj['Town'] = ApiClient.convertToType(data['Town'], 'String'); + } + if (data.hasOwnProperty('PostCode')) { + obj['PostCode'] = ApiClient.convertToType(data['PostCode'], 'String'); + } + if (data.hasOwnProperty('DeliveryInstructions')) { + obj['DeliveryInstructions'] = ApiClient.convertToType(data['DeliveryInstructions'], 'String'); + } + if (data.hasOwnProperty('PrettyAddressString')) { + obj['PrettyAddressString'] = ApiClient.convertToType(data['PrettyAddressString'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Coordinates} Coordinates + */ +DeliveryLocation.prototype['Coordinates'] = undefined; + +/** + * Building + * @member {String} Building + */ +DeliveryLocation.prototype['Building'] = undefined; + +/** + * Street + * @member {String} Street + */ +DeliveryLocation.prototype['Street'] = undefined; + +/** + * Town + * @member {String} Town + */ +DeliveryLocation.prototype['Town'] = undefined; + +/** + * Post code + * @member {String} PostCode + */ +DeliveryLocation.prototype['PostCode'] = undefined; + +/** + * Delivery instructions + * @member {String} DeliveryInstructions + */ +DeliveryLocation.prototype['DeliveryInstructions'] = undefined; + +/** + * Formatted, pretty address string + * @member {String} PrettyAddressString + */ +DeliveryLocation.prototype['PrettyAddressString'] = undefined; + + + + + + +export default DeliveryLocation; + diff --git a/src/model/DeliveryZone.js b/src/model/DeliveryZone.js new file mode 100644 index 00000000..f3d7c02a --- /dev/null +++ b/src/model/DeliveryZone.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DeliveryZone model module. + * @module model/DeliveryZone + * @version 1.0.0 + */ +class DeliveryZone { + /** + * Constructs a new DeliveryZone. + * Delivery Zone + * @alias module:model/DeliveryZone + */ + constructor() { + + DeliveryZone.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeliveryZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeliveryZone} obj Optional instance to populate. + * @return {module:model/DeliveryZone} The populated DeliveryZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeliveryZone(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('FeeChargedToStore')) { + obj['FeeChargedToStore'] = ApiClient.convertToType(data['FeeChargedToStore'], 'Number'); + } + if (data.hasOwnProperty('DeliveryFee')) { + obj['DeliveryFee'] = ApiClient.convertToType(data['DeliveryFee'], 'Number'); + } + if (data.hasOwnProperty('MinimumDeliveryOrderAmount')) { + obj['MinimumDeliveryOrderAmount'] = ApiClient.convertToType(data['MinimumDeliveryOrderAmount'], 'Number'); + } + if (data.hasOwnProperty('WellKnownText')) { + obj['WellKnownText'] = ApiClient.convertToType(data['WellKnownText'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Delivery Fee Area Id + * @member {Number} Id + */ +DeliveryZone.prototype['Id'] = undefined; + +/** + * Delivery Fee charged to store + * @member {Number} FeeChargedToStore + */ +DeliveryZone.prototype['FeeChargedToStore'] = undefined; + +/** + * Delivery fee (will not be set below 0) + * @member {Number} DeliveryFee + */ +DeliveryZone.prototype['DeliveryFee'] = undefined; + +/** + * Minimum delivery order amount (will not be set below 0) + * @member {Number} MinimumDeliveryOrderAmount + */ +DeliveryZone.prototype['MinimumDeliveryOrderAmount'] = undefined; + +/** + * Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) + * @member {String} WellKnownText + */ +DeliveryZone.prototype['WellKnownText'] = undefined; + +/** + * Is delivery zone enabled + * @member {Boolean} IsEnabled + */ +DeliveryZone.prototype['IsEnabled'] = undefined; + + + + + + +export default DeliveryZone; + diff --git a/src/model/DeliveryZoneBase.js b/src/model/DeliveryZoneBase.js new file mode 100644 index 00000000..0b8ddc8f --- /dev/null +++ b/src/model/DeliveryZoneBase.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DeliveryZoneBase model module. + * @module model/DeliveryZoneBase + * @version 1.0.0 + */ +class DeliveryZoneBase { + /** + * Constructs a new DeliveryZoneBase. + * Delivery Zone Base + * @alias module:model/DeliveryZoneBase + */ + constructor() { + + DeliveryZoneBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeliveryZoneBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeliveryZoneBase} obj Optional instance to populate. + * @return {module:model/DeliveryZoneBase} The populated DeliveryZoneBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeliveryZoneBase(); + + if (data.hasOwnProperty('DeliveryFee')) { + obj['DeliveryFee'] = ApiClient.convertToType(data['DeliveryFee'], 'Number'); + } + if (data.hasOwnProperty('MinimumDeliveryOrderAmount')) { + obj['MinimumDeliveryOrderAmount'] = ApiClient.convertToType(data['MinimumDeliveryOrderAmount'], 'Number'); + } + if (data.hasOwnProperty('WellKnownText')) { + obj['WellKnownText'] = ApiClient.convertToType(data['WellKnownText'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Delivery fee (will not be set below 0) + * @member {Number} DeliveryFee + */ +DeliveryZoneBase.prototype['DeliveryFee'] = undefined; + +/** + * Minimum delivery order amount (will not be set below 0) + * @member {Number} MinimumDeliveryOrderAmount + */ +DeliveryZoneBase.prototype['MinimumDeliveryOrderAmount'] = undefined; + +/** + * Spatial data in Well Known Text format We also support CIRCLE((0 0, 200)) - (centerLong centerLat, radius in m) + * @member {String} WellKnownText + */ +DeliveryZoneBase.prototype['WellKnownText'] = undefined; + +/** + * Is delivery zone enabled + * @member {Boolean} IsEnabled + */ +DeliveryZoneBase.prototype['IsEnabled'] = undefined; + + + + + + +export default DeliveryZoneBase; + diff --git a/src/model/DeliveryZoneCreatedEvent.js b/src/model/DeliveryZoneCreatedEvent.js new file mode 100644 index 00000000..de23e337 --- /dev/null +++ b/src/model/DeliveryZoneCreatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeliveryZone from './DeliveryZone'; +import UserEventInfo from './UserEventInfo'; + +/** + * The DeliveryZoneCreatedEvent model module. + * @module model/DeliveryZoneCreatedEvent + * @version 1.0.0 + */ +class DeliveryZoneCreatedEvent { + /** + * Constructs a new DeliveryZoneCreatedEvent. + * Delivery Zone Created Event + * @alias module:model/DeliveryZoneCreatedEvent + */ + constructor() { + + DeliveryZoneCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeliveryZoneCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeliveryZoneCreatedEvent} obj Optional instance to populate. + * @return {module:model/DeliveryZoneCreatedEvent} The populated DeliveryZoneCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeliveryZoneCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('DeliveryZone')) { + obj['DeliveryZone'] = DeliveryZone.constructFromObject(data['DeliveryZone']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +DeliveryZoneCreatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +DeliveryZoneCreatedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +DeliveryZoneCreatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +DeliveryZoneCreatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +DeliveryZoneCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/DeliveryZone} DeliveryZone + */ +DeliveryZoneCreatedEvent.prototype['DeliveryZone'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +DeliveryZoneCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +DeliveryZoneCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +DeliveryZoneCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +DeliveryZoneCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +DeliveryZoneCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +DeliveryZoneCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default DeliveryZoneCreatedEvent; + diff --git a/src/model/DeliveryZoneDeletedEvent.js b/src/model/DeliveryZoneDeletedEvent.js new file mode 100644 index 00000000..15c918cd --- /dev/null +++ b/src/model/DeliveryZoneDeletedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeliveryZone from './DeliveryZone'; +import UserEventInfo from './UserEventInfo'; + +/** + * The DeliveryZoneDeletedEvent model module. + * @module model/DeliveryZoneDeletedEvent + * @version 1.0.0 + */ +class DeliveryZoneDeletedEvent { + /** + * Constructs a new DeliveryZoneDeletedEvent. + * Delivery Zone Deleted Event + * @alias module:model/DeliveryZoneDeletedEvent + */ + constructor() { + + DeliveryZoneDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeliveryZoneDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeliveryZoneDeletedEvent} obj Optional instance to populate. + * @return {module:model/DeliveryZoneDeletedEvent} The populated DeliveryZoneDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeliveryZoneDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('DeliveryZone')) { + obj['DeliveryZone'] = DeliveryZone.constructFromObject(data['DeliveryZone']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +DeliveryZoneDeletedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +DeliveryZoneDeletedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +DeliveryZoneDeletedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +DeliveryZoneDeletedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +DeliveryZoneDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/DeliveryZone} DeliveryZone + */ +DeliveryZoneDeletedEvent.prototype['DeliveryZone'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +DeliveryZoneDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +DeliveryZoneDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +DeliveryZoneDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +DeliveryZoneDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +DeliveryZoneDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +DeliveryZoneDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default DeliveryZoneDeletedEvent; + diff --git a/src/model/DeliveryZoneUpdatedEvent.js b/src/model/DeliveryZoneUpdatedEvent.js new file mode 100644 index 00000000..07db5088 --- /dev/null +++ b/src/model/DeliveryZoneUpdatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeliveryZone from './DeliveryZone'; +import UserEventInfo from './UserEventInfo'; + +/** + * The DeliveryZoneUpdatedEvent model module. + * @module model/DeliveryZoneUpdatedEvent + * @version 1.0.0 + */ +class DeliveryZoneUpdatedEvent { + /** + * Constructs a new DeliveryZoneUpdatedEvent. + * Delivery Zone Updated Event + * @alias module:model/DeliveryZoneUpdatedEvent + */ + constructor() { + + DeliveryZoneUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeliveryZoneUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeliveryZoneUpdatedEvent} obj Optional instance to populate. + * @return {module:model/DeliveryZoneUpdatedEvent} The populated DeliveryZoneUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeliveryZoneUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('DeliveryZone')) { + obj['DeliveryZone'] = DeliveryZone.constructFromObject(data['DeliveryZone']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +DeliveryZoneUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +DeliveryZoneUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +DeliveryZoneUpdatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +DeliveryZoneUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +DeliveryZoneUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/DeliveryZone} DeliveryZone + */ +DeliveryZoneUpdatedEvent.prototype['DeliveryZone'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +DeliveryZoneUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +DeliveryZoneUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +DeliveryZoneUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +DeliveryZoneUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +DeliveryZoneUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +DeliveryZoneUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default DeliveryZoneUpdatedEvent; + diff --git a/src/model/DepositReturnFeesSummary.js b/src/model/DepositReturnFeesSummary.js new file mode 100644 index 00000000..e36768dd --- /dev/null +++ b/src/model/DepositReturnFeesSummary.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DepositReturnFeesSummary model module. + * @module model/DepositReturnFeesSummary + * @version 1.0.0 + */ +class DepositReturnFeesSummary { + /** + * Constructs a new DepositReturnFeesSummary. + * @alias module:model/DepositReturnFeesSummary + */ + constructor() { + + DepositReturnFeesSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DepositReturnFeesSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DepositReturnFeesSummary} obj Optional instance to populate. + * @return {module:model/DepositReturnFeesSummary} The populated DepositReturnFeesSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DepositReturnFeesSummary(); + + if (data.hasOwnProperty('Count')) { + obj['Count'] = ApiClient.convertToType(data['Count'], 'Number'); + } + if (data.hasOwnProperty('Fee')) { + obj['Fee'] = ApiClient.convertToType(data['Fee'], 'Number'); + } + if (data.hasOwnProperty('Total')) { + obj['Total'] = ApiClient.convertToType(data['Total'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} Count + */ +DepositReturnFeesSummary.prototype['Count'] = undefined; + +/** + * @member {Number} Fee + */ +DepositReturnFeesSummary.prototype['Fee'] = undefined; + +/** + * @member {Number} Total + */ +DepositReturnFeesSummary.prototype['Total'] = undefined; + + + + + + +export default DepositReturnFeesSummary; + diff --git a/src/model/DeviceSettings.js b/src/model/DeviceSettings.js new file mode 100644 index 00000000..a70ff83f --- /dev/null +++ b/src/model/DeviceSettings.js @@ -0,0 +1,97 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DeviceSettings model module. + * @module model/DeviceSettings + * @version 1.0.0 + */ +class DeviceSettings { + /** + * Constructs a new DeviceSettings. + * Device settings for Hydra + * @alias module:model/DeviceSettings + * @param Volume {Number} Gets or sets the device volume + * @param FontSize {Number} Gets or sets the font size used on the device + * @param Brightness {Number} Gets or sets the display brightness on the device + */ + constructor(Volume, FontSize, Brightness) { + + DeviceSettings.initialize(this, Volume, FontSize, Brightness); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Volume, FontSize, Brightness) { + obj['Volume'] = Volume; + obj['FontSize'] = FontSize; + obj['Brightness'] = Brightness; + } + + /** + * Constructs a DeviceSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeviceSettings} obj Optional instance to populate. + * @return {module:model/DeviceSettings} The populated DeviceSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeviceSettings(); + + if (data.hasOwnProperty('Volume')) { + obj['Volume'] = ApiClient.convertToType(data['Volume'], 'Number'); + } + if (data.hasOwnProperty('FontSize')) { + obj['FontSize'] = ApiClient.convertToType(data['FontSize'], 'Number'); + } + if (data.hasOwnProperty('Brightness')) { + obj['Brightness'] = ApiClient.convertToType(data['Brightness'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Gets or sets the device volume + * @member {Number} Volume + */ +DeviceSettings.prototype['Volume'] = undefined; + +/** + * Gets or sets the font size used on the device + * @member {Number} FontSize + */ +DeviceSettings.prototype['FontSize'] = undefined; + +/** + * Gets or sets the display brightness on the device + * @member {Number} Brightness + */ +DeviceSettings.prototype['Brightness'] = undefined; + + + + + + +export default DeviceSettings; + diff --git a/src/model/DnsRecordInformation.js b/src/model/DnsRecordInformation.js new file mode 100644 index 00000000..650961b2 --- /dev/null +++ b/src/model/DnsRecordInformation.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DnsRecordInformation model module. + * @module model/DnsRecordInformation + * @version 1.0.0 + */ +class DnsRecordInformation { + /** + * Constructs a new DnsRecordInformation. + * Holds the information for the A and CNAME Records of a domain. + * @alias module:model/DnsRecordInformation + */ + constructor() { + + DnsRecordInformation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DnsRecordInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DnsRecordInformation} obj Optional instance to populate. + * @return {module:model/DnsRecordInformation} The populated DnsRecordInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DnsRecordInformation(); + + if (data.hasOwnProperty('IsCNameReady')) { + obj['IsCNameReady'] = ApiClient.convertToType(data['IsCNameReady'], 'Boolean'); + } + if (data.hasOwnProperty('IsAReady')) { + obj['IsAReady'] = ApiClient.convertToType(data['IsAReady'], 'Boolean'); + } + if (data.hasOwnProperty('IsApiCNameReady')) { + obj['IsApiCNameReady'] = ApiClient.convertToType(data['IsApiCNameReady'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * indicates whether the CNAME record is ready or not. + * @member {Boolean} IsCNameReady + */ +DnsRecordInformation.prototype['IsCNameReady'] = undefined; + +/** + * indicates whether the A record is ready or not. + * @member {Boolean} IsAReady + */ +DnsRecordInformation.prototype['IsAReady'] = undefined; + +/** + * indicates whether the API CNAME record is ready or not. + * @member {Boolean} IsApiCNameReady + */ +DnsRecordInformation.prototype['IsApiCNameReady'] = undefined; + + + + + + +export default DnsRecordInformation; + diff --git a/src/model/DnsVerifiedEvent.js b/src/model/DnsVerifiedEvent.js new file mode 100644 index 00000000..618f3cf1 --- /dev/null +++ b/src/model/DnsVerifiedEvent.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DnsVerifiedEvent model module. + * @module model/DnsVerifiedEvent + * @version 1.0.0 + */ +class DnsVerifiedEvent { + /** + * Constructs a new DnsVerifiedEvent. + * The DNS for the Hostname verified + * @alias module:model/DnsVerifiedEvent + */ + constructor() { + + DnsVerifiedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DnsVerifiedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DnsVerifiedEvent} obj Optional instance to populate. + * @return {module:model/DnsVerifiedEvent} The populated DnsVerifiedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DnsVerifiedEvent(); + + if (data.hasOwnProperty('Hostname')) { + obj['Hostname'] = ApiClient.convertToType(data['Hostname'], 'String'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Description + * @member {String} Hostname + */ +DnsVerifiedEvent.prototype['Hostname'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +DnsVerifiedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +DnsVerifiedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +DnsVerifiedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +DnsVerifiedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +DnsVerifiedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +DnsVerifiedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +DnsVerifiedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default DnsVerifiedEvent; + diff --git a/src/model/DriverLoginModel.js b/src/model/DriverLoginModel.js new file mode 100644 index 00000000..4ab8533b --- /dev/null +++ b/src/model/DriverLoginModel.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DriverLoginModel model module. + * @module model/DriverLoginModel + * @version 1.0.0 + */ +class DriverLoginModel { + /** + * Constructs a new DriverLoginModel. + * Driver Login model + * @alias module:model/DriverLoginModel + * @param PhoneNumber {String} Phone number + * @param Code {String} Code + */ + constructor(PhoneNumber, Code) { + + DriverLoginModel.initialize(this, PhoneNumber, Code); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, PhoneNumber, Code) { + obj['PhoneNumber'] = PhoneNumber; + obj['Code'] = Code; + } + + /** + * Constructs a DriverLoginModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DriverLoginModel} obj Optional instance to populate. + * @return {module:model/DriverLoginModel} The populated DriverLoginModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DriverLoginModel(); + + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + } + return obj; + } + + +} + +/** + * Phone number + * @member {String} PhoneNumber + */ +DriverLoginModel.prototype['PhoneNumber'] = undefined; + +/** + * Code + * @member {String} Code + */ +DriverLoginModel.prototype['Code'] = undefined; + + + + + + +export default DriverLoginModel; + diff --git a/src/model/DriverRequestLoginPinModel.js b/src/model/DriverRequestLoginPinModel.js new file mode 100644 index 00000000..0317c36b --- /dev/null +++ b/src/model/DriverRequestLoginPinModel.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DriverRequestLoginPinModel model module. + * @module model/DriverRequestLoginPinModel + * @version 1.0.0 + */ +class DriverRequestLoginPinModel { + /** + * Constructs a new DriverRequestLoginPinModel. + * Driver Request Login Pin model + * @alias module:model/DriverRequestLoginPinModel + * @param PhoneNumber {String} Email address + */ + constructor(PhoneNumber) { + + DriverRequestLoginPinModel.initialize(this, PhoneNumber); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, PhoneNumber) { + obj['PhoneNumber'] = PhoneNumber; + } + + /** + * Constructs a DriverRequestLoginPinModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DriverRequestLoginPinModel} obj Optional instance to populate. + * @return {module:model/DriverRequestLoginPinModel} The populated DriverRequestLoginPinModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DriverRequestLoginPinModel(); + + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + } + return obj; + } + + +} + +/** + * Email address + * @member {String} PhoneNumber + */ +DriverRequestLoginPinModel.prototype['PhoneNumber'] = undefined; + + + + + + +export default DriverRequestLoginPinModel; + diff --git a/src/model/DynamicFormField.js b/src/model/DynamicFormField.js new file mode 100644 index 00000000..d10fac6e --- /dev/null +++ b/src/model/DynamicFormField.js @@ -0,0 +1,128 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DynamicFormRules from './DynamicFormRules'; + +/** + * The DynamicFormField model module. + * @module model/DynamicFormField + * @version 1.0.0 + */ +class DynamicFormField { + /** + * Constructs a new DynamicFormField. + * @alias module:model/DynamicFormField + */ + constructor() { + + DynamicFormField.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DynamicFormField from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicFormField} obj Optional instance to populate. + * @return {module:model/DynamicFormField} The populated DynamicFormField instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicFormField(); + + if (data.hasOwnProperty('Identifier')) { + obj['Identifier'] = ApiClient.convertToType(data['Identifier'], 'String'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Placeholder')) { + obj['Placeholder'] = ApiClient.convertToType(data['Placeholder'], 'String'); + } + if (data.hasOwnProperty('Rules')) { + obj['Rules'] = DynamicFormRules.constructFromObject(data['Rules']); + } + if (data.hasOwnProperty('Mapping')) { + obj['Mapping'] = ApiClient.convertToType(data['Mapping'], {'String': 'String'}); + } + if (data.hasOwnProperty('Modifiers')) { + obj['Modifiers'] = ApiClient.convertToType(data['Modifiers'], ['String']); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], Object); + } + if (data.hasOwnProperty('Scopes')) { + obj['Scopes'] = ApiClient.convertToType(data['Scopes'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Identifier + */ +DynamicFormField.prototype['Identifier'] = undefined; + +/** + * @member {String} Label + */ +DynamicFormField.prototype['Label'] = undefined; + +/** + * @member {String} Placeholder + */ +DynamicFormField.prototype['Placeholder'] = undefined; + +/** + * @member {module:model/DynamicFormRules} Rules + */ +DynamicFormField.prototype['Rules'] = undefined; + +/** + * @member {Object.} Mapping + */ +DynamicFormField.prototype['Mapping'] = undefined; + +/** + * @member {Array.} Modifiers + */ +DynamicFormField.prototype['Modifiers'] = undefined; + +/** + * @member {Object} Value + */ +DynamicFormField.prototype['Value'] = undefined; + +/** + * @member {String} Scopes + */ +DynamicFormField.prototype['Scopes'] = undefined; + + + + + + +export default DynamicFormField; + diff --git a/src/model/DynamicFormFieldOption.js b/src/model/DynamicFormFieldOption.js new file mode 100644 index 00000000..2eeb8b79 --- /dev/null +++ b/src/model/DynamicFormFieldOption.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DynamicFormFieldOption model module. + * @module model/DynamicFormFieldOption + * @version 1.0.0 + */ +class DynamicFormFieldOption { + /** + * Constructs a new DynamicFormFieldOption. + * @alias module:model/DynamicFormFieldOption + */ + constructor() { + + DynamicFormFieldOption.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DynamicFormFieldOption from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicFormFieldOption} obj Optional instance to populate. + * @return {module:model/DynamicFormFieldOption} The populated DynamicFormFieldOption instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicFormFieldOption(); + + if (data.hasOwnProperty('Display')) { + obj['Display'] = ApiClient.convertToType(data['Display'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Display + */ +DynamicFormFieldOption.prototype['Display'] = undefined; + +/** + * @member {String} Value + */ +DynamicFormFieldOption.prototype['Value'] = undefined; + + + + + + +export default DynamicFormFieldOption; + diff --git a/src/model/DynamicFormRule.js b/src/model/DynamicFormRule.js new file mode 100644 index 00000000..381e1ab4 --- /dev/null +++ b/src/model/DynamicFormRule.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DynamicFormRule model module. + * @module model/DynamicFormRule + * @version 1.0.0 + */ +class DynamicFormRule { + /** + * Constructs a new DynamicFormRule. + * @alias module:model/DynamicFormRule + */ + constructor() { + + DynamicFormRule.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DynamicFormRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicFormRule} obj Optional instance to populate. + * @return {module:model/DynamicFormRule} The populated DynamicFormRule instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicFormRule(); + + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], Object); + } + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + if (data.hasOwnProperty('Scopes')) { + obj['Scopes'] = ApiClient.convertToType(data['Scopes'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Object} Value + */ +DynamicFormRule.prototype['Value'] = undefined; + +/** + * @member {String} Message + */ +DynamicFormRule.prototype['Message'] = undefined; + +/** + * @member {String} Scopes + */ +DynamicFormRule.prototype['Scopes'] = undefined; + + + + + + +export default DynamicFormRule; + diff --git a/src/model/DynamicFormRules.js b/src/model/DynamicFormRules.js new file mode 100644 index 00000000..0d95dacf --- /dev/null +++ b/src/model/DynamicFormRules.js @@ -0,0 +1,105 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DynamicFormFieldOption from './DynamicFormFieldOption'; +import DynamicFormRule from './DynamicFormRule'; + +/** + * The DynamicFormRules model module. + * @module model/DynamicFormRules + * @version 1.0.0 + */ +class DynamicFormRules { + /** + * Constructs a new DynamicFormRules. + * @alias module:model/DynamicFormRules + */ + constructor() { + + DynamicFormRules.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DynamicFormRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicFormRules} obj Optional instance to populate. + * @return {module:model/DynamicFormRules} The populated DynamicFormRules instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicFormRules(); + + if (data.hasOwnProperty('MaxLength')) { + obj['MaxLength'] = DynamicFormRule.constructFromObject(data['MaxLength']); + } + if (data.hasOwnProperty('MinLength')) { + obj['MinLength'] = DynamicFormRule.constructFromObject(data['MinLength']); + } + if (data.hasOwnProperty('Required')) { + obj['Required'] = DynamicFormRule.constructFromObject(data['Required']); + } + if (data.hasOwnProperty('Pattern')) { + obj['Pattern'] = DynamicFormRule.constructFromObject(data['Pattern']); + } + if (data.hasOwnProperty('Predefined')) { + obj['Predefined'] = ApiClient.convertToType(data['Predefined'], [DynamicFormFieldOption]); + } + } + return obj; + } + + +} + +/** + * @member {module:model/DynamicFormRule} MaxLength + */ +DynamicFormRules.prototype['MaxLength'] = undefined; + +/** + * @member {module:model/DynamicFormRule} MinLength + */ +DynamicFormRules.prototype['MinLength'] = undefined; + +/** + * @member {module:model/DynamicFormRule} Required + */ +DynamicFormRules.prototype['Required'] = undefined; + +/** + * @member {module:model/DynamicFormRule} Pattern + */ +DynamicFormRules.prototype['Pattern'] = undefined; + +/** + * @member {Array.} Predefined + */ +DynamicFormRules.prototype['Predefined'] = undefined; + + + + + + +export default DynamicFormRules; + diff --git a/src/model/EmvNotificationEvent.js b/src/model/EmvNotificationEvent.js new file mode 100644 index 00000000..f4ea8c31 --- /dev/null +++ b/src/model/EmvNotificationEvent.js @@ -0,0 +1,217 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The EmvNotificationEvent model module. + * @module model/EmvNotificationEvent + * @version 1.0.0 + */ +class EmvNotificationEvent { + /** + * Constructs a new EmvNotificationEvent. + * Order Terminal Notification + * @alias module:model/EmvNotificationEvent + */ + constructor() { + + EmvNotificationEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a EmvNotificationEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmvNotificationEvent} obj Optional instance to populate. + * @return {module:model/EmvNotificationEvent} The populated EmvNotificationEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EmvNotificationEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Notification')) { + obj['Notification'] = ApiClient.convertToType(data['Notification'], 'String'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('TerminalId')) { + obj['TerminalId'] = ApiClient.convertToType(data['TerminalId'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('ExpDate')) { + obj['ExpDate'] = ApiClient.convertToType(data['ExpDate'], 'String'); + } + if (data.hasOwnProperty('CardType')) { + obj['CardType'] = ApiClient.convertToType(data['CardType'], 'String'); + } + if (data.hasOwnProperty('PaymentMethod')) { + obj['PaymentMethod'] = ApiClient.convertToType(data['PaymentMethod'], 'String'); + } + if (data.hasOwnProperty('AccountNumber')) { + obj['AccountNumber'] = ApiClient.convertToType(data['AccountNumber'], 'String'); + } + if (data.hasOwnProperty('AuthCode')) { + obj['AuthCode'] = ApiClient.convertToType(data['AuthCode'], 'String'); + } + if (data.hasOwnProperty('ProviderMessage')) { + obj['ProviderMessage'] = ApiClient.convertToType(data['ProviderMessage'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +EmvNotificationEvent.prototype['EventName'] = undefined; + +/** + * Notification Sent + * @member {String} Notification + */ +EmvNotificationEvent.prototype['Notification'] = undefined; + +/** + * @member {module:model/Order} Order + */ +EmvNotificationEvent.prototype['Order'] = undefined; + +/** + * TerminalId + * @member {String} TerminalId + */ +EmvNotificationEvent.prototype['TerminalId'] = undefined; + +/** + * Description + * @member {String} Description + */ +EmvNotificationEvent.prototype['Description'] = undefined; + +/** + * Expirey Date + * @member {String} ExpDate + */ +EmvNotificationEvent.prototype['ExpDate'] = undefined; + +/** + * Card Type + * @member {String} CardType + */ +EmvNotificationEvent.prototype['CardType'] = undefined; + +/** + * Payment Method + * @member {String} PaymentMethod + */ +EmvNotificationEvent.prototype['PaymentMethod'] = undefined; + +/** + * Masked Account Number + * @member {String} AccountNumber + */ +EmvNotificationEvent.prototype['AccountNumber'] = undefined; + +/** + * Auth Code + * @member {String} AuthCode + */ +EmvNotificationEvent.prototype['AuthCode'] = undefined; + +/** + * Payment Provider Message + * @member {String} ProviderMessage + */ +EmvNotificationEvent.prototype['ProviderMessage'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +EmvNotificationEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +EmvNotificationEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +EmvNotificationEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +EmvNotificationEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +EmvNotificationEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +EmvNotificationEvent.prototype['IpAddress'] = undefined; + + + + + + +export default EmvNotificationEvent; + diff --git a/src/model/EmvTerminal.js b/src/model/EmvTerminal.js new file mode 100644 index 00000000..869e6f81 --- /dev/null +++ b/src/model/EmvTerminal.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The EmvTerminal model module. + * @module model/EmvTerminal + * @version 1.0.0 + */ +class EmvTerminal { + /** + * Constructs a new EmvTerminal. + * EMV Payment Terminal + * @alias module:model/EmvTerminal + */ + constructor() { + + EmvTerminal.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a EmvTerminal from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmvTerminal} obj Optional instance to populate. + * @return {module:model/EmvTerminal} The populated EmvTerminal instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EmvTerminal(); + + if (data.hasOwnProperty('EmvTerminalId')) { + obj['EmvTerminalId'] = ApiClient.convertToType(data['EmvTerminalId'], 'Number'); + } + if (data.hasOwnProperty('TerminalId')) { + obj['TerminalId'] = ApiClient.convertToType(data['TerminalId'], 'String'); + } + if (data.hasOwnProperty('Url')) { + obj['Url'] = ApiClient.convertToType(data['Url'], 'String'); + } + if (data.hasOwnProperty('Token')) { + obj['Token'] = ApiClient.convertToType(data['Token'], 'String'); + } + if (data.hasOwnProperty('SoftwareHouseId')) { + obj['SoftwareHouseId'] = ApiClient.convertToType(data['SoftwareHouseId'], 'String'); + } + if (data.hasOwnProperty('InstallerId')) { + obj['InstallerId'] = ApiClient.convertToType(data['InstallerId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Flipdish Identifier of Terminal + * @member {Number} EmvTerminalId + */ +EmvTerminal.prototype['EmvTerminalId'] = undefined; + +/** + * External Identifier of Terminal + * @member {String} TerminalId + */ +EmvTerminal.prototype['TerminalId'] = undefined; + +/** + * URL at which terminal can be accessed + * @member {String} Url + */ +EmvTerminal.prototype['Url'] = undefined; + +/** + * TOKEN required to access terminal + * @member {String} Token + */ +EmvTerminal.prototype['Token'] = undefined; + +/** + * Identifies us to Provider + * @member {String} SoftwareHouseId + */ +EmvTerminal.prototype['SoftwareHouseId'] = undefined; + +/** + * Identifies installer of terminal + * @member {String} InstallerId + */ +EmvTerminal.prototype['InstallerId'] = undefined; + + + + + + +export default EmvTerminal; + diff --git a/src/model/EmvTerminalWithAssignments.js b/src/model/EmvTerminalWithAssignments.js new file mode 100644 index 00000000..e72b16c5 --- /dev/null +++ b/src/model/EmvTerminalWithAssignments.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The EmvTerminalWithAssignments model module. + * @module model/EmvTerminalWithAssignments + * @version 1.0.0 + */ +class EmvTerminalWithAssignments { + /** + * Constructs a new EmvTerminalWithAssignments. + * EMV Payment Terminal + * @alias module:model/EmvTerminalWithAssignments + */ + constructor() { + + EmvTerminalWithAssignments.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a EmvTerminalWithAssignments from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmvTerminalWithAssignments} obj Optional instance to populate. + * @return {module:model/EmvTerminalWithAssignments} The populated EmvTerminalWithAssignments instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EmvTerminalWithAssignments(); + + if (data.hasOwnProperty('EmvTerminalId')) { + obj['EmvTerminalId'] = ApiClient.convertToType(data['EmvTerminalId'], 'String'); + } + if (data.hasOwnProperty('TerminalId')) { + obj['TerminalId'] = ApiClient.convertToType(data['TerminalId'], 'String'); + } + if (data.hasOwnProperty('IsAssignedToHydraDevice')) { + obj['IsAssignedToHydraDevice'] = ApiClient.convertToType(data['IsAssignedToHydraDevice'], 'Boolean'); + } + if (data.hasOwnProperty('HydraConfigId')) { + obj['HydraConfigId'] = ApiClient.convertToType(data['HydraConfigId'], 'Number'); + } + if (data.hasOwnProperty('HydraDeviceId')) { + obj['HydraDeviceId'] = ApiClient.convertToType(data['HydraDeviceId'], 'String'); + } + if (data.hasOwnProperty('HydraName')) { + obj['HydraName'] = ApiClient.convertToType(data['HydraName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Flipdish Internal identifier of the Terminal + * @member {String} EmvTerminalId + */ +EmvTerminalWithAssignments.prototype['EmvTerminalId'] = undefined; + +/** + * External Identifier of the Terminal + * @member {String} TerminalId + */ +EmvTerminalWithAssignments.prototype['TerminalId'] = undefined; + +/** + * true if the terminal is assigned to a hydra device (e.g. a kiosk) + * @member {Boolean} IsAssignedToHydraDevice + */ +EmvTerminalWithAssignments.prototype['IsAssignedToHydraDevice'] = undefined; + +/** + * hydra device id (null if the terminal is not assigned to any hydra device) + * @member {Number} HydraConfigId + */ +EmvTerminalWithAssignments.prototype['HydraConfigId'] = undefined; + +/** + * external hydra device id (null if the terminal is not assigned to any hydra device) + * @member {String} HydraDeviceId + */ +EmvTerminalWithAssignments.prototype['HydraDeviceId'] = undefined; + +/** + * hydra device name (null if the terminal is not assigned to any hydra device) + * @member {String} HydraName + */ +EmvTerminalWithAssignments.prototype['HydraName'] = undefined; + + + + + + +export default EmvTerminalWithAssignments; + diff --git a/src/model/EventSearchResult.js b/src/model/EventSearchResult.js new file mode 100644 index 00000000..123fe68f --- /dev/null +++ b/src/model/EventSearchResult.js @@ -0,0 +1,1474 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AnalyticsClientEvent from './AnalyticsClientEvent'; +import AppCreatedEvent from './AppCreatedEvent'; +import AppStoreConfigCreatedEvent from './AppStoreConfigCreatedEvent'; +import AppStoreConfigDeletedEvent from './AppStoreConfigDeletedEvent'; +import AppStoreConfigUpdatedEvent from './AppStoreConfigUpdatedEvent'; +import AppStoreSubscriptionChangeJobUpdatedEvent from './AppStoreSubscriptionChangeJobUpdatedEvent'; +import AppUpdatedEvent from './AppUpdatedEvent'; +import BankAccountAssignedEvent from './BankAccountAssignedEvent'; +import BankAccountCreatedEvent from './BankAccountCreatedEvent'; +import BankAccountDeletedEvent from './BankAccountDeletedEvent'; +import BankAccountUpdatedEvent from './BankAccountUpdatedEvent'; +import CatalogGroupArchivedEvent from './CatalogGroupArchivedEvent'; +import CatalogGroupCreatedEvent from './CatalogGroupCreatedEvent'; +import CatalogGroupUpdatedEvent from './CatalogGroupUpdatedEvent'; +import CatalogItemArchivedEvent from './CatalogItemArchivedEvent'; +import CatalogItemCreatedEvent from './CatalogItemCreatedEvent'; +import CatalogItemUpdatedEvent from './CatalogItemUpdatedEvent'; +import CertificateCreatedEvent from './CertificateCreatedEvent'; +import CertificateRenewedEvent from './CertificateRenewedEvent'; +import ChannelStoresUpdatedEvent from './ChannelStoresUpdatedEvent'; +import CustomerConsentUpdatedEvent from './CustomerConsentUpdatedEvent'; +import CustomerCreatedEvent from './CustomerCreatedEvent'; +import CustomerUpdatedEvent from './CustomerUpdatedEvent'; +import DeliveryZoneCreatedEvent from './DeliveryZoneCreatedEvent'; +import DeliveryZoneDeletedEvent from './DeliveryZoneDeletedEvent'; +import DeliveryZoneUpdatedEvent from './DeliveryZoneUpdatedEvent'; +import DnsVerifiedEvent from './DnsVerifiedEvent'; +import EmvNotificationEvent from './EmvNotificationEvent'; +import ExternalStoreEvent from './ExternalStoreEvent'; +import HydraAssignedEvent from './HydraAssignedEvent'; +import HydraConnectionStatusChangedEvent from './HydraConnectionStatusChangedEvent'; +import HydraRequestResetEvent from './HydraRequestResetEvent'; +import HydraSettingChangedEvent from './HydraSettingChangedEvent'; +import HydraStoreAssignedEvent from './HydraStoreAssignedEvent'; +import HydraStoreUnassignedEvent from './HydraStoreUnassignedEvent'; +import HydraUnAssignedEvent from './HydraUnAssignedEvent'; +import KioskBluetoothInstallUpdateInitiateEvent from './KioskBluetoothInstallUpdateInitiateEvent'; +import KioskBluetoothPairingModeEvent from './KioskBluetoothPairingModeEvent'; +import KioskBluetoothTerminalCancelUpdateEvent from './KioskBluetoothTerminalCancelUpdateEvent'; +import KioskBluetoothTerminalFirmwareVersionStatusEvent from './KioskBluetoothTerminalFirmwareVersionStatusEvent'; +import KioskBluetoothTerminalInitiateUpdateCheckEvent from './KioskBluetoothTerminalInitiateUpdateCheckEvent'; +import KioskBluetoothTerminalInstallationStatusEvent from './KioskBluetoothTerminalInstallationStatusEvent'; +import KioskBluetoothTerminalUnpairedEvent from './KioskBluetoothTerminalUnpairedEvent'; +import KioskBluetoothTerminalUpdatedEvent from './KioskBluetoothTerminalUpdatedEvent'; +import KioskBluetoothUnpairingModeEvent from './KioskBluetoothUnpairingModeEvent'; +import KioskTerminalActionStateChangedEvent from './KioskTerminalActionStateChangedEvent'; +import LocationAreaCreatedEvent from './LocationAreaCreatedEvent'; +import LocationAreaUpdatedEvent from './LocationAreaUpdatedEvent'; +import LocationCreatedEvent from './LocationCreatedEvent'; +import LocationDeletedEvent from './LocationDeletedEvent'; +import LoyaltyCampaignCreatedEvent from './LoyaltyCampaignCreatedEvent'; +import LoyaltyCampaignDeletedEvent from './LoyaltyCampaignDeletedEvent'; +import LoyaltyCampaignUpdatedEvent from './LoyaltyCampaignUpdatedEvent'; +import MenuAsyncCreationCompletedEvent from './MenuAsyncCreationCompletedEvent'; +import MenuBulkEditEvent from './MenuBulkEditEvent'; +import MenuCheckpointCreatedEvent from './MenuCheckpointCreatedEvent'; +import MenuCreatedEvent from './MenuCreatedEvent'; +import MenuItemOptionSetCreatedEvent from './MenuItemOptionSetCreatedEvent'; +import MenuItemOptionSetDeletedEvent from './MenuItemOptionSetDeletedEvent'; +import MenuItemOptionSetItemCreatedEvent from './MenuItemOptionSetItemCreatedEvent'; +import MenuItemOptionSetItemDeletedEvent from './MenuItemOptionSetItemDeletedEvent'; +import MenuItemOptionSetItemUpdatedEvent from './MenuItemOptionSetItemUpdatedEvent'; +import MenuItemOptionSetUpdatedEvent from './MenuItemOptionSetUpdatedEvent'; +import MenuSectionCreatedEvent from './MenuSectionCreatedEvent'; +import MenuSectionDeletedEvent from './MenuSectionDeletedEvent'; +import MenuSectionItemCreatedEvent from './MenuSectionItemCreatedEvent'; +import MenuSectionItemDeletedEvent from './MenuSectionItemDeletedEvent'; +import MenuSectionItemUpdatedEvent from './MenuSectionItemUpdatedEvent'; +import MenuSectionUpdatedEvent from './MenuSectionUpdatedEvent'; +import MenuUpdatedEvent from './MenuUpdatedEvent'; +import MenuUploadedEvent from './MenuUploadedEvent'; +import MobileAppsSubmissionStatusUpdatedEvent from './MobileAppsSubmissionStatusUpdatedEvent'; +import MobileAppsSubmissionUpdatedEvent from './MobileAppsSubmissionUpdatedEvent'; +import OrderAcceptedEvent from './OrderAcceptedEvent'; +import OrderBatchPublishedEvent from './OrderBatchPublishedEvent'; +import OrderCapacityConfigUpdatedEvent from './OrderCapacityConfigUpdatedEvent'; +import OrderCreatedEvent from './OrderCreatedEvent'; +import OrderCustomerTrackingCreatedEvent from './OrderCustomerTrackingCreatedEvent'; +import OrderDeliveryTrackingStatusUpdatedEvent from './OrderDeliveryTrackingStatusUpdatedEvent'; +import OrderDispatchedEvent from './OrderDispatchedEvent'; +import OrderFulfillmentStatusUpdatedEvent from './OrderFulfillmentStatusUpdatedEvent'; +import OrderRatingUpdatedEvent from './OrderRatingUpdatedEvent'; +import OrderRefundedEvent from './OrderRefundedEvent'; +import OrderRejectedEvent from './OrderRejectedEvent'; +import OrderTipUpdatedEvent from './OrderTipUpdatedEvent'; +import PhoneCallEndedEvent from './PhoneCallEndedEvent'; +import PhoneCallStartedEvent from './PhoneCallStartedEvent'; +import PrinterAssignedToStoreEvent from './PrinterAssignedToStoreEvent'; +import PrinterTurnedOffEvent from './PrinterTurnedOffEvent'; +import PrinterTurnedOnEvent from './PrinterTurnedOnEvent'; +import PrinterUnassignedFromStoreEvent from './PrinterUnassignedFromStoreEvent'; +import PushNotificationDeletedEvent from './PushNotificationDeletedEvent'; +import PushNotificationScheduledEvent from './PushNotificationScheduledEvent'; +import PushNotificationSentEvent from './PushNotificationSentEvent'; +import RetentionCampaignCreatedEvent from './RetentionCampaignCreatedEvent'; +import RetentionCampaignDeletedEvent from './RetentionCampaignDeletedEvent'; +import RetentionCampaignUpdatedEvent from './RetentionCampaignUpdatedEvent'; +import SmsReceivedEvent from './SmsReceivedEvent'; +import StoreAddressUpdatedEvent from './StoreAddressUpdatedEvent'; +import StoreArchivedEvent from './StoreArchivedEvent'; +import StoreBusinessHoursOverrideCreatedEvent from './StoreBusinessHoursOverrideCreatedEvent'; +import StoreBusinessHoursOverrideDeletedEvent from './StoreBusinessHoursOverrideDeletedEvent'; +import StoreCreatedEvent from './StoreCreatedEvent'; +import StoreDeletedEvent from './StoreDeletedEvent'; +import StoreFeeConfigUpdatedEvent from './StoreFeeConfigUpdatedEvent'; +import StoreGroupCreatedEvent from './StoreGroupCreatedEvent'; +import StoreGroupDeletedEvent from './StoreGroupDeletedEvent'; +import StoreGroupUpdatedEvent from './StoreGroupUpdatedEvent'; +import StoreKioskSettingUpdatedEvent from './StoreKioskSettingUpdatedEvent'; +import StoreLogoCreatedEvent from './StoreLogoCreatedEvent'; +import StoreLogoDeletedEvent from './StoreLogoDeletedEvent'; +import StoreLogoUpdatedEvent from './StoreLogoUpdatedEvent'; +import StoreMenuAssignedEvent from './StoreMenuAssignedEvent'; +import StoreOpeningHoursUpdatedEvent from './StoreOpeningHoursUpdatedEvent'; +import StorePreOrderConfigUpdatedEvent from './StorePreOrderConfigUpdatedEvent'; +import StorePublishedEvent from './StorePublishedEvent'; +import StoreServiceChargeUpdatedEvent from './StoreServiceChargeUpdatedEvent'; +import StoreTipUpdatedEvent from './StoreTipUpdatedEvent'; +import StoreUnarchivedEvent from './StoreUnarchivedEvent'; +import StoreUnpublishedEvent from './StoreUnpublishedEvent'; +import StoreUpdatedEvent from './StoreUpdatedEvent'; +import TeammateDeletedEvent from './TeammateDeletedEvent'; +import TeammateInviteAcceptedEvent from './TeammateInviteAcceptedEvent'; +import TeammateInviteSentEvent from './TeammateInviteSentEvent'; +import TeammateUpdatedEvent from './TeammateUpdatedEvent'; +import TelephonyConfigUpdatedEvent from './TelephonyConfigUpdatedEvent'; +import UserAnsweredSignupQuestionsEvent from './UserAnsweredSignupQuestionsEvent'; +import UserCreatedEvent from './UserCreatedEvent'; +import UserDeletedEvent from './UserDeletedEvent'; +import UserLoginEvent from './UserLoginEvent'; +import UserPasswordCreatedEvent from './UserPasswordCreatedEvent'; +import UserUpdatedEvent from './UserUpdatedEvent'; +import VoucherAppliedEvent from './VoucherAppliedEvent'; +import VoucherCreatedEvent from './VoucherCreatedEvent'; +import VoucherDeletedEvent from './VoucherDeletedEvent'; +import VoucherUpdatedEvent from './VoucherUpdatedEvent'; +import WebhookSubscriptionCreatedEvent from './WebhookSubscriptionCreatedEvent'; +import WebhookSubscriptionDeletedEvent from './WebhookSubscriptionDeletedEvent'; +import WebhookSubscriptionUpdatedEvent from './WebhookSubscriptionUpdatedEvent'; +import WebsiteUpdatedEvent from './WebsiteUpdatedEvent'; +import WebsiteVanityUrlUpdatedEvent from './WebsiteVanityUrlUpdatedEvent'; + +/** + * The EventSearchResult model module. + * @module model/EventSearchResult + * @version 1.0.0 + */ +class EventSearchResult { + /** + * Constructs a new EventSearchResult. + * + * @alias module:model/EventSearchResult + */ + constructor() { + + EventSearchResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a EventSearchResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventSearchResult} obj Optional instance to populate. + * @return {module:model/EventSearchResult} The populated EventSearchResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EventSearchResult(); + + if (data.hasOwnProperty('AppCreatedEvent')) { + obj['AppCreatedEvent'] = ApiClient.convertToType(data['AppCreatedEvent'], [AppCreatedEvent]); + } + if (data.hasOwnProperty('AppUpdatedEvent')) { + obj['AppUpdatedEvent'] = ApiClient.convertToType(data['AppUpdatedEvent'], [AppUpdatedEvent]); + } + if (data.hasOwnProperty('AnalyticsClientEvent')) { + obj['AnalyticsClientEvent'] = ApiClient.convertToType(data['AnalyticsClientEvent'], [AnalyticsClientEvent]); + } + if (data.hasOwnProperty('OrderAcceptedEvent')) { + obj['OrderAcceptedEvent'] = ApiClient.convertToType(data['OrderAcceptedEvent'], [OrderAcceptedEvent]); + } + if (data.hasOwnProperty('OrderDispatchedEvent')) { + obj['OrderDispatchedEvent'] = ApiClient.convertToType(data['OrderDispatchedEvent'], [OrderDispatchedEvent]); + } + if (data.hasOwnProperty('OrderCustomerTrackingCreatedEvent')) { + obj['OrderCustomerTrackingCreatedEvent'] = ApiClient.convertToType(data['OrderCustomerTrackingCreatedEvent'], [OrderCustomerTrackingCreatedEvent]); + } + if (data.hasOwnProperty('OrderDeliveryTrackingStatusUpdatedEvent')) { + obj['OrderDeliveryTrackingStatusUpdatedEvent'] = ApiClient.convertToType(data['OrderDeliveryTrackingStatusUpdatedEvent'], [OrderDeliveryTrackingStatusUpdatedEvent]); + } + if (data.hasOwnProperty('OrderBatchPublishedEvent')) { + obj['OrderBatchPublishedEvent'] = ApiClient.convertToType(data['OrderBatchPublishedEvent'], [OrderBatchPublishedEvent]); + } + if (data.hasOwnProperty('OrderCreatedEvent')) { + obj['OrderCreatedEvent'] = ApiClient.convertToType(data['OrderCreatedEvent'], [OrderCreatedEvent]); + } + if (data.hasOwnProperty('OrderRatingUpdatedEvent')) { + obj['OrderRatingUpdatedEvent'] = ApiClient.convertToType(data['OrderRatingUpdatedEvent'], [OrderRatingUpdatedEvent]); + } + if (data.hasOwnProperty('OrderRefundedEvent')) { + obj['OrderRefundedEvent'] = ApiClient.convertToType(data['OrderRefundedEvent'], [OrderRefundedEvent]); + } + if (data.hasOwnProperty('OrderRejectedEvent')) { + obj['OrderRejectedEvent'] = ApiClient.convertToType(data['OrderRejectedEvent'], [OrderRejectedEvent]); + } + if (data.hasOwnProperty('OrderTipUpdatedEvent')) { + obj['OrderTipUpdatedEvent'] = ApiClient.convertToType(data['OrderTipUpdatedEvent'], [OrderTipUpdatedEvent]); + } + if (data.hasOwnProperty('OrderTerminalNotifications')) { + obj['OrderTerminalNotifications'] = ApiClient.convertToType(data['OrderTerminalNotifications'], [EmvNotificationEvent]); + } + if (data.hasOwnProperty('StoreCreatedEvent')) { + obj['StoreCreatedEvent'] = ApiClient.convertToType(data['StoreCreatedEvent'], [StoreCreatedEvent]); + } + if (data.hasOwnProperty('StoreDeletedEvent')) { + obj['StoreDeletedEvent'] = ApiClient.convertToType(data['StoreDeletedEvent'], [StoreDeletedEvent]); + } + if (data.hasOwnProperty('StoreAddressUpdatedEvent')) { + obj['StoreAddressUpdatedEvent'] = ApiClient.convertToType(data['StoreAddressUpdatedEvent'], [StoreAddressUpdatedEvent]); + } + if (data.hasOwnProperty('StoreKioskSettingUpdatedEvent')) { + obj['StoreKioskSettingUpdatedEvent'] = ApiClient.convertToType(data['StoreKioskSettingUpdatedEvent'], [StoreKioskSettingUpdatedEvent]); + } + if (data.hasOwnProperty('DeliveryZoneCreatedEvent')) { + obj['DeliveryZoneCreatedEvent'] = ApiClient.convertToType(data['DeliveryZoneCreatedEvent'], [DeliveryZoneCreatedEvent]); + } + if (data.hasOwnProperty('DeliveryZoneUpdatedEvent')) { + obj['DeliveryZoneUpdatedEvent'] = ApiClient.convertToType(data['DeliveryZoneUpdatedEvent'], [DeliveryZoneUpdatedEvent]); + } + if (data.hasOwnProperty('DeliveryZoneDeletedEvent')) { + obj['DeliveryZoneDeletedEvent'] = ApiClient.convertToType(data['DeliveryZoneDeletedEvent'], [DeliveryZoneDeletedEvent]); + } + if (data.hasOwnProperty('StoreOpeningHoursUpdatedEvent')) { + obj['StoreOpeningHoursUpdatedEvent'] = ApiClient.convertToType(data['StoreOpeningHoursUpdatedEvent'], [StoreOpeningHoursUpdatedEvent]); + } + if (data.hasOwnProperty('StoreMenuAssignedEvent')) { + obj['StoreMenuAssignedEvent'] = ApiClient.convertToType(data['StoreMenuAssignedEvent'], [StoreMenuAssignedEvent]); + } + if (data.hasOwnProperty('StoreBusinessHoursOverrideCreatedEvent')) { + obj['StoreBusinessHoursOverrideCreatedEvent'] = ApiClient.convertToType(data['StoreBusinessHoursOverrideCreatedEvent'], [StoreBusinessHoursOverrideCreatedEvent]); + } + if (data.hasOwnProperty('StoreBusinessHoursOverrideDeletedEvent')) { + obj['StoreBusinessHoursOverrideDeletedEvent'] = ApiClient.convertToType(data['StoreBusinessHoursOverrideDeletedEvent'], [StoreBusinessHoursOverrideDeletedEvent]); + } + if (data.hasOwnProperty('StoreArchivedEvent')) { + obj['StoreArchivedEvent'] = ApiClient.convertToType(data['StoreArchivedEvent'], [StoreArchivedEvent]); + } + if (data.hasOwnProperty('StoreUnarchivedEvent')) { + obj['StoreUnarchivedEvent'] = ApiClient.convertToType(data['StoreUnarchivedEvent'], [StoreUnarchivedEvent]); + } + if (data.hasOwnProperty('StorePublishedEvent')) { + obj['StorePublishedEvent'] = ApiClient.convertToType(data['StorePublishedEvent'], [StorePublishedEvent]); + } + if (data.hasOwnProperty('StoreUnpublishedEvent')) { + obj['StoreUnpublishedEvent'] = ApiClient.convertToType(data['StoreUnpublishedEvent'], [StoreUnpublishedEvent]); + } + if (data.hasOwnProperty('StoreUpdatedEvent')) { + obj['StoreUpdatedEvent'] = ApiClient.convertToType(data['StoreUpdatedEvent'], [StoreUpdatedEvent]); + } + if (data.hasOwnProperty('StorePreOrderConfigUpdatedEvent')) { + obj['StorePreOrderConfigUpdatedEvent'] = ApiClient.convertToType(data['StorePreOrderConfigUpdatedEvent'], [StorePreOrderConfigUpdatedEvent]); + } + if (data.hasOwnProperty('StoreLogoCreatedEvent')) { + obj['StoreLogoCreatedEvent'] = ApiClient.convertToType(data['StoreLogoCreatedEvent'], [StoreLogoCreatedEvent]); + } + if (data.hasOwnProperty('StoreLogoUpdatedEvent')) { + obj['StoreLogoUpdatedEvent'] = ApiClient.convertToType(data['StoreLogoUpdatedEvent'], [StoreLogoUpdatedEvent]); + } + if (data.hasOwnProperty('StoreLogoDeletedEvent')) { + obj['StoreLogoDeletedEvent'] = ApiClient.convertToType(data['StoreLogoDeletedEvent'], [StoreLogoDeletedEvent]); + } + if (data.hasOwnProperty('MenuCreatedEvent')) { + obj['MenuCreatedEvent'] = ApiClient.convertToType(data['MenuCreatedEvent'], [MenuCreatedEvent]); + } + if (data.hasOwnProperty('MenuAsyncCreationCompletedEvent')) { + obj['MenuAsyncCreationCompletedEvent'] = ApiClient.convertToType(data['MenuAsyncCreationCompletedEvent'], [MenuAsyncCreationCompletedEvent]); + } + if (data.hasOwnProperty('MenuUpdatedEvent')) { + obj['MenuUpdatedEvent'] = ApiClient.convertToType(data['MenuUpdatedEvent'], [MenuUpdatedEvent]); + } + if (data.hasOwnProperty('MenuUploadedEvent')) { + obj['MenuUploadedEvent'] = ApiClient.convertToType(data['MenuUploadedEvent'], [MenuUploadedEvent]); + } + if (data.hasOwnProperty('MenuBulkEditEvent')) { + obj['MenuBulkEditEvent'] = ApiClient.convertToType(data['MenuBulkEditEvent'], [MenuBulkEditEvent]); + } + if (data.hasOwnProperty('MenuSectionCreatedEvent')) { + obj['MenuSectionCreatedEvent'] = ApiClient.convertToType(data['MenuSectionCreatedEvent'], [MenuSectionCreatedEvent]); + } + if (data.hasOwnProperty('MenuSectionUpdatedEvent')) { + obj['MenuSectionUpdatedEvent'] = ApiClient.convertToType(data['MenuSectionUpdatedEvent'], [MenuSectionUpdatedEvent]); + } + if (data.hasOwnProperty('MenuSectionDeletedEvent')) { + obj['MenuSectionDeletedEvent'] = ApiClient.convertToType(data['MenuSectionDeletedEvent'], [MenuSectionDeletedEvent]); + } + if (data.hasOwnProperty('MenuSectionItemCreatedEvent')) { + obj['MenuSectionItemCreatedEvent'] = ApiClient.convertToType(data['MenuSectionItemCreatedEvent'], [MenuSectionItemCreatedEvent]); + } + if (data.hasOwnProperty('MenuSectionItemUpdatedEvent')) { + obj['MenuSectionItemUpdatedEvent'] = ApiClient.convertToType(data['MenuSectionItemUpdatedEvent'], [MenuSectionItemUpdatedEvent]); + } + if (data.hasOwnProperty('MenuSectionItemDeletedEvent')) { + obj['MenuSectionItemDeletedEvent'] = ApiClient.convertToType(data['MenuSectionItemDeletedEvent'], [MenuSectionItemDeletedEvent]); + } + if (data.hasOwnProperty('MenuItemOptionSetCreatedEvent')) { + obj['MenuItemOptionSetCreatedEvent'] = ApiClient.convertToType(data['MenuItemOptionSetCreatedEvent'], [MenuItemOptionSetCreatedEvent]); + } + if (data.hasOwnProperty('MenuItemOptionSetUpdatedEvent')) { + obj['MenuItemOptionSetUpdatedEvent'] = ApiClient.convertToType(data['MenuItemOptionSetUpdatedEvent'], [MenuItemOptionSetUpdatedEvent]); + } + if (data.hasOwnProperty('MenuItemOptionSetDeletedEvent')) { + obj['MenuItemOptionSetDeletedEvent'] = ApiClient.convertToType(data['MenuItemOptionSetDeletedEvent'], [MenuItemOptionSetDeletedEvent]); + } + if (data.hasOwnProperty('MenuItemOptionSetItemCreatedEvent')) { + obj['MenuItemOptionSetItemCreatedEvent'] = ApiClient.convertToType(data['MenuItemOptionSetItemCreatedEvent'], [MenuItemOptionSetItemCreatedEvent]); + } + if (data.hasOwnProperty('MenuItemOptionSetItemUpdatedEvent')) { + obj['MenuItemOptionSetItemUpdatedEvent'] = ApiClient.convertToType(data['MenuItemOptionSetItemUpdatedEvent'], [MenuItemOptionSetItemUpdatedEvent]); + } + if (data.hasOwnProperty('MenuItemOptionSetItemDeletedEvent')) { + obj['MenuItemOptionSetItemDeletedEvent'] = ApiClient.convertToType(data['MenuItemOptionSetItemDeletedEvent'], [MenuItemOptionSetItemDeletedEvent]); + } + if (data.hasOwnProperty('MenuCheckpointCreatedEvent')) { + obj['MenuCheckpointCreatedEvent'] = ApiClient.convertToType(data['MenuCheckpointCreatedEvent'], [MenuCheckpointCreatedEvent]); + } + if (data.hasOwnProperty('StoreGroupCreatedEvent')) { + obj['StoreGroupCreatedEvent'] = ApiClient.convertToType(data['StoreGroupCreatedEvent'], [StoreGroupCreatedEvent]); + } + if (data.hasOwnProperty('StoreGroupUpdatedEvent')) { + obj['StoreGroupUpdatedEvent'] = ApiClient.convertToType(data['StoreGroupUpdatedEvent'], [StoreGroupUpdatedEvent]); + } + if (data.hasOwnProperty('StoreGroupDeletedEvent')) { + obj['StoreGroupDeletedEvent'] = ApiClient.convertToType(data['StoreGroupDeletedEvent'], [StoreGroupDeletedEvent]); + } + if (data.hasOwnProperty('CustomerCreatedEvent')) { + obj['CustomerCreatedEvent'] = ApiClient.convertToType(data['CustomerCreatedEvent'], [CustomerCreatedEvent]); + } + if (data.hasOwnProperty('CustomerUpdatedEvent')) { + obj['CustomerUpdatedEvent'] = ApiClient.convertToType(data['CustomerUpdatedEvent'], [CustomerUpdatedEvent]); + } + if (data.hasOwnProperty('CustomerConsentUpdatedEvent')) { + obj['CustomerConsentUpdatedEvent'] = ApiClient.convertToType(data['CustomerConsentUpdatedEvent'], [CustomerConsentUpdatedEvent]); + } + if (data.hasOwnProperty('WebhookSubscriptionCreatedEvent')) { + obj['WebhookSubscriptionCreatedEvent'] = ApiClient.convertToType(data['WebhookSubscriptionCreatedEvent'], [WebhookSubscriptionCreatedEvent]); + } + if (data.hasOwnProperty('WebhookSubscriptionUpdatedEvent')) { + obj['WebhookSubscriptionUpdatedEvent'] = ApiClient.convertToType(data['WebhookSubscriptionUpdatedEvent'], [WebhookSubscriptionUpdatedEvent]); + } + if (data.hasOwnProperty('WebhookSubscriptionDeletedEvent')) { + obj['WebhookSubscriptionDeletedEvent'] = ApiClient.convertToType(data['WebhookSubscriptionDeletedEvent'], [WebhookSubscriptionDeletedEvent]); + } + if (data.hasOwnProperty('PrinterTurnedOnEvent')) { + obj['PrinterTurnedOnEvent'] = ApiClient.convertToType(data['PrinterTurnedOnEvent'], [PrinterTurnedOnEvent]); + } + if (data.hasOwnProperty('PrinterTurnedOffEvent')) { + obj['PrinterTurnedOffEvent'] = ApiClient.convertToType(data['PrinterTurnedOffEvent'], [PrinterTurnedOffEvent]); + } + if (data.hasOwnProperty('PrinterAssignedToStoreEvent')) { + obj['PrinterAssignedToStoreEvent'] = ApiClient.convertToType(data['PrinterAssignedToStoreEvent'], [PrinterAssignedToStoreEvent]); + } + if (data.hasOwnProperty('PrinterUnassignedFromStoreEvent')) { + obj['PrinterUnassignedFromStoreEvent'] = ApiClient.convertToType(data['PrinterUnassignedFromStoreEvent'], [PrinterUnassignedFromStoreEvent]); + } + if (data.hasOwnProperty('PhoneCallStartedEvent')) { + obj['PhoneCallStartedEvent'] = ApiClient.convertToType(data['PhoneCallStartedEvent'], [PhoneCallStartedEvent]); + } + if (data.hasOwnProperty('PhoneCallEndedEvent')) { + obj['PhoneCallEndedEvent'] = ApiClient.convertToType(data['PhoneCallEndedEvent'], [PhoneCallEndedEvent]); + } + if (data.hasOwnProperty('TelephonyConfigUpdatedEvent')) { + obj['TelephonyConfigUpdatedEvent'] = ApiClient.convertToType(data['TelephonyConfigUpdatedEvent'], [TelephonyConfigUpdatedEvent]); + } + if (data.hasOwnProperty('ChannelStoresUpdatedEvent')) { + obj['ChannelStoresUpdatedEvent'] = ApiClient.convertToType(data['ChannelStoresUpdatedEvent'], [ChannelStoresUpdatedEvent]); + } + if (data.hasOwnProperty('LoyaltyCampaignCreatedEvent')) { + obj['LoyaltyCampaignCreatedEvent'] = ApiClient.convertToType(data['LoyaltyCampaignCreatedEvent'], [LoyaltyCampaignCreatedEvent]); + } + if (data.hasOwnProperty('LoyaltyCampaignDeletedEvent')) { + obj['LoyaltyCampaignDeletedEvent'] = ApiClient.convertToType(data['LoyaltyCampaignDeletedEvent'], [LoyaltyCampaignDeletedEvent]); + } + if (data.hasOwnProperty('LoyaltyCampaignUpdatedEvent')) { + obj['LoyaltyCampaignUpdatedEvent'] = ApiClient.convertToType(data['LoyaltyCampaignUpdatedEvent'], [LoyaltyCampaignUpdatedEvent]); + } + if (data.hasOwnProperty('RetentionCampaignCreatedEvent')) { + obj['RetentionCampaignCreatedEvent'] = ApiClient.convertToType(data['RetentionCampaignCreatedEvent'], [RetentionCampaignCreatedEvent]); + } + if (data.hasOwnProperty('RetentionCampaignDeletedEvent')) { + obj['RetentionCampaignDeletedEvent'] = ApiClient.convertToType(data['RetentionCampaignDeletedEvent'], [RetentionCampaignDeletedEvent]); + } + if (data.hasOwnProperty('RetentionCampaignUpdatedEvent')) { + obj['RetentionCampaignUpdatedEvent'] = ApiClient.convertToType(data['RetentionCampaignUpdatedEvent'], [RetentionCampaignUpdatedEvent]); + } + if (data.hasOwnProperty('SmsReceivedEvent')) { + obj['SmsReceivedEvent'] = ApiClient.convertToType(data['SmsReceivedEvent'], [SmsReceivedEvent]); + } + if (data.hasOwnProperty('UserLoginEvent')) { + obj['UserLoginEvent'] = ApiClient.convertToType(data['UserLoginEvent'], [UserLoginEvent]); + } + if (data.hasOwnProperty('UserCreatedEvent')) { + obj['UserCreatedEvent'] = ApiClient.convertToType(data['UserCreatedEvent'], [UserCreatedEvent]); + } + if (data.hasOwnProperty('UserUpdatedEvent')) { + obj['UserUpdatedEvent'] = ApiClient.convertToType(data['UserUpdatedEvent'], [UserUpdatedEvent]); + } + if (data.hasOwnProperty('UserDeletedEvent')) { + obj['UserDeletedEvent'] = ApiClient.convertToType(data['UserDeletedEvent'], [UserDeletedEvent]); + } + if (data.hasOwnProperty('UserCreatedPasswordEvent')) { + obj['UserCreatedPasswordEvent'] = ApiClient.convertToType(data['UserCreatedPasswordEvent'], [UserPasswordCreatedEvent]); + } + if (data.hasOwnProperty('UserAnsweredSignupQuestionsEvent')) { + obj['UserAnsweredSignupQuestionsEvent'] = ApiClient.convertToType(data['UserAnsweredSignupQuestionsEvent'], [UserAnsweredSignupQuestionsEvent]); + } + if (data.hasOwnProperty('VoucherCreatedEvent')) { + obj['VoucherCreatedEvent'] = ApiClient.convertToType(data['VoucherCreatedEvent'], [VoucherCreatedEvent]); + } + if (data.hasOwnProperty('VoucherUpdatedEvent')) { + obj['VoucherUpdatedEvent'] = ApiClient.convertToType(data['VoucherUpdatedEvent'], [VoucherUpdatedEvent]); + } + if (data.hasOwnProperty('VoucherDeletedEvent')) { + obj['VoucherDeletedEvent'] = ApiClient.convertToType(data['VoucherDeletedEvent'], [VoucherDeletedEvent]); + } + if (data.hasOwnProperty('VoucherAppliedEvent')) { + obj['VoucherAppliedEvent'] = ApiClient.convertToType(data['VoucherAppliedEvent'], [VoucherAppliedEvent]); + } + if (data.hasOwnProperty('TeammateInviteSentEvent')) { + obj['TeammateInviteSentEvent'] = ApiClient.convertToType(data['TeammateInviteSentEvent'], [TeammateInviteSentEvent]); + } + if (data.hasOwnProperty('TeammateInviteAcceptedEvent')) { + obj['TeammateInviteAcceptedEvent'] = ApiClient.convertToType(data['TeammateInviteAcceptedEvent'], [TeammateInviteAcceptedEvent]); + } + if (data.hasOwnProperty('TeammateUpdatedEvent')) { + obj['TeammateUpdatedEvent'] = ApiClient.convertToType(data['TeammateUpdatedEvent'], [TeammateUpdatedEvent]); + } + if (data.hasOwnProperty('TeammateDeletedEvent')) { + obj['TeammateDeletedEvent'] = ApiClient.convertToType(data['TeammateDeletedEvent'], [TeammateDeletedEvent]); + } + if (data.hasOwnProperty('BankAccountCreatedEvent')) { + obj['BankAccountCreatedEvent'] = ApiClient.convertToType(data['BankAccountCreatedEvent'], [BankAccountCreatedEvent]); + } + if (data.hasOwnProperty('BankAccountUpdatedEvent')) { + obj['BankAccountUpdatedEvent'] = ApiClient.convertToType(data['BankAccountUpdatedEvent'], [BankAccountUpdatedEvent]); + } + if (data.hasOwnProperty('BankAccountDeletedEvent')) { + obj['BankAccountDeletedEvent'] = ApiClient.convertToType(data['BankAccountDeletedEvent'], [BankAccountDeletedEvent]); + } + if (data.hasOwnProperty('BankAccountAssignedEvent')) { + obj['BankAccountAssignedEvent'] = ApiClient.convertToType(data['BankAccountAssignedEvent'], [BankAccountAssignedEvent]); + } + if (data.hasOwnProperty('HydraAssignedEvent')) { + obj['HydraAssignedEvent'] = ApiClient.convertToType(data['HydraAssignedEvent'], [HydraAssignedEvent]); + } + if (data.hasOwnProperty('HydraRequestResetEvent')) { + obj['HydraRequestResetEvent'] = ApiClient.convertToType(data['HydraRequestResetEvent'], [HydraRequestResetEvent]); + } + if (data.hasOwnProperty('HydraStoreAssignedEvent')) { + obj['HydraStoreAssignedEvent'] = ApiClient.convertToType(data['HydraStoreAssignedEvent'], [HydraStoreAssignedEvent]); + } + if (data.hasOwnProperty('HydraStoreUnassignedEvent')) { + obj['HydraStoreUnassignedEvent'] = ApiClient.convertToType(data['HydraStoreUnassignedEvent'], [HydraStoreUnassignedEvent]); + } + if (data.hasOwnProperty('HydraSettingChangedEvent')) { + obj['HydraSettingChangedEvent'] = ApiClient.convertToType(data['HydraSettingChangedEvent'], [HydraSettingChangedEvent]); + } + if (data.hasOwnProperty('HydraUnAssignedEvent')) { + obj['HydraUnAssignedEvent'] = ApiClient.convertToType(data['HydraUnAssignedEvent'], [HydraUnAssignedEvent]); + } + if (data.hasOwnProperty('HydraConnectionStatusChangedEvent')) { + obj['HydraConnectionStatusChangedEvent'] = ApiClient.convertToType(data['HydraConnectionStatusChangedEvent'], [HydraConnectionStatusChangedEvent]); + } + if (data.hasOwnProperty('KioskBluetoothPairingModeEvent')) { + obj['KioskBluetoothPairingModeEvent'] = ApiClient.convertToType(data['KioskBluetoothPairingModeEvent'], [KioskBluetoothPairingModeEvent]); + } + if (data.hasOwnProperty('KioskBluetoothUnpairingModeEvent')) { + obj['KioskBluetoothUnpairingModeEvent'] = ApiClient.convertToType(data['KioskBluetoothUnpairingModeEvent'], [KioskBluetoothUnpairingModeEvent]); + } + if (data.hasOwnProperty('KioskBluetoothTerminalUnpairedEvent')) { + obj['KioskBluetoothTerminalUnpairedEvent'] = ApiClient.convertToType(data['KioskBluetoothTerminalUnpairedEvent'], [KioskBluetoothTerminalUnpairedEvent]); + } + if (data.hasOwnProperty('KioskTerminalActionStateChangedEvent')) { + obj['KioskTerminalActionStateChangedEvent'] = ApiClient.convertToType(data['KioskTerminalActionStateChangedEvent'], [KioskTerminalActionStateChangedEvent]); + } + if (data.hasOwnProperty('KioskBluetoothTerminalUpdatedEvent')) { + obj['KioskBluetoothTerminalUpdatedEvent'] = ApiClient.convertToType(data['KioskBluetoothTerminalUpdatedEvent'], [KioskBluetoothTerminalUpdatedEvent]); + } + if (data.hasOwnProperty('KioskBluetoothTerminalInitiateUpdateCheckEvent')) { + obj['KioskBluetoothTerminalInitiateUpdateCheckEvent'] = ApiClient.convertToType(data['KioskBluetoothTerminalInitiateUpdateCheckEvent'], [KioskBluetoothTerminalInitiateUpdateCheckEvent]); + } + if (data.hasOwnProperty('KioskBluetoothInstallUpdateInitiateEvent')) { + obj['KioskBluetoothInstallUpdateInitiateEvent'] = ApiClient.convertToType(data['KioskBluetoothInstallUpdateInitiateEvent'], [KioskBluetoothInstallUpdateInitiateEvent]); + } + if (data.hasOwnProperty('KioskBluetoothTerminalCancelUpdateEvent')) { + obj['KioskBluetoothTerminalCancelUpdateEvent'] = ApiClient.convertToType(data['KioskBluetoothTerminalCancelUpdateEvent'], [KioskBluetoothTerminalCancelUpdateEvent]); + } + if (data.hasOwnProperty('KioskBluetoothTerminalFirmwareVersionStatusEvent')) { + obj['KioskBluetoothTerminalFirmwareVersionStatusEvent'] = ApiClient.convertToType(data['KioskBluetoothTerminalFirmwareVersionStatusEvent'], [KioskBluetoothTerminalFirmwareVersionStatusEvent]); + } + if (data.hasOwnProperty('KioskBluetoothTerminalInstallationStatusEvent')) { + obj['KioskBluetoothTerminalInstallationStatusEvent'] = ApiClient.convertToType(data['KioskBluetoothTerminalInstallationStatusEvent'], [KioskBluetoothTerminalInstallationStatusEvent]); + } + if (data.hasOwnProperty('PushNotificationScheduledEvent')) { + obj['PushNotificationScheduledEvent'] = ApiClient.convertToType(data['PushNotificationScheduledEvent'], [PushNotificationScheduledEvent]); + } + if (data.hasOwnProperty('PushNotificationSentEvent')) { + obj['PushNotificationSentEvent'] = ApiClient.convertToType(data['PushNotificationSentEvent'], [PushNotificationSentEvent]); + } + if (data.hasOwnProperty('PushNotificationDeletedEvent')) { + obj['PushNotificationDeletedEvent'] = ApiClient.convertToType(data['PushNotificationDeletedEvent'], [PushNotificationDeletedEvent]); + } + if (data.hasOwnProperty('DnsVerifiedEvent')) { + obj['DnsVerifiedEvent'] = ApiClient.convertToType(data['DnsVerifiedEvent'], [DnsVerifiedEvent]); + } + if (data.hasOwnProperty('CertificateCreatedEvent')) { + obj['CertificateCreatedEvent'] = ApiClient.convertToType(data['CertificateCreatedEvent'], [CertificateCreatedEvent]); + } + if (data.hasOwnProperty('CertificateRenewedEvent')) { + obj['CertificateRenewedEvent'] = ApiClient.convertToType(data['CertificateRenewedEvent'], [CertificateRenewedEvent]); + } + if (data.hasOwnProperty('WebsiteVanityUrlUpdatedEvent')) { + obj['WebsiteVanityUrlUpdatedEvent'] = ApiClient.convertToType(data['WebsiteVanityUrlUpdatedEvent'], [WebsiteVanityUrlUpdatedEvent]); + } + if (data.hasOwnProperty('WebsiteUpdatedEvent')) { + obj['WebsiteUpdatedEvent'] = ApiClient.convertToType(data['WebsiteUpdatedEvent'], [WebsiteUpdatedEvent]); + } + if (data.hasOwnProperty('OrderCapacityUpdatedEvent')) { + obj['OrderCapacityUpdatedEvent'] = ApiClient.convertToType(data['OrderCapacityUpdatedEvent'], [OrderCapacityConfigUpdatedEvent]); + } + if (data.hasOwnProperty('ExternalStoreEvent')) { + obj['ExternalStoreEvent'] = ApiClient.convertToType(data['ExternalStoreEvent'], [ExternalStoreEvent]); + } + if (data.hasOwnProperty('OrderFulfillmentStatusUpdatedEvent')) { + obj['OrderFulfillmentStatusUpdatedEvent'] = ApiClient.convertToType(data['OrderFulfillmentStatusUpdatedEvent'], [OrderFulfillmentStatusUpdatedEvent]); + } + if (data.hasOwnProperty('AppStoreConfigCreatedEvent')) { + obj['AppStoreConfigCreatedEvent'] = ApiClient.convertToType(data['AppStoreConfigCreatedEvent'], [AppStoreConfigCreatedEvent]); + } + if (data.hasOwnProperty('AppStoreConfigUpdatedEvent')) { + obj['AppStoreConfigUpdatedEvent'] = ApiClient.convertToType(data['AppStoreConfigUpdatedEvent'], [AppStoreConfigUpdatedEvent]); + } + if (data.hasOwnProperty('AppStoreConfigDeletedEvent')) { + obj['AppStoreConfigDeletedEvent'] = ApiClient.convertToType(data['AppStoreConfigDeletedEvent'], [AppStoreConfigDeletedEvent]); + } + if (data.hasOwnProperty('AppStoreSubscriptionChangeJobUpdatedEvent')) { + obj['AppStoreSubscriptionChangeJobUpdatedEvent'] = ApiClient.convertToType(data['AppStoreSubscriptionChangeJobUpdatedEvent'], [AppStoreSubscriptionChangeJobUpdatedEvent]); + } + if (data.hasOwnProperty('CatalogItemCreatedEvent')) { + obj['CatalogItemCreatedEvent'] = ApiClient.convertToType(data['CatalogItemCreatedEvent'], [CatalogItemCreatedEvent]); + } + if (data.hasOwnProperty('CatalogItemUpdatedEvent')) { + obj['CatalogItemUpdatedEvent'] = ApiClient.convertToType(data['CatalogItemUpdatedEvent'], [CatalogItemUpdatedEvent]); + } + if (data.hasOwnProperty('CatalogItemArchivedEvent')) { + obj['CatalogItemArchivedEvent'] = ApiClient.convertToType(data['CatalogItemArchivedEvent'], [CatalogItemArchivedEvent]); + } + if (data.hasOwnProperty('CatalogGroupCreatedEvent')) { + obj['CatalogGroupCreatedEvent'] = ApiClient.convertToType(data['CatalogGroupCreatedEvent'], [CatalogGroupCreatedEvent]); + } + if (data.hasOwnProperty('CatalogGroupUpdatedEvent')) { + obj['CatalogGroupUpdatedEvent'] = ApiClient.convertToType(data['CatalogGroupUpdatedEvent'], [CatalogGroupUpdatedEvent]); + } + if (data.hasOwnProperty('CatalogGroupArchivedEvent')) { + obj['CatalogGroupArchivedEvent'] = ApiClient.convertToType(data['CatalogGroupArchivedEvent'], [CatalogGroupArchivedEvent]); + } + if (data.hasOwnProperty('StoreTipUpdatedEvent')) { + obj['StoreTipUpdatedEvent'] = ApiClient.convertToType(data['StoreTipUpdatedEvent'], [StoreTipUpdatedEvent]); + } + if (data.hasOwnProperty('LocationAreaCreatedEvent')) { + obj['LocationAreaCreatedEvent'] = ApiClient.convertToType(data['LocationAreaCreatedEvent'], [LocationAreaCreatedEvent]); + } + if (data.hasOwnProperty('LocationAreaUpdatedEvent')) { + obj['LocationAreaUpdatedEvent'] = ApiClient.convertToType(data['LocationAreaUpdatedEvent'], [LocationAreaUpdatedEvent]); + } + if (data.hasOwnProperty('LocationCreatedEvent')) { + obj['LocationCreatedEvent'] = ApiClient.convertToType(data['LocationCreatedEvent'], [LocationCreatedEvent]); + } + if (data.hasOwnProperty('LocationDeletedEvent')) { + obj['LocationDeletedEvent'] = ApiClient.convertToType(data['LocationDeletedEvent'], [LocationDeletedEvent]); + } + if (data.hasOwnProperty('StoreServiceChargeUpdatedEvent')) { + obj['StoreServiceChargeUpdatedEvent'] = ApiClient.convertToType(data['StoreServiceChargeUpdatedEvent'], [StoreServiceChargeUpdatedEvent]); + } + if (data.hasOwnProperty('MobileAppsSubmissionStatusUpdatedEvent')) { + obj['MobileAppsSubmissionStatusUpdatedEvent'] = ApiClient.convertToType(data['MobileAppsSubmissionStatusUpdatedEvent'], [MobileAppsSubmissionStatusUpdatedEvent]); + } + if (data.hasOwnProperty('MobileAppsSubmissionUpdatedEvent')) { + obj['MobileAppsSubmissionUpdatedEvent'] = ApiClient.convertToType(data['MobileAppsSubmissionUpdatedEvent'], [MobileAppsSubmissionUpdatedEvent]); + } + if (data.hasOwnProperty('StoreFeeConfigUpdatedEvent')) { + obj['StoreFeeConfigUpdatedEvent'] = ApiClient.convertToType(data['StoreFeeConfigUpdatedEvent'], [StoreFeeConfigUpdatedEvent]); + } + } + return obj; + } + + +} + +/** + * App Created Event + * @member {Array.} AppCreatedEvent + */ +EventSearchResult.prototype['AppCreatedEvent'] = undefined; + +/** + * App Updated Event + * @member {Array.} AppUpdatedEvent + */ +EventSearchResult.prototype['AppUpdatedEvent'] = undefined; + +/** + * Client Analytics events + * @member {Array.} AnalyticsClientEvent + */ +EventSearchResult.prototype['AnalyticsClientEvent'] = undefined; + +/** + * Order accepted events + * @member {Array.} OrderAcceptedEvent + */ +EventSearchResult.prototype['OrderAcceptedEvent'] = undefined; + +/** + * Order dispatched events + * @member {Array.} OrderDispatchedEvent + */ +EventSearchResult.prototype['OrderDispatchedEvent'] = undefined; + +/** + * Order delivery tracking created events + * @member {Array.} OrderCustomerTrackingCreatedEvent + */ +EventSearchResult.prototype['OrderCustomerTrackingCreatedEvent'] = undefined; + +/** + * Order delivery tracking updated events + * @member {Array.} OrderDeliveryTrackingStatusUpdatedEvent + */ +EventSearchResult.prototype['OrderDeliveryTrackingStatusUpdatedEvent'] = undefined; + +/** + * Order Batch published event + * @member {Array.} OrderBatchPublishedEvent + */ +EventSearchResult.prototype['OrderBatchPublishedEvent'] = undefined; + +/** + * Order created events + * @member {Array.} OrderCreatedEvent + */ +EventSearchResult.prototype['OrderCreatedEvent'] = undefined; + +/** + * Order rating updated events + * @member {Array.} OrderRatingUpdatedEvent + */ +EventSearchResult.prototype['OrderRatingUpdatedEvent'] = undefined; + +/** + * Order refunded events + * @member {Array.} OrderRefundedEvent + */ +EventSearchResult.prototype['OrderRefundedEvent'] = undefined; + +/** + * Order rejected events + * @member {Array.} OrderRejectedEvent + */ +EventSearchResult.prototype['OrderRejectedEvent'] = undefined; + +/** + * Order tip updated events + * @member {Array.} OrderTipUpdatedEvent + */ +EventSearchResult.prototype['OrderTipUpdatedEvent'] = undefined; + +/** + * Order Terminal Notification events + * @member {Array.} OrderTerminalNotifications + */ +EventSearchResult.prototype['OrderTerminalNotifications'] = undefined; + +/** + * Store created events + * @member {Array.} StoreCreatedEvent + */ +EventSearchResult.prototype['StoreCreatedEvent'] = undefined; + +/** + * Store deleted events + * @member {Array.} StoreDeletedEvent + */ +EventSearchResult.prototype['StoreDeletedEvent'] = undefined; + +/** + * Store address updated events + * @member {Array.} StoreAddressUpdatedEvent + */ +EventSearchResult.prototype['StoreAddressUpdatedEvent'] = undefined; + +/** + * Store kiosk setting updated events + * @member {Array.} StoreKioskSettingUpdatedEvent + */ +EventSearchResult.prototype['StoreKioskSettingUpdatedEvent'] = undefined; + +/** + * Store delivery zone created events + * @member {Array.} DeliveryZoneCreatedEvent + */ +EventSearchResult.prototype['DeliveryZoneCreatedEvent'] = undefined; + +/** + * Store delivery zone updated events + * @member {Array.} DeliveryZoneUpdatedEvent + */ +EventSearchResult.prototype['DeliveryZoneUpdatedEvent'] = undefined; + +/** + * Store delivery zone deleted events + * @member {Array.} DeliveryZoneDeletedEvent + */ +EventSearchResult.prototype['DeliveryZoneDeletedEvent'] = undefined; + +/** + * Store opening hours updated events + * @member {Array.} StoreOpeningHoursUpdatedEvent + */ +EventSearchResult.prototype['StoreOpeningHoursUpdatedEvent'] = undefined; + +/** + * Store opening hours updated events + * @member {Array.} StoreMenuAssignedEvent + */ +EventSearchResult.prototype['StoreMenuAssignedEvent'] = undefined; + +/** + * Store business hours override created events + * @member {Array.} StoreBusinessHoursOverrideCreatedEvent + */ +EventSearchResult.prototype['StoreBusinessHoursOverrideCreatedEvent'] = undefined; + +/** + * Store business hours override deleted events + * @member {Array.} StoreBusinessHoursOverrideDeletedEvent + */ +EventSearchResult.prototype['StoreBusinessHoursOverrideDeletedEvent'] = undefined; + +/** + * Store archived events + * @member {Array.} StoreArchivedEvent + */ +EventSearchResult.prototype['StoreArchivedEvent'] = undefined; + +/** + * Store unarchived events + * @member {Array.} StoreUnarchivedEvent + */ +EventSearchResult.prototype['StoreUnarchivedEvent'] = undefined; + +/** + * Store published events + * @member {Array.} StorePublishedEvent + */ +EventSearchResult.prototype['StorePublishedEvent'] = undefined; + +/** + * Store unpublished events + * @member {Array.} StoreUnpublishedEvent + */ +EventSearchResult.prototype['StoreUnpublishedEvent'] = undefined; + +/** + * Store updated events + * @member {Array.} StoreUpdatedEvent + */ +EventSearchResult.prototype['StoreUpdatedEvent'] = undefined; + +/** + * Store updated events + * @member {Array.} StorePreOrderConfigUpdatedEvent + */ +EventSearchResult.prototype['StorePreOrderConfigUpdatedEvent'] = undefined; + +/** + * Store logo created events + * @member {Array.} StoreLogoCreatedEvent + */ +EventSearchResult.prototype['StoreLogoCreatedEvent'] = undefined; + +/** + * Store logo updated events + * @member {Array.} StoreLogoUpdatedEvent + */ +EventSearchResult.prototype['StoreLogoUpdatedEvent'] = undefined; + +/** + * Store logo deleted events + * @member {Array.} StoreLogoDeletedEvent + */ +EventSearchResult.prototype['StoreLogoDeletedEvent'] = undefined; + +/** + * Menu created events + * @member {Array.} MenuCreatedEvent + */ +EventSearchResult.prototype['MenuCreatedEvent'] = undefined; + +/** + * Menu async creation completed events + * @member {Array.} MenuAsyncCreationCompletedEvent + */ +EventSearchResult.prototype['MenuAsyncCreationCompletedEvent'] = undefined; + +/** + * Menu updated events + * @member {Array.} MenuUpdatedEvent + */ +EventSearchResult.prototype['MenuUpdatedEvent'] = undefined; + +/** + * Menu uploaded events + * @member {Array.} MenuUploadedEvent + */ +EventSearchResult.prototype['MenuUploadedEvent'] = undefined; + +/** + * Menu bulk events + * @member {Array.} MenuBulkEditEvent + */ +EventSearchResult.prototype['MenuBulkEditEvent'] = undefined; + +/** + * Menu section created events + * @member {Array.} MenuSectionCreatedEvent + */ +EventSearchResult.prototype['MenuSectionCreatedEvent'] = undefined; + +/** + * Menu section updated events + * @member {Array.} MenuSectionUpdatedEvent + */ +EventSearchResult.prototype['MenuSectionUpdatedEvent'] = undefined; + +/** + * Menu section deleted events + * @member {Array.} MenuSectionDeletedEvent + */ +EventSearchResult.prototype['MenuSectionDeletedEvent'] = undefined; + +/** + * Menu section item created events + * @member {Array.} MenuSectionItemCreatedEvent + */ +EventSearchResult.prototype['MenuSectionItemCreatedEvent'] = undefined; + +/** + * Menu section item updated events + * @member {Array.} MenuSectionItemUpdatedEvent + */ +EventSearchResult.prototype['MenuSectionItemUpdatedEvent'] = undefined; + +/** + * Menu section item deleted events + * @member {Array.} MenuSectionItemDeletedEvent + */ +EventSearchResult.prototype['MenuSectionItemDeletedEvent'] = undefined; + +/** + * Menu item option set created events + * @member {Array.} MenuItemOptionSetCreatedEvent + */ +EventSearchResult.prototype['MenuItemOptionSetCreatedEvent'] = undefined; + +/** + * Menu item option set updated events + * @member {Array.} MenuItemOptionSetUpdatedEvent + */ +EventSearchResult.prototype['MenuItemOptionSetUpdatedEvent'] = undefined; + +/** + * Menu item option set deleted events + * @member {Array.} MenuItemOptionSetDeletedEvent + */ +EventSearchResult.prototype['MenuItemOptionSetDeletedEvent'] = undefined; + +/** + * Menu item option set item created events + * @member {Array.} MenuItemOptionSetItemCreatedEvent + */ +EventSearchResult.prototype['MenuItemOptionSetItemCreatedEvent'] = undefined; + +/** + * Menu item option set item updated events + * @member {Array.} MenuItemOptionSetItemUpdatedEvent + */ +EventSearchResult.prototype['MenuItemOptionSetItemUpdatedEvent'] = undefined; + +/** + * Menu item option set item deleted events + * @member {Array.} MenuItemOptionSetItemDeletedEvent + */ +EventSearchResult.prototype['MenuItemOptionSetItemDeletedEvent'] = undefined; + +/** + * Menu checkpoint created event + * @member {Array.} MenuCheckpointCreatedEvent + */ +EventSearchResult.prototype['MenuCheckpointCreatedEvent'] = undefined; + +/** + * Store group created events + * @member {Array.} StoreGroupCreatedEvent + */ +EventSearchResult.prototype['StoreGroupCreatedEvent'] = undefined; + +/** + * Store group updated events + * @member {Array.} StoreGroupUpdatedEvent + */ +EventSearchResult.prototype['StoreGroupUpdatedEvent'] = undefined; + +/** + * Store group deleted events + * @member {Array.} StoreGroupDeletedEvent + */ +EventSearchResult.prototype['StoreGroupDeletedEvent'] = undefined; + +/** + * Customer created events + * @member {Array.} CustomerCreatedEvent + */ +EventSearchResult.prototype['CustomerCreatedEvent'] = undefined; + +/** + * Customer updated events + * @member {Array.} CustomerUpdatedEvent + */ +EventSearchResult.prototype['CustomerUpdatedEvent'] = undefined; + +/** + * Customer consent updated events + * @member {Array.} CustomerConsentUpdatedEvent + */ +EventSearchResult.prototype['CustomerConsentUpdatedEvent'] = undefined; + +/** + * Webhook subscription created events + * @member {Array.} WebhookSubscriptionCreatedEvent + */ +EventSearchResult.prototype['WebhookSubscriptionCreatedEvent'] = undefined; + +/** + * Webhook subscription updated events + * @member {Array.} WebhookSubscriptionUpdatedEvent + */ +EventSearchResult.prototype['WebhookSubscriptionUpdatedEvent'] = undefined; + +/** + * Webhook subscription deleted events + * @member {Array.} WebhookSubscriptionDeletedEvent + */ +EventSearchResult.prototype['WebhookSubscriptionDeletedEvent'] = undefined; + +/** + * Printer turned ON event + * @member {Array.} PrinterTurnedOnEvent + */ +EventSearchResult.prototype['PrinterTurnedOnEvent'] = undefined; + +/** + * Printer turned OFF event + * @member {Array.} PrinterTurnedOffEvent + */ +EventSearchResult.prototype['PrinterTurnedOffEvent'] = undefined; + +/** + * Printer assigned to store event + * @member {Array.} PrinterAssignedToStoreEvent + */ +EventSearchResult.prototype['PrinterAssignedToStoreEvent'] = undefined; + +/** + * Printer unassigned from store event + * @member {Array.} PrinterUnassignedFromStoreEvent + */ +EventSearchResult.prototype['PrinterUnassignedFromStoreEvent'] = undefined; + +/** + * Phone call started event + * @member {Array.} PhoneCallStartedEvent + */ +EventSearchResult.prototype['PhoneCallStartedEvent'] = undefined; + +/** + * Phone call ended event + * @member {Array.} PhoneCallEndedEvent + */ +EventSearchResult.prototype['PhoneCallEndedEvent'] = undefined; + +/** + * Telephony config updated event + * @member {Array.} TelephonyConfigUpdatedEvent + */ +EventSearchResult.prototype['TelephonyConfigUpdatedEvent'] = undefined; + +/** + * Channel stores updated event + * @member {Array.} ChannelStoresUpdatedEvent + */ +EventSearchResult.prototype['ChannelStoresUpdatedEvent'] = undefined; + +/** + * Loyalty campaign created event + * @member {Array.} LoyaltyCampaignCreatedEvent + */ +EventSearchResult.prototype['LoyaltyCampaignCreatedEvent'] = undefined; + +/** + * Loyalty campaign deleted event + * @member {Array.} LoyaltyCampaignDeletedEvent + */ +EventSearchResult.prototype['LoyaltyCampaignDeletedEvent'] = undefined; + +/** + * Loyalty campaign updated event + * @member {Array.} LoyaltyCampaignUpdatedEvent + */ +EventSearchResult.prototype['LoyaltyCampaignUpdatedEvent'] = undefined; + +/** + * Retention campaign created event + * @member {Array.} RetentionCampaignCreatedEvent + */ +EventSearchResult.prototype['RetentionCampaignCreatedEvent'] = undefined; + +/** + * Retention campaign deleted event + * @member {Array.} RetentionCampaignDeletedEvent + */ +EventSearchResult.prototype['RetentionCampaignDeletedEvent'] = undefined; + +/** + * Retention campaign updated event + * @member {Array.} RetentionCampaignUpdatedEvent + */ +EventSearchResult.prototype['RetentionCampaignUpdatedEvent'] = undefined; + +/** + * Sms received event + * @member {Array.} SmsReceivedEvent + */ +EventSearchResult.prototype['SmsReceivedEvent'] = undefined; + +/** + * User login event + * @member {Array.} UserLoginEvent + */ +EventSearchResult.prototype['UserLoginEvent'] = undefined; + +/** + * User created event + * @member {Array.} UserCreatedEvent + */ +EventSearchResult.prototype['UserCreatedEvent'] = undefined; + +/** + * User updated event + * @member {Array.} UserUpdatedEvent + */ +EventSearchResult.prototype['UserUpdatedEvent'] = undefined; + +/** + * User deleted event + * @member {Array.} UserDeletedEvent + */ +EventSearchResult.prototype['UserDeletedEvent'] = undefined; + +/** + * User password created event + * @member {Array.} UserCreatedPasswordEvent + */ +EventSearchResult.prototype['UserCreatedPasswordEvent'] = undefined; + +/** + * User answered signup questions event + * @member {Array.} UserAnsweredSignupQuestionsEvent + */ +EventSearchResult.prototype['UserAnsweredSignupQuestionsEvent'] = undefined; + +/** + * Voucher created event + * @member {Array.} VoucherCreatedEvent + */ +EventSearchResult.prototype['VoucherCreatedEvent'] = undefined; + +/** + * Voucher updated event + * @member {Array.} VoucherUpdatedEvent + */ +EventSearchResult.prototype['VoucherUpdatedEvent'] = undefined; + +/** + * Voucher deleted event + * @member {Array.} VoucherDeletedEvent + */ +EventSearchResult.prototype['VoucherDeletedEvent'] = undefined; + +/** + * Voucher applied event + * @member {Array.} VoucherAppliedEvent + */ +EventSearchResult.prototype['VoucherAppliedEvent'] = undefined; + +/** + * Teammate invite sent event + * @member {Array.} TeammateInviteSentEvent + */ +EventSearchResult.prototype['TeammateInviteSentEvent'] = undefined; + +/** + * Teammate invite accepted event + * @member {Array.} TeammateInviteAcceptedEvent + */ +EventSearchResult.prototype['TeammateInviteAcceptedEvent'] = undefined; + +/** + * Teammate updated event + * @member {Array.} TeammateUpdatedEvent + */ +EventSearchResult.prototype['TeammateUpdatedEvent'] = undefined; + +/** + * Teammate deleted event + * @member {Array.} TeammateDeletedEvent + */ +EventSearchResult.prototype['TeammateDeletedEvent'] = undefined; + +/** + * Bank account created event + * @member {Array.} BankAccountCreatedEvent + */ +EventSearchResult.prototype['BankAccountCreatedEvent'] = undefined; + +/** + * Bank account updated event + * @member {Array.} BankAccountUpdatedEvent + */ +EventSearchResult.prototype['BankAccountUpdatedEvent'] = undefined; + +/** + * Bank account updated event + * @member {Array.} BankAccountDeletedEvent + */ +EventSearchResult.prototype['BankAccountDeletedEvent'] = undefined; + +/** + * Bank account assigned event + * @member {Array.} BankAccountAssignedEvent + */ +EventSearchResult.prototype['BankAccountAssignedEvent'] = undefined; + +/** + * Hydra assigned event + * @member {Array.} HydraAssignedEvent + */ +EventSearchResult.prototype['HydraAssignedEvent'] = undefined; + +/** + * Hydra reset requested event + * @member {Array.} HydraRequestResetEvent + */ +EventSearchResult.prototype['HydraRequestResetEvent'] = undefined; + +/** + * Hydra store assigned event + * @member {Array.} HydraStoreAssignedEvent + */ +EventSearchResult.prototype['HydraStoreAssignedEvent'] = undefined; + +/** + * Hydra store unassigned + * @member {Array.} HydraStoreUnassignedEvent + */ +EventSearchResult.prototype['HydraStoreUnassignedEvent'] = undefined; + +/** + * Hydra settings changed event + * @member {Array.} HydraSettingChangedEvent + */ +EventSearchResult.prototype['HydraSettingChangedEvent'] = undefined; + +/** + * Hydra un-assigned event + * @member {Array.} HydraUnAssignedEvent + */ +EventSearchResult.prototype['HydraUnAssignedEvent'] = undefined; + +/** + * Hydra connection state change + * @member {Array.} HydraConnectionStatusChangedEvent + */ +EventSearchResult.prototype['HydraConnectionStatusChangedEvent'] = undefined; + +/** + * Bluetooth Pairing Mode initiated + * @member {Array.} KioskBluetoothPairingModeEvent + */ +EventSearchResult.prototype['KioskBluetoothPairingModeEvent'] = undefined; + +/** + * Bluetooth Unpairing Mode initiated + * @member {Array.} KioskBluetoothUnpairingModeEvent + */ +EventSearchResult.prototype['KioskBluetoothUnpairingModeEvent'] = undefined; + +/** + * Bluetooth Terminal Unpaired with Kiosk + * @member {Array.} KioskBluetoothTerminalUnpairedEvent + */ +EventSearchResult.prototype['KioskBluetoothTerminalUnpairedEvent'] = undefined; + +/** + * Terminal actionstate change + * @member {Array.} KioskTerminalActionStateChangedEvent + */ +EventSearchResult.prototype['KioskTerminalActionStateChangedEvent'] = undefined; + +/** + * Bluetooth Terminal Updated + * @member {Array.} KioskBluetoothTerminalUpdatedEvent + */ +EventSearchResult.prototype['KioskBluetoothTerminalUpdatedEvent'] = undefined; + +/** + * Trigger bluetooth payment terminal update checker + * @member {Array.} KioskBluetoothTerminalInitiateUpdateCheckEvent + */ +EventSearchResult.prototype['KioskBluetoothTerminalInitiateUpdateCheckEvent'] = undefined; + +/** + * Bluetooth Terminal Initiate Update + * @member {Array.} KioskBluetoothInstallUpdateInitiateEvent + */ +EventSearchResult.prototype['KioskBluetoothInstallUpdateInitiateEvent'] = undefined; + +/** + * Bluetooth Terminal Cancel Update Install + * @member {Array.} KioskBluetoothTerminalCancelUpdateEvent + */ +EventSearchResult.prototype['KioskBluetoothTerminalCancelUpdateEvent'] = undefined; + +/** + * Bluetooth Payment Terminal Firmware Version Status Info + * @member {Array.} KioskBluetoothTerminalFirmwareVersionStatusEvent + */ +EventSearchResult.prototype['KioskBluetoothTerminalFirmwareVersionStatusEvent'] = undefined; + +/** + * Bluetooth Terminal Update Installation Status + * @member {Array.} KioskBluetoothTerminalInstallationStatusEvent + */ +EventSearchResult.prototype['KioskBluetoothTerminalInstallationStatusEvent'] = undefined; + +/** + * Push notification scheduled event + * @member {Array.} PushNotificationScheduledEvent + */ +EventSearchResult.prototype['PushNotificationScheduledEvent'] = undefined; + +/** + * Push notification sent event + * @member {Array.} PushNotificationSentEvent + */ +EventSearchResult.prototype['PushNotificationSentEvent'] = undefined; + +/** + * Push notification deleted event + * @member {Array.} PushNotificationDeletedEvent + */ +EventSearchResult.prototype['PushNotificationDeletedEvent'] = undefined; + +/** + * DNS Verified + * @member {Array.} DnsVerifiedEvent + */ +EventSearchResult.prototype['DnsVerifiedEvent'] = undefined; + +/** + * Certificate created + * @member {Array.} CertificateCreatedEvent + */ +EventSearchResult.prototype['CertificateCreatedEvent'] = undefined; + +/** + * Certificate renewed + * @member {Array.} CertificateRenewedEvent + */ +EventSearchResult.prototype['CertificateRenewedEvent'] = undefined; + +/** + * Panacea vanity url updated + * @member {Array.} WebsiteVanityUrlUpdatedEvent + */ +EventSearchResult.prototype['WebsiteVanityUrlUpdatedEvent'] = undefined; + +/** + * Website updated + * @member {Array.} WebsiteUpdatedEvent + */ +EventSearchResult.prototype['WebsiteUpdatedEvent'] = undefined; + +/** + * Order capacity config updated + * @member {Array.} OrderCapacityUpdatedEvent + */ +EventSearchResult.prototype['OrderCapacityUpdatedEvent'] = undefined; + +/** + * External event + * @member {Array.} ExternalStoreEvent + */ +EventSearchResult.prototype['ExternalStoreEvent'] = undefined; + +/** + * Fulfillment status updated event + * @member {Array.} OrderFulfillmentStatusUpdatedEvent + */ +EventSearchResult.prototype['OrderFulfillmentStatusUpdatedEvent'] = undefined; + +/** + * App Store Config Created + * @member {Array.} AppStoreConfigCreatedEvent + */ +EventSearchResult.prototype['AppStoreConfigCreatedEvent'] = undefined; + +/** + * App Store Config Updated + * @member {Array.} AppStoreConfigUpdatedEvent + */ +EventSearchResult.prototype['AppStoreConfigUpdatedEvent'] = undefined; + +/** + * App Store Config Deleted + * @member {Array.} AppStoreConfigDeletedEvent + */ +EventSearchResult.prototype['AppStoreConfigDeletedEvent'] = undefined; + +/** + * App Store Subscription Change Job Updated + * @member {Array.} AppStoreSubscriptionChangeJobUpdatedEvent + */ +EventSearchResult.prototype['AppStoreSubscriptionChangeJobUpdatedEvent'] = undefined; + +/** + * Catalog Item Created + * @member {Array.} CatalogItemCreatedEvent + */ +EventSearchResult.prototype['CatalogItemCreatedEvent'] = undefined; + +/** + * Catalog Item Updated + * @member {Array.} CatalogItemUpdatedEvent + */ +EventSearchResult.prototype['CatalogItemUpdatedEvent'] = undefined; + +/** + * Catalog Item Archived + * @member {Array.} CatalogItemArchivedEvent + */ +EventSearchResult.prototype['CatalogItemArchivedEvent'] = undefined; + +/** + * Catalog Group Created + * @member {Array.} CatalogGroupCreatedEvent + */ +EventSearchResult.prototype['CatalogGroupCreatedEvent'] = undefined; + +/** + * Catalog Group Updated + * @member {Array.} CatalogGroupUpdatedEvent + */ +EventSearchResult.prototype['CatalogGroupUpdatedEvent'] = undefined; + +/** + * Catalog Group Archived + * @member {Array.} CatalogGroupArchivedEvent + */ +EventSearchResult.prototype['CatalogGroupArchivedEvent'] = undefined; + +/** + * Store Tip Updated Event + * @member {Array.} StoreTipUpdatedEvent + */ +EventSearchResult.prototype['StoreTipUpdatedEvent'] = undefined; + +/** + * LocationArea created event + * @member {Array.} LocationAreaCreatedEvent + */ +EventSearchResult.prototype['LocationAreaCreatedEvent'] = undefined; + +/** + * LocationArea updated event + * @member {Array.} LocationAreaUpdatedEvent + */ +EventSearchResult.prototype['LocationAreaUpdatedEvent'] = undefined; + +/** + * Location created event + * @member {Array.} LocationCreatedEvent + */ +EventSearchResult.prototype['LocationCreatedEvent'] = undefined; + +/** + * Location deleted event + * @member {Array.} LocationDeletedEvent + */ +EventSearchResult.prototype['LocationDeletedEvent'] = undefined; + +/** + * Service Charge Updated Event + * @member {Array.} StoreServiceChargeUpdatedEvent + */ +EventSearchResult.prototype['StoreServiceChargeUpdatedEvent'] = undefined; + +/** + * Mobile Submission Status Updated Event + * @member {Array.} MobileAppsSubmissionStatusUpdatedEvent + */ +EventSearchResult.prototype['MobileAppsSubmissionStatusUpdatedEvent'] = undefined; + +/** + * Mobile Submission Updated Event + * @member {Array.} MobileAppsSubmissionUpdatedEvent + */ +EventSearchResult.prototype['MobileAppsSubmissionUpdatedEvent'] = undefined; + +/** + * Store Fee Config Updated Event + * @member {Array.} StoreFeeConfigUpdatedEvent + */ +EventSearchResult.prototype['StoreFeeConfigUpdatedEvent'] = undefined; + + + + + + +export default EventSearchResult; + diff --git a/src/model/ExecuteConfigurationActionRequest.js b/src/model/ExecuteConfigurationActionRequest.js new file mode 100644 index 00000000..6387221f --- /dev/null +++ b/src/model/ExecuteConfigurationActionRequest.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ExecuteConfigurationActionRequest model module. + * @module model/ExecuteConfigurationActionRequest + * @version 1.0.0 + */ +class ExecuteConfigurationActionRequest { + /** + * Constructs a new ExecuteConfigurationActionRequest. + * @alias module:model/ExecuteConfigurationActionRequest + */ + constructor() { + + ExecuteConfigurationActionRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ExecuteConfigurationActionRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExecuteConfigurationActionRequest} obj Optional instance to populate. + * @return {module:model/ExecuteConfigurationActionRequest} The populated ExecuteConfigurationActionRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ExecuteConfigurationActionRequest(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('Action')) { + obj['Action'] = ApiClient.convertToType(data['Action'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Key + */ +ExecuteConfigurationActionRequest.prototype['Key'] = undefined; + +/** + * @member {String} Action + */ +ExecuteConfigurationActionRequest.prototype['Action'] = undefined; + + + + + + +export default ExecuteConfigurationActionRequest; + diff --git a/src/model/ExecuteConfigurationActionResult.js b/src/model/ExecuteConfigurationActionResult.js new file mode 100644 index 00000000..d3846893 --- /dev/null +++ b/src/model/ExecuteConfigurationActionResult.js @@ -0,0 +1,122 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ExecuteConfigurationActionResult model module. + * @module model/ExecuteConfigurationActionResult + * @version 1.0.0 + */ +class ExecuteConfigurationActionResult { + /** + * Constructs a new ExecuteConfigurationActionResult. + * @alias module:model/ExecuteConfigurationActionResult + */ + constructor() { + + ExecuteConfigurationActionResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ExecuteConfigurationActionResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExecuteConfigurationActionResult} obj Optional instance to populate. + * @return {module:model/ExecuteConfigurationActionResult} The populated ExecuteConfigurationActionResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ExecuteConfigurationActionResult(); + + if (data.hasOwnProperty('ErrorMessage')) { + obj['ErrorMessage'] = ApiClient.convertToType(data['ErrorMessage'], 'String'); + } + if (data.hasOwnProperty('InfoMessage')) { + obj['InfoMessage'] = ApiClient.convertToType(data['InfoMessage'], 'String'); + } + if (data.hasOwnProperty('RedirectUrl')) { + obj['RedirectUrl'] = ApiClient.convertToType(data['RedirectUrl'], 'String'); + } + if (data.hasOwnProperty('RedirectTarget')) { + obj['RedirectTarget'] = ApiClient.convertToType(data['RedirectTarget'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} ErrorMessage + */ +ExecuteConfigurationActionResult.prototype['ErrorMessage'] = undefined; + +/** + * @member {String} InfoMessage + */ +ExecuteConfigurationActionResult.prototype['InfoMessage'] = undefined; + +/** + * @member {String} RedirectUrl + */ +ExecuteConfigurationActionResult.prototype['RedirectUrl'] = undefined; + +/** + * @member {module:model/ExecuteConfigurationActionResult.RedirectTargetEnum} RedirectTarget + */ +ExecuteConfigurationActionResult.prototype['RedirectTarget'] = undefined; + + + + + +/** + * Allowed values for the RedirectTarget property. + * @enum {String} + * @readonly + */ +ExecuteConfigurationActionResult['RedirectTargetEnum'] = { + + /** + * value: "Default" + * @const + */ + "Default": "Default", + + /** + * value: "NewWindow" + * @const + */ + "NewWindow": "NewWindow", + + /** + * value: "Popup" + * @const + */ + "Popup": "Popup" +}; + + + +export default ExecuteConfigurationActionResult; + diff --git a/src/model/ExternalStoreAuditLog.js b/src/model/ExternalStoreAuditLog.js new file mode 100644 index 00000000..84e1bce4 --- /dev/null +++ b/src/model/ExternalStoreAuditLog.js @@ -0,0 +1,200 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AuditLogFieldChangeInformation from './AuditLogFieldChangeInformation'; + +/** + * The ExternalStoreAuditLog model module. + * @module model/ExternalStoreAuditLog + * @version 1.0.0 + */ +class ExternalStoreAuditLog { + /** + * Constructs a new ExternalStoreAuditLog. + * External event + * @alias module:model/ExternalStoreAuditLog + */ + constructor() { + + ExternalStoreAuditLog.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ExternalStoreAuditLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExternalStoreAuditLog} obj Optional instance to populate. + * @return {module:model/ExternalStoreAuditLog} The populated ExternalStoreAuditLog instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ExternalStoreAuditLog(); + + if (data.hasOwnProperty('ExternalCreateTime')) { + obj['ExternalCreateTime'] = ApiClient.convertToType(data['ExternalCreateTime'], 'Date'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Source')) { + obj['Source'] = ApiClient.convertToType(data['Source'], 'String'); + } + if (data.hasOwnProperty('Version')) { + obj['Version'] = ApiClient.convertToType(data['Version'], 'String'); + } + if (data.hasOwnProperty('DescriptionFormat')) { + obj['DescriptionFormat'] = ApiClient.convertToType(data['DescriptionFormat'], 'String'); + } + if (data.hasOwnProperty('DescriptionFields')) { + obj['DescriptionFields'] = ApiClient.convertToType(data['DescriptionFields'], 'String'); + } + if (data.hasOwnProperty('DescriptionId')) { + obj['DescriptionId'] = ApiClient.convertToType(data['DescriptionId'], 'String'); + } + if (data.hasOwnProperty('Ref1')) { + obj['Ref1'] = ApiClient.convertToType(data['Ref1'], 'String'); + } + if (data.hasOwnProperty('Ref2')) { + obj['Ref2'] = ApiClient.convertToType(data['Ref2'], 'String'); + } + if (data.hasOwnProperty('Ref3')) { + obj['Ref3'] = ApiClient.convertToType(data['Ref3'], 'String'); + } + if (data.hasOwnProperty('Ref4')) { + obj['Ref4'] = ApiClient.convertToType(data['Ref4'], 'String'); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('Tags')) { + obj['Tags'] = ApiClient.convertToType(data['Tags'], ['String']); + } + if (data.hasOwnProperty('FieldChanges')) { + obj['FieldChanges'] = ApiClient.convertToType(data['FieldChanges'], [AuditLogFieldChangeInformation]); + } + } + return obj; + } + + +} + +/** + * The time of creation of the event + * @member {Date} ExternalCreateTime + */ +ExternalStoreAuditLog.prototype['ExternalCreateTime'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +ExternalStoreAuditLog.prototype['StoreId'] = undefined; + +/** + * Description + * @member {String} Description + */ +ExternalStoreAuditLog.prototype['Description'] = undefined; + +/** + * Identifies the source of the log + * @member {String} Source + */ +ExternalStoreAuditLog.prototype['Source'] = undefined; + +/** + * Identifies the version of the {Flipdish.PublicModels.V1.AuditLogs.ExternalStoreAuditLog.Source} + * @member {String} Version + */ +ExternalStoreAuditLog.prototype['Version'] = undefined; + +/** + * Description with format placeholders + * @member {String} DescriptionFormat + */ +ExternalStoreAuditLog.prototype['DescriptionFormat'] = undefined; + +/** + * Description with format placeholders + * @member {String} DescriptionFields + */ +ExternalStoreAuditLog.prototype['DescriptionFields'] = undefined; + +/** + * Description + * @member {String} DescriptionId + */ +ExternalStoreAuditLog.prototype['DescriptionId'] = undefined; + +/** + * Ref (reference field) + * @member {String} Ref1 + */ +ExternalStoreAuditLog.prototype['Ref1'] = undefined; + +/** + * Ref2 (reference field) + * @member {String} Ref2 + */ +ExternalStoreAuditLog.prototype['Ref2'] = undefined; + +/** + * Ref3 (reference field) + * @member {String} Ref3 + */ +ExternalStoreAuditLog.prototype['Ref3'] = undefined; + +/** + * Ref4 (reference field) + * @member {String} Ref4 + */ +ExternalStoreAuditLog.prototype['Ref4'] = undefined; + +/** + * Order Id + * @member {Number} OrderId + */ +ExternalStoreAuditLog.prototype['OrderId'] = undefined; + +/** + * Tags + * @member {Array.} Tags + */ +ExternalStoreAuditLog.prototype['Tags'] = undefined; + +/** + * Field changes list + * @member {Array.} FieldChanges + */ +ExternalStoreAuditLog.prototype['FieldChanges'] = undefined; + + + + + + +export default ExternalStoreAuditLog; + diff --git a/src/model/ExternalStoreEvent.js b/src/model/ExternalStoreEvent.js new file mode 100644 index 00000000..af256f92 --- /dev/null +++ b/src/model/ExternalStoreEvent.js @@ -0,0 +1,245 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FieldChangeInformation from './FieldChangeInformation'; +import UserEventInfo from './UserEventInfo'; + +/** + * The ExternalStoreEvent model module. + * @module model/ExternalStoreEvent + * @version 1.0.0 + */ +class ExternalStoreEvent { + /** + * Constructs a new ExternalStoreEvent. + * External event + * @alias module:model/ExternalStoreEvent + */ + constructor() { + + ExternalStoreEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ExternalStoreEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExternalStoreEvent} obj Optional instance to populate. + * @return {module:model/ExternalStoreEvent} The populated ExternalStoreEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ExternalStoreEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('DescriptionFormat')) { + obj['DescriptionFormat'] = ApiClient.convertToType(data['DescriptionFormat'], 'String'); + } + if (data.hasOwnProperty('DescriptionFields')) { + obj['DescriptionFields'] = ApiClient.convertToType(data['DescriptionFields'], 'String'); + } + if (data.hasOwnProperty('DescriptionId')) { + obj['DescriptionId'] = ApiClient.convertToType(data['DescriptionId'], 'String'); + } + if (data.hasOwnProperty('Ref1')) { + obj['Ref1'] = ApiClient.convertToType(data['Ref1'], 'String'); + } + if (data.hasOwnProperty('Ref2')) { + obj['Ref2'] = ApiClient.convertToType(data['Ref2'], 'String'); + } + if (data.hasOwnProperty('Ref3')) { + obj['Ref3'] = ApiClient.convertToType(data['Ref3'], 'String'); + } + if (data.hasOwnProperty('Ref4')) { + obj['Ref4'] = ApiClient.convertToType(data['Ref4'], 'String'); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('Tags')) { + obj['Tags'] = ApiClient.convertToType(data['Tags'], ['String']); + } + if (data.hasOwnProperty('FieldChanges')) { + obj['FieldChanges'] = ApiClient.convertToType(data['FieldChanges'], [FieldChangeInformation]); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +ExternalStoreEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +ExternalStoreEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +ExternalStoreEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +ExternalStoreEvent.prototype['Description'] = undefined; + +/** + * Description with format placeholders + * @member {String} DescriptionFormat + */ +ExternalStoreEvent.prototype['DescriptionFormat'] = undefined; + +/** + * Description with format placeholders + * @member {String} DescriptionFields + */ +ExternalStoreEvent.prototype['DescriptionFields'] = undefined; + +/** + * Description + * @member {String} DescriptionId + */ +ExternalStoreEvent.prototype['DescriptionId'] = undefined; + +/** + * Ref (reference field) + * @member {String} Ref1 + */ +ExternalStoreEvent.prototype['Ref1'] = undefined; + +/** + * Ref2 (reference field) + * @member {String} Ref2 + */ +ExternalStoreEvent.prototype['Ref2'] = undefined; + +/** + * Ref3 (reference field) + * @member {String} Ref3 + */ +ExternalStoreEvent.prototype['Ref3'] = undefined; + +/** + * Ref4 (reference field) + * @member {String} Ref4 + */ +ExternalStoreEvent.prototype['Ref4'] = undefined; + +/** + * Order Id + * @member {Number} OrderId + */ +ExternalStoreEvent.prototype['OrderId'] = undefined; + +/** + * Tags + * @member {Array.} Tags + */ +ExternalStoreEvent.prototype['Tags'] = undefined; + +/** + * Field changes list + * @member {Array.} FieldChanges + */ +ExternalStoreEvent.prototype['FieldChanges'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +ExternalStoreEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +ExternalStoreEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +ExternalStoreEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +ExternalStoreEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +ExternalStoreEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +ExternalStoreEvent.prototype['IpAddress'] = undefined; + + + + + + +export default ExternalStoreEvent; + diff --git a/src/model/FeeSummary.js b/src/model/FeeSummary.js new file mode 100644 index 00000000..837dc3f2 --- /dev/null +++ b/src/model/FeeSummary.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FeeSummary model module. + * @module model/FeeSummary + * @version 1.0.0 + */ +class FeeSummary { + /** + * Constructs a new FeeSummary. + * Fee Summary + * @alias module:model/FeeSummary + */ + constructor() { + + FeeSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FeeSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FeeSummary} obj Optional instance to populate. + * @return {module:model/FeeSummary} The populated FeeSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FeeSummary(); + + if (data.hasOwnProperty('FeeAmount')) { + obj['FeeAmount'] = ApiClient.convertToType(data['FeeAmount'], 'Number'); + } + if (data.hasOwnProperty('PercentageRate')) { + obj['PercentageRate'] = ApiClient.convertToType(data['PercentageRate'], 'Number'); + } + if (data.hasOwnProperty('PerTransactionFee')) { + obj['PerTransactionFee'] = ApiClient.convertToType(data['PerTransactionFee'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Fee amount + * @member {Number} FeeAmount + */ +FeeSummary.prototype['FeeAmount'] = undefined; + +/** + * Percentage rate + * @member {Number} PercentageRate + */ +FeeSummary.prototype['PercentageRate'] = undefined; + +/** + * Per transaction fee + * @member {Number} PerTransactionFee + */ +FeeSummary.prototype['PerTransactionFee'] = undefined; + + + + + + +export default FeeSummary; + diff --git a/src/model/Field.js b/src/model/Field.js new file mode 100644 index 00000000..7d691c06 --- /dev/null +++ b/src/model/Field.js @@ -0,0 +1,223 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ValidValue from './ValidValue'; + +/** + * The Field model module. + * @module model/Field + * @version 1.0.0 + */ +class Field { + /** + * Constructs a new Field. + * @alias module:model/Field + * @param Name {String} + * @param Description {String} + * @param Key {String} + * @param Position {Number} + * @param FieldType {module:model/Field.FieldTypeEnum} + */ + constructor(Name, Description, Key, Position, FieldType) { + + Field.initialize(this, Name, Description, Key, Position, FieldType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Name, Description, Key, Position, FieldType) { + obj['Name'] = Name; + obj['Description'] = Description; + obj['Key'] = Key; + obj['Position'] = Position; + obj['FieldType'] = FieldType; + } + + /** + * Constructs a Field from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Field} obj Optional instance to populate. + * @return {module:model/Field} The populated Field instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Field(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('Tooltip')) { + obj['Tooltip'] = ApiClient.convertToType(data['Tooltip'], 'String'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('DefaultValue')) { + obj['DefaultValue'] = ApiClient.convertToType(data['DefaultValue'], 'String'); + } + if (data.hasOwnProperty('ValidValues')) { + obj['ValidValues'] = ApiClient.convertToType(data['ValidValues'], [ValidValue]); + } + if (data.hasOwnProperty('ValidationRegex')) { + obj['ValidationRegex'] = ApiClient.convertToType(data['ValidationRegex'], 'String'); + } + if (data.hasOwnProperty('FieldType')) { + obj['FieldType'] = ApiClient.convertToType(data['FieldType'], 'String'); + } + if (data.hasOwnProperty('IsFlipdishRestricted')) { + obj['IsFlipdishRestricted'] = ApiClient.convertToType(data['IsFlipdishRestricted'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +Field.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +Field.prototype['Description'] = undefined; + +/** + * @member {String} Key + */ +Field.prototype['Key'] = undefined; + +/** + * @member {String} Tooltip + */ +Field.prototype['Tooltip'] = undefined; + +/** + * @member {Number} Position + */ +Field.prototype['Position'] = undefined; + +/** + * @member {String} DefaultValue + */ +Field.prototype['DefaultValue'] = undefined; + +/** + * @member {Array.} ValidValues + */ +Field.prototype['ValidValues'] = undefined; + +/** + * @member {String} ValidationRegex + */ +Field.prototype['ValidationRegex'] = undefined; + +/** + * @member {module:model/Field.FieldTypeEnum} FieldType + */ +Field.prototype['FieldType'] = undefined; + +/** + * @member {Boolean} IsFlipdishRestricted + */ +Field.prototype['IsFlipdishRestricted'] = undefined; + + + + + +/** + * Allowed values for the FieldType property. + * @enum {String} + * @readonly + */ +Field['FieldTypeEnum'] = { + + /** + * value: "Text" + * @const + */ + "Text": "Text", + + /** + * value: "TextArea" + * @const + */ + "TextArea": "TextArea", + + /** + * value: "Integer" + * @const + */ + "Integer": "Integer", + + /** + * value: "Decimal" + * @const + */ + "Decimal": "Decimal", + + /** + * value: "Date" + * @const + */ + "Date": "Date", + + /** + * value: "DateTime" + * @const + */ + "DateTime": "DateTime", + + /** + * value: "Time" + * @const + */ + "Time": "Time", + + /** + * value: "Select" + * @const + */ + "Select": "Select", + + /** + * value: "Boolean" + * @const + */ + "Boolean": "Boolean", + + /** + * value: "ActionButton" + * @const + */ + "ActionButton": "ActionButton" +}; + + + +export default Field; + diff --git a/src/model/FieldChangeInformation.js b/src/model/FieldChangeInformation.js new file mode 100644 index 00000000..32e645de --- /dev/null +++ b/src/model/FieldChangeInformation.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FieldChangeInformation model module. + * @module model/FieldChangeInformation + * @version 1.0.0 + */ +class FieldChangeInformation { + /** + * Constructs a new FieldChangeInformation. + * Change information for a field + * @alias module:model/FieldChangeInformation + */ + constructor() { + + FieldChangeInformation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FieldChangeInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FieldChangeInformation} obj Optional instance to populate. + * @return {module:model/FieldChangeInformation} The populated FieldChangeInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FieldChangeInformation(); + + if (data.hasOwnProperty('Path')) { + obj['Path'] = ApiClient.convertToType(data['Path'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('OldValue')) { + obj['OldValue'] = ApiClient.convertToType(data['OldValue'], 'String'); + } + if (data.hasOwnProperty('NewValue')) { + obj['NewValue'] = ApiClient.convertToType(data['NewValue'], 'String'); + } + } + return obj; + } + + +} + +/** + * Path (hierarchy) + * @member {String} Path + */ +FieldChangeInformation.prototype['Path'] = undefined; + +/** + * Name of field + * @member {String} Name + */ +FieldChangeInformation.prototype['Name'] = undefined; + +/** + * Key (code) of field + * @member {String} Key + */ +FieldChangeInformation.prototype['Key'] = undefined; + +/** + * Old value + * @member {String} OldValue + */ +FieldChangeInformation.prototype['OldValue'] = undefined; + +/** + * New value + * @member {String} NewValue + */ +FieldChangeInformation.prototype['NewValue'] = undefined; + + + + + + +export default FieldChangeInformation; + diff --git a/src/model/FieldGroup.js b/src/model/FieldGroup.js new file mode 100644 index 00000000..c4832746 --- /dev/null +++ b/src/model/FieldGroup.js @@ -0,0 +1,108 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Field from './Field'; + +/** + * The FieldGroup model module. + * @module model/FieldGroup + * @version 1.0.0 + */ +class FieldGroup { + /** + * Constructs a new FieldGroup. + * @alias module:model/FieldGroup + * @param Name {String} + * @param Position {Number} + */ + constructor(Name, Position) { + + FieldGroup.initialize(this, Name, Position); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Name, Position) { + obj['Name'] = Name; + obj['Position'] = Position; + } + + /** + * Constructs a FieldGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FieldGroup} obj Optional instance to populate. + * @return {module:model/FieldGroup} The populated FieldGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FieldGroup(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Tooltip')) { + obj['Tooltip'] = ApiClient.convertToType(data['Tooltip'], 'String'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('Fields')) { + obj['Fields'] = ApiClient.convertToType(data['Fields'], [Field]); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +FieldGroup.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +FieldGroup.prototype['Description'] = undefined; + +/** + * @member {String} Tooltip + */ +FieldGroup.prototype['Tooltip'] = undefined; + +/** + * @member {Number} Position + */ +FieldGroup.prototype['Position'] = undefined; + +/** + * @member {Array.} Fields + */ +FieldGroup.prototype['Fields'] = undefined; + + + + + + +export default FieldGroup; + diff --git a/src/model/FileCreationResult.js b/src/model/FileCreationResult.js new file mode 100644 index 00000000..6c851d18 --- /dev/null +++ b/src/model/FileCreationResult.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FileCreationResult model module. + * @module model/FileCreationResult + * @version 1.0.0 + */ +class FileCreationResult { + /** + * Constructs a new FileCreationResult. + * @alias module:model/FileCreationResult + */ + constructor() { + + FileCreationResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FileCreationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FileCreationResult} obj Optional instance to populate. + * @return {module:model/FileCreationResult} The populated FileCreationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FileCreationResult(); + + if (data.hasOwnProperty('FileId')) { + obj['FileId'] = ApiClient.convertToType(data['FileId'], 'String'); + } + if (data.hasOwnProperty('Location')) { + obj['Location'] = ApiClient.convertToType(data['Location'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} FileId + */ +FileCreationResult.prototype['FileId'] = undefined; + +/** + * @member {String} Location + */ +FileCreationResult.prototype['Location'] = undefined; + + + + + + +export default FileCreationResult; + diff --git a/src/model/FileDownloadResult.js b/src/model/FileDownloadResult.js new file mode 100644 index 00000000..764f5a3c --- /dev/null +++ b/src/model/FileDownloadResult.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FileDownloadResult model module. + * @module model/FileDownloadResult + * @version 1.0.0 + */ +class FileDownloadResult { + /** + * Constructs a new FileDownloadResult. + * File Download Result + * @alias module:model/FileDownloadResult + */ + constructor() { + + FileDownloadResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FileDownloadResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FileDownloadResult} obj Optional instance to populate. + * @return {module:model/FileDownloadResult} The populated FileDownloadResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FileDownloadResult(); + + if (data.hasOwnProperty('FileUrl')) { + obj['FileUrl'] = ApiClient.convertToType(data['FileUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * URL of the file + * @member {String} FileUrl + */ +FileDownloadResult.prototype['FileUrl'] = undefined; + + + + + + +export default FileDownloadResult; + diff --git a/src/model/FirebaseApp.js b/src/model/FirebaseApp.js new file mode 100644 index 00000000..b56804d2 --- /dev/null +++ b/src/model/FirebaseApp.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FirebaseApp model module. + * @module model/FirebaseApp + * @version 1.0.0 + */ +class FirebaseApp { + /** + * Constructs a new FirebaseApp. + * @alias module:model/FirebaseApp + */ + constructor() { + + FirebaseApp.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FirebaseApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FirebaseApp} obj Optional instance to populate. + * @return {module:model/FirebaseApp} The populated FirebaseApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FirebaseApp(); + + if (data.hasOwnProperty('WhitelabelId')) { + obj['WhitelabelId'] = ApiClient.convertToType(data['WhitelabelId'], 'Number'); + } + if (data.hasOwnProperty('PackageId')) { + obj['PackageId'] = ApiClient.convertToType(data['PackageId'], 'String'); + } + if (data.hasOwnProperty('FirebaseAppId')) { + obj['FirebaseAppId'] = ApiClient.convertToType(data['FirebaseAppId'], 'String'); + } + if (data.hasOwnProperty('FirebaseProjectId')) { + obj['FirebaseProjectId'] = ApiClient.convertToType(data['FirebaseProjectId'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} WhitelabelId + */ +FirebaseApp.prototype['WhitelabelId'] = undefined; + +/** + * @member {String} PackageId + */ +FirebaseApp.prototype['PackageId'] = undefined; + +/** + * @member {String} FirebaseAppId + */ +FirebaseApp.prototype['FirebaseAppId'] = undefined; + +/** + * @member {String} FirebaseProjectId + */ +FirebaseApp.prototype['FirebaseProjectId'] = undefined; + + + + + + +export default FirebaseApp; + diff --git a/src/model/FlipdishEventBase.js b/src/model/FlipdishEventBase.js new file mode 100644 index 00000000..9ce226d4 --- /dev/null +++ b/src/model/FlipdishEventBase.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FlipdishEventBase model module. + * @module model/FlipdishEventBase + * @version 1.0.0 + */ +class FlipdishEventBase { + /** + * Constructs a new FlipdishEventBase. + * Base Event + * @alias module:model/FlipdishEventBase + */ + constructor() { + + FlipdishEventBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FlipdishEventBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FlipdishEventBase} obj Optional instance to populate. + * @return {module:model/FlipdishEventBase} The populated FlipdishEventBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FlipdishEventBase(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +FlipdishEventBase.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +FlipdishEventBase.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +FlipdishEventBase.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +FlipdishEventBase.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +FlipdishEventBase.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +FlipdishEventBase.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +FlipdishEventBase.prototype['IpAddress'] = undefined; + + + + + + +export default FlipdishEventBase; + diff --git a/src/model/FlipdishFeesDetails.js b/src/model/FlipdishFeesDetails.js new file mode 100644 index 00000000..98ff70f1 --- /dev/null +++ b/src/model/FlipdishFeesDetails.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FlipdishFeesDetails model module. + * @module model/FlipdishFeesDetails + * @version 1.0.0 + */ +class FlipdishFeesDetails { + /** + * Constructs a new FlipdishFeesDetails. + * Fees breakdown + * @alias module:model/FlipdishFeesDetails + */ + constructor() { + + FlipdishFeesDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FlipdishFeesDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FlipdishFeesDetails} obj Optional instance to populate. + * @return {module:model/FlipdishFeesDetails} The populated FlipdishFeesDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FlipdishFeesDetails(); + + if (data.hasOwnProperty('OnlineSalesFees')) { + obj['OnlineSalesFees'] = ApiClient.convertToType(data['OnlineSalesFees'], 'Number'); + } + if (data.hasOwnProperty('CashSalesFees')) { + obj['CashSalesFees'] = ApiClient.convertToType(data['CashSalesFees'], 'Number'); + } + if (data.hasOwnProperty('PosSalesFees')) { + obj['PosSalesFees'] = ApiClient.convertToType(data['PosSalesFees'], 'Number'); + } + if (data.hasOwnProperty('TotalSalesFees')) { + obj['TotalSalesFees'] = ApiClient.convertToType(data['TotalSalesFees'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesRefundedFees')) { + obj['OnlineSalesRefundedFees'] = ApiClient.convertToType(data['OnlineSalesRefundedFees'], 'Number'); + } + if (data.hasOwnProperty('CashSalesRefundedFees')) { + obj['CashSalesRefundedFees'] = ApiClient.convertToType(data['CashSalesRefundedFees'], 'Number'); + } + if (data.hasOwnProperty('PosSalesRefundedFees')) { + obj['PosSalesRefundedFees'] = ApiClient.convertToType(data['PosSalesRefundedFees'], 'Number'); + } + if (data.hasOwnProperty('SalesFeesVat')) { + obj['SalesFeesVat'] = ApiClient.convertToType(data['SalesFeesVat'], 'Number'); + } + if (data.hasOwnProperty('TotalFees')) { + obj['TotalFees'] = ApiClient.convertToType(data['TotalFees'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Fees on online sales + * @member {Number} OnlineSalesFees + */ +FlipdishFeesDetails.prototype['OnlineSalesFees'] = undefined; + +/** + * Fees on cash sales + * @member {Number} CashSalesFees + */ +FlipdishFeesDetails.prototype['CashSalesFees'] = undefined; + +/** + * Fees of POS sales + * @member {Number} PosSalesFees + */ +FlipdishFeesDetails.prototype['PosSalesFees'] = undefined; + +/** + * Total online and cash sales + * @member {Number} TotalSalesFees + */ +FlipdishFeesDetails.prototype['TotalSalesFees'] = undefined; + +/** + * Fees on refunds for online sales + * @member {Number} OnlineSalesRefundedFees + */ +FlipdishFeesDetails.prototype['OnlineSalesRefundedFees'] = undefined; + +/** + * Fees on refunds for cash sales + * @member {Number} CashSalesRefundedFees + */ +FlipdishFeesDetails.prototype['CashSalesRefundedFees'] = undefined; + +/** + * Fees on refunds for POS sales + * @member {Number} PosSalesRefundedFees + */ +FlipdishFeesDetails.prototype['PosSalesRefundedFees'] = undefined; + +/** + * VAT on sales fees + * @member {Number} SalesFeesVat + */ +FlipdishFeesDetails.prototype['SalesFeesVat'] = undefined; + +/** + * Total fees + * @member {Number} TotalFees + */ +FlipdishFeesDetails.prototype['TotalFees'] = undefined; + + + + + + +export default FlipdishFeesDetails; + diff --git a/src/model/FulfillentStatusActionItem.js b/src/model/FulfillentStatusActionItem.js new file mode 100644 index 00000000..f53cb50c --- /dev/null +++ b/src/model/FulfillentStatusActionItem.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FulfillentStatusActionItem model module. + * @module model/FulfillentStatusActionItem + * @version 1.0.0 + */ +class FulfillentStatusActionItem { + /** + * Constructs a new FulfillentStatusActionItem. + * Action item for next fulfillment status selector + * @alias module:model/FulfillentStatusActionItem + */ + constructor() { + + FulfillentStatusActionItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FulfillentStatusActionItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FulfillentStatusActionItem} obj Optional instance to populate. + * @return {module:model/FulfillentStatusActionItem} The populated FulfillentStatusActionItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FulfillentStatusActionItem(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Status Id + * @member {String} Id + */ +FulfillentStatusActionItem.prototype['Id'] = undefined; + +/** + * Status Name + * @member {String} Name + */ +FulfillentStatusActionItem.prototype['Name'] = undefined; + + + + + + +export default FulfillentStatusActionItem; + diff --git a/src/model/FulfillmentStatesConfiguration.js b/src/model/FulfillmentStatesConfiguration.js new file mode 100644 index 00000000..fef9bd7f --- /dev/null +++ b/src/model/FulfillmentStatesConfiguration.js @@ -0,0 +1,155 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FulfillmentStatusConfigurationItem from './FulfillmentStatusConfigurationItem'; + +/** + * The FulfillmentStatesConfiguration model module. + * @module model/FulfillmentStatesConfiguration + * @version 1.0.0 + */ +class FulfillmentStatesConfiguration { + /** + * Constructs a new FulfillmentStatesConfiguration. + * Fulfillment States Configuration + * @alias module:model/FulfillmentStatesConfiguration + */ + constructor() { + + FulfillmentStatesConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FulfillmentStatesConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FulfillmentStatesConfiguration} obj Optional instance to populate. + * @return {module:model/FulfillmentStatesConfiguration} The populated FulfillmentStatesConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FulfillmentStatesConfiguration(); + + if (data.hasOwnProperty('States')) { + obj['States'] = ApiClient.convertToType(data['States'], [FulfillmentStatusConfigurationItem]); + } + if (data.hasOwnProperty('AutomaticTransitionsEnabled')) { + obj['AutomaticTransitionsEnabled'] = ApiClient.convertToType(data['AutomaticTransitionsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('ConfigurationUid')) { + obj['ConfigurationUid'] = ApiClient.convertToType(data['ConfigurationUid'], 'String'); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * States + * @member {Array.} States + */ +FulfillmentStatesConfiguration.prototype['States'] = undefined; + +/** + * Enable automatic transitions + * @member {Boolean} AutomaticTransitionsEnabled + */ +FulfillmentStatesConfiguration.prototype['AutomaticTransitionsEnabled'] = undefined; + +/** + * AppId + * @member {String} AppId + */ +FulfillmentStatesConfiguration.prototype['AppId'] = undefined; + +/** + * Configuration Uid + * @member {String} ConfigurationUid + */ +FulfillmentStatesConfiguration.prototype['ConfigurationUid'] = undefined; + +/** + * Store Selector Type + * @member {module:model/FulfillmentStatesConfiguration.StoreSelectorTypeEnum} StoreSelectorType + */ +FulfillmentStatesConfiguration.prototype['StoreSelectorType'] = undefined; + +/** + * Store Ids + * @member {Array.} StoreIds + */ +FulfillmentStatesConfiguration.prototype['StoreIds'] = undefined; + +/** + * Name + * @member {String} Name + */ +FulfillmentStatesConfiguration.prototype['Name'] = undefined; + + + + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +FulfillmentStatesConfiguration['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + + +export default FulfillmentStatesConfiguration; + diff --git a/src/model/FulfillmentStatesConfigurationSummary.js b/src/model/FulfillmentStatesConfigurationSummary.js new file mode 100644 index 00000000..2b6ab4a9 --- /dev/null +++ b/src/model/FulfillmentStatesConfigurationSummary.js @@ -0,0 +1,139 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FulfillmentStatesConfiguredStore from './FulfillmentStatesConfiguredStore'; + +/** + * The FulfillmentStatesConfigurationSummary model module. + * @module model/FulfillmentStatesConfigurationSummary + * @version 1.0.0 + */ +class FulfillmentStatesConfigurationSummary { + /** + * Constructs a new FulfillmentStatesConfigurationSummary. + * Fulfillment configuration header information + * @alias module:model/FulfillmentStatesConfigurationSummary + * @param AppId {String} AppId + */ + constructor(AppId) { + + FulfillmentStatesConfigurationSummary.initialize(this, AppId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, AppId) { + obj['AppId'] = AppId; + } + + /** + * Constructs a FulfillmentStatesConfigurationSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FulfillmentStatesConfigurationSummary} obj Optional instance to populate. + * @return {module:model/FulfillmentStatesConfigurationSummary} The populated FulfillmentStatesConfigurationSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FulfillmentStatesConfigurationSummary(); + + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('ConfigurationUid')) { + obj['ConfigurationUid'] = ApiClient.convertToType(data['ConfigurationUid'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], [FulfillmentStatesConfiguredStore]); + } + } + return obj; + } + + +} + +/** + * AppId + * @member {String} AppId + */ +FulfillmentStatesConfigurationSummary.prototype['AppId'] = undefined; + +/** + * Configuration Uid + * @member {String} ConfigurationUid + */ +FulfillmentStatesConfigurationSummary.prototype['ConfigurationUid'] = undefined; + +/** + * Name + * @member {String} Name + */ +FulfillmentStatesConfigurationSummary.prototype['Name'] = undefined; + +/** + * Store selector type + * @member {module:model/FulfillmentStatesConfigurationSummary.StoreSelectorTypeEnum} StoreSelectorType + */ +FulfillmentStatesConfigurationSummary.prototype['StoreSelectorType'] = undefined; + +/** + * Stores + * @member {Array.} Stores + */ +FulfillmentStatesConfigurationSummary.prototype['Stores'] = undefined; + + + + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +FulfillmentStatesConfigurationSummary['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + + +export default FulfillmentStatesConfigurationSummary; + diff --git a/src/model/FulfillmentStatesConfiguredStore.js b/src/model/FulfillmentStatesConfiguredStore.js new file mode 100644 index 00000000..f158b039 --- /dev/null +++ b/src/model/FulfillmentStatesConfiguredStore.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FulfillmentStatesConfiguredStore model module. + * @module model/FulfillmentStatesConfiguredStore + * @version 1.0.0 + */ +class FulfillmentStatesConfiguredStore { + /** + * Constructs a new FulfillmentStatesConfiguredStore. + * Configured stores + * @alias module:model/FulfillmentStatesConfiguredStore + */ + constructor() { + + FulfillmentStatesConfiguredStore.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FulfillmentStatesConfiguredStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FulfillmentStatesConfiguredStore} obj Optional instance to populate. + * @return {module:model/FulfillmentStatesConfiguredStore} The populated FulfillmentStatesConfiguredStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FulfillmentStatesConfiguredStore(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Store id + * @member {Number} StoreId + */ +FulfillmentStatesConfiguredStore.prototype['StoreId'] = undefined; + +/** + * Name of store + * @member {String} Name + */ +FulfillmentStatesConfiguredStore.prototype['Name'] = undefined; + + + + + + +export default FulfillmentStatesConfiguredStore; + diff --git a/src/model/FulfillmentStatusConfigurationItem.js b/src/model/FulfillmentStatusConfigurationItem.js new file mode 100644 index 00000000..119cc27b --- /dev/null +++ b/src/model/FulfillmentStatusConfigurationItem.js @@ -0,0 +1,260 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NextStatusWithOrderType from './NextStatusWithOrderType'; + +/** + * The FulfillmentStatusConfigurationItem model module. + * @module model/FulfillmentStatusConfigurationItem + * @version 1.0.0 + */ +class FulfillmentStatusConfigurationItem { + /** + * Constructs a new FulfillmentStatusConfigurationItem. + * Fulfillment Status Item + * @alias module:model/FulfillmentStatusConfigurationItem + */ + constructor() { + + FulfillmentStatusConfigurationItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FulfillmentStatusConfigurationItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FulfillmentStatusConfigurationItem} obj Optional instance to populate. + * @return {module:model/FulfillmentStatusConfigurationItem} The populated FulfillmentStatusConfigurationItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FulfillmentStatusConfigurationItem(); + + if (data.hasOwnProperty('StatusId')) { + obj['StatusId'] = ApiClient.convertToType(data['StatusId'], 'String'); + } + if (data.hasOwnProperty('StatusName')) { + obj['StatusName'] = ApiClient.convertToType(data['StatusName'], 'String'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayName')) { + obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); + } + if (data.hasOwnProperty('Icon')) { + obj['Icon'] = ApiClient.convertToType(data['Icon'], 'String'); + } + if (data.hasOwnProperty('PublicDescription')) { + obj['PublicDescription'] = ApiClient.convertToType(data['PublicDescription'], 'String'); + } + if (data.hasOwnProperty('Internal')) { + obj['Internal'] = ApiClient.convertToType(data['Internal'], 'Boolean'); + } + if (data.hasOwnProperty('NextStatuses')) { + obj['NextStatuses'] = ApiClient.convertToType(data['NextStatuses'], ['String']); + } + if (data.hasOwnProperty('DefaultNextStatus')) { + obj['DefaultNextStatus'] = ApiClient.convertToType(data['DefaultNextStatus'], [NextStatusWithOrderType]); + } + if (data.hasOwnProperty('ChangeType')) { + obj['ChangeType'] = ApiClient.convertToType(data['ChangeType'], 'String'); + } + if (data.hasOwnProperty('IncludeInReports')) { + obj['IncludeInReports'] = ApiClient.convertToType(data['IncludeInReports'], 'Boolean'); + } + if (data.hasOwnProperty('IsCustom')) { + obj['IsCustom'] = ApiClient.convertToType(data['IsCustom'], 'Boolean'); + } + if (data.hasOwnProperty('OrderTypes')) { + obj['OrderTypes'] = ApiClient.convertToType(data['OrderTypes'], ['String']); + } + if (data.hasOwnProperty('Communication')) { + obj['Communication'] = ApiClient.convertToType(data['Communication'], 'Boolean'); + } + if (data.hasOwnProperty('Image')) { + obj['Image'] = ApiClient.convertToType(data['Image'], 'String'); + } + } + return obj; + } + + +} + +/** + * Status Id (no whitespaces) + * @member {String} StatusId + */ +FulfillmentStatusConfigurationItem.prototype['StatusId'] = undefined; + +/** + * Status name + * @member {String} StatusName + */ +FulfillmentStatusConfigurationItem.prototype['StatusName'] = undefined; + +/** + * Is status enabled + * @member {Boolean} Enabled + */ +FulfillmentStatusConfigurationItem.prototype['Enabled'] = undefined; + +/** + * The short status string that is displayed to users in apps, portal. If empty then Order Status Name is displayed instead + * @member {String} DisplayName + */ +FulfillmentStatusConfigurationItem.prototype['DisplayName'] = undefined; + +/** + * Icon/Image that represents that status visual + * @member {String} Icon + */ +FulfillmentStatusConfigurationItem.prototype['Icon'] = undefined; + +/** + * A string which could be used in notification templates with a placeholder (SMS, email, push, web page with status) + * @member {String} PublicDescription + */ +FulfillmentStatusConfigurationItem.prototype['PublicDescription'] = undefined; + +/** + * Is internal state (internal states not shown to customers) + * @member {Boolean} Internal + */ +FulfillmentStatusConfigurationItem.prototype['Internal'] = undefined; + +/** + * list of statuses that this status can move to (can be back or forth) + * @member {Array.} NextStatuses + */ +FulfillmentStatusConfigurationItem.prototype['NextStatuses'] = undefined; + +/** + * The default next status (on a dropdown or quick button on terminal or portal) + * @member {Array.} DefaultNextStatus + */ +FulfillmentStatusConfigurationItem.prototype['DefaultNextStatus'] = undefined; + +/** + * How will state change (manually or automated, including timed) + * @member {module:model/FulfillmentStatusConfigurationItem.ChangeTypeEnum} ChangeType + */ +FulfillmentStatusConfigurationItem.prototype['ChangeType'] = undefined; + +/** + * Include in reports + * @member {Boolean} IncludeInReports + */ +FulfillmentStatusConfigurationItem.prototype['IncludeInReports'] = undefined; + +/** + * Is custom state. If not, then it's a system state + * @member {Boolean} IsCustom + */ +FulfillmentStatusConfigurationItem.prototype['IsCustom'] = undefined; + +/** + * If empty then applies to all ordertypes, otherwise a list of order types this state applies to + * @member {Array.} OrderTypes + */ +FulfillmentStatusConfigurationItem.prototype['OrderTypes'] = undefined; + +/** + * Whether state should fire off a notification to the customer + * @member {Boolean} Communication + */ +FulfillmentStatusConfigurationItem.prototype['Communication'] = undefined; + +/** + * Image (image filename, relative, not absolute URL) + * @member {String} Image + */ +FulfillmentStatusConfigurationItem.prototype['Image'] = undefined; + + + + + +/** + * Allowed values for the ChangeType property. + * @enum {String} + * @readonly + */ +FulfillmentStatusConfigurationItem['ChangeTypeEnum'] = { + + /** + * value: "Manual" + * @const + */ + "Manual": "Manual", + + /** + * value: "Automated" + * @const + */ + "Automated": "Automated", + + /** + * value: "Integrated" + * @const + */ + "Integrated": "Integrated" +}; + + +/** + * Allowed values for the OrderTypes property. + * @enum {String} + * @readonly + */ +FulfillmentStatusConfigurationItem['OrderTypesEnum'] = { + + /** + * value: "All" + * @const + */ + "All": "All", + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Collection" + * @const + */ + "Collection": "Collection", + + /** + * value: "DineIn" + * @const + */ + "DineIn": "DineIn" +}; + + + +export default FulfillmentStatusConfigurationItem; + diff --git a/src/model/GeoPointRequest.js b/src/model/GeoPointRequest.js new file mode 100644 index 00000000..584c9eb9 --- /dev/null +++ b/src/model/GeoPointRequest.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The GeoPointRequest model module. + * @module model/GeoPointRequest + * @version 1.0.0 + */ +class GeoPointRequest { + /** + * Constructs a new GeoPointRequest. + * Terminal location request + * @alias module:model/GeoPointRequest + */ + constructor() { + + GeoPointRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GeoPointRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GeoPointRequest} obj Optional instance to populate. + * @return {module:model/GeoPointRequest} The populated GeoPointRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GeoPointRequest(); + + if (data.hasOwnProperty('Latitude')) { + obj['Latitude'] = ApiClient.convertToType(data['Latitude'], 'Number'); + } + if (data.hasOwnProperty('Longitude')) { + obj['Longitude'] = ApiClient.convertToType(data['Longitude'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Kiosk device latitude + * @member {Number} Latitude + */ +GeoPointRequest.prototype['Latitude'] = undefined; + +/** + * Kiosk device longitude + * @member {Number} Longitude + */ +GeoPointRequest.prototype['Longitude'] = undefined; + + + + + + +export default GeoPointRequest; + diff --git a/src/model/GetReceiptByOrderIdQueryResponse.js b/src/model/GetReceiptByOrderIdQueryResponse.js new file mode 100644 index 00000000..c77217ef --- /dev/null +++ b/src/model/GetReceiptByOrderIdQueryResponse.js @@ -0,0 +1,129 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DepositReturnFeesSummary from './DepositReturnFeesSummary'; +import PreviousOrder from './PreviousOrder'; + +/** + * The GetReceiptByOrderIdQueryResponse model module. + * @module model/GetReceiptByOrderIdQueryResponse + * @version 1.0.0 + */ +class GetReceiptByOrderIdQueryResponse { + /** + * Constructs a new GetReceiptByOrderIdQueryResponse. + * @alias module:model/GetReceiptByOrderIdQueryResponse + */ + constructor() { + + GetReceiptByOrderIdQueryResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetReceiptByOrderIdQueryResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetReceiptByOrderIdQueryResponse} obj Optional instance to populate. + * @return {module:model/GetReceiptByOrderIdQueryResponse} The populated GetReceiptByOrderIdQueryResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetReceiptByOrderIdQueryResponse(); + + if (data.hasOwnProperty('PreviousOrder')) { + obj['PreviousOrder'] = PreviousOrder.constructFromObject(data['PreviousOrder']); + } + if (data.hasOwnProperty('DepositReturnFeesSummary')) { + obj['DepositReturnFeesSummary'] = ApiClient.convertToType(data['DepositReturnFeesSummary'], [DepositReturnFeesSummary]); + } + if (data.hasOwnProperty('TsRequestedForLocal')) { + obj['TsRequestedForLocal'] = ApiClient.convertToType(data['TsRequestedForLocal'], 'Date'); + } + if (data.hasOwnProperty('TsOrderPlacedLocal')) { + obj['TsOrderPlacedLocal'] = ApiClient.convertToType(data['TsOrderPlacedLocal'], 'Date'); + } + if (data.hasOwnProperty('LogoUrl')) { + obj['LogoUrl'] = ApiClient.convertToType(data['LogoUrl'], 'String'); + } + if (data.hasOwnProperty('Address')) { + obj['Address'] = ApiClient.convertToType(data['Address'], 'String'); + } + if (data.hasOwnProperty('VatNumber')) { + obj['VatNumber'] = ApiClient.convertToType(data['VatNumber'], 'String'); + } + if (data.hasOwnProperty('PaymentMethodDescription')) { + obj['PaymentMethodDescription'] = ApiClient.convertToType(data['PaymentMethodDescription'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PreviousOrder} PreviousOrder + */ +GetReceiptByOrderIdQueryResponse.prototype['PreviousOrder'] = undefined; + +/** + * @member {Array.} DepositReturnFeesSummary + */ +GetReceiptByOrderIdQueryResponse.prototype['DepositReturnFeesSummary'] = undefined; + +/** + * @member {Date} TsRequestedForLocal + */ +GetReceiptByOrderIdQueryResponse.prototype['TsRequestedForLocal'] = undefined; + +/** + * @member {Date} TsOrderPlacedLocal + */ +GetReceiptByOrderIdQueryResponse.prototype['TsOrderPlacedLocal'] = undefined; + +/** + * @member {String} LogoUrl + */ +GetReceiptByOrderIdQueryResponse.prototype['LogoUrl'] = undefined; + +/** + * @member {String} Address + */ +GetReceiptByOrderIdQueryResponse.prototype['Address'] = undefined; + +/** + * @member {String} VatNumber + */ +GetReceiptByOrderIdQueryResponse.prototype['VatNumber'] = undefined; + +/** + * @member {String} PaymentMethodDescription + */ +GetReceiptByOrderIdQueryResponse.prototype['PaymentMethodDescription'] = undefined; + + + + + + +export default GetReceiptByOrderIdQueryResponse; + diff --git a/src/model/GoogleAddress.js b/src/model/GoogleAddress.js new file mode 100644 index 00000000..ee6aa367 --- /dev/null +++ b/src/model/GoogleAddress.js @@ -0,0 +1,88 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import GoogleAddressResult from './GoogleAddressResult'; + +/** + * The GoogleAddress model module. + * @module model/GoogleAddress + * @version 1.0.0 + */ +class GoogleAddress { + /** + * Constructs a new GoogleAddress. + * @alias module:model/GoogleAddress + */ + constructor() { + + GoogleAddress.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GoogleAddress from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleAddress} obj Optional instance to populate. + * @return {module:model/GoogleAddress} The populated GoogleAddress instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleAddress(); + + if (data.hasOwnProperty('Results')) { + obj['Results'] = ApiClient.convertToType(data['Results'], [GoogleAddressResult]); + } + if (data.hasOwnProperty('Result')) { + obj['Result'] = GoogleAddressResult.constructFromObject(data['Result']); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} Results + */ +GoogleAddress.prototype['Results'] = undefined; + +/** + * @member {module:model/GoogleAddressResult} Result + */ +GoogleAddress.prototype['Result'] = undefined; + +/** + * @member {String} Status + */ +GoogleAddress.prototype['Status'] = undefined; + + + + + + +export default GoogleAddress; + diff --git a/src/model/GoogleAddressComponent.js b/src/model/GoogleAddressComponent.js new file mode 100644 index 00000000..a2d6a5e8 --- /dev/null +++ b/src/model/GoogleAddressComponent.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The GoogleAddressComponent model module. + * @module model/GoogleAddressComponent + * @version 1.0.0 + */ +class GoogleAddressComponent { + /** + * Constructs a new GoogleAddressComponent. + * @alias module:model/GoogleAddressComponent + */ + constructor() { + + GoogleAddressComponent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GoogleAddressComponent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleAddressComponent} obj Optional instance to populate. + * @return {module:model/GoogleAddressComponent} The populated GoogleAddressComponent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleAddressComponent(); + + if (data.hasOwnProperty('Long_name')) { + obj['Long_name'] = ApiClient.convertToType(data['Long_name'], 'String'); + } + if (data.hasOwnProperty('Short_name')) { + obj['Short_name'] = ApiClient.convertToType(data['Short_name'], 'String'); + } + if (data.hasOwnProperty('Types')) { + obj['Types'] = ApiClient.convertToType(data['Types'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} Long_name + */ +GoogleAddressComponent.prototype['Long_name'] = undefined; + +/** + * @member {String} Short_name + */ +GoogleAddressComponent.prototype['Short_name'] = undefined; + +/** + * @member {Array.} Types + */ +GoogleAddressComponent.prototype['Types'] = undefined; + + + + + + +export default GoogleAddressComponent; + diff --git a/src/model/GoogleAddressResult.js b/src/model/GoogleAddressResult.js new file mode 100644 index 00000000..06c60975 --- /dev/null +++ b/src/model/GoogleAddressResult.js @@ -0,0 +1,105 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import GoogleAddressComponent from './GoogleAddressComponent'; +import GoogleGeometry from './GoogleGeometry'; + +/** + * The GoogleAddressResult model module. + * @module model/GoogleAddressResult + * @version 1.0.0 + */ +class GoogleAddressResult { + /** + * Constructs a new GoogleAddressResult. + * @alias module:model/GoogleAddressResult + */ + constructor() { + + GoogleAddressResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GoogleAddressResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleAddressResult} obj Optional instance to populate. + * @return {module:model/GoogleAddressResult} The populated GoogleAddressResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleAddressResult(); + + if (data.hasOwnProperty('Address_components')) { + obj['Address_components'] = ApiClient.convertToType(data['Address_components'], [GoogleAddressComponent]); + } + if (data.hasOwnProperty('Formatted_address')) { + obj['Formatted_address'] = ApiClient.convertToType(data['Formatted_address'], 'String'); + } + if (data.hasOwnProperty('Geometry')) { + obj['Geometry'] = GoogleGeometry.constructFromObject(data['Geometry']); + } + if (data.hasOwnProperty('Place_id')) { + obj['Place_id'] = ApiClient.convertToType(data['Place_id'], 'String'); + } + if (data.hasOwnProperty('Types')) { + obj['Types'] = ApiClient.convertToType(data['Types'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Array.} Address_components + */ +GoogleAddressResult.prototype['Address_components'] = undefined; + +/** + * @member {String} Formatted_address + */ +GoogleAddressResult.prototype['Formatted_address'] = undefined; + +/** + * @member {module:model/GoogleGeometry} Geometry + */ +GoogleAddressResult.prototype['Geometry'] = undefined; + +/** + * @member {String} Place_id + */ +GoogleAddressResult.prototype['Place_id'] = undefined; + +/** + * @member {Array.} Types + */ +GoogleAddressResult.prototype['Types'] = undefined; + + + + + + +export default GoogleAddressResult; + diff --git a/src/model/GoogleCoordinates.js b/src/model/GoogleCoordinates.js new file mode 100644 index 00000000..620267db --- /dev/null +++ b/src/model/GoogleCoordinates.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The GoogleCoordinates model module. + * @module model/GoogleCoordinates + * @version 1.0.0 + */ +class GoogleCoordinates { + /** + * Constructs a new GoogleCoordinates. + * @alias module:model/GoogleCoordinates + */ + constructor() { + + GoogleCoordinates.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GoogleCoordinates from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleCoordinates} obj Optional instance to populate. + * @return {module:model/GoogleCoordinates} The populated GoogleCoordinates instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleCoordinates(); + + if (data.hasOwnProperty('Lat')) { + obj['Lat'] = ApiClient.convertToType(data['Lat'], 'Number'); + } + if (data.hasOwnProperty('Lng')) { + obj['Lng'] = ApiClient.convertToType(data['Lng'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} Lat + */ +GoogleCoordinates.prototype['Lat'] = undefined; + +/** + * @member {Number} Lng + */ +GoogleCoordinates.prototype['Lng'] = undefined; + + + + + + +export default GoogleCoordinates; + diff --git a/src/model/GoogleGeometry.js b/src/model/GoogleGeometry.js new file mode 100644 index 00000000..ecfce8b5 --- /dev/null +++ b/src/model/GoogleGeometry.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import GoogleLocation from './GoogleLocation'; +import GoogleViewport from './GoogleViewport'; + +/** + * The GoogleGeometry model module. + * @module model/GoogleGeometry + * @version 1.0.0 + */ +class GoogleGeometry { + /** + * Constructs a new GoogleGeometry. + * @alias module:model/GoogleGeometry + */ + constructor() { + + GoogleGeometry.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GoogleGeometry from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleGeometry} obj Optional instance to populate. + * @return {module:model/GoogleGeometry} The populated GoogleGeometry instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleGeometry(); + + if (data.hasOwnProperty('Location')) { + obj['Location'] = GoogleLocation.constructFromObject(data['Location']); + } + if (data.hasOwnProperty('Location_type')) { + obj['Location_type'] = ApiClient.convertToType(data['Location_type'], 'String'); + } + if (data.hasOwnProperty('Viewport')) { + obj['Viewport'] = GoogleViewport.constructFromObject(data['Viewport']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/GoogleLocation} Location + */ +GoogleGeometry.prototype['Location'] = undefined; + +/** + * @member {String} Location_type + */ +GoogleGeometry.prototype['Location_type'] = undefined; + +/** + * @member {module:model/GoogleViewport} Viewport + */ +GoogleGeometry.prototype['Viewport'] = undefined; + + + + + + +export default GoogleGeometry; + diff --git a/src/model/GoogleLocation.js b/src/model/GoogleLocation.js new file mode 100644 index 00000000..76a15612 --- /dev/null +++ b/src/model/GoogleLocation.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The GoogleLocation model module. + * @module model/GoogleLocation + * @version 1.0.0 + */ +class GoogleLocation { + /** + * Constructs a new GoogleLocation. + * @alias module:model/GoogleLocation + */ + constructor() { + + GoogleLocation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GoogleLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleLocation} obj Optional instance to populate. + * @return {module:model/GoogleLocation} The populated GoogleLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleLocation(); + + if (data.hasOwnProperty('Lat')) { + obj['Lat'] = ApiClient.convertToType(data['Lat'], 'Number'); + } + if (data.hasOwnProperty('Lng')) { + obj['Lng'] = ApiClient.convertToType(data['Lng'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} Lat + */ +GoogleLocation.prototype['Lat'] = undefined; + +/** + * @member {Number} Lng + */ +GoogleLocation.prototype['Lng'] = undefined; + + + + + + +export default GoogleLocation; + diff --git a/src/model/GoogleViewport.js b/src/model/GoogleViewport.js new file mode 100644 index 00000000..30dfef83 --- /dev/null +++ b/src/model/GoogleViewport.js @@ -0,0 +1,80 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import GoogleCoordinates from './GoogleCoordinates'; + +/** + * The GoogleViewport model module. + * @module model/GoogleViewport + * @version 1.0.0 + */ +class GoogleViewport { + /** + * Constructs a new GoogleViewport. + * @alias module:model/GoogleViewport + */ + constructor() { + + GoogleViewport.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GoogleViewport from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleViewport} obj Optional instance to populate. + * @return {module:model/GoogleViewport} The populated GoogleViewport instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleViewport(); + + if (data.hasOwnProperty('Northeast')) { + obj['Northeast'] = GoogleCoordinates.constructFromObject(data['Northeast']); + } + if (data.hasOwnProperty('Southwest')) { + obj['Southwest'] = GoogleCoordinates.constructFromObject(data['Southwest']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/GoogleCoordinates} Northeast + */ +GoogleViewport.prototype['Northeast'] = undefined; + +/** + * @member {module:model/GoogleCoordinates} Southwest + */ +GoogleViewport.prototype['Southwest'] = undefined; + + + + + + +export default GoogleViewport; + diff --git a/src/model/Group.js b/src/model/Group.js new file mode 100644 index 00000000..3c0de56a --- /dev/null +++ b/src/model/Group.js @@ -0,0 +1,195 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Metafield from './Metafield'; +import ProductReference from './ProductReference'; + +/** + * The Group model module. + * @module model/Group + * @version 1.0.0 + */ +class Group { + /** + * Constructs a new Group. + * CatalogGroup + * @alias module:model/Group + * @param GroupType {module:model/Group.GroupTypeEnum} Type of group (ModifierGroup, etc) + * @param Sku {String} Stock Keeping Unit (SKU) + * @param Name {String} Group name + */ + constructor(GroupType, Sku, Name) { + + Group.initialize(this, GroupType, Sku, Name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, GroupType, Sku, Name) { + obj['GroupType'] = GroupType; + obj['Sku'] = Sku; + obj['Name'] = Name; + } + + /** + * Constructs a Group from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Group} obj Optional instance to populate. + * @return {module:model/Group} The populated Group instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Group(); + + if (data.hasOwnProperty('CatalogGroupId')) { + obj['CatalogGroupId'] = ApiClient.convertToType(data['CatalogGroupId'], 'String'); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('IsArchived')) { + obj['IsArchived'] = ApiClient.convertToType(data['IsArchived'], 'Boolean'); + } + if (data.hasOwnProperty('MinSelectCount')) { + obj['MinSelectCount'] = ApiClient.convertToType(data['MinSelectCount'], 'Number'); + } + if (data.hasOwnProperty('MaxSelectCount')) { + obj['MaxSelectCount'] = ApiClient.convertToType(data['MaxSelectCount'], 'Number'); + } + if (data.hasOwnProperty('Products')) { + obj['Products'] = ApiClient.convertToType(data['Products'], [ProductReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('AutogenerateDisplayText')) { + obj['AutogenerateDisplayText'] = ApiClient.convertToType(data['AutogenerateDisplayText'], 'Boolean'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Unique catalog group id + * @member {String} CatalogGroupId + */ +Group.prototype['CatalogGroupId'] = undefined; + +/** + * Unique catalog item id + * @member {String} CatalogItemId + */ +Group.prototype['CatalogItemId'] = undefined; + +/** + * Returns true if the group is archived + * @member {Boolean} IsArchived + */ +Group.prototype['IsArchived'] = undefined; + +/** + * Minimum number of items that the user has to select + * @member {Number} MinSelectCount + */ +Group.prototype['MinSelectCount'] = undefined; + +/** + * Maximum number of items that the user has to select + * @member {Number} MaxSelectCount + */ +Group.prototype['MaxSelectCount'] = undefined; + +/** + * Collection of items associated with this product + * @member {Array.} Products + */ +Group.prototype['Products'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +Group.prototype['Metafields'] = undefined; + +/** + * Type of group (ModifierGroup, etc) + * @member {module:model/Group.GroupTypeEnum} GroupType + */ +Group.prototype['GroupType'] = undefined; + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +Group.prototype['Sku'] = undefined; + +/** + * Group name + * @member {String} Name + */ +Group.prototype['Name'] = undefined; + +/** + * Autogenerate display text in ordering applications + * @member {Boolean} AutogenerateDisplayText + */ +Group.prototype['AutogenerateDisplayText'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +Group.prototype['ImageFileName'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +Group['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default Group; + diff --git a/src/model/GroupReference.js b/src/model/GroupReference.js new file mode 100644 index 00000000..059cb78e --- /dev/null +++ b/src/model/GroupReference.js @@ -0,0 +1,110 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Group from './Group'; + +/** + * The GroupReference model module. + * @module model/GroupReference + * @version 1.0.0 + */ +class GroupReference { + /** + * Constructs a new GroupReference. + * Reference to an existing {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} + * @alias module:model/GroupReference + * @param CatalogItemId {String} Identifier of the ProductId to use as SubProduct + * @param GroupType {module:model/GroupReference.GroupTypeEnum} Type of the SupProduct + */ + constructor(CatalogItemId, GroupType) { + + GroupReference.initialize(this, CatalogItemId, GroupType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogItemId, GroupType) { + obj['CatalogItemId'] = CatalogItemId; + obj['GroupType'] = GroupType; + } + + /** + * Constructs a GroupReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GroupReference} obj Optional instance to populate. + * @return {module:model/GroupReference} The populated GroupReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GroupReference(); + + if (data.hasOwnProperty('Group')) { + obj['Group'] = Group.constructFromObject(data['Group']); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Group} Group + */ +GroupReference.prototype['Group'] = undefined; + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogItemId + */ +GroupReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/GroupReference.GroupTypeEnum} GroupType + */ +GroupReference.prototype['GroupType'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +GroupReference['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default GroupReference; + diff --git a/src/model/GroupedCoordinates.js b/src/model/GroupedCoordinates.js new file mode 100644 index 00000000..3e6421bd --- /dev/null +++ b/src/model/GroupedCoordinates.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The GroupedCoordinates model module. + * @module model/GroupedCoordinates + * @version 1.0.0 + */ +class GroupedCoordinates { + /** + * Constructs a new GroupedCoordinates. + * Describes coordinates that have a group + * @alias module:model/GroupedCoordinates + */ + constructor() { + + GroupedCoordinates.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GroupedCoordinates from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GroupedCoordinates} obj Optional instance to populate. + * @return {module:model/GroupedCoordinates} The populated GroupedCoordinates instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GroupedCoordinates(); + + if (data.hasOwnProperty('Latitude')) { + obj['Latitude'] = ApiClient.convertToType(data['Latitude'], 'Number'); + } + if (data.hasOwnProperty('Longitude')) { + obj['Longitude'] = ApiClient.convertToType(data['Longitude'], 'Number'); + } + if (data.hasOwnProperty('Count')) { + obj['Count'] = ApiClient.convertToType(data['Count'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Latitude of this coordinate + * @member {Number} Latitude + */ +GroupedCoordinates.prototype['Latitude'] = undefined; + +/** + * Longitude of this coordinate + * @member {Number} Longitude + */ +GroupedCoordinates.prototype['Longitude'] = undefined; + +/** + * Count of members in the group + * @member {Number} Count + */ +GroupedCoordinates.prototype['Count'] = undefined; + + + + + + +export default GroupedCoordinates; + diff --git a/src/model/HasPaymentMethodResponse.js b/src/model/HasPaymentMethodResponse.js new file mode 100644 index 00000000..04f2bee5 --- /dev/null +++ b/src/model/HasPaymentMethodResponse.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HasPaymentMethodResponse model module. + * @module model/HasPaymentMethodResponse + * @version 1.0.0 + */ +class HasPaymentMethodResponse { + /** + * Constructs a new HasPaymentMethodResponse. + * Has Payment Method Response + * @alias module:model/HasPaymentMethodResponse + * @param HasPaymentMethod {Boolean} Has Payment Method + */ + constructor(HasPaymentMethod) { + + HasPaymentMethodResponse.initialize(this, HasPaymentMethod); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, HasPaymentMethod) { + obj['HasPaymentMethod'] = HasPaymentMethod; + } + + /** + * Constructs a HasPaymentMethodResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HasPaymentMethodResponse} obj Optional instance to populate. + * @return {module:model/HasPaymentMethodResponse} The populated HasPaymentMethodResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HasPaymentMethodResponse(); + + if (data.hasOwnProperty('HasPaymentMethod')) { + obj['HasPaymentMethod'] = ApiClient.convertToType(data['HasPaymentMethod'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Has Payment Method + * @member {Boolean} HasPaymentMethod + */ +HasPaymentMethodResponse.prototype['HasPaymentMethod'] = undefined; + + + + + + +export default HasPaymentMethodResponse; + diff --git a/src/model/HomeAction.js b/src/model/HomeAction.js new file mode 100644 index 00000000..c3016ea5 --- /dev/null +++ b/src/model/HomeAction.js @@ -0,0 +1,157 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HomeAction model module. + * @module model/HomeAction + * @version 1.0.0 + */ +class HomeAction { + /** + * Constructs a new HomeAction. + * + * @alias module:model/HomeAction + */ + constructor() { + + HomeAction.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HomeAction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HomeAction} obj Optional instance to populate. + * @return {module:model/HomeAction} The populated HomeAction instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HomeAction(); + + if (data.hasOwnProperty('HomeActionId')) { + obj['HomeActionId'] = ApiClient.convertToType(data['HomeActionId'], 'Number'); + } + if (data.hasOwnProperty('HomeActionType')) { + obj['HomeActionType'] = ApiClient.convertToType(data['HomeActionType'], 'String'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = ApiClient.convertToType(data['Order'], 'Number'); + } + if (data.hasOwnProperty('TitleKey')) { + obj['TitleKey'] = ApiClient.convertToType(data['TitleKey'], 'String'); + } + if (data.hasOwnProperty('ActionKey')) { + obj['ActionKey'] = ApiClient.convertToType(data['ActionKey'], 'String'); + } + if (data.hasOwnProperty('DescriptionKey')) { + obj['DescriptionKey'] = ApiClient.convertToType(data['DescriptionKey'], 'String'); + } + if (data.hasOwnProperty('Action')) { + obj['Action'] = ApiClient.convertToType(data['Action'], 'String'); + } + if (data.hasOwnProperty('Dismissible')) { + obj['Dismissible'] = ApiClient.convertToType(data['Dismissible'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * + * @member {Number} HomeActionId + */ +HomeAction.prototype['HomeActionId'] = undefined; + +/** + * Type of Action + * @member {module:model/HomeAction.HomeActionTypeEnum} HomeActionType + */ +HomeAction.prototype['HomeActionType'] = undefined; + +/** + * + * @member {Number} Order + */ +HomeAction.prototype['Order'] = undefined; + +/** + * + * @member {String} TitleKey + */ +HomeAction.prototype['TitleKey'] = undefined; + +/** + * + * @member {String} ActionKey + */ +HomeAction.prototype['ActionKey'] = undefined; + +/** + * + * @member {String} DescriptionKey + */ +HomeAction.prototype['DescriptionKey'] = undefined; + +/** + * + * @member {String} Action + */ +HomeAction.prototype['Action'] = undefined; + +/** + * + * @member {Boolean} Dismissible + */ +HomeAction.prototype['Dismissible'] = undefined; + + + + + +/** + * Allowed values for the HomeActionType property. + * @enum {String} + * @readonly + */ +HomeAction['HomeActionTypeEnum'] = { + + /** + * value: "Portal" + * @const + */ + "Portal": "Portal", + + /** + * value: "External" + * @const + */ + "External": "External" +}; + + + +export default HomeAction; + diff --git a/src/model/HomeStatistics.js b/src/model/HomeStatistics.js new file mode 100644 index 00000000..584d3268 --- /dev/null +++ b/src/model/HomeStatistics.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CurrencyData from './CurrencyData'; + +/** + * The HomeStatistics model module. + * @module model/HomeStatistics + * @version 1.0.0 + */ +class HomeStatistics { + /** + * Constructs a new HomeStatistics. + * Home statitstics + * @alias module:model/HomeStatistics + */ + constructor() { + + HomeStatistics.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HomeStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HomeStatistics} obj Optional instance to populate. + * @return {module:model/HomeStatistics} The populated HomeStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HomeStatistics(); + + if (data.hasOwnProperty('TotalMoneySaved')) { + obj['TotalMoneySaved'] = ApiClient.convertToType(data['TotalMoneySaved'], [CurrencyData]); + } + } + return obj; + } + + +} + +/** + * Money saved + * @member {Array.} TotalMoneySaved + */ +HomeStatistics.prototype['TotalMoneySaved'] = undefined; + + + + + + +export default HomeStatistics; + diff --git a/src/model/HttpPostedFileBase.js b/src/model/HttpPostedFileBase.js new file mode 100644 index 00000000..aceb722c --- /dev/null +++ b/src/model/HttpPostedFileBase.js @@ -0,0 +1,96 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Stream from './Stream'; + +/** + * The HttpPostedFileBase model module. + * @module model/HttpPostedFileBase + * @version 1.0.0 + */ +class HttpPostedFileBase { + /** + * Constructs a new HttpPostedFileBase. + * @alias module:model/HttpPostedFileBase + */ + constructor() { + + HttpPostedFileBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HttpPostedFileBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HttpPostedFileBase} obj Optional instance to populate. + * @return {module:model/HttpPostedFileBase} The populated HttpPostedFileBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HttpPostedFileBase(); + + if (data.hasOwnProperty('ContentLength')) { + obj['ContentLength'] = ApiClient.convertToType(data['ContentLength'], 'Number'); + } + if (data.hasOwnProperty('ContentType')) { + obj['ContentType'] = ApiClient.convertToType(data['ContentType'], 'String'); + } + if (data.hasOwnProperty('FileName')) { + obj['FileName'] = ApiClient.convertToType(data['FileName'], 'String'); + } + if (data.hasOwnProperty('InputStream')) { + obj['InputStream'] = Stream.constructFromObject(data['InputStream']); + } + } + return obj; + } + + +} + +/** + * @member {Number} ContentLength + */ +HttpPostedFileBase.prototype['ContentLength'] = undefined; + +/** + * @member {String} ContentType + */ +HttpPostedFileBase.prototype['ContentType'] = undefined; + +/** + * @member {String} FileName + */ +HttpPostedFileBase.prototype['FileName'] = undefined; + +/** + * @member {module:model/Stream} InputStream + */ +HttpPostedFileBase.prototype['InputStream'] = undefined; + + + + + + +export default HttpPostedFileBase; + diff --git a/src/model/HydraAssignedEvent.js b/src/model/HydraAssignedEvent.js new file mode 100644 index 00000000..4ec85418 --- /dev/null +++ b/src/model/HydraAssignedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraStatus from './HydraStatus'; +import UserEventInfo from './UserEventInfo'; + +/** + * The HydraAssignedEvent model module. + * @module model/HydraAssignedEvent + * @version 1.0.0 + */ +class HydraAssignedEvent { + /** + * Constructs a new HydraAssignedEvent. + * Hydra assigned event + * @alias module:model/HydraAssignedEvent + */ + constructor() { + + HydraAssignedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraAssignedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraAssignedEvent} obj Optional instance to populate. + * @return {module:model/HydraAssignedEvent} The populated HydraAssignedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraAssignedEvent(); + + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('HydraStatus')) { + obj['HydraStatus'] = HydraStatus.constructFromObject(data['HydraStatus']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserEventInfo} User + */ +HydraAssignedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/HydraStatus} HydraStatus + */ +HydraAssignedEvent.prototype['HydraStatus'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +HydraAssignedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +HydraAssignedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +HydraAssignedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +HydraAssignedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +HydraAssignedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +HydraAssignedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +HydraAssignedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default HydraAssignedEvent; + diff --git a/src/model/HydraConfig.js b/src/model/HydraConfig.js new file mode 100644 index 00000000..05b305ba --- /dev/null +++ b/src/model/HydraConfig.js @@ -0,0 +1,160 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeviceSettings from './DeviceSettings'; + +/** + * The HydraConfig model module. + * @module model/HydraConfig + * @version 1.0.0 + */ +class HydraConfig { + /** + * Constructs a new HydraConfig. + * Hydra configuration + * @alias module:model/HydraConfig + * @param MinimumVersion {String} Minimum version + * @param PaymentOptions {Array.} Payment options + * @param DeviceSettings {module:model/DeviceSettings} + */ + constructor(MinimumVersion, PaymentOptions, DeviceSettings) { + + HydraConfig.initialize(this, MinimumVersion, PaymentOptions, DeviceSettings); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, MinimumVersion, PaymentOptions, DeviceSettings) { + obj['MinimumVersion'] = MinimumVersion; + obj['PaymentOptions'] = PaymentOptions; + obj['DeviceSettings'] = DeviceSettings; + } + + /** + * Constructs a HydraConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraConfig} obj Optional instance to populate. + * @return {module:model/HydraConfig} The populated HydraConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraConfig(); + + if (data.hasOwnProperty('MinimumVersion')) { + obj['MinimumVersion'] = ApiClient.convertToType(data['MinimumVersion'], 'String'); + } + if (data.hasOwnProperty('PaymentOptions')) { + obj['PaymentOptions'] = ApiClient.convertToType(data['PaymentOptions'], ['String']); + } + if (data.hasOwnProperty('DeviceSettings')) { + obj['DeviceSettings'] = DeviceSettings.constructFromObject(data['DeviceSettings']); + } + if (data.hasOwnProperty('Version')) { + obj['Version'] = ApiClient.convertToType(data['Version'], 'String'); + } + if (data.hasOwnProperty('BuildNumber')) { + obj['BuildNumber'] = ApiClient.convertToType(data['BuildNumber'], 'String'); + } + if (data.hasOwnProperty('GitSha')) { + obj['GitSha'] = ApiClient.convertToType(data['GitSha'], 'String'); + } + if (data.hasOwnProperty('GitBranch')) { + obj['GitBranch'] = ApiClient.convertToType(data['GitBranch'], 'String'); + } + } + return obj; + } + + +} + +/** + * Minimum version + * @member {String} MinimumVersion + */ +HydraConfig.prototype['MinimumVersion'] = undefined; + +/** + * Payment options + * @member {Array.} PaymentOptions + */ +HydraConfig.prototype['PaymentOptions'] = undefined; + +/** + * @member {module:model/DeviceSettings} DeviceSettings + */ +HydraConfig.prototype['DeviceSettings'] = undefined; + +/** + * Version of the device + * @member {String} Version + */ +HydraConfig.prototype['Version'] = undefined; + +/** + * Build number of the device + * @member {String} BuildNumber + */ +HydraConfig.prototype['BuildNumber'] = undefined; + +/** + * SHA of the commit + * @member {String} GitSha + */ +HydraConfig.prototype['GitSha'] = undefined; + +/** + * Build branch + * @member {String} GitBranch + */ +HydraConfig.prototype['GitBranch'] = undefined; + + + + + +/** + * Allowed values for the PaymentOptions property. + * @enum {String} + * @readonly + */ +HydraConfig['PaymentOptionsEnum'] = { + + /** + * value: "Online" + * @const + */ + "Online": "Online", + + /** + * value: "Emv" + * @const + */ + "Emv": "Emv", + + /** + * value: "Counter" + * @const + */ + "Counter": "Counter" +}; + + + +export default HydraConfig; + diff --git a/src/model/HydraConnectionStatusChangedEvent.js b/src/model/HydraConnectionStatusChangedEvent.js new file mode 100644 index 00000000..bd40e93f --- /dev/null +++ b/src/model/HydraConnectionStatusChangedEvent.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HydraConnectionStatusChangedEvent model module. + * @module model/HydraConnectionStatusChangedEvent + * @version 1.0.0 + */ +class HydraConnectionStatusChangedEvent { + /** + * Constructs a new HydraConnectionStatusChangedEvent. + * Hydra Connection Status Changed Event + * @alias module:model/HydraConnectionStatusChangedEvent + */ + constructor() { + + HydraConnectionStatusChangedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraConnectionStatusChangedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraConnectionStatusChangedEvent} obj Optional instance to populate. + * @return {module:model/HydraConnectionStatusChangedEvent} The populated HydraConnectionStatusChangedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraConnectionStatusChangedEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('HydraDeviceStatus')) { + obj['HydraDeviceStatus'] = ApiClient.convertToType(data['HydraDeviceStatus'], 'String'); + } + if (data.hasOwnProperty('PollTime')) { + obj['PollTime'] = ApiClient.convertToType(data['PollTime'], 'Date'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Hydra Device Id + * @member {String} DeviceId + */ +HydraConnectionStatusChangedEvent.prototype['DeviceId'] = undefined; + +/** + * Hydra Device Status + * @member {module:model/HydraConnectionStatusChangedEvent.HydraDeviceStatusEnum} HydraDeviceStatus + */ +HydraConnectionStatusChangedEvent.prototype['HydraDeviceStatus'] = undefined; + +/** + * Hydra Last Poll Time + * @member {Date} PollTime + */ +HydraConnectionStatusChangedEvent.prototype['PollTime'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +HydraConnectionStatusChangedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +HydraConnectionStatusChangedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +HydraConnectionStatusChangedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +HydraConnectionStatusChangedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +HydraConnectionStatusChangedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +HydraConnectionStatusChangedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +HydraConnectionStatusChangedEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the HydraDeviceStatus property. + * @enum {String} + * @readonly + */ +HydraConnectionStatusChangedEvent['HydraDeviceStatusEnum'] = { + + /** + * value: "Online" + * @const + */ + "Online": "Online", + + /** + * value: "PossiblyOffline" + * @const + */ + "PossiblyOffline": "PossiblyOffline", + + /** + * value: "Offline" + * @const + */ + "Offline": "Offline" +}; + + + +export default HydraConnectionStatusChangedEvent; + diff --git a/src/model/HydraDeviceDetails.js b/src/model/HydraDeviceDetails.js new file mode 100644 index 00000000..e4914365 --- /dev/null +++ b/src/model/HydraDeviceDetails.js @@ -0,0 +1,227 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraStoreData from './HydraStoreData'; + +/** + * The HydraDeviceDetails model module. + * @module model/HydraDeviceDetails + * @version 1.0.0 + */ +class HydraDeviceDetails { + /** + * Constructs a new HydraDeviceDetails. + * Hydra device details + * @alias module:model/HydraDeviceDetails + */ + constructor() { + + HydraDeviceDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraDeviceDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraDeviceDetails} obj Optional instance to populate. + * @return {module:model/HydraDeviceDetails} The populated HydraDeviceDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraDeviceDetails(); + + if (data.hasOwnProperty('HydraConfigId')) { + obj['HydraConfigId'] = ApiClient.convertToType(data['HydraConfigId'], 'Number'); + } + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('SerialNumber')) { + obj['SerialNumber'] = ApiClient.convertToType(data['SerialNumber'], 'String'); + } + if (data.hasOwnProperty('DeviceType')) { + obj['DeviceType'] = ApiClient.convertToType(data['DeviceType'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('DeviceName')) { + obj['DeviceName'] = ApiClient.convertToType(data['DeviceName'], 'String'); + } + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], [HydraStoreData]); + } + if (data.hasOwnProperty('LastPollUtc')) { + obj['LastPollUtc'] = ApiClient.convertToType(data['LastPollUtc'], 'Date'); + } + if (data.hasOwnProperty('Version')) { + obj['Version'] = ApiClient.convertToType(data['Version'], 'String'); + } + if (data.hasOwnProperty('BuildNumber')) { + obj['BuildNumber'] = ApiClient.convertToType(data['BuildNumber'], 'String'); + } + if (data.hasOwnProperty('GitSha')) { + obj['GitSha'] = ApiClient.convertToType(data['GitSha'], 'String'); + } + if (data.hasOwnProperty('GitBranch')) { + obj['GitBranch'] = ApiClient.convertToType(data['GitBranch'], 'String'); + } + } + return obj; + } + + +} + +/** + * Flipdish internal device identifier + * @member {Number} HydraConfigId + */ +HydraDeviceDetails.prototype['HydraConfigId'] = undefined; + +/** + * Device Id + * @member {String} DeviceId + */ +HydraDeviceDetails.prototype['DeviceId'] = undefined; + +/** + * Serial Number + * @member {String} SerialNumber + */ +HydraDeviceDetails.prototype['SerialNumber'] = undefined; + +/** + * Type of the device + * @member {module:model/HydraDeviceDetails.DeviceTypeEnum} DeviceType + */ +HydraDeviceDetails.prototype['DeviceType'] = undefined; + +/** + * Status of the device + * @member {module:model/HydraDeviceDetails.StatusEnum} Status + */ +HydraDeviceDetails.prototype['Status'] = undefined; + +/** + * Device Name + * @member {String} DeviceName + */ +HydraDeviceDetails.prototype['DeviceName'] = undefined; + +/** + * Store Names + * @member {Array.} StoreNames + */ +HydraDeviceDetails.prototype['StoreNames'] = undefined; + +/** + * Last poll time in UTC + * @member {Date} LastPollUtc + */ +HydraDeviceDetails.prototype['LastPollUtc'] = undefined; + +/** + * Version of the device + * @member {String} Version + */ +HydraDeviceDetails.prototype['Version'] = undefined; + +/** + * Build number of the device + * @member {String} BuildNumber + */ +HydraDeviceDetails.prototype['BuildNumber'] = undefined; + +/** + * SHA of the commit + * @member {String} GitSha + */ +HydraDeviceDetails.prototype['GitSha'] = undefined; + +/** + * Build branch + * @member {String} GitBranch + */ +HydraDeviceDetails.prototype['GitBranch'] = undefined; + + + + + +/** + * Allowed values for the DeviceType property. + * @enum {String} + * @readonly + */ +HydraDeviceDetails['DeviceTypeEnum'] = { + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Terminal" + * @const + */ + "Terminal": "Terminal", + + /** + * value: "LegacyPrinter" + * @const + */ + "LegacyPrinter": "LegacyPrinter" +}; + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +HydraDeviceDetails['StatusEnum'] = { + + /** + * value: "Online" + * @const + */ + "Online": "Online", + + /** + * value: "PossiblyOffline" + * @const + */ + "PossiblyOffline": "PossiblyOffline", + + /** + * value: "Offline" + * @const + */ + "Offline": "Offline" +}; + + + +export default HydraDeviceDetails; + diff --git a/src/model/HydraRegistrationRequest.js b/src/model/HydraRegistrationRequest.js new file mode 100644 index 00000000..2f80656b --- /dev/null +++ b/src/model/HydraRegistrationRequest.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HydraRegistrationRequest model module. + * @module model/HydraRegistrationRequest + * @version 1.0.0 + */ +class HydraRegistrationRequest { + /** + * Constructs a new HydraRegistrationRequest. + * Hydra registration result + * @alias module:model/HydraRegistrationRequest + * @param StoreIds {Array.} Stores to assign the hydra + * @param DeviceName {String} Hydra device name + */ + constructor(StoreIds, DeviceName) { + + HydraRegistrationRequest.initialize(this, StoreIds, DeviceName); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, StoreIds, DeviceName) { + obj['StoreIds'] = StoreIds; + obj['DeviceName'] = DeviceName; + } + + /** + * Constructs a HydraRegistrationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraRegistrationRequest} obj Optional instance to populate. + * @return {module:model/HydraRegistrationRequest} The populated HydraRegistrationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraRegistrationRequest(); + + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('DeviceName')) { + obj['DeviceName'] = ApiClient.convertToType(data['DeviceName'], 'String'); + } + if (data.hasOwnProperty('PinCode')) { + obj['PinCode'] = ApiClient.convertToType(data['PinCode'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Stores to assign the hydra + * @member {Array.} StoreIds + */ +HydraRegistrationRequest.prototype['StoreIds'] = undefined; + +/** + * Hydra device name + * @member {String} DeviceName + */ +HydraRegistrationRequest.prototype['DeviceName'] = undefined; + +/** + * 6 digit PIN code (not starting with zero). + * @member {Number} PinCode + */ +HydraRegistrationRequest.prototype['PinCode'] = undefined; + + + + + + +export default HydraRegistrationRequest; + diff --git a/src/model/HydraRequestResetEvent.js b/src/model/HydraRequestResetEvent.js new file mode 100644 index 00000000..3ef16535 --- /dev/null +++ b/src/model/HydraRequestResetEvent.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The HydraRequestResetEvent model module. + * @module model/HydraRequestResetEvent + * @version 1.0.0 + */ +class HydraRequestResetEvent { + /** + * Constructs a new HydraRequestResetEvent. + * Hydra request reset event + * @alias module:model/HydraRequestResetEvent + */ + constructor() { + + HydraRequestResetEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraRequestResetEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraRequestResetEvent} obj Optional instance to populate. + * @return {module:model/HydraRequestResetEvent} The populated HydraRequestResetEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraRequestResetEvent(); + + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserEventInfo} User + */ +HydraRequestResetEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +HydraRequestResetEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +HydraRequestResetEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +HydraRequestResetEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +HydraRequestResetEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +HydraRequestResetEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +HydraRequestResetEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +HydraRequestResetEvent.prototype['IpAddress'] = undefined; + + + + + + +export default HydraRequestResetEvent; + diff --git a/src/model/HydraSettingChangedEvent.js b/src/model/HydraSettingChangedEvent.js new file mode 100644 index 00000000..091348a3 --- /dev/null +++ b/src/model/HydraSettingChangedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraConfig from './HydraConfig'; +import UserEventInfo from './UserEventInfo'; + +/** + * The HydraSettingChangedEvent model module. + * @module model/HydraSettingChangedEvent + * @version 1.0.0 + */ +class HydraSettingChangedEvent { + /** + * Constructs a new HydraSettingChangedEvent. + * Hydra settings changed + * @alias module:model/HydraSettingChangedEvent + */ + constructor() { + + HydraSettingChangedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraSettingChangedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraSettingChangedEvent} obj Optional instance to populate. + * @return {module:model/HydraSettingChangedEvent} The populated HydraSettingChangedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraSettingChangedEvent(); + + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('HydraConfig')) { + obj['HydraConfig'] = HydraConfig.constructFromObject(data['HydraConfig']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserEventInfo} User + */ +HydraSettingChangedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/HydraConfig} HydraConfig + */ +HydraSettingChangedEvent.prototype['HydraConfig'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +HydraSettingChangedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +HydraSettingChangedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +HydraSettingChangedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +HydraSettingChangedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +HydraSettingChangedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +HydraSettingChangedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +HydraSettingChangedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default HydraSettingChangedEvent; + diff --git a/src/model/HydraStatus.js b/src/model/HydraStatus.js new file mode 100644 index 00000000..9960f85b --- /dev/null +++ b/src/model/HydraStatus.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HydraStatus model module. + * @module model/HydraStatus + * @version 1.0.0 + */ +class HydraStatus { + /** + * Constructs a new HydraStatus. + * Hydra status + * @alias module:model/HydraStatus + * @param AppId {String} + * @param IsRegistered {Boolean} The device has been already registered + */ + constructor(AppId, IsRegistered) { + + HydraStatus.initialize(this, AppId, IsRegistered); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, AppId, IsRegistered) { + obj['AppId'] = AppId; + obj['IsRegistered'] = IsRegistered; + } + + /** + * Constructs a HydraStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraStatus} obj Optional instance to populate. + * @return {module:model/HydraStatus} The populated HydraStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraStatus(); + + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('IsRegistered')) { + obj['IsRegistered'] = ApiClient.convertToType(data['IsRegistered'], 'Boolean'); + } + if (data.hasOwnProperty('PinCode')) { + obj['PinCode'] = ApiClient.convertToType(data['PinCode'], 'Number'); + } + if (data.hasOwnProperty('Images')) { + obj['Images'] = ApiClient.convertToType(data['Images'], ['String']); + } + if (data.hasOwnProperty('UserType')) { + obj['UserType'] = ApiClient.convertToType(data['UserType'], 'String'); + } + } + return obj; + } + + +} + +/** + * + * @member {String} AppId + */ +HydraStatus.prototype['AppId'] = undefined; + +/** + * Store to assign the hydra + * @member {Array.} StoreIds + */ +HydraStatus.prototype['StoreIds'] = undefined; + +/** + * The device has been already registered + * @member {Boolean} IsRegistered + */ +HydraStatus.prototype['IsRegistered'] = undefined; + +/** + * 6 digit PIN code (not starting with zero). + * @member {Number} PinCode + */ +HydraStatus.prototype['PinCode'] = undefined; + +/** + * Hydra images (covers) + * @member {Array.} Images + */ +HydraStatus.prototype['Images'] = undefined; + +/** + * Hydra User Type + * @member {module:model/HydraStatus.UserTypeEnum} UserType + */ +HydraStatus.prototype['UserType'] = undefined; + + + + + +/** + * Allowed values for the UserType property. + * @enum {String} + * @readonly + */ +HydraStatus['UserTypeEnum'] = { + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Terminal" + * @const + */ + "Terminal": "Terminal", + + /** + * value: "LegacyPrinter" + * @const + */ + "LegacyPrinter": "LegacyPrinter" +}; + + + +export default HydraStatus; + diff --git a/src/model/HydraStoreAssignedEvent.js b/src/model/HydraStoreAssignedEvent.js new file mode 100644 index 00000000..a7e034c4 --- /dev/null +++ b/src/model/HydraStoreAssignedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The HydraStoreAssignedEvent model module. + * @module model/HydraStoreAssignedEvent + * @version 1.0.0 + */ +class HydraStoreAssignedEvent { + /** + * Constructs a new HydraStoreAssignedEvent. + * Hydra store\\s assigned event + * @alias module:model/HydraStoreAssignedEvent + */ + constructor() { + + HydraStoreAssignedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraStoreAssignedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraStoreAssignedEvent} obj Optional instance to populate. + * @return {module:model/HydraStoreAssignedEvent} The populated HydraStoreAssignedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraStoreAssignedEvent(); + + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserEventInfo} User + */ +HydraStoreAssignedEvent.prototype['User'] = undefined; + +/** + * Store\\s to assign hydra to + * @member {Array.} StoreIds + */ +HydraStoreAssignedEvent.prototype['StoreIds'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +HydraStoreAssignedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +HydraStoreAssignedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +HydraStoreAssignedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +HydraStoreAssignedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +HydraStoreAssignedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +HydraStoreAssignedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +HydraStoreAssignedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default HydraStoreAssignedEvent; + diff --git a/src/model/HydraStoreData.js b/src/model/HydraStoreData.js new file mode 100644 index 00000000..b3baf973 --- /dev/null +++ b/src/model/HydraStoreData.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HydraStoreData model module. + * @module model/HydraStoreData + * @version 1.0.0 + */ +class HydraStoreData { + /** + * Constructs a new HydraStoreData. + * Store Data + * @alias module:model/HydraStoreData + */ + constructor() { + + HydraStoreData.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraStoreData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraStoreData} obj Optional instance to populate. + * @return {module:model/HydraStoreData} The populated HydraStoreData instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraStoreData(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of the store + * @member {Number} StoreId + */ +HydraStoreData.prototype['StoreId'] = undefined; + +/** + * Name of the store + * @member {String} StoreName + */ +HydraStoreData.prototype['StoreName'] = undefined; + + + + + + +export default HydraStoreData; + diff --git a/src/model/HydraStoreUnassignedEvent.js b/src/model/HydraStoreUnassignedEvent.js new file mode 100644 index 00000000..65ec58ef --- /dev/null +++ b/src/model/HydraStoreUnassignedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The HydraStoreUnassignedEvent model module. + * @module model/HydraStoreUnassignedEvent + * @version 1.0.0 + */ +class HydraStoreUnassignedEvent { + /** + * Constructs a new HydraStoreUnassignedEvent. + * Hydra store\\s unassigned event + * @alias module:model/HydraStoreUnassignedEvent + */ + constructor() { + + HydraStoreUnassignedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraStoreUnassignedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraStoreUnassignedEvent} obj Optional instance to populate. + * @return {module:model/HydraStoreUnassignedEvent} The populated HydraStoreUnassignedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraStoreUnassignedEvent(); + + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserEventInfo} User + */ +HydraStoreUnassignedEvent.prototype['User'] = undefined; + +/** + * Store\\s to unassign hydra from + * @member {Array.} StoreIds + */ +HydraStoreUnassignedEvent.prototype['StoreIds'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +HydraStoreUnassignedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +HydraStoreUnassignedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +HydraStoreUnassignedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +HydraStoreUnassignedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +HydraStoreUnassignedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +HydraStoreUnassignedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +HydraStoreUnassignedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default HydraStoreUnassignedEvent; + diff --git a/src/model/HydraUnAssignedEvent.js b/src/model/HydraUnAssignedEvent.js new file mode 100644 index 00000000..ff1526e9 --- /dev/null +++ b/src/model/HydraUnAssignedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraStatus from './HydraStatus'; +import UserEventInfo from './UserEventInfo'; + +/** + * The HydraUnAssignedEvent model module. + * @module model/HydraUnAssignedEvent + * @version 1.0.0 + */ +class HydraUnAssignedEvent { + /** + * Constructs a new HydraUnAssignedEvent. + * Hydra unassigned event + * @alias module:model/HydraUnAssignedEvent + */ + constructor() { + + HydraUnAssignedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a HydraUnAssignedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HydraUnAssignedEvent} obj Optional instance to populate. + * @return {module:model/HydraUnAssignedEvent} The populated HydraUnAssignedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HydraUnAssignedEvent(); + + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('HydraStatus')) { + obj['HydraStatus'] = HydraStatus.constructFromObject(data['HydraStatus']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserEventInfo} User + */ +HydraUnAssignedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/HydraStatus} HydraStatus + */ +HydraUnAssignedEvent.prototype['HydraStatus'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +HydraUnAssignedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +HydraUnAssignedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +HydraUnAssignedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +HydraUnAssignedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +HydraUnAssignedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +HydraUnAssignedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +HydraUnAssignedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default HydraUnAssignedEvent; + diff --git a/src/model/IndexPage.js b/src/model/IndexPage.js new file mode 100644 index 00000000..73e65e3c --- /dev/null +++ b/src/model/IndexPage.js @@ -0,0 +1,210 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebsiteImage from './WebsiteImage'; +import WebsiteTestimonial from './WebsiteTestimonial'; + +/** + * The IndexPage model module. + * @module model/IndexPage + * @version 1.0.0 + */ +class IndexPage { + /** + * Constructs a new IndexPage. + * Index Page + * @alias module:model/IndexPage + */ + constructor() { + + IndexPage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a IndexPage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IndexPage} obj Optional instance to populate. + * @return {module:model/IndexPage} The populated IndexPage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IndexPage(); + + if (data.hasOwnProperty('Testimonials')) { + obj['Testimonials'] = ApiClient.convertToType(data['Testimonials'], [WebsiteTestimonial]); + } + if (data.hasOwnProperty('Images')) { + obj['Images'] = ApiClient.convertToType(data['Images'], [WebsiteImage]); + } + if (data.hasOwnProperty('AboutSectionEnabled')) { + obj['AboutSectionEnabled'] = ApiClient.convertToType(data['AboutSectionEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AboutSectionTitle')) { + obj['AboutSectionTitle'] = ApiClient.convertToType(data['AboutSectionTitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionSubtitle')) { + obj['AboutSectionSubtitle'] = ApiClient.convertToType(data['AboutSectionSubtitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionLeftTitle')) { + obj['AboutSectionLeftTitle'] = ApiClient.convertToType(data['AboutSectionLeftTitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionLeftBody')) { + obj['AboutSectionLeftBody'] = ApiClient.convertToType(data['AboutSectionLeftBody'], 'String'); + } + if (data.hasOwnProperty('AboutSectionRightTitle')) { + obj['AboutSectionRightTitle'] = ApiClient.convertToType(data['AboutSectionRightTitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionRightBody')) { + obj['AboutSectionRightBody'] = ApiClient.convertToType(data['AboutSectionRightBody'], 'String'); + } + if (data.hasOwnProperty('OpeningHoursEnabled')) { + obj['OpeningHoursEnabled'] = ApiClient.convertToType(data['OpeningHoursEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('MenuPreviewEnabled')) { + obj['MenuPreviewEnabled'] = ApiClient.convertToType(data['MenuPreviewEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('GalleryEnabled')) { + obj['GalleryEnabled'] = ApiClient.convertToType(data['GalleryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TestimonialsEnabled')) { + obj['TestimonialsEnabled'] = ApiClient.convertToType(data['TestimonialsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('ContactFormEnabled')) { + obj['ContactFormEnabled'] = ApiClient.convertToType(data['ContactFormEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('ContactFormEmail')) { + obj['ContactFormEmail'] = ApiClient.convertToType(data['ContactFormEmail'], 'String'); + } + if (data.hasOwnProperty('MapEnabled')) { + obj['MapEnabled'] = ApiClient.convertToType(data['MapEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Testimonials + * @member {Array.} Testimonials + */ +IndexPage.prototype['Testimonials'] = undefined; + +/** + * Images + * @member {Array.} Images + */ +IndexPage.prototype['Images'] = undefined; + +/** + * About section enabled + * @member {Boolean} AboutSectionEnabled + */ +IndexPage.prototype['AboutSectionEnabled'] = undefined; + +/** + * About section title + * @member {String} AboutSectionTitle + */ +IndexPage.prototype['AboutSectionTitle'] = undefined; + +/** + * About section sub-title + * @member {String} AboutSectionSubtitle + */ +IndexPage.prototype['AboutSectionSubtitle'] = undefined; + +/** + * About section title left + * @member {String} AboutSectionLeftTitle + */ +IndexPage.prototype['AboutSectionLeftTitle'] = undefined; + +/** + * About section text left + * @member {String} AboutSectionLeftBody + */ +IndexPage.prototype['AboutSectionLeftBody'] = undefined; + +/** + * About section title right + * @member {String} AboutSectionRightTitle + */ +IndexPage.prototype['AboutSectionRightTitle'] = undefined; + +/** + * About section text right + * @member {String} AboutSectionRightBody + */ +IndexPage.prototype['AboutSectionRightBody'] = undefined; + +/** + * Opening hours section Enabled + * @member {Boolean} OpeningHoursEnabled + */ +IndexPage.prototype['OpeningHoursEnabled'] = undefined; + +/** + * Menu Preview section Enabled + * @member {Boolean} MenuPreviewEnabled + */ +IndexPage.prototype['MenuPreviewEnabled'] = undefined; + +/** + * Gallery section enabled + * @member {Boolean} GalleryEnabled + */ +IndexPage.prototype['GalleryEnabled'] = undefined; + +/** + * Testimonials section Enabled + * @member {Boolean} TestimonialsEnabled + */ +IndexPage.prototype['TestimonialsEnabled'] = undefined; + +/** + * Contact Form section Enabled + * @member {Boolean} ContactFormEnabled + */ +IndexPage.prototype['ContactFormEnabled'] = undefined; + +/** + * Contact Form Email + * @member {String} ContactFormEmail + */ +IndexPage.prototype['ContactFormEmail'] = undefined; + +/** + * Map section Enabled + * @member {Boolean} MapEnabled + */ +IndexPage.prototype['MapEnabled'] = undefined; + + + + + + +export default IndexPage; + diff --git a/src/model/IndexPageBase.js b/src/model/IndexPageBase.js new file mode 100644 index 00000000..fbb00f44 --- /dev/null +++ b/src/model/IndexPageBase.js @@ -0,0 +1,190 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The IndexPageBase model module. + * @module model/IndexPageBase + * @version 1.0.0 + */ +class IndexPageBase { + /** + * Constructs a new IndexPageBase. + * Base of Index Page + * @alias module:model/IndexPageBase + */ + constructor() { + + IndexPageBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a IndexPageBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IndexPageBase} obj Optional instance to populate. + * @return {module:model/IndexPageBase} The populated IndexPageBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IndexPageBase(); + + if (data.hasOwnProperty('AboutSectionEnabled')) { + obj['AboutSectionEnabled'] = ApiClient.convertToType(data['AboutSectionEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AboutSectionTitle')) { + obj['AboutSectionTitle'] = ApiClient.convertToType(data['AboutSectionTitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionSubtitle')) { + obj['AboutSectionSubtitle'] = ApiClient.convertToType(data['AboutSectionSubtitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionLeftTitle')) { + obj['AboutSectionLeftTitle'] = ApiClient.convertToType(data['AboutSectionLeftTitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionLeftBody')) { + obj['AboutSectionLeftBody'] = ApiClient.convertToType(data['AboutSectionLeftBody'], 'String'); + } + if (data.hasOwnProperty('AboutSectionRightTitle')) { + obj['AboutSectionRightTitle'] = ApiClient.convertToType(data['AboutSectionRightTitle'], 'String'); + } + if (data.hasOwnProperty('AboutSectionRightBody')) { + obj['AboutSectionRightBody'] = ApiClient.convertToType(data['AboutSectionRightBody'], 'String'); + } + if (data.hasOwnProperty('OpeningHoursEnabled')) { + obj['OpeningHoursEnabled'] = ApiClient.convertToType(data['OpeningHoursEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('MenuPreviewEnabled')) { + obj['MenuPreviewEnabled'] = ApiClient.convertToType(data['MenuPreviewEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('GalleryEnabled')) { + obj['GalleryEnabled'] = ApiClient.convertToType(data['GalleryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TestimonialsEnabled')) { + obj['TestimonialsEnabled'] = ApiClient.convertToType(data['TestimonialsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('ContactFormEnabled')) { + obj['ContactFormEnabled'] = ApiClient.convertToType(data['ContactFormEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('ContactFormEmail')) { + obj['ContactFormEmail'] = ApiClient.convertToType(data['ContactFormEmail'], 'String'); + } + if (data.hasOwnProperty('MapEnabled')) { + obj['MapEnabled'] = ApiClient.convertToType(data['MapEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * About section enabled + * @member {Boolean} AboutSectionEnabled + */ +IndexPageBase.prototype['AboutSectionEnabled'] = undefined; + +/** + * About section title + * @member {String} AboutSectionTitle + */ +IndexPageBase.prototype['AboutSectionTitle'] = undefined; + +/** + * About section sub-title + * @member {String} AboutSectionSubtitle + */ +IndexPageBase.prototype['AboutSectionSubtitle'] = undefined; + +/** + * About section title left + * @member {String} AboutSectionLeftTitle + */ +IndexPageBase.prototype['AboutSectionLeftTitle'] = undefined; + +/** + * About section text left + * @member {String} AboutSectionLeftBody + */ +IndexPageBase.prototype['AboutSectionLeftBody'] = undefined; + +/** + * About section title right + * @member {String} AboutSectionRightTitle + */ +IndexPageBase.prototype['AboutSectionRightTitle'] = undefined; + +/** + * About section text right + * @member {String} AboutSectionRightBody + */ +IndexPageBase.prototype['AboutSectionRightBody'] = undefined; + +/** + * Opening hours section Enabled + * @member {Boolean} OpeningHoursEnabled + */ +IndexPageBase.prototype['OpeningHoursEnabled'] = undefined; + +/** + * Menu Preview section Enabled + * @member {Boolean} MenuPreviewEnabled + */ +IndexPageBase.prototype['MenuPreviewEnabled'] = undefined; + +/** + * Gallery section enabled + * @member {Boolean} GalleryEnabled + */ +IndexPageBase.prototype['GalleryEnabled'] = undefined; + +/** + * Testimonials section Enabled + * @member {Boolean} TestimonialsEnabled + */ +IndexPageBase.prototype['TestimonialsEnabled'] = undefined; + +/** + * Contact Form section Enabled + * @member {Boolean} ContactFormEnabled + */ +IndexPageBase.prototype['ContactFormEnabled'] = undefined; + +/** + * Contact Form Email + * @member {String} ContactFormEmail + */ +IndexPageBase.prototype['ContactFormEmail'] = undefined; + +/** + * Map section Enabled + * @member {Boolean} MapEnabled + */ +IndexPageBase.prototype['MapEnabled'] = undefined; + + + + + + +export default IndexPageBase; + diff --git a/src/model/IntercomUserHash.js b/src/model/IntercomUserHash.js new file mode 100644 index 00000000..ee8b3ca1 --- /dev/null +++ b/src/model/IntercomUserHash.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The IntercomUserHash model module. + * @module model/IntercomUserHash + * @version 1.0.0 + */ +class IntercomUserHash { + /** + * Constructs a new IntercomUserHash. + * Intercom user hash + * @alias module:model/IntercomUserHash + */ + constructor() { + + IntercomUserHash.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a IntercomUserHash from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IntercomUserHash} obj Optional instance to populate. + * @return {module:model/IntercomUserHash} The populated IntercomUserHash instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IntercomUserHash(); + + if (data.hasOwnProperty('UserHash')) { + obj['UserHash'] = ApiClient.convertToType(data['UserHash'], 'String'); + } + } + return obj; + } + + +} + +/** + * User hash + * @member {String} UserHash + */ +IntercomUserHash.prototype['UserHash'] = undefined; + + + + + + +export default IntercomUserHash; + diff --git a/src/model/Invoice.js b/src/model/Invoice.js new file mode 100644 index 00000000..ffb01699 --- /dev/null +++ b/src/model/Invoice.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Invoice model module. + * @module model/Invoice + * @version 1.0.0 + */ +class Invoice { + /** + * Constructs a new Invoice. + * Represents an ordering invoice for a period of time. + * @alias module:model/Invoice + */ + constructor() { + + Invoice.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Invoice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Invoice} obj Optional instance to populate. + * @return {module:model/Invoice} The populated Invoice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Invoice(); + + if (data.hasOwnProperty('InvoiceNumber')) { + obj['InvoiceNumber'] = ApiClient.convertToType(data['InvoiceNumber'], 'String'); + } + if (data.hasOwnProperty('StartDay')) { + obj['StartDay'] = ApiClient.convertToType(data['StartDay'], 'Date'); + } + if (data.hasOwnProperty('EndDay')) { + obj['EndDay'] = ApiClient.convertToType(data['EndDay'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Invoice Number + * @member {String} InvoiceNumber + */ +Invoice.prototype['InvoiceNumber'] = undefined; + +/** + * The start day of the invoice period. + * @member {Date} StartDay + */ +Invoice.prototype['StartDay'] = undefined; + +/** + * The end day of the invoice period. + * @member {Date} EndDay + */ +Invoice.prototype['EndDay'] = undefined; + + + + + + +export default Invoice; + diff --git a/src/model/InvoiceDiscount.js b/src/model/InvoiceDiscount.js new file mode 100644 index 00000000..0e1b67d3 --- /dev/null +++ b/src/model/InvoiceDiscount.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InvoiceDiscount model module. + * @module model/InvoiceDiscount + * @version 1.0.0 + */ +class InvoiceDiscount { + /** + * Constructs a new InvoiceDiscount. + * Invoice Discount + * @alias module:model/InvoiceDiscount + * @param Name {String} Name + * @param Amount {Number} Amount + */ + constructor(Name, Amount) { + + InvoiceDiscount.initialize(this, Name, Amount); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Name, Amount) { + obj['Name'] = Name; + obj['Amount'] = Amount; + } + + /** + * Constructs a InvoiceDiscount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InvoiceDiscount} obj Optional instance to populate. + * @return {module:model/InvoiceDiscount} The populated InvoiceDiscount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InvoiceDiscount(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Name + * @member {String} Name + */ +InvoiceDiscount.prototype['Name'] = undefined; + +/** + * Amount + * @member {Number} Amount + */ +InvoiceDiscount.prototype['Amount'] = undefined; + + + + + + +export default InvoiceDiscount; + diff --git a/src/model/InvoiceItem.js b/src/model/InvoiceItem.js new file mode 100644 index 00000000..db70b1cf --- /dev/null +++ b/src/model/InvoiceItem.js @@ -0,0 +1,130 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import InvoicePeriod from './InvoicePeriod'; + +/** + * The InvoiceItem model module. + * @module model/InvoiceItem + * @version 1.0.0 + */ +class InvoiceItem { + /** + * Constructs a new InvoiceItem. + * Invoice Item + * @alias module:model/InvoiceItem + * @param Description {String} Description + * @param Quantity {Number} Quantity + * @param UnitAmountExcludingTax {Number} Unit Amount Excluding Tax + * @param Tax {Number} Tax + * @param Amount {Number} Amount + * @param Period {module:model/InvoicePeriod} + */ + constructor(Description, Quantity, UnitAmountExcludingTax, Tax, Amount, Period) { + + InvoiceItem.initialize(this, Description, Quantity, UnitAmountExcludingTax, Tax, Amount, Period); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Description, Quantity, UnitAmountExcludingTax, Tax, Amount, Period) { + obj['Description'] = Description; + obj['Quantity'] = Quantity; + obj['UnitAmountExcludingTax'] = UnitAmountExcludingTax; + obj['Tax'] = Tax; + obj['Amount'] = Amount; + obj['Period'] = Period; + } + + /** + * Constructs a InvoiceItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InvoiceItem} obj Optional instance to populate. + * @return {module:model/InvoiceItem} The populated InvoiceItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InvoiceItem(); + + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Quantity')) { + obj['Quantity'] = ApiClient.convertToType(data['Quantity'], 'Number'); + } + if (data.hasOwnProperty('UnitAmountExcludingTax')) { + obj['UnitAmountExcludingTax'] = ApiClient.convertToType(data['UnitAmountExcludingTax'], 'Number'); + } + if (data.hasOwnProperty('Tax')) { + obj['Tax'] = ApiClient.convertToType(data['Tax'], 'Number'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('Period')) { + obj['Period'] = InvoicePeriod.constructFromObject(data['Period']); + } + } + return obj; + } + + +} + +/** + * Description + * @member {String} Description + */ +InvoiceItem.prototype['Description'] = undefined; + +/** + * Quantity + * @member {Number} Quantity + */ +InvoiceItem.prototype['Quantity'] = undefined; + +/** + * Unit Amount Excluding Tax + * @member {Number} UnitAmountExcludingTax + */ +InvoiceItem.prototype['UnitAmountExcludingTax'] = undefined; + +/** + * Tax + * @member {Number} Tax + */ +InvoiceItem.prototype['Tax'] = undefined; + +/** + * Amount + * @member {Number} Amount + */ +InvoiceItem.prototype['Amount'] = undefined; + +/** + * @member {module:model/InvoicePeriod} Period + */ +InvoiceItem.prototype['Period'] = undefined; + + + + + + +export default InvoiceItem; + diff --git a/src/model/InvoicePeriod.js b/src/model/InvoicePeriod.js new file mode 100644 index 00000000..2789c73f --- /dev/null +++ b/src/model/InvoicePeriod.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InvoicePeriod model module. + * @module model/InvoicePeriod + * @version 1.0.0 + */ +class InvoicePeriod { + /** + * Constructs a new InvoicePeriod. + * Invoice Period + * @alias module:model/InvoicePeriod + */ + constructor() { + + InvoicePeriod.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a InvoicePeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InvoicePeriod} obj Optional instance to populate. + * @return {module:model/InvoicePeriod} The populated InvoicePeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InvoicePeriod(); + + if (data.hasOwnProperty('Start')) { + obj['Start'] = ApiClient.convertToType(data['Start'], 'Date'); + } + if (data.hasOwnProperty('End')) { + obj['End'] = ApiClient.convertToType(data['End'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Start + * @member {Date} Start + */ +InvoicePeriod.prototype['Start'] = undefined; + +/** + * End + * @member {Date} End + */ +InvoicePeriod.prototype['End'] = undefined; + + + + + + +export default InvoicePeriod; + diff --git a/src/model/ItemNutritionInfoAddUpdateModel.js b/src/model/ItemNutritionInfoAddUpdateModel.js new file mode 100644 index 00000000..54bbf97b --- /dev/null +++ b/src/model/ItemNutritionInfoAddUpdateModel.js @@ -0,0 +1,72 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfoItemAddUpdateLabelModel from './NutritionInfoItemAddUpdateLabelModel'; + +/** + * The ItemNutritionInfoAddUpdateModel model module. + * @module model/ItemNutritionInfoAddUpdateModel + * @version 1.0.0 + */ +class ItemNutritionInfoAddUpdateModel { + /** + * Constructs a new ItemNutritionInfoAddUpdateModel. + * @alias module:model/ItemNutritionInfoAddUpdateModel + */ + constructor() { + + ItemNutritionInfoAddUpdateModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ItemNutritionInfoAddUpdateModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ItemNutritionInfoAddUpdateModel} obj Optional instance to populate. + * @return {module:model/ItemNutritionInfoAddUpdateModel} The populated ItemNutritionInfoAddUpdateModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ItemNutritionInfoAddUpdateModel(); + + if (data.hasOwnProperty('Labels')) { + obj['Labels'] = ApiClient.convertToType(data['Labels'], [NutritionInfoItemAddUpdateLabelModel]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} Labels + */ +ItemNutritionInfoAddUpdateModel.prototype['Labels'] = undefined; + + + + + + +export default ItemNutritionInfoAddUpdateModel; + diff --git a/src/model/ItemNutritionInfoV2AddUpdateModel.js b/src/model/ItemNutritionInfoV2AddUpdateModel.js new file mode 100644 index 00000000..6c5780ec --- /dev/null +++ b/src/model/ItemNutritionInfoV2AddUpdateModel.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ItemNutritionInfoV2AddUpdateModel model module. + * @module model/ItemNutritionInfoV2AddUpdateModel + * @version 1.0.0 + */ +class ItemNutritionInfoV2AddUpdateModel { + /** + * Constructs a new ItemNutritionInfoV2AddUpdateModel. + * @alias module:model/ItemNutritionInfoV2AddUpdateModel + */ + constructor() { + + ItemNutritionInfoV2AddUpdateModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ItemNutritionInfoV2AddUpdateModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ItemNutritionInfoV2AddUpdateModel} obj Optional instance to populate. + * @return {module:model/ItemNutritionInfoV2AddUpdateModel} The populated ItemNutritionInfoV2AddUpdateModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ItemNutritionInfoV2AddUpdateModel(); + + if (data.hasOwnProperty('AllergenIds')) { + obj['AllergenIds'] = ApiClient.convertToType(data['AllergenIds'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Array.} AllergenIds + */ +ItemNutritionInfoV2AddUpdateModel.prototype['AllergenIds'] = undefined; + + + + + + +export default ItemNutritionInfoV2AddUpdateModel; + diff --git a/src/model/JobAddress.js b/src/model/JobAddress.js new file mode 100644 index 00000000..bb95a221 --- /dev/null +++ b/src/model/JobAddress.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JobAddress model module. + * @module model/JobAddress + * @version 1.0.0 + */ +class JobAddress { + /** + * Constructs a new JobAddress. + * Job Address + * @alias module:model/JobAddress + */ + constructor() { + + JobAddress.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobAddress from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobAddress} obj Optional instance to populate. + * @return {module:model/JobAddress} The populated JobAddress instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobAddress(); + + if (data.hasOwnProperty('Street')) { + obj['Street'] = ApiClient.convertToType(data['Street'], 'String'); + } + if (data.hasOwnProperty('Postcode')) { + obj['Postcode'] = ApiClient.convertToType(data['Postcode'], 'String'); + } + if (data.hasOwnProperty('City')) { + obj['City'] = ApiClient.convertToType(data['City'], 'String'); + } + if (data.hasOwnProperty('Country')) { + obj['Country'] = ApiClient.convertToType(data['Country'], 'String'); + } + if (data.hasOwnProperty('Zone')) { + obj['Zone'] = ApiClient.convertToType(data['Zone'], 'String'); + } + if (data.hasOwnProperty('FormattedAddress')) { + obj['FormattedAddress'] = ApiClient.convertToType(data['FormattedAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Street + * @member {String} Street + */ +JobAddress.prototype['Street'] = undefined; + +/** + * Postcode + * @member {String} Postcode + */ +JobAddress.prototype['Postcode'] = undefined; + +/** + * City + * @member {String} City + */ +JobAddress.prototype['City'] = undefined; + +/** + * Country + * @member {String} Country + */ +JobAddress.prototype['Country'] = undefined; + +/** + * Zone + * @member {String} Zone + */ +JobAddress.prototype['Zone'] = undefined; + +/** + * Formatted Address + * @member {String} FormattedAddress + */ +JobAddress.prototype['FormattedAddress'] = undefined; + + + + + + +export default JobAddress; + diff --git a/src/model/JobCancellation.js b/src/model/JobCancellation.js new file mode 100644 index 00000000..06a3bccb --- /dev/null +++ b/src/model/JobCancellation.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JobCancellation model module. + * @module model/JobCancellation + * @version 1.0.0 + */ +class JobCancellation { + /** + * Constructs a new JobCancellation. + * Job Cancellation + * @alias module:model/JobCancellation + */ + constructor() { + + JobCancellation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobCancellation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobCancellation} obj Optional instance to populate. + * @return {module:model/JobCancellation} The populated JobCancellation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobCancellation(); + + if (data.hasOwnProperty('CanceledBy')) { + obj['CanceledBy'] = ApiClient.convertToType(data['CanceledBy'], 'String'); + } + if (data.hasOwnProperty('ReasonKey')) { + obj['ReasonKey'] = ApiClient.convertToType(data['ReasonKey'], 'String'); + } + if (data.hasOwnProperty('Comment')) { + obj['Comment'] = ApiClient.convertToType(data['Comment'], 'String'); + } + } + return obj; + } + + +} + +/** + * Canceled By + * @member {String} CanceledBy + */ +JobCancellation.prototype['CanceledBy'] = undefined; + +/** + * Reason Key + * @member {String} ReasonKey + */ +JobCancellation.prototype['ReasonKey'] = undefined; + +/** + * Comment + * @member {String} Comment + */ +JobCancellation.prototype['Comment'] = undefined; + + + + + + +export default JobCancellation; + diff --git a/src/model/JobContact.js b/src/model/JobContact.js new file mode 100644 index 00000000..7b803c49 --- /dev/null +++ b/src/model/JobContact.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JobContact model module. + * @module model/JobContact + * @version 1.0.0 + */ +class JobContact { + /** + * Constructs a new JobContact. + * Job Contact + * @alias module:model/JobContact + */ + constructor() { + + JobContact.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobContact from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobContact} obj Optional instance to populate. + * @return {module:model/JobContact} The populated JobContact instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobContact(); + + if (data.hasOwnProperty('Firstname')) { + obj['Firstname'] = ApiClient.convertToType(data['Firstname'], 'String'); + } + if (data.hasOwnProperty('Lastname')) { + obj['Lastname'] = ApiClient.convertToType(data['Lastname'], 'String'); + } + if (data.hasOwnProperty('Phone')) { + obj['Phone'] = ApiClient.convertToType(data['Phone'], 'String'); + } + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('Company')) { + obj['Company'] = ApiClient.convertToType(data['Company'], 'String'); + } + if (data.hasOwnProperty('CompanyName')) { + obj['CompanyName'] = ApiClient.convertToType(data['CompanyName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Firstname + * @member {String} Firstname + */ +JobContact.prototype['Firstname'] = undefined; + +/** + * Lastname + * @member {String} Lastname + */ +JobContact.prototype['Lastname'] = undefined; + +/** + * Phone + * @member {String} Phone + */ +JobContact.prototype['Phone'] = undefined; + +/** + * Email + * @member {String} Email + */ +JobContact.prototype['Email'] = undefined; + +/** + * Company + * @member {String} Company + */ +JobContact.prototype['Company'] = undefined; + +/** + * Company Name + * @member {String} CompanyName + */ +JobContact.prototype['CompanyName'] = undefined; + + + + + + +export default JobContact; + diff --git a/src/model/JobDelivery.js b/src/model/JobDelivery.js new file mode 100644 index 00000000..ecd2128e --- /dev/null +++ b/src/model/JobDelivery.js @@ -0,0 +1,180 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import JobCancellation from './JobCancellation'; +import JobDeliveryDetail from './JobDeliveryDetail'; +import JobEta from './JobEta'; +import JobProof from './JobProof'; + +/** + * The JobDelivery model module. + * @module model/JobDelivery + * @version 1.0.0 + */ +class JobDelivery { + /** + * Constructs a new JobDelivery. + * Job Delivery + * @alias module:model/JobDelivery + */ + constructor() { + + JobDelivery.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobDelivery from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobDelivery} obj Optional instance to populate. + * @return {module:model/JobDelivery} The populated JobDelivery instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobDelivery(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('PickedAt')) { + obj['PickedAt'] = ApiClient.convertToType(data['PickedAt'], 'String'); + } + if (data.hasOwnProperty('DeliveredAt')) { + obj['DeliveredAt'] = ApiClient.convertToType(data['DeliveredAt'], 'String'); + } + if (data.hasOwnProperty('TrackingUrl')) { + obj['TrackingUrl'] = ApiClient.convertToType(data['TrackingUrl'], 'String'); + } + if (data.hasOwnProperty('ClientReference')) { + obj['ClientReference'] = ApiClient.convertToType(data['ClientReference'], 'String'); + } + if (data.hasOwnProperty('PackageDescription')) { + obj['PackageDescription'] = ApiClient.convertToType(data['PackageDescription'], 'String'); + } + if (data.hasOwnProperty('PackageType')) { + obj['PackageType'] = ApiClient.convertToType(data['PackageType'], 'String'); + } + if (data.hasOwnProperty('Pickup')) { + obj['Pickup'] = JobDeliveryDetail.constructFromObject(data['Pickup']); + } + if (data.hasOwnProperty('Dropoff')) { + obj['Dropoff'] = JobDeliveryDetail.constructFromObject(data['Dropoff']); + } + if (data.hasOwnProperty('Eta')) { + obj['Eta'] = JobEta.constructFromObject(data['Eta']); + } + if (data.hasOwnProperty('Cancellation')) { + obj['Cancellation'] = JobCancellation.constructFromObject(data['Cancellation']); + } + if (data.hasOwnProperty('Proof')) { + obj['Proof'] = JobProof.constructFromObject(data['Proof']); + } + } + return obj; + } + + +} + +/** + * Id + * @member {Number} Id + */ +JobDelivery.prototype['Id'] = undefined; + +/** + * Status + * @member {String} Status + */ +JobDelivery.prototype['Status'] = undefined; + +/** + * Picked At + * @member {String} PickedAt + */ +JobDelivery.prototype['PickedAt'] = undefined; + +/** + * Delivered At + * @member {String} DeliveredAt + */ +JobDelivery.prototype['DeliveredAt'] = undefined; + +/** + * Tracking Url + * @member {String} TrackingUrl + */ +JobDelivery.prototype['TrackingUrl'] = undefined; + +/** + * Client Reference + * @member {String} ClientReference + */ +JobDelivery.prototype['ClientReference'] = undefined; + +/** + * Package Description + * @member {String} PackageDescription + */ +JobDelivery.prototype['PackageDescription'] = undefined; + +/** + * Package Type + * @member {String} PackageType + */ +JobDelivery.prototype['PackageType'] = undefined; + +/** + * @member {module:model/JobDeliveryDetail} Pickup + */ +JobDelivery.prototype['Pickup'] = undefined; + +/** + * @member {module:model/JobDeliveryDetail} Dropoff + */ +JobDelivery.prototype['Dropoff'] = undefined; + +/** + * @member {module:model/JobEta} Eta + */ +JobDelivery.prototype['Eta'] = undefined; + +/** + * @member {module:model/JobCancellation} Cancellation + */ +JobDelivery.prototype['Cancellation'] = undefined; + +/** + * @member {module:model/JobProof} Proof + */ +JobDelivery.prototype['Proof'] = undefined; + + + + + + +export default JobDelivery; + diff --git a/src/model/JobDeliveryDetail.js b/src/model/JobDeliveryDetail.js new file mode 100644 index 00000000..1f797d76 --- /dev/null +++ b/src/model/JobDeliveryDetail.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import JobAddress from './JobAddress'; +import JobContact from './JobContact'; + +/** + * The JobDeliveryDetail model module. + * @module model/JobDeliveryDetail + * @version 1.0.0 + */ +class JobDeliveryDetail { + /** + * Constructs a new JobDeliveryDetail. + * Job Delivery Detail + * @alias module:model/JobDeliveryDetail + */ + constructor() { + + JobDeliveryDetail.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobDeliveryDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobDeliveryDetail} obj Optional instance to populate. + * @return {module:model/JobDeliveryDetail} The populated JobDeliveryDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobDeliveryDetail(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('Latitude')) { + obj['Latitude'] = ApiClient.convertToType(data['Latitude'], 'Number'); + } + if (data.hasOwnProperty('Longitude')) { + obj['Longitude'] = ApiClient.convertToType(data['Longitude'], 'Number'); + } + if (data.hasOwnProperty('Comment')) { + obj['Comment'] = ApiClient.convertToType(data['Comment'], 'String'); + } + if (data.hasOwnProperty('Address')) { + obj['Address'] = JobAddress.constructFromObject(data['Address']); + } + if (data.hasOwnProperty('Contact')) { + obj['Contact'] = JobContact.constructFromObject(data['Contact']); + } + } + return obj; + } + + +} + +/** + * Id + * @member {Number} Id + */ +JobDeliveryDetail.prototype['Id'] = undefined; + +/** + * Latitude + * @member {Number} Latitude + */ +JobDeliveryDetail.prototype['Latitude'] = undefined; + +/** + * Longitude + * @member {Number} Longitude + */ +JobDeliveryDetail.prototype['Longitude'] = undefined; + +/** + * Comment + * @member {String} Comment + */ +JobDeliveryDetail.prototype['Comment'] = undefined; + +/** + * @member {module:model/JobAddress} Address + */ +JobDeliveryDetail.prototype['Address'] = undefined; + +/** + * @member {module:model/JobContact} Contact + */ +JobDeliveryDetail.prototype['Contact'] = undefined; + + + + + + +export default JobDeliveryDetail; + diff --git a/src/model/JobDriver.js b/src/model/JobDriver.js new file mode 100644 index 00000000..cf2d18f2 --- /dev/null +++ b/src/model/JobDriver.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JobDriver model module. + * @module model/JobDriver + * @version 1.0.0 + */ +class JobDriver { + /** + * Constructs a new JobDriver. + * Job Driver + * @alias module:model/JobDriver + */ + constructor() { + + JobDriver.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobDriver from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobDriver} obj Optional instance to populate. + * @return {module:model/JobDriver} The populated JobDriver instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobDriver(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('DisplayName')) { + obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); + } + if (data.hasOwnProperty('Phone')) { + obj['Phone'] = ApiClient.convertToType(data['Phone'], 'String'); + } + if (data.hasOwnProperty('PictureUrl')) { + obj['PictureUrl'] = ApiClient.convertToType(data['PictureUrl'], 'String'); + } + if (data.hasOwnProperty('TransportType')) { + obj['TransportType'] = ApiClient.convertToType(data['TransportType'], 'String'); + } + if (data.hasOwnProperty('Latitude')) { + obj['Latitude'] = ApiClient.convertToType(data['Latitude'], 'Number'); + } + if (data.hasOwnProperty('Longitude')) { + obj['Longitude'] = ApiClient.convertToType(data['Longitude'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Id + * @member {Number} Id + */ +JobDriver.prototype['Id'] = undefined; + +/** + * Display Name + * @member {String} DisplayName + */ +JobDriver.prototype['DisplayName'] = undefined; + +/** + * Phone + * @member {String} Phone + */ +JobDriver.prototype['Phone'] = undefined; + +/** + * Picture Url + * @member {String} PictureUrl + */ +JobDriver.prototype['PictureUrl'] = undefined; + +/** + * Transport Type + * @member {String} TransportType + */ +JobDriver.prototype['TransportType'] = undefined; + +/** + * Latitude + * @member {Number} Latitude + */ +JobDriver.prototype['Latitude'] = undefined; + +/** + * Longitude + * @member {Number} Longitude + */ +JobDriver.prototype['Longitude'] = undefined; + + + + + + +export default JobDriver; + diff --git a/src/model/JobEta.js b/src/model/JobEta.js new file mode 100644 index 00000000..0f569763 --- /dev/null +++ b/src/model/JobEta.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JobEta model module. + * @module model/JobEta + * @version 1.0.0 + */ +class JobEta { + /** + * Constructs a new JobEta. + * Job Eta + * @alias module:model/JobEta + */ + constructor() { + + JobEta.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobEta from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobEta} obj Optional instance to populate. + * @return {module:model/JobEta} The populated JobEta instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobEta(); + + if (data.hasOwnProperty('Pickup')) { + obj['Pickup'] = ApiClient.convertToType(data['Pickup'], 'String'); + } + if (data.hasOwnProperty('Dropoff')) { + obj['Dropoff'] = ApiClient.convertToType(data['Dropoff'], 'String'); + } + } + return obj; + } + + +} + +/** + * Pickup + * @member {String} Pickup + */ +JobEta.prototype['Pickup'] = undefined; + +/** + * Dropoff + * @member {String} Dropoff + */ +JobEta.prototype['Dropoff'] = undefined; + + + + + + +export default JobEta; + diff --git a/src/model/JobPricing.js b/src/model/JobPricing.js new file mode 100644 index 00000000..aebce30e --- /dev/null +++ b/src/model/JobPricing.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JobPricing model module. + * @module model/JobPricing + * @version 1.0.0 + */ +class JobPricing { + /** + * Constructs a new JobPricing. + * Job Pricing + * @alias module:model/JobPricing + */ + constructor() { + + JobPricing.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobPricing from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobPricing} obj Optional instance to populate. + * @return {module:model/JobPricing} The populated JobPricing instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobPricing(); + + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('TaxPercentage')) { + obj['TaxPercentage'] = ApiClient.convertToType(data['TaxPercentage'], 'Number'); + } + if (data.hasOwnProperty('PriceTaxIncluded')) { + obj['PriceTaxIncluded'] = ApiClient.convertToType(data['PriceTaxIncluded'], 'Number'); + } + if (data.hasOwnProperty('PriceTaxExcluded')) { + obj['PriceTaxExcluded'] = ApiClient.convertToType(data['PriceTaxExcluded'], 'Number'); + } + if (data.hasOwnProperty('TaxAmount')) { + obj['TaxAmount'] = ApiClient.convertToType(data['TaxAmount'], 'Number'); + } + if (data.hasOwnProperty('InvoiceUrl')) { + obj['InvoiceUrl'] = ApiClient.convertToType(data['InvoiceUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Currency + * @member {String} Currency + */ +JobPricing.prototype['Currency'] = undefined; + +/** + * Tax Percentage + * @member {Number} TaxPercentage + */ +JobPricing.prototype['TaxPercentage'] = undefined; + +/** + * Price Tax Included + * @member {Number} PriceTaxIncluded + */ +JobPricing.prototype['PriceTaxIncluded'] = undefined; + +/** + * Price Tax Excluded + * @member {Number} PriceTaxExcluded + */ +JobPricing.prototype['PriceTaxExcluded'] = undefined; + +/** + * Tax Amount + * @member {Number} TaxAmount + */ +JobPricing.prototype['TaxAmount'] = undefined; + +/** + * Invoice Url + * @member {String} InvoiceUrl + */ +JobPricing.prototype['InvoiceUrl'] = undefined; + + + + + + +export default JobPricing; + diff --git a/src/model/JobProof.js b/src/model/JobProof.js new file mode 100644 index 00000000..999cc5f1 --- /dev/null +++ b/src/model/JobProof.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JobProof model module. + * @module model/JobProof + * @version 1.0.0 + */ +class JobProof { + /** + * Constructs a new JobProof. + * Job Proof + * @alias module:model/JobProof + */ + constructor() { + + JobProof.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobProof from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobProof} obj Optional instance to populate. + * @return {module:model/JobProof} The populated JobProof instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobProof(); + + if (data.hasOwnProperty('SignatureUrl')) { + obj['SignatureUrl'] = ApiClient.convertToType(data['SignatureUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Signature Url + * @member {String} SignatureUrl + */ +JobProof.prototype['SignatureUrl'] = undefined; + + + + + + +export default JobProof; + diff --git a/src/model/JobResponse.js b/src/model/JobResponse.js new file mode 100644 index 00000000..333987b3 --- /dev/null +++ b/src/model/JobResponse.js @@ -0,0 +1,191 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import JobDelivery from './JobDelivery'; +import JobDriver from './JobDriver'; +import JobPricing from './JobPricing'; + +/** + * The JobResponse model module. + * @module model/JobResponse + * @version 1.0.0 + */ +class JobResponse { + /** + * Constructs a new JobResponse. + * Job Response + * @alias module:model/JobResponse + */ + constructor() { + + JobResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a JobResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobResponse} obj Optional instance to populate. + * @return {module:model/JobResponse} The populated JobResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobResponse(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('CreatedAt')) { + obj['CreatedAt'] = ApiClient.convertToType(data['CreatedAt'], 'Date'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('PackageType')) { + obj['PackageType'] = ApiClient.convertToType(data['PackageType'], 'String'); + } + if (data.hasOwnProperty('TransportType')) { + obj['TransportType'] = ApiClient.convertToType(data['TransportType'], 'String'); + } + if (data.hasOwnProperty('AssignmentCode')) { + obj['AssignmentCode'] = ApiClient.convertToType(data['AssignmentCode'], 'String'); + } + if (data.hasOwnProperty('PickupAt')) { + obj['PickupAt'] = ApiClient.convertToType(data['PickupAt'], 'String'); + } + if (data.hasOwnProperty('DropoffAt')) { + obj['DropoffAt'] = ApiClient.convertToType(data['DropoffAt'], 'String'); + } + if (data.hasOwnProperty('Comment')) { + obj['Comment'] = ApiClient.convertToType(data['Comment'], 'String'); + } + if (data.hasOwnProperty('Distance')) { + obj['Distance'] = ApiClient.convertToType(data['Distance'], 'Number'); + } + if (data.hasOwnProperty('Duration')) { + obj['Duration'] = ApiClient.convertToType(data['Duration'], 'Number'); + } + if (data.hasOwnProperty('Deliveries')) { + obj['Deliveries'] = ApiClient.convertToType(data['Deliveries'], [JobDelivery]); + } + if (data.hasOwnProperty('Pricing')) { + obj['Pricing'] = JobPricing.constructFromObject(data['Pricing']); + } + if (data.hasOwnProperty('Driver')) { + obj['Driver'] = JobDriver.constructFromObject(data['Driver']); + } + } + return obj; + } + + +} + +/** + * Id + * @member {Number} Id + */ +JobResponse.prototype['Id'] = undefined; + +/** + * Created At + * @member {Date} CreatedAt + */ +JobResponse.prototype['CreatedAt'] = undefined; + +/** + * Status + * @member {String} Status + */ +JobResponse.prototype['Status'] = undefined; + +/** + * Package Type + * @member {String} PackageType + */ +JobResponse.prototype['PackageType'] = undefined; + +/** + * Transport Type + * @member {String} TransportType + */ +JobResponse.prototype['TransportType'] = undefined; + +/** + * Assignment Code + * @member {String} AssignmentCode + */ +JobResponse.prototype['AssignmentCode'] = undefined; + +/** + * Pickup At + * @member {String} PickupAt + */ +JobResponse.prototype['PickupAt'] = undefined; + +/** + * Dropoff At + * @member {String} DropoffAt + */ +JobResponse.prototype['DropoffAt'] = undefined; + +/** + * Comment + * @member {String} Comment + */ +JobResponse.prototype['Comment'] = undefined; + +/** + * Distance + * @member {Number} Distance + */ +JobResponse.prototype['Distance'] = undefined; + +/** + * Duration + * @member {Number} Duration + */ +JobResponse.prototype['Duration'] = undefined; + +/** + * Deliveries + * @member {Array.} Deliveries + */ +JobResponse.prototype['Deliveries'] = undefined; + +/** + * @member {module:model/JobPricing} Pricing + */ +JobResponse.prototype['Pricing'] = undefined; + +/** + * @member {module:model/JobDriver} Driver + */ +JobResponse.prototype['Driver'] = undefined; + + + + + + +export default JobResponse; + diff --git a/src/model/KioskBluetoothInstallUpdateInitiateEvent.js b/src/model/KioskBluetoothInstallUpdateInitiateEvent.js new file mode 100644 index 00000000..fb856da6 --- /dev/null +++ b/src/model/KioskBluetoothInstallUpdateInitiateEvent.js @@ -0,0 +1,193 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothInstallUpdateInitiateEvent model module. + * @module model/KioskBluetoothInstallUpdateInitiateEvent + * @version 1.0.0 + */ +class KioskBluetoothInstallUpdateInitiateEvent { + /** + * Constructs a new KioskBluetoothInstallUpdateInitiateEvent. + * Kiosk bluetooth Initiate Install Update Event + * @alias module:model/KioskBluetoothInstallUpdateInitiateEvent + */ + constructor() { + + KioskBluetoothInstallUpdateInitiateEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothInstallUpdateInitiateEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothInstallUpdateInitiateEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothInstallUpdateInitiateEvent} The populated KioskBluetoothInstallUpdateInitiateEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothInstallUpdateInitiateEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['DeviceId'] = undefined; + +/** + * Terminal Type + * @member {module:model/KioskBluetoothInstallUpdateInitiateEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothInstallUpdateInitiateEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskBluetoothInstallUpdateInitiateEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskBluetoothInstallUpdateInitiateEvent; + diff --git a/src/model/KioskBluetoothPairingModeEvent.js b/src/model/KioskBluetoothPairingModeEvent.js new file mode 100644 index 00000000..c600f507 --- /dev/null +++ b/src/model/KioskBluetoothPairingModeEvent.js @@ -0,0 +1,193 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothPairingModeEvent model module. + * @module model/KioskBluetoothPairingModeEvent + * @version 1.0.0 + */ +class KioskBluetoothPairingModeEvent { + /** + * Constructs a new KioskBluetoothPairingModeEvent. + * Kiosk Bluetooth Pairing mode initiated + * @alias module:model/KioskBluetoothPairingModeEvent + */ + constructor() { + + KioskBluetoothPairingModeEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothPairingModeEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothPairingModeEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothPairingModeEvent} The populated KioskBluetoothPairingModeEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothPairingModeEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothPairingModeEvent.prototype['DeviceId'] = undefined; + +/** + * Terminal Type + * @member {module:model/KioskBluetoothPairingModeEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskBluetoothPairingModeEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothPairingModeEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothPairingModeEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothPairingModeEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothPairingModeEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothPairingModeEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothPairingModeEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothPairingModeEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothPairingModeEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskBluetoothPairingModeEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskBluetoothPairingModeEvent; + diff --git a/src/model/KioskBluetoothTerminalCancelUpdateEvent.js b/src/model/KioskBluetoothTerminalCancelUpdateEvent.js new file mode 100644 index 00000000..329f6573 --- /dev/null +++ b/src/model/KioskBluetoothTerminalCancelUpdateEvent.js @@ -0,0 +1,193 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothTerminalCancelUpdateEvent model module. + * @module model/KioskBluetoothTerminalCancelUpdateEvent + * @version 1.0.0 + */ +class KioskBluetoothTerminalCancelUpdateEvent { + /** + * Constructs a new KioskBluetoothTerminalCancelUpdateEvent. + * Kiosk bluetooth Cancel Update Install Event + * @alias module:model/KioskBluetoothTerminalCancelUpdateEvent + */ + constructor() { + + KioskBluetoothTerminalCancelUpdateEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothTerminalCancelUpdateEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothTerminalCancelUpdateEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothTerminalCancelUpdateEvent} The populated KioskBluetoothTerminalCancelUpdateEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothTerminalCancelUpdateEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['DeviceId'] = undefined; + +/** + * Terminal Type + * @member {module:model/KioskBluetoothTerminalCancelUpdateEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothTerminalCancelUpdateEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskBluetoothTerminalCancelUpdateEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskBluetoothTerminalCancelUpdateEvent; + diff --git a/src/model/KioskBluetoothTerminalFirmwareVersionStatusEvent.js b/src/model/KioskBluetoothTerminalFirmwareVersionStatusEvent.js new file mode 100644 index 00000000..cd6bf5ae --- /dev/null +++ b/src/model/KioskBluetoothTerminalFirmwareVersionStatusEvent.js @@ -0,0 +1,223 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothTerminalFirmwareVersionStatusEvent model module. + * @module model/KioskBluetoothTerminalFirmwareVersionStatusEvent + * @version 1.0.0 + */ +class KioskBluetoothTerminalFirmwareVersionStatusEvent { + /** + * Constructs a new KioskBluetoothTerminalFirmwareVersionStatusEvent. + * Kiosk Stripe Terminal Update info received event + * @alias module:model/KioskBluetoothTerminalFirmwareVersionStatusEvent + */ + constructor() { + + KioskBluetoothTerminalFirmwareVersionStatusEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothTerminalFirmwareVersionStatusEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothTerminalFirmwareVersionStatusEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothTerminalFirmwareVersionStatusEvent} The populated KioskBluetoothTerminalFirmwareVersionStatusEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothTerminalFirmwareVersionStatusEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('SerialNumber')) { + obj['SerialNumber'] = ApiClient.convertToType(data['SerialNumber'], 'String'); + } + if (data.hasOwnProperty('HasFirmwareUpdate')) { + obj['HasFirmwareUpdate'] = ApiClient.convertToType(data['HasFirmwareUpdate'], 'Boolean'); + } + if (data.hasOwnProperty('HasConfigUpdate')) { + obj['HasConfigUpdate'] = ApiClient.convertToType(data['HasConfigUpdate'], 'Boolean'); + } + if (data.hasOwnProperty('HasKeyUpdate')) { + obj['HasKeyUpdate'] = ApiClient.convertToType(data['HasKeyUpdate'], 'Boolean'); + } + if (data.hasOwnProperty('UpdateTimeEstimate')) { + obj['UpdateTimeEstimate'] = ApiClient.convertToType(data['UpdateTimeEstimate'], 'String'); + } + if (data.hasOwnProperty('UserEventInfo')) { + obj['UserEventInfo'] = UserEventInfo.constructFromObject(data['UserEventInfo']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['DeviceId'] = undefined; + +/** + * Serial Number of the device + * @member {String} SerialNumber + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['SerialNumber'] = undefined; + +/** + * Indicates if Payment Terminal has Firmware Update + * @member {Boolean} HasFirmwareUpdate + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['HasFirmwareUpdate'] = undefined; + +/** + * Indicates if Payment Terminal has Config Update + * @member {Boolean} HasConfigUpdate + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['HasConfigUpdate'] = undefined; + +/** + * Indicates if Payment Terminal has Key Update + * @member {Boolean} HasKeyUpdate + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['HasKeyUpdate'] = undefined; + +/** + * ETA to install the update + * @member {module:model/KioskBluetoothTerminalFirmwareVersionStatusEvent.UpdateTimeEstimateEnum} UpdateTimeEstimate + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['UpdateTimeEstimate'] = undefined; + +/** + * @member {module:model/UserEventInfo} UserEventInfo + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['UserEventInfo'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the UpdateTimeEstimate property. + * @enum {String} + * @readonly + */ +KioskBluetoothTerminalFirmwareVersionStatusEvent['UpdateTimeEstimateEnum'] = { + + /** + * value: "LessThanOneMinute" + * @const + */ + "LessThanOneMinute": "LessThanOneMinute", + + /** + * value: "OneToTwoMinutes" + * @const + */ + "OneToTwoMinutes": "OneToTwoMinutes", + + /** + * value: "TwoToFiveMinutes" + * @const + */ + "TwoToFiveMinutes": "TwoToFiveMinutes", + + /** + * value: "FiveToFifteenMinutes" + * @const + */ + "FiveToFifteenMinutes": "FiveToFifteenMinutes" +}; + + + +export default KioskBluetoothTerminalFirmwareVersionStatusEvent; + diff --git a/src/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.js b/src/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.js new file mode 100644 index 00000000..8862b717 --- /dev/null +++ b/src/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothTerminalInitiateUpdateCheckEvent model module. + * @module model/KioskBluetoothTerminalInitiateUpdateCheckEvent + * @version 1.0.0 + */ +class KioskBluetoothTerminalInitiateUpdateCheckEvent { + /** + * Constructs a new KioskBluetoothTerminalInitiateUpdateCheckEvent. + * Kiosk bluetooth trigger update check event + * @alias module:model/KioskBluetoothTerminalInitiateUpdateCheckEvent + */ + constructor() { + + KioskBluetoothTerminalInitiateUpdateCheckEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothTerminalInitiateUpdateCheckEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothTerminalInitiateUpdateCheckEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothTerminalInitiateUpdateCheckEvent} The populated KioskBluetoothTerminalInitiateUpdateCheckEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothTerminalInitiateUpdateCheckEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['DeviceId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothTerminalInitiateUpdateCheckEvent.prototype['IpAddress'] = undefined; + + + + + + +export default KioskBluetoothTerminalInitiateUpdateCheckEvent; + diff --git a/src/model/KioskBluetoothTerminalInstallationStatusEvent.js b/src/model/KioskBluetoothTerminalInstallationStatusEvent.js new file mode 100644 index 00000000..02b44c1d --- /dev/null +++ b/src/model/KioskBluetoothTerminalInstallationStatusEvent.js @@ -0,0 +1,211 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothTerminalInstallationStatusEvent model module. + * @module model/KioskBluetoothTerminalInstallationStatusEvent + * @version 1.0.0 + */ +class KioskBluetoothTerminalInstallationStatusEvent { + /** + * Constructs a new KioskBluetoothTerminalInstallationStatusEvent. + * Kiosk bluetooth terminal Installation Status + * @alias module:model/KioskBluetoothTerminalInstallationStatusEvent + */ + constructor() { + + KioskBluetoothTerminalInstallationStatusEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothTerminalInstallationStatusEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothTerminalInstallationStatusEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothTerminalInstallationStatusEvent} The populated KioskBluetoothTerminalInstallationStatusEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothTerminalInstallationStatusEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalSerialNumber')) { + obj['BluetoothTerminalSerialNumber'] = ApiClient.convertToType(data['BluetoothTerminalSerialNumber'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Progress')) { + obj['Progress'] = ApiClient.convertToType(data['Progress'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['DeviceId'] = undefined; + +/** + * Terminal Type + * @member {module:model/KioskBluetoothTerminalInstallationStatusEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * Serial number of the terminal + * @member {String} BluetoothTerminalSerialNumber + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['BluetoothTerminalSerialNumber'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['User'] = undefined; + +/** + * Update Install Progress for Card Reader + * @member {Number} Progress + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['Progress'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothTerminalInstallationStatusEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskBluetoothTerminalInstallationStatusEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskBluetoothTerminalInstallationStatusEvent; + diff --git a/src/model/KioskBluetoothTerminalUnpairedEvent.js b/src/model/KioskBluetoothTerminalUnpairedEvent.js new file mode 100644 index 00000000..8d92e719 --- /dev/null +++ b/src/model/KioskBluetoothTerminalUnpairedEvent.js @@ -0,0 +1,193 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothTerminalUnpairedEvent model module. + * @module model/KioskBluetoothTerminalUnpairedEvent + * @version 1.0.0 + */ +class KioskBluetoothTerminalUnpairedEvent { + /** + * Constructs a new KioskBluetoothTerminalUnpairedEvent. + * Kiosk Bluetooth Unpairing mode initiated + * @alias module:model/KioskBluetoothTerminalUnpairedEvent + */ + constructor() { + + KioskBluetoothTerminalUnpairedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothTerminalUnpairedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothTerminalUnpairedEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothTerminalUnpairedEvent} The populated KioskBluetoothTerminalUnpairedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothTerminalUnpairedEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothTerminalUnpairedEvent.prototype['DeviceId'] = undefined; + +/** + * Terminal Type + * @member {module:model/KioskBluetoothTerminalUnpairedEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskBluetoothTerminalUnpairedEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothTerminalUnpairedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothTerminalUnpairedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothTerminalUnpairedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothTerminalUnpairedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothTerminalUnpairedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothTerminalUnpairedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothTerminalUnpairedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothTerminalUnpairedEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskBluetoothTerminalUnpairedEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskBluetoothTerminalUnpairedEvent; + diff --git a/src/model/KioskBluetoothTerminalUpdatedEvent.js b/src/model/KioskBluetoothTerminalUpdatedEvent.js new file mode 100644 index 00000000..52c2aee8 --- /dev/null +++ b/src/model/KioskBluetoothTerminalUpdatedEvent.js @@ -0,0 +1,211 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BluetoothTerminalStatus from './BluetoothTerminalStatus'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothTerminalUpdatedEvent model module. + * @module model/KioskBluetoothTerminalUpdatedEvent + * @version 1.0.0 + */ +class KioskBluetoothTerminalUpdatedEvent { + /** + * Constructs a new KioskBluetoothTerminalUpdatedEvent. + * Kiosk bluetooth terminal unpaired + * @alias module:model/KioskBluetoothTerminalUpdatedEvent + */ + constructor() { + + KioskBluetoothTerminalUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothTerminalUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothTerminalUpdatedEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothTerminalUpdatedEvent} The populated KioskBluetoothTerminalUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothTerminalUpdatedEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalSerialNumber')) { + obj['BluetoothTerminalSerialNumber'] = ApiClient.convertToType(data['BluetoothTerminalSerialNumber'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalStatus')) { + obj['BluetoothTerminalStatus'] = BluetoothTerminalStatus.constructFromObject(data['BluetoothTerminalStatus']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothTerminalUpdatedEvent.prototype['DeviceId'] = undefined; + +/** + * Terminal Type + * @member {module:model/KioskBluetoothTerminalUpdatedEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskBluetoothTerminalUpdatedEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * Serial number of the terminal + * @member {String} BluetoothTerminalSerialNumber + */ +KioskBluetoothTerminalUpdatedEvent.prototype['BluetoothTerminalSerialNumber'] = undefined; + +/** + * @member {module:model/BluetoothTerminalStatus} BluetoothTerminalStatus + */ +KioskBluetoothTerminalUpdatedEvent.prototype['BluetoothTerminalStatus'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothTerminalUpdatedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothTerminalUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothTerminalUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothTerminalUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothTerminalUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothTerminalUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothTerminalUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothTerminalUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskBluetoothTerminalUpdatedEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskBluetoothTerminalUpdatedEvent; + diff --git a/src/model/KioskBluetoothUnpairingModeEvent.js b/src/model/KioskBluetoothUnpairingModeEvent.js new file mode 100644 index 00000000..c9f825df --- /dev/null +++ b/src/model/KioskBluetoothUnpairingModeEvent.js @@ -0,0 +1,193 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The KioskBluetoothUnpairingModeEvent model module. + * @module model/KioskBluetoothUnpairingModeEvent + * @version 1.0.0 + */ +class KioskBluetoothUnpairingModeEvent { + /** + * Constructs a new KioskBluetoothUnpairingModeEvent. + * Kiosk Bluetooth Unpairing mode initiated + * @alias module:model/KioskBluetoothUnpairingModeEvent + */ + constructor() { + + KioskBluetoothUnpairingModeEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskBluetoothUnpairingModeEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskBluetoothUnpairingModeEvent} obj Optional instance to populate. + * @return {module:model/KioskBluetoothUnpairingModeEvent} The populated KioskBluetoothUnpairingModeEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskBluetoothUnpairingModeEvent(); + + if (data.hasOwnProperty('DeviceId')) { + obj['DeviceId'] = ApiClient.convertToType(data['DeviceId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device Id of the Kiosk + * @member {String} DeviceId + */ +KioskBluetoothUnpairingModeEvent.prototype['DeviceId'] = undefined; + +/** + * Terminal Type + * @member {module:model/KioskBluetoothUnpairingModeEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskBluetoothUnpairingModeEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +KioskBluetoothUnpairingModeEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskBluetoothUnpairingModeEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskBluetoothUnpairingModeEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskBluetoothUnpairingModeEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskBluetoothUnpairingModeEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskBluetoothUnpairingModeEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskBluetoothUnpairingModeEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskBluetoothUnpairingModeEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskBluetoothUnpairingModeEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskBluetoothUnpairingModeEvent; + diff --git a/src/model/KioskCashPaymentSettings.js b/src/model/KioskCashPaymentSettings.js new file mode 100644 index 00000000..18af565a --- /dev/null +++ b/src/model/KioskCashPaymentSettings.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The KioskCashPaymentSettings model module. + * @module model/KioskCashPaymentSettings + * @version 1.0.0 + */ +class KioskCashPaymentSettings { + /** + * Constructs a new KioskCashPaymentSettings. + * Get Cash Payment Settings for a UserId + * @alias module:model/KioskCashPaymentSettings + */ + constructor() { + + KioskCashPaymentSettings.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskCashPaymentSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskCashPaymentSettings} obj Optional instance to populate. + * @return {module:model/KioskCashPaymentSettings} The populated KioskCashPaymentSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskCashPaymentSettings(); + + if (data.hasOwnProperty('IsCashVisibleToCustomer')) { + obj['IsCashVisibleToCustomer'] = ApiClient.convertToType(data['IsCashVisibleToCustomer'], 'Boolean'); + } + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * false :disable cash on kiosk true :enable cash on kiosk + * @member {Boolean} IsCashVisibleToCustomer + */ +KioskCashPaymentSettings.prototype['IsCashVisibleToCustomer'] = undefined; + +/** + * HydraUser ID of the Device + * @member {Number} UserId + */ +KioskCashPaymentSettings.prototype['UserId'] = undefined; + + + + + + +export default KioskCashPaymentSettings; + diff --git a/src/model/KioskEntitlementsResult.js b/src/model/KioskEntitlementsResult.js new file mode 100644 index 00000000..7c27804b --- /dev/null +++ b/src/model/KioskEntitlementsResult.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The KioskEntitlementsResult model module. + * @module model/KioskEntitlementsResult + * @version 1.0.0 + */ +class KioskEntitlementsResult { + /** + * Constructs a new KioskEntitlementsResult. + * Kiosk entitlements and usage + * @alias module:model/KioskEntitlementsResult + */ + constructor() { + + KioskEntitlementsResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskEntitlementsResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskEntitlementsResult} obj Optional instance to populate. + * @return {module:model/KioskEntitlementsResult} The populated KioskEntitlementsResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskEntitlementsResult(); + + if (data.hasOwnProperty('EntitledQuantity')) { + obj['EntitledQuantity'] = ApiClient.convertToType(data['EntitledQuantity'], 'Number'); + } + if (data.hasOwnProperty('UsedQuantity')) { + obj['UsedQuantity'] = ApiClient.convertToType(data['UsedQuantity'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Number of kiosk devices entitled + * @member {Number} EntitledQuantity + */ +KioskEntitlementsResult.prototype['EntitledQuantity'] = undefined; + +/** + * The quantity of entitlements that have been used + * @member {Number} UsedQuantity + */ +KioskEntitlementsResult.prototype['UsedQuantity'] = undefined; + + + + + + +export default KioskEntitlementsResult; + diff --git a/src/model/KioskIotConnectionParameters.js b/src/model/KioskIotConnectionParameters.js new file mode 100644 index 00000000..a5e3802d --- /dev/null +++ b/src/model/KioskIotConnectionParameters.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The KioskIotConnectionParameters model module. + * @module model/KioskIotConnectionParameters + * @version 1.0.0 + */ +class KioskIotConnectionParameters { + /** + * Constructs a new KioskIotConnectionParameters. + * Connection parameters to IoT + * @alias module:model/KioskIotConnectionParameters + */ + constructor() { + + KioskIotConnectionParameters.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskIotConnectionParameters from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskIotConnectionParameters} obj Optional instance to populate. + * @return {module:model/KioskIotConnectionParameters} The populated KioskIotConnectionParameters instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskIotConnectionParameters(); + + if (data.hasOwnProperty('ConnectionString')) { + obj['ConnectionString'] = ApiClient.convertToType(data['ConnectionString'], 'String'); + } + } + return obj; + } + + +} + +/** + * The device connection string to the IoT server + * @member {String} ConnectionString + */ +KioskIotConnectionParameters.prototype['ConnectionString'] = undefined; + + + + + + +export default KioskIotConnectionParameters; + diff --git a/src/model/KioskSettings.js b/src/model/KioskSettings.js new file mode 100644 index 00000000..784f90cc --- /dev/null +++ b/src/model/KioskSettings.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The KioskSettings model module. + * @module model/KioskSettings + * @version 1.0.0 + */ +class KioskSettings { + /** + * Constructs a new KioskSettings. + * Kiosk level settings + * @alias module:model/KioskSettings + */ + constructor() { + + KioskSettings.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskSettings} obj Optional instance to populate. + * @return {module:model/KioskSettings} The populated KioskSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskSettings(); + + if (data.hasOwnProperty('HideLogoFromFrontPage')) { + obj['HideLogoFromFrontPage'] = ApiClient.convertToType(data['HideLogoFromFrontPage'], 'Boolean'); + } + if (data.hasOwnProperty('TwoColumnMenuLayout')) { + obj['TwoColumnMenuLayout'] = ApiClient.convertToType(data['TwoColumnMenuLayout'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Hide logo from front page + * @member {Boolean} HideLogoFromFrontPage + */ +KioskSettings.prototype['HideLogoFromFrontPage'] = undefined; + +/** + * 2 Column Menu Layout + * @member {Boolean} TwoColumnMenuLayout + */ +KioskSettings.prototype['TwoColumnMenuLayout'] = undefined; + + + + + + +export default KioskSettings; + diff --git a/src/model/KioskTerminalActionStateChangedEvent.js b/src/model/KioskTerminalActionStateChangedEvent.js new file mode 100644 index 00000000..615a5b36 --- /dev/null +++ b/src/model/KioskTerminalActionStateChangedEvent.js @@ -0,0 +1,202 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The KioskTerminalActionStateChangedEvent model module. + * @module model/KioskTerminalActionStateChangedEvent + * @version 1.0.0 + */ +class KioskTerminalActionStateChangedEvent { + /** + * Constructs a new KioskTerminalActionStateChangedEvent. + * Kiosk Terminal action state changed + * @alias module:model/KioskTerminalActionStateChangedEvent + */ + constructor() { + + KioskTerminalActionStateChangedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a KioskTerminalActionStateChangedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KioskTerminalActionStateChangedEvent} obj Optional instance to populate. + * @return {module:model/KioskTerminalActionStateChangedEvent} The populated KioskTerminalActionStateChangedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KioskTerminalActionStateChangedEvent(); + + if (data.hasOwnProperty('ReaderId')) { + obj['ReaderId'] = ApiClient.convertToType(data['ReaderId'], 'String'); + } + if (data.hasOwnProperty('BluetoothTerminalType')) { + obj['BluetoothTerminalType'] = ApiClient.convertToType(data['BluetoothTerminalType'], 'String'); + } + if (data.hasOwnProperty('ActionState')) { + obj['ActionState'] = ApiClient.convertToType(data['ActionState'], 'String'); + } + if (data.hasOwnProperty('FailureCode')) { + obj['FailureCode'] = ApiClient.convertToType(data['FailureCode'], 'String'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Card reader id + * @member {String} ReaderId + */ +KioskTerminalActionStateChangedEvent.prototype['ReaderId'] = undefined; + +/** + * Terminal type + * @member {module:model/KioskTerminalActionStateChangedEvent.BluetoothTerminalTypeEnum} BluetoothTerminalType + */ +KioskTerminalActionStateChangedEvent.prototype['BluetoothTerminalType'] = undefined; + +/** + * Action state. success or fail + * @member {String} ActionState + */ +KioskTerminalActionStateChangedEvent.prototype['ActionState'] = undefined; + +/** + * Failure code if processing is failed + * @member {String} FailureCode + */ +KioskTerminalActionStateChangedEvent.prototype['FailureCode'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +KioskTerminalActionStateChangedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +KioskTerminalActionStateChangedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +KioskTerminalActionStateChangedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +KioskTerminalActionStateChangedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +KioskTerminalActionStateChangedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +KioskTerminalActionStateChangedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +KioskTerminalActionStateChangedEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the BluetoothTerminalType property. + * @enum {String} + * @readonly + */ +KioskTerminalActionStateChangedEvent['BluetoothTerminalTypeEnum'] = { + + /** + * value: "CHIPPER_2X" + * @const + */ + "CHIPPER_2X": "CHIPPER_2X", + + /** + * value: "COTS_DEVICE" + * @const + */ + "COTS_DEVICE": "COTS_DEVICE", + + /** + * value: "VERIFONE_P400" + * @const + */ + "VERIFONE_P400": "VERIFONE_P400", + + /** + * value: "WISEPAD_3" + * @const + */ + "WISEPAD_3": "WISEPAD_3", + + /** + * value: "WISEPOS_E" + * @const + */ + "WISEPOS_E": "WISEPOS_E" +}; + + + +export default KioskTerminalActionStateChangedEvent; + diff --git a/src/model/Language.js b/src/model/Language.js new file mode 100644 index 00000000..69ced528 --- /dev/null +++ b/src/model/Language.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Language model module. + * @module model/Language + * @version 1.0.0 + */ +class Language { + /** + * Constructs a new Language. + * Sorted Language + * @alias module:model/Language + */ + constructor() { + + Language.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Language from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Language} obj Optional instance to populate. + * @return {module:model/Language} The populated Language instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Language(); + + if (data.hasOwnProperty('LanguageId')) { + obj['LanguageId'] = ApiClient.convertToType(data['LanguageId'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * ISO 639-1 Language Code + * @member {String} LanguageId + */ +Language.prototype['LanguageId'] = undefined; + +/** + * Display Order + * @member {Number} DisplayOrder + */ +Language.prototype['DisplayOrder'] = undefined; + +/** + * Language Name + * @member {String} Name + */ +Language.prototype['Name'] = undefined; + +/** + * Is the language enabled for use. + * @member {Boolean} Enabled + */ +Language.prototype['Enabled'] = undefined; + + + + + + +export default Language; + diff --git a/src/model/LastPaymentError.js b/src/model/LastPaymentError.js new file mode 100644 index 00000000..fe270274 --- /dev/null +++ b/src/model/LastPaymentError.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LastPaymentError model module. + * @module model/LastPaymentError + * @version 1.0.0 + */ +class LastPaymentError { + /** + * Constructs a new LastPaymentError. + * List's the issues with the last failed payment intent + * @alias module:model/LastPaymentError + */ + constructor() { + + LastPaymentError.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LastPaymentError from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LastPaymentError} obj Optional instance to populate. + * @return {module:model/LastPaymentError} The populated LastPaymentError instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LastPaymentError(); + + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('DeclineCode')) { + obj['DeclineCode'] = ApiClient.convertToType(data['DeclineCode'], 'String'); + } + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + +} + +/** + * For some errors that could be handled programmatically, a short string indicating the error code reported. + * @member {String} Code + */ +LastPaymentError.prototype['Code'] = undefined; + +/** + * For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one. + * @member {String} DeclineCode + */ +LastPaymentError.prototype['DeclineCode'] = undefined; + +/** + * A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + * @member {String} Message + */ +LastPaymentError.prototype['Message'] = undefined; + + + + + + +export default LastPaymentError; + diff --git a/src/model/LeadTime.js b/src/model/LeadTime.js new file mode 100644 index 00000000..1a8fe7a9 --- /dev/null +++ b/src/model/LeadTime.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LeadTime model module. + * @module model/LeadTime + * @version 1.0.0 + */ +class LeadTime { + /** + * Constructs a new LeadTime. + * + * @alias module:model/LeadTime + * @param DispatchType {String} There are two valid values for this field - `collection` and `delivery`. + * @param LeadTimeMinutes {Number} This must be a positive integer. + */ + constructor(DispatchType, LeadTimeMinutes) { + + LeadTime.initialize(this, DispatchType, LeadTimeMinutes); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, DispatchType, LeadTimeMinutes) { + obj['DispatchType'] = DispatchType; + obj['LeadTimeMinutes'] = LeadTimeMinutes; + } + + /** + * Constructs a LeadTime from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LeadTime} obj Optional instance to populate. + * @return {module:model/LeadTime} The populated LeadTime instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LeadTime(); + + if (data.hasOwnProperty('DispatchType')) { + obj['DispatchType'] = ApiClient.convertToType(data['DispatchType'], 'String'); + } + if (data.hasOwnProperty('LeadTimeMinutes')) { + obj['LeadTimeMinutes'] = ApiClient.convertToType(data['LeadTimeMinutes'], 'Number'); + } + } + return obj; + } + + +} + +/** + * There are two valid values for this field - `collection` and `delivery`. + * @member {String} DispatchType + */ +LeadTime.prototype['DispatchType'] = undefined; + +/** + * This must be a positive integer. + * @member {Number} LeadTimeMinutes + */ +LeadTime.prototype['LeadTimeMinutes'] = undefined; + + + + + + +export default LeadTime; + diff --git a/src/model/LightspeedSettings.js b/src/model/LightspeedSettings.js new file mode 100644 index 00000000..3e918677 --- /dev/null +++ b/src/model/LightspeedSettings.js @@ -0,0 +1,298 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LightspeedSettings model module. + * @module model/LightspeedSettings + * @version 1.0.0 + */ +class LightspeedSettings { + /** + * Constructs a new LightspeedSettings. + * Ligthspeed store settings + * @alias module:model/LightspeedSettings + */ + constructor() { + + LightspeedSettings.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LightspeedSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LightspeedSettings} obj Optional instance to populate. + * @return {module:model/LightspeedSettings} The populated LightspeedSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LightspeedSettings(); + + if (data.hasOwnProperty('CompanyId')) { + obj['CompanyId'] = ApiClient.convertToType(data['CompanyId'], 'String'); + } + if (data.hasOwnProperty('UseOAuth')) { + obj['UseOAuth'] = ApiClient.convertToType(data['UseOAuth'], 'Boolean'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + if (data.hasOwnProperty('EstimatedMinutesForDelivery')) { + obj['EstimatedMinutesForDelivery'] = ApiClient.convertToType(data['EstimatedMinutesForDelivery'], 'Number'); + } + if (data.hasOwnProperty('EstimatedMinutesForCollection')) { + obj['EstimatedMinutesForCollection'] = ApiClient.convertToType(data['EstimatedMinutesForCollection'], 'Number'); + } + if (data.hasOwnProperty('GeographicLocation')) { + obj['GeographicLocation'] = ApiClient.convertToType(data['GeographicLocation'], 'String'); + } + if (data.hasOwnProperty('Establishment')) { + obj['Establishment'] = ApiClient.convertToType(data['Establishment'], 'Boolean'); + } + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'String'); + } + if (data.hasOwnProperty('DeliveryFeeId')) { + obj['DeliveryFeeId'] = ApiClient.convertToType(data['DeliveryFeeId'], 'String'); + } + if (data.hasOwnProperty('ProcessingFeeId')) { + obj['ProcessingFeeId'] = ApiClient.convertToType(data['ProcessingFeeId'], 'String'); + } + if (data.hasOwnProperty('PriceType')) { + obj['PriceType'] = ApiClient.convertToType(data['PriceType'], 'String'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('CollectionTableId')) { + obj['CollectionTableId'] = ApiClient.convertToType(data['CollectionTableId'], 'Number'); + } + if (data.hasOwnProperty('DeliveryTableId')) { + obj['DeliveryTableId'] = ApiClient.convertToType(data['DeliveryTableId'], 'Number'); + } + if (data.hasOwnProperty('CollectionTableIds')) { + obj['CollectionTableIds'] = ApiClient.convertToType(data['CollectionTableIds'], {'String': 'String'}); + } + if (data.hasOwnProperty('DeliveryTableIds')) { + obj['DeliveryTableIds'] = ApiClient.convertToType(data['DeliveryTableIds'], {'String': 'String'}); + } + if (data.hasOwnProperty('UseTaxInclusivePrices')) { + obj['UseTaxInclusivePrices'] = ApiClient.convertToType(data['UseTaxInclusivePrices'], 'Boolean'); + } + if (data.hasOwnProperty('SkipStatusCheckAndAcceptOrderAfterSending')) { + obj['SkipStatusCheckAndAcceptOrderAfterSending'] = ApiClient.convertToType(data['SkipStatusCheckAndAcceptOrderAfterSending'], 'Boolean'); + } + if (data.hasOwnProperty('SendTableNumberToTableId')) { + obj['SendTableNumberToTableId'] = ApiClient.convertToType(data['SendTableNumberToTableId'], 'Boolean'); + } + if (data.hasOwnProperty('AddChefNoteToProduct')) { + obj['AddChefNoteToProduct'] = ApiClient.convertToType(data['AddChefNoteToProduct'], 'Boolean'); + } + if (data.hasOwnProperty('ChefNoteItemId')) { + obj['ChefNoteItemId'] = ApiClient.convertToType(data['ChefNoteItemId'], 'String'); + } + if (data.hasOwnProperty('ChefNoteModifierId')) { + obj['ChefNoteModifierId'] = ApiClient.convertToType(data['ChefNoteModifierId'], 'String'); + } + if (data.hasOwnProperty('ServiceChargeId')) { + obj['ServiceChargeId'] = ApiClient.convertToType(data['ServiceChargeId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Company Id + * @member {String} CompanyId + */ +LightspeedSettings.prototype['CompanyId'] = undefined; + +/** + * Use OAuth for authentication + * @member {Boolean} UseOAuth + */ +LightspeedSettings.prototype['UseOAuth'] = undefined; + +/** + * Enabled + * @member {Boolean} Enabled + */ +LightspeedSettings.prototype['Enabled'] = undefined; + +/** + * Estimated minutes for delivery + * @member {Number} EstimatedMinutesForDelivery + */ +LightspeedSettings.prototype['EstimatedMinutesForDelivery'] = undefined; + +/** + * Estimated minutes for collection + * @member {Number} EstimatedMinutesForCollection + */ +LightspeedSettings.prototype['EstimatedMinutesForCollection'] = undefined; + +/** + * Geographic location (euc1, nae1, euw2, ....)) + * @member {String} GeographicLocation + */ +LightspeedSettings.prototype['GeographicLocation'] = undefined; + +/** + * Is the CompanyId an establishment (kind of the store of a group of store) + * @member {Boolean} Establishment + */ +LightspeedSettings.prototype['Establishment'] = undefined; + +/** + * The Lightspeed voucher identifier to map with our + * @member {String} VoucherId + */ +LightspeedSettings.prototype['VoucherId'] = undefined; + +/** + * The Lightspeed delivery fee identifier to map with our + * @member {String} DeliveryFeeId + */ +LightspeedSettings.prototype['DeliveryFeeId'] = undefined; + +/** + * The Lightspeed processing fee identifier to map with our + * @member {String} ProcessingFeeId + */ +LightspeedSettings.prototype['ProcessingFeeId'] = undefined; + +/** + * Which price to choose from Lightspeed menu + * @member {module:model/LightspeedSettings.PriceTypeEnum} PriceType + */ +LightspeedSettings.prototype['PriceType'] = undefined; + +/** + * The menu id of the store + * @member {Number} MenuId + */ +LightspeedSettings.prototype['MenuId'] = undefined; + +/** + * Collection Table ID to send orders + * @member {Number} CollectionTableId + */ +LightspeedSettings.prototype['CollectionTableId'] = undefined; + +/** + * Delivery Table ID to send orders + * @member {Number} DeliveryTableId + */ +LightspeedSettings.prototype['DeliveryTableId'] = undefined; + +/** + * Collection Table IDs to send orders to + * @member {Object.} CollectionTableIds + */ +LightspeedSettings.prototype['CollectionTableIds'] = undefined; + +/** + * Delivery Table IDs to send orders to + * @member {Object.} DeliveryTableIds + */ +LightspeedSettings.prototype['DeliveryTableIds'] = undefined; + +/** + * Exclude tax + * @member {Boolean} UseTaxInclusivePrices + */ +LightspeedSettings.prototype['UseTaxInclusivePrices'] = undefined; + +/** + * WARNING: only use this option if the Liteserver is not synchronizing within max 5 minutes with Lightspeed cloud! + * @member {Boolean} SkipStatusCheckAndAcceptOrderAfterSending + */ +LightspeedSettings.prototype['SkipStatusCheckAndAcceptOrderAfterSending'] = undefined; + +/** + * Send Table Number to Table Id + * @member {Boolean} SendTableNumberToTableId + */ +LightspeedSettings.prototype['SendTableNumberToTableId'] = undefined; + +/** + * Add ChefNote To Product + * @member {Boolean} AddChefNoteToProduct + */ +LightspeedSettings.prototype['AddChefNoteToProduct'] = undefined; + +/** + * The Lightspeed Chef Note Item Id to map + * @member {String} ChefNoteItemId + */ +LightspeedSettings.prototype['ChefNoteItemId'] = undefined; + +/** + * The Lightspeed Chef Note Modifier Id to map + * @member {String} ChefNoteModifierId + */ +LightspeedSettings.prototype['ChefNoteModifierId'] = undefined; + +/** + * The Lightspeed Service Charge Id to map + * @member {String} ServiceChargeId + */ +LightspeedSettings.prototype['ServiceChargeId'] = undefined; + + + + + +/** + * Allowed values for the PriceType property. + * @enum {String} + * @readonly + */ +LightspeedSettings['PriceTypeEnum'] = { + + /** + * value: "Default" + * @const + */ + "Default": "Default", + + /** + * value: "Takeaway" + * @const + */ + "Takeaway": "Takeaway", + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery" +}; + + + +export default LightspeedSettings; + diff --git a/src/model/LocalisedTimeZone.js b/src/model/LocalisedTimeZone.js new file mode 100644 index 00000000..177bd3bb --- /dev/null +++ b/src/model/LocalisedTimeZone.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LocalisedTimeZone model module. + * @module model/LocalisedTimeZone + * @version 1.0.0 + */ +class LocalisedTimeZone { + /** + * Constructs a new LocalisedTimeZone. + * Represents a localised time zone + * @alias module:model/LocalisedTimeZone + */ + constructor() { + + LocalisedTimeZone.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LocalisedTimeZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocalisedTimeZone} obj Optional instance to populate. + * @return {module:model/LocalisedTimeZone} The populated LocalisedTimeZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocalisedTimeZone(); + + if (data.hasOwnProperty('TimeZoneId')) { + obj['TimeZoneId'] = ApiClient.convertToType(data['TimeZoneId'], 'String'); + } + if (data.hasOwnProperty('IanaTimeZoneId')) { + obj['IanaTimeZoneId'] = ApiClient.convertToType(data['IanaTimeZoneId'], 'String'); + } + if (data.hasOwnProperty('DisplayName')) { + obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Microsoft Time Zone Id + * @member {String} TimeZoneId + */ +LocalisedTimeZone.prototype['TimeZoneId'] = undefined; + +/** + * Iana Time Zone Id + * @member {String} IanaTimeZoneId + */ +LocalisedTimeZone.prototype['IanaTimeZoneId'] = undefined; + +/** + * Display name in users language + * @member {String} DisplayName + */ +LocalisedTimeZone.prototype['DisplayName'] = undefined; + + + + + + +export default LocalisedTimeZone; + diff --git a/src/model/LocationArea.js b/src/model/LocationArea.js new file mode 100644 index 00000000..65114064 --- /dev/null +++ b/src/model/LocationArea.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LocationArea model module. + * @module model/LocationArea + * @version 1.0.0 + */ +class LocationArea { + /** + * Constructs a new LocationArea. + * Represents a LocationArea + * @alias module:model/LocationArea + */ + constructor() { + + LocationArea.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LocationArea from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocationArea} obj Optional instance to populate. + * @return {module:model/LocationArea} The populated LocationArea instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocationArea(); + + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'Number'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('LocationAreaName')) { + obj['LocationAreaName'] = ApiClient.convertToType(data['LocationAreaName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of the LocationArea + * @member {Number} LocationAreaId + */ +LocationArea.prototype['LocationAreaId'] = undefined; + +/** + * Id of the Store that this LocationArea belongs to + * @member {Number} StoreId + */ +LocationArea.prototype['StoreId'] = undefined; + +/** + * Descriptive LocationArea name + * @member {String} LocationAreaName + */ +LocationArea.prototype['LocationAreaName'] = undefined; + + + + + + +export default LocationArea; + diff --git a/src/model/LocationAreaCreatedEvent.js b/src/model/LocationAreaCreatedEvent.js new file mode 100644 index 00000000..18412e07 --- /dev/null +++ b/src/model/LocationAreaCreatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The LocationAreaCreatedEvent model module. + * @module model/LocationAreaCreatedEvent + * @version 1.0.0 + */ +class LocationAreaCreatedEvent { + /** + * Constructs a new LocationAreaCreatedEvent. + * Event for logging creating of LocationAreas + * @alias module:model/LocationAreaCreatedEvent + */ + constructor() { + + LocationAreaCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LocationAreaCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocationAreaCreatedEvent} obj Optional instance to populate. + * @return {module:model/LocationAreaCreatedEvent} The populated LocationAreaCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocationAreaCreatedEvent(); + + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'String'); + } + if (data.hasOwnProperty('LocationAreaName')) { + obj['LocationAreaName'] = ApiClient.convertToType(data['LocationAreaName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * LocationArea Id + * @member {String} LocationAreaId + */ +LocationAreaCreatedEvent.prototype['LocationAreaId'] = undefined; + +/** + * LocationArea name + * @member {String} LocationAreaName + */ +LocationAreaCreatedEvent.prototype['LocationAreaName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +LocationAreaCreatedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +LocationAreaCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +LocationAreaCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +LocationAreaCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +LocationAreaCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +LocationAreaCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +LocationAreaCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +LocationAreaCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default LocationAreaCreatedEvent; + diff --git a/src/model/LocationAreaLocation.js b/src/model/LocationAreaLocation.js new file mode 100644 index 00000000..3589232a --- /dev/null +++ b/src/model/LocationAreaLocation.js @@ -0,0 +1,115 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LocationAreaLocation model module. + * @module model/LocationAreaLocation + * @version 1.0.0 + */ +class LocationAreaLocation { + /** + * Constructs a new LocationAreaLocation. + * Representation of a Location i.e: (Table, Hotel Room, Car Park, etc ) + * @alias module:model/LocationAreaLocation + * @param LocationId {Number} Id of the Location + * @param LocationName {String} Name of the Location + * @param DisplayOrder {Number} The order that the Location should be displayed on the screen + */ + constructor(LocationId, LocationName, DisplayOrder) { + + LocationAreaLocation.initialize(this, LocationId, LocationName, DisplayOrder); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, LocationId, LocationName, DisplayOrder) { + obj['LocationId'] = LocationId; + obj['LocationName'] = LocationName; + obj['DisplayOrder'] = DisplayOrder; + } + + /** + * Constructs a LocationAreaLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocationAreaLocation} obj Optional instance to populate. + * @return {module:model/LocationAreaLocation} The populated LocationAreaLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocationAreaLocation(); + + if (data.hasOwnProperty('LocationId')) { + obj['LocationId'] = ApiClient.convertToType(data['LocationId'], 'Number'); + } + if (data.hasOwnProperty('LocationName')) { + obj['LocationName'] = ApiClient.convertToType(data['LocationName'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('ExternalLocationId')) { + obj['ExternalLocationId'] = ApiClient.convertToType(data['ExternalLocationId'], 'String'); + } + if (data.hasOwnProperty('IsDeleted')) { + obj['IsDeleted'] = ApiClient.convertToType(data['IsDeleted'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Id of the Location + * @member {Number} LocationId + */ +LocationAreaLocation.prototype['LocationId'] = undefined; + +/** + * Name of the Location + * @member {String} LocationName + */ +LocationAreaLocation.prototype['LocationName'] = undefined; + +/** + * The order that the Location should be displayed on the screen + * @member {Number} DisplayOrder + */ +LocationAreaLocation.prototype['DisplayOrder'] = undefined; + +/** + * Id of the Location on an external system + * @member {String} ExternalLocationId + */ +LocationAreaLocation.prototype['ExternalLocationId'] = undefined; + +/** + * Shows if the Location is deleted or not + * @member {Boolean} IsDeleted + */ +LocationAreaLocation.prototype['IsDeleted'] = undefined; + + + + + + +export default LocationAreaLocation; + diff --git a/src/model/LocationAreaUpdatedEvent.js b/src/model/LocationAreaUpdatedEvent.js new file mode 100644 index 00000000..3438a3f7 --- /dev/null +++ b/src/model/LocationAreaUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The LocationAreaUpdatedEvent model module. + * @module model/LocationAreaUpdatedEvent + * @version 1.0.0 + */ +class LocationAreaUpdatedEvent { + /** + * Constructs a new LocationAreaUpdatedEvent. + * Event for logging updates of LocationAreas + * @alias module:model/LocationAreaUpdatedEvent + */ + constructor() { + + LocationAreaUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LocationAreaUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocationAreaUpdatedEvent} obj Optional instance to populate. + * @return {module:model/LocationAreaUpdatedEvent} The populated LocationAreaUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocationAreaUpdatedEvent(); + + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'String'); + } + if (data.hasOwnProperty('LocationAreaName')) { + obj['LocationAreaName'] = ApiClient.convertToType(data['LocationAreaName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * LocationArea Id + * @member {String} LocationAreaId + */ +LocationAreaUpdatedEvent.prototype['LocationAreaId'] = undefined; + +/** + * LocationArea Name + * @member {String} LocationAreaName + */ +LocationAreaUpdatedEvent.prototype['LocationAreaName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +LocationAreaUpdatedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +LocationAreaUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +LocationAreaUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +LocationAreaUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +LocationAreaUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +LocationAreaUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +LocationAreaUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +LocationAreaUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default LocationAreaUpdatedEvent; + diff --git a/src/model/LocationAreaWithLocations.js b/src/model/LocationAreaWithLocations.js new file mode 100644 index 00000000..a67f3423 --- /dev/null +++ b/src/model/LocationAreaWithLocations.js @@ -0,0 +1,116 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LocationAreaLocation from './LocationAreaLocation'; + +/** + * The LocationAreaWithLocations model module. + * @module model/LocationAreaWithLocations + * @version 1.0.0 + */ +class LocationAreaWithLocations { + /** + * Constructs a new LocationAreaWithLocations. + * Represents a LocationArea and its Location list + * @alias module:model/LocationAreaWithLocations + * @param LocationAreaId {Number} Id of the LocationArea + * @param StoreId {Number} Id of the Store that this LocationArea belongs to + * @param LocationAreaName {String} Descriptive LocationArea name + */ + constructor(LocationAreaId, StoreId, LocationAreaName) { + + LocationAreaWithLocations.initialize(this, LocationAreaId, StoreId, LocationAreaName); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, LocationAreaId, StoreId, LocationAreaName) { + obj['LocationAreaId'] = LocationAreaId; + obj['StoreId'] = StoreId; + obj['LocationAreaName'] = LocationAreaName; + } + + /** + * Constructs a LocationAreaWithLocations from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocationAreaWithLocations} obj Optional instance to populate. + * @return {module:model/LocationAreaWithLocations} The populated LocationAreaWithLocations instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocationAreaWithLocations(); + + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'Number'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('LocationAreaName')) { + obj['LocationAreaName'] = ApiClient.convertToType(data['LocationAreaName'], 'String'); + } + if (data.hasOwnProperty('Locations')) { + obj['Locations'] = ApiClient.convertToType(data['Locations'], [LocationAreaLocation]); + } + if (data.hasOwnProperty('IsDeleted')) { + obj['IsDeleted'] = ApiClient.convertToType(data['IsDeleted'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Id of the LocationArea + * @member {Number} LocationAreaId + */ +LocationAreaWithLocations.prototype['LocationAreaId'] = undefined; + +/** + * Id of the Store that this LocationArea belongs to + * @member {Number} StoreId + */ +LocationAreaWithLocations.prototype['StoreId'] = undefined; + +/** + * Descriptive LocationArea name + * @member {String} LocationAreaName + */ +LocationAreaWithLocations.prototype['LocationAreaName'] = undefined; + +/** + * List of Locations that belongs to this Location Area + * @member {Array.} Locations + */ +LocationAreaWithLocations.prototype['Locations'] = undefined; + +/** + * Returns if the LocationArea is deleted or not + * @member {Boolean} IsDeleted + */ +LocationAreaWithLocations.prototype['IsDeleted'] = undefined; + + + + + + +export default LocationAreaWithLocations; + diff --git a/src/model/LocationCreatedEvent.js b/src/model/LocationCreatedEvent.js new file mode 100644 index 00000000..4b5be318 --- /dev/null +++ b/src/model/LocationCreatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LocationCreatedEvent model module. + * @module model/LocationCreatedEvent + * @version 1.0.0 + */ +class LocationCreatedEvent { + /** + * Constructs a new LocationCreatedEvent. + * Event for logging the creating of Locations + * @alias module:model/LocationCreatedEvent + */ + constructor() { + + LocationCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LocationCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocationCreatedEvent} obj Optional instance to populate. + * @return {module:model/LocationCreatedEvent} The populated LocationCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocationCreatedEvent(); + + if (data.hasOwnProperty('LocationId')) { + obj['LocationId'] = ApiClient.convertToType(data['LocationId'], 'Number'); + } + if (data.hasOwnProperty('LocationName')) { + obj['LocationName'] = ApiClient.convertToType(data['LocationName'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('ExternalLocationId')) { + obj['ExternalLocationId'] = ApiClient.convertToType(data['ExternalLocationId'], 'String'); + } + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Location Location Id + * @member {Number} LocationId + */ +LocationCreatedEvent.prototype['LocationId'] = undefined; + +/** + * Location LocationName + * @member {String} LocationName + */ +LocationCreatedEvent.prototype['LocationName'] = undefined; + +/** + * Location DisplayOrder + * @member {Number} DisplayOrder + */ +LocationCreatedEvent.prototype['DisplayOrder'] = undefined; + +/** + * Location ExternalLocationId + * @member {String} ExternalLocationId + */ +LocationCreatedEvent.prototype['ExternalLocationId'] = undefined; + +/** + * Location LocationAreaId + * @member {Number} LocationAreaId + */ +LocationCreatedEvent.prototype['LocationAreaId'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +LocationCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +LocationCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +LocationCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +LocationCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +LocationCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +LocationCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +LocationCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default LocationCreatedEvent; + diff --git a/src/model/LocationDeletedEvent.js b/src/model/LocationDeletedEvent.js new file mode 100644 index 00000000..2561b320 --- /dev/null +++ b/src/model/LocationDeletedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LocationDeletedEvent model module. + * @module model/LocationDeletedEvent + * @version 1.0.0 + */ +class LocationDeletedEvent { + /** + * Constructs a new LocationDeletedEvent. + * Event for logging the deleting of Locations + * @alias module:model/LocationDeletedEvent + */ + constructor() { + + LocationDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LocationDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LocationDeletedEvent} obj Optional instance to populate. + * @return {module:model/LocationDeletedEvent} The populated LocationDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LocationDeletedEvent(); + + if (data.hasOwnProperty('LocationId')) { + obj['LocationId'] = ApiClient.convertToType(data['LocationId'], 'Number'); + } + if (data.hasOwnProperty('LocationName')) { + obj['LocationName'] = ApiClient.convertToType(data['LocationName'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('ExternalLocationId')) { + obj['ExternalLocationId'] = ApiClient.convertToType(data['ExternalLocationId'], 'String'); + } + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Location Id + * @member {Number} LocationId + */ +LocationDeletedEvent.prototype['LocationId'] = undefined; + +/** + * Location Name + * @member {String} LocationName + */ +LocationDeletedEvent.prototype['LocationName'] = undefined; + +/** + * Location DisplayOrder + * @member {Number} DisplayOrder + */ +LocationDeletedEvent.prototype['DisplayOrder'] = undefined; + +/** + * Location ExternalLocationId + * @member {String} ExternalLocationId + */ +LocationDeletedEvent.prototype['ExternalLocationId'] = undefined; + +/** + * LocationAreaId + * @member {Number} LocationAreaId + */ +LocationDeletedEvent.prototype['LocationAreaId'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +LocationDeletedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +LocationDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +LocationDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +LocationDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +LocationDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +LocationDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +LocationDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default LocationDeletedEvent; + diff --git a/src/model/LoginModel.js b/src/model/LoginModel.js new file mode 100644 index 00000000..019dd645 --- /dev/null +++ b/src/model/LoginModel.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LoginModel model module. + * @module model/LoginModel + * @version 1.0.0 + */ +class LoginModel { + /** + * Constructs a new LoginModel. + * Login model + * @alias module:model/LoginModel + * @param Email {String} Email address + * @param Password {String} Password + */ + constructor(Email, Password) { + + LoginModel.initialize(this, Email, Password); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Email, Password) { + obj['Email'] = Email; + obj['Password'] = Password; + } + + /** + * Constructs a LoginModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoginModel} obj Optional instance to populate. + * @return {module:model/LoginModel} The populated LoginModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoginModel(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('Password')) { + obj['Password'] = ApiClient.convertToType(data['Password'], 'String'); + } + } + return obj; + } + + +} + +/** + * Email address + * @member {String} Email + */ +LoginModel.prototype['Email'] = undefined; + +/** + * Password + * @member {String} Password + */ +LoginModel.prototype['Password'] = undefined; + + + + + + +export default LoginModel; + diff --git a/src/model/LoginWithPinModel.js b/src/model/LoginWithPinModel.js new file mode 100644 index 00000000..e9dc0628 --- /dev/null +++ b/src/model/LoginWithPinModel.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LoginWithPinModel model module. + * @module model/LoginWithPinModel + * @version 1.0.0 + */ +class LoginWithPinModel { + /** + * Constructs a new LoginWithPinModel. + * Login with PIN model + * @alias module:model/LoginWithPinModel + * @param Email {String} Email addres + * @param Pin {Number} PIN code (received via email) + */ + constructor(Email, Pin) { + + LoginWithPinModel.initialize(this, Email, Pin); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Email, Pin) { + obj['Email'] = Email; + obj['Pin'] = Pin; + } + + /** + * Constructs a LoginWithPinModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoginWithPinModel} obj Optional instance to populate. + * @return {module:model/LoginWithPinModel} The populated LoginWithPinModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoginWithPinModel(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('Pin')) { + obj['Pin'] = ApiClient.convertToType(data['Pin'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Email addres + * @member {String} Email + */ +LoginWithPinModel.prototype['Email'] = undefined; + +/** + * PIN code (received via email) + * @member {Number} Pin + */ +LoginWithPinModel.prototype['Pin'] = undefined; + + + + + + +export default LoginWithPinModel; + diff --git a/src/model/LoyaltyCampaign.js b/src/model/LoyaltyCampaign.js new file mode 100644 index 00000000..b1b62d57 --- /dev/null +++ b/src/model/LoyaltyCampaign.js @@ -0,0 +1,218 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CampaignStatistics from './CampaignStatistics'; +import StoreCampaignStartTime from './StoreCampaignStartTime'; + +/** + * The LoyaltyCampaign model module. + * @module model/LoyaltyCampaign + * @version 1.0.0 + */ +class LoyaltyCampaign { + /** + * Constructs a new LoyaltyCampaign. + * Loyalty campaign + * @alias module:model/LoyaltyCampaign + */ + constructor() { + + LoyaltyCampaign.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LoyaltyCampaign from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoyaltyCampaign} obj Optional instance to populate. + * @return {module:model/LoyaltyCampaign} The populated LoyaltyCampaign instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoyaltyCampaign(); + + if (data.hasOwnProperty('CampaignId')) { + obj['CampaignId'] = ApiClient.convertToType(data['CampaignId'], 'Number'); + } + if (data.hasOwnProperty('Statistics')) { + obj['Statistics'] = CampaignStatistics.constructFromObject(data['Statistics']); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], [StoreCampaignStartTime]); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('OrdersBeforeReceivingVoucher')) { + obj['OrdersBeforeReceivingVoucher'] = ApiClient.convertToType(data['OrdersBeforeReceivingVoucher'], 'Number'); + } + if (data.hasOwnProperty('PercentDiscountAmount')) { + obj['PercentDiscountAmount'] = ApiClient.convertToType(data['PercentDiscountAmount'], 'Number'); + } + if (data.hasOwnProperty('MaxDiscount')) { + obj['MaxDiscount'] = ApiClient.convertToType(data['MaxDiscount'], 'Number'); + } + if (data.hasOwnProperty('RoundingStrategy')) { + obj['RoundingStrategy'] = ApiClient.convertToType(data['RoundingStrategy'], 'Number'); + } + if (data.hasOwnProperty('ShouldIncludeOrdersWithLoyaltyVoucher')) { + obj['ShouldIncludeOrdersWithLoyaltyVoucher'] = ApiClient.convertToType(data['ShouldIncludeOrdersWithLoyaltyVoucher'], 'Boolean'); + } + if (data.hasOwnProperty('VoucherValidPeriodDays')) { + obj['VoucherValidPeriodDays'] = ApiClient.convertToType(data['VoucherValidPeriodDays'], 'Number'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('AutoApplyResultingVouchers')) { + obj['AutoApplyResultingVouchers'] = ApiClient.convertToType(data['AutoApplyResultingVouchers'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeExistingOrders')) { + obj['IncludeExistingOrders'] = ApiClient.convertToType(data['IncludeExistingOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Id of campaign + * @member {Number} CampaignId + */ +LoyaltyCampaign.prototype['CampaignId'] = undefined; + +/** + * @member {module:model/CampaignStatistics} Statistics + */ +LoyaltyCampaign.prototype['Statistics'] = undefined; + +/** + * Stores this campaign applies to with campaign start time in Utc + * @member {Array.} Stores + */ +LoyaltyCampaign.prototype['Stores'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +LoyaltyCampaign.prototype['PublicId'] = undefined; + +/** + * Number of orders customer needs to make, before receiving voucher + * @member {Number} OrdersBeforeReceivingVoucher + */ +LoyaltyCampaign.prototype['OrdersBeforeReceivingVoucher'] = undefined; + +/** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ +LoyaltyCampaign.prototype['PercentDiscountAmount'] = undefined; + +/** + * Maximum discount for percentage discounts + * @member {Number} MaxDiscount + */ +LoyaltyCampaign.prototype['MaxDiscount'] = undefined; + +/** + * Controls how the loyalty voucher's amount is rounded + * @member {Number} RoundingStrategy + */ +LoyaltyCampaign.prototype['RoundingStrategy'] = undefined; + +/** + * Controls whether we should include orders with loyalty vouchers in the campaign calculation + * @member {Boolean} ShouldIncludeOrdersWithLoyaltyVoucher + */ +LoyaltyCampaign.prototype['ShouldIncludeOrdersWithLoyaltyVoucher'] = undefined; + +/** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ +LoyaltyCampaign.prototype['VoucherValidPeriodDays'] = undefined; + +/** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ +LoyaltyCampaign.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ +LoyaltyCampaign.prototype['AutoApplyResultingVouchers'] = undefined; + +/** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ +LoyaltyCampaign.prototype['IncludeExistingOrders'] = undefined; + +/** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ +LoyaltyCampaign.prototype['IsEnabled'] = undefined; + +/** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ +LoyaltyCampaign.prototype['StoreIds'] = undefined; + +/** + * The app that this campaign belongs to. + * @member {String} AppId + */ +LoyaltyCampaign.prototype['AppId'] = undefined; + +/** + * Controls whether the voucher generated from this campaign will override discount exclusions + * @member {Boolean} ForceDiscount + */ +LoyaltyCampaign.prototype['ForceDiscount'] = undefined; + + + + + + +export default LoyaltyCampaign; + diff --git a/src/model/LoyaltyCampaignBase.js b/src/model/LoyaltyCampaignBase.js new file mode 100644 index 00000000..35cca6ba --- /dev/null +++ b/src/model/LoyaltyCampaignBase.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LoyaltyCampaignBase model module. + * @module model/LoyaltyCampaignBase + * @version 1.0.0 + */ +class LoyaltyCampaignBase { + /** + * Constructs a new LoyaltyCampaignBase. + * Loyalty campaign base + * @alias module:model/LoyaltyCampaignBase + */ + constructor() { + + LoyaltyCampaignBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LoyaltyCampaignBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoyaltyCampaignBase} obj Optional instance to populate. + * @return {module:model/LoyaltyCampaignBase} The populated LoyaltyCampaignBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoyaltyCampaignBase(); + + if (data.hasOwnProperty('OrdersBeforeReceivingVoucher')) { + obj['OrdersBeforeReceivingVoucher'] = ApiClient.convertToType(data['OrdersBeforeReceivingVoucher'], 'Number'); + } + if (data.hasOwnProperty('PercentDiscountAmount')) { + obj['PercentDiscountAmount'] = ApiClient.convertToType(data['PercentDiscountAmount'], 'Number'); + } + if (data.hasOwnProperty('MaxDiscount')) { + obj['MaxDiscount'] = ApiClient.convertToType(data['MaxDiscount'], 'Number'); + } + if (data.hasOwnProperty('RoundingStrategy')) { + obj['RoundingStrategy'] = ApiClient.convertToType(data['RoundingStrategy'], 'Number'); + } + if (data.hasOwnProperty('ShouldIncludeOrdersWithLoyaltyVoucher')) { + obj['ShouldIncludeOrdersWithLoyaltyVoucher'] = ApiClient.convertToType(data['ShouldIncludeOrdersWithLoyaltyVoucher'], 'Boolean'); + } + if (data.hasOwnProperty('VoucherValidPeriodDays')) { + obj['VoucherValidPeriodDays'] = ApiClient.convertToType(data['VoucherValidPeriodDays'], 'Number'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('AutoApplyResultingVouchers')) { + obj['AutoApplyResultingVouchers'] = ApiClient.convertToType(data['AutoApplyResultingVouchers'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeExistingOrders')) { + obj['IncludeExistingOrders'] = ApiClient.convertToType(data['IncludeExistingOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Number of orders customer needs to make, before receiving voucher + * @member {Number} OrdersBeforeReceivingVoucher + */ +LoyaltyCampaignBase.prototype['OrdersBeforeReceivingVoucher'] = undefined; + +/** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ +LoyaltyCampaignBase.prototype['PercentDiscountAmount'] = undefined; + +/** + * Maximum discount for percentage discounts + * @member {Number} MaxDiscount + */ +LoyaltyCampaignBase.prototype['MaxDiscount'] = undefined; + +/** + * Controls how the loyalty voucher's amount is rounded + * @member {Number} RoundingStrategy + */ +LoyaltyCampaignBase.prototype['RoundingStrategy'] = undefined; + +/** + * Controls whether we should include orders with loyalty vouchers in the campaign calculation + * @member {Boolean} ShouldIncludeOrdersWithLoyaltyVoucher + */ +LoyaltyCampaignBase.prototype['ShouldIncludeOrdersWithLoyaltyVoucher'] = undefined; + +/** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ +LoyaltyCampaignBase.prototype['VoucherValidPeriodDays'] = undefined; + +/** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ +LoyaltyCampaignBase.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ +LoyaltyCampaignBase.prototype['AutoApplyResultingVouchers'] = undefined; + +/** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ +LoyaltyCampaignBase.prototype['IncludeExistingOrders'] = undefined; + +/** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ +LoyaltyCampaignBase.prototype['IsEnabled'] = undefined; + +/** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ +LoyaltyCampaignBase.prototype['StoreIds'] = undefined; + +/** + * The app that this campaign belongs to. + * @member {String} AppId + */ +LoyaltyCampaignBase.prototype['AppId'] = undefined; + +/** + * Controls whether the voucher generated from this campaign will override discount exclusions + * @member {Boolean} ForceDiscount + */ +LoyaltyCampaignBase.prototype['ForceDiscount'] = undefined; + + + + + + +export default LoyaltyCampaignBase; + diff --git a/src/model/LoyaltyCampaignCreatedEvent.js b/src/model/LoyaltyCampaignCreatedEvent.js new file mode 100644 index 00000000..3619d440 --- /dev/null +++ b/src/model/LoyaltyCampaignCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LoyaltyCampaign from './LoyaltyCampaign'; +import UserEventInfo from './UserEventInfo'; + +/** + * The LoyaltyCampaignCreatedEvent model module. + * @module model/LoyaltyCampaignCreatedEvent + * @version 1.0.0 + */ +class LoyaltyCampaignCreatedEvent { + /** + * Constructs a new LoyaltyCampaignCreatedEvent. + * Loyalty campaign created event + * @alias module:model/LoyaltyCampaignCreatedEvent + */ + constructor() { + + LoyaltyCampaignCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LoyaltyCampaignCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoyaltyCampaignCreatedEvent} obj Optional instance to populate. + * @return {module:model/LoyaltyCampaignCreatedEvent} The populated LoyaltyCampaignCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoyaltyCampaignCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('LoyaltyCampaign')) { + obj['LoyaltyCampaign'] = LoyaltyCampaign.constructFromObject(data['LoyaltyCampaign']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +LoyaltyCampaignCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +LoyaltyCampaignCreatedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +LoyaltyCampaignCreatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +LoyaltyCampaignCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/LoyaltyCampaign} LoyaltyCampaign + */ +LoyaltyCampaignCreatedEvent.prototype['LoyaltyCampaign'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +LoyaltyCampaignCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +LoyaltyCampaignCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +LoyaltyCampaignCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +LoyaltyCampaignCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +LoyaltyCampaignCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +LoyaltyCampaignCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default LoyaltyCampaignCreatedEvent; + diff --git a/src/model/LoyaltyCampaignDeletedEvent.js b/src/model/LoyaltyCampaignDeletedEvent.js new file mode 100644 index 00000000..1e201d1d --- /dev/null +++ b/src/model/LoyaltyCampaignDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LoyaltyCampaign from './LoyaltyCampaign'; +import UserEventInfo from './UserEventInfo'; + +/** + * The LoyaltyCampaignDeletedEvent model module. + * @module model/LoyaltyCampaignDeletedEvent + * @version 1.0.0 + */ +class LoyaltyCampaignDeletedEvent { + /** + * Constructs a new LoyaltyCampaignDeletedEvent. + * Loyalty campaign deleted event + * @alias module:model/LoyaltyCampaignDeletedEvent + */ + constructor() { + + LoyaltyCampaignDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LoyaltyCampaignDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoyaltyCampaignDeletedEvent} obj Optional instance to populate. + * @return {module:model/LoyaltyCampaignDeletedEvent} The populated LoyaltyCampaignDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoyaltyCampaignDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('LoyaltyCampaign')) { + obj['LoyaltyCampaign'] = LoyaltyCampaign.constructFromObject(data['LoyaltyCampaign']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +LoyaltyCampaignDeletedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +LoyaltyCampaignDeletedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +LoyaltyCampaignDeletedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +LoyaltyCampaignDeletedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/LoyaltyCampaign} LoyaltyCampaign + */ +LoyaltyCampaignDeletedEvent.prototype['LoyaltyCampaign'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +LoyaltyCampaignDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +LoyaltyCampaignDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +LoyaltyCampaignDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +LoyaltyCampaignDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +LoyaltyCampaignDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +LoyaltyCampaignDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default LoyaltyCampaignDeletedEvent; + diff --git a/src/model/LoyaltyCampaignUpdatedEvent.js b/src/model/LoyaltyCampaignUpdatedEvent.js new file mode 100644 index 00000000..b72aeb93 --- /dev/null +++ b/src/model/LoyaltyCampaignUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LoyaltyCampaign from './LoyaltyCampaign'; +import UserEventInfo from './UserEventInfo'; + +/** + * The LoyaltyCampaignUpdatedEvent model module. + * @module model/LoyaltyCampaignUpdatedEvent + * @version 1.0.0 + */ +class LoyaltyCampaignUpdatedEvent { + /** + * Constructs a new LoyaltyCampaignUpdatedEvent. + * Loyalty campaign updated event + * @alias module:model/LoyaltyCampaignUpdatedEvent + */ + constructor() { + + LoyaltyCampaignUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LoyaltyCampaignUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LoyaltyCampaignUpdatedEvent} obj Optional instance to populate. + * @return {module:model/LoyaltyCampaignUpdatedEvent} The populated LoyaltyCampaignUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LoyaltyCampaignUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('LoyaltyCampaign')) { + obj['LoyaltyCampaign'] = LoyaltyCampaign.constructFromObject(data['LoyaltyCampaign']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +LoyaltyCampaignUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +LoyaltyCampaignUpdatedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +LoyaltyCampaignUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +LoyaltyCampaignUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/LoyaltyCampaign} LoyaltyCampaign + */ +LoyaltyCampaignUpdatedEvent.prototype['LoyaltyCampaign'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +LoyaltyCampaignUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +LoyaltyCampaignUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +LoyaltyCampaignUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +LoyaltyCampaignUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +LoyaltyCampaignUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +LoyaltyCampaignUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default LoyaltyCampaignUpdatedEvent; + diff --git a/src/model/LumpDiscountDetails.js b/src/model/LumpDiscountDetails.js new file mode 100644 index 00000000..25010bdf --- /dev/null +++ b/src/model/LumpDiscountDetails.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LumpDiscountDetails model module. + * @module model/LumpDiscountDetails + * @version 1.0.0 + */ +class LumpDiscountDetails { + /** + * Constructs a new LumpDiscountDetails. + * Lump discount details + * @alias module:model/LumpDiscountDetails + */ + constructor() { + + LumpDiscountDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LumpDiscountDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LumpDiscountDetails} obj Optional instance to populate. + * @return {module:model/LumpDiscountDetails} The populated LumpDiscountDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LumpDiscountDetails(); + + if (data.hasOwnProperty('DiscountAmount')) { + obj['DiscountAmount'] = ApiClient.convertToType(data['DiscountAmount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Discount amount + * @member {Number} DiscountAmount + */ +LumpDiscountDetails.prototype['DiscountAmount'] = undefined; + + + + + + +export default LumpDiscountDetails; + diff --git a/src/model/MappedLocation.js b/src/model/MappedLocation.js new file mode 100644 index 00000000..7ea17cee --- /dev/null +++ b/src/model/MappedLocation.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MappedLocation model module. + * @module model/MappedLocation + * @version 1.0.0 + */ +class MappedLocation { + /** + * Constructs a new MappedLocation. + * Representation of a Location and its External Mapping + * @alias module:model/MappedLocation + * @param LocationId {Number} Id of the Location + * @param ExternalLocationId {String} Id of the Location on an external system + */ + constructor(LocationId, ExternalLocationId) { + + MappedLocation.initialize(this, LocationId, ExternalLocationId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, LocationId, ExternalLocationId) { + obj['LocationId'] = LocationId; + obj['ExternalLocationId'] = ExternalLocationId; + } + + /** + * Constructs a MappedLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MappedLocation} obj Optional instance to populate. + * @return {module:model/MappedLocation} The populated MappedLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MappedLocation(); + + if (data.hasOwnProperty('LocationId')) { + obj['LocationId'] = ApiClient.convertToType(data['LocationId'], 'Number'); + } + if (data.hasOwnProperty('ExternalLocationId')) { + obj['ExternalLocationId'] = ApiClient.convertToType(data['ExternalLocationId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of the Location + * @member {Number} LocationId + */ +MappedLocation.prototype['LocationId'] = undefined; + +/** + * Id of the Location on an external system + * @member {String} ExternalLocationId + */ +MappedLocation.prototype['ExternalLocationId'] = undefined; + + + + + + +export default MappedLocation; + diff --git a/src/model/MaskedPhoneNumber.js b/src/model/MaskedPhoneNumber.js new file mode 100644 index 00000000..030ad7a2 --- /dev/null +++ b/src/model/MaskedPhoneNumber.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MaskedPhoneNumber model module. + * @module model/MaskedPhoneNumber + * @version 1.0.0 + */ +class MaskedPhoneNumber { + /** + * Constructs a new MaskedPhoneNumber. + * Represents a masked phone number + * @alias module:model/MaskedPhoneNumber + */ + constructor() { + + MaskedPhoneNumber.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MaskedPhoneNumber from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MaskedPhoneNumber} obj Optional instance to populate. + * @return {module:model/MaskedPhoneNumber} The populated MaskedPhoneNumber instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MaskedPhoneNumber(); + + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + } + return obj; + } + + +} + +/** + * Defines if the feature is enabled + * @member {Boolean} IsEnabled + */ +MaskedPhoneNumber.prototype['IsEnabled'] = undefined; + +/** + * Defines the phone number to call + * @member {String} PhoneNumber + */ +MaskedPhoneNumber.prototype['PhoneNumber'] = undefined; + +/** + * Defines the code to enter + * @member {String} Code + */ +MaskedPhoneNumber.prototype['Code'] = undefined; + + + + + + +export default MaskedPhoneNumber; + diff --git a/src/model/Menu.js b/src/model/Menu.js new file mode 100644 index 00000000..47dea88e --- /dev/null +++ b/src/model/Menu.js @@ -0,0 +1,234 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSection from './MenuSection'; +import MenuTaxRate from './MenuTaxRate'; + +/** + * The Menu model module. + * @module model/Menu + * @version 1.0.0 + */ +class Menu { + /** + * Constructs a new Menu. + * Menu + * @alias module:model/Menu + */ + constructor() { + + Menu.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Menu from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Menu} obj Optional instance to populate. + * @return {module:model/Menu} The populated Menu instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Menu(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('ModifiedTime')) { + obj['ModifiedTime'] = ApiClient.convertToType(data['ModifiedTime'], 'Date'); + } + if (data.hasOwnProperty('VersionNumber')) { + obj['VersionNumber'] = ApiClient.convertToType(data['VersionNumber'], 'Number'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Locked')) { + obj['Locked'] = ApiClient.convertToType(data['Locked'], 'Boolean'); + } + if (data.hasOwnProperty('MenuSections')) { + obj['MenuSections'] = ApiClient.convertToType(data['MenuSections'], [MenuSection]); + } + if (data.hasOwnProperty('TaxRates')) { + obj['TaxRates'] = ApiClient.convertToType(data['TaxRates'], [MenuTaxRate]); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('DisplaySectionLinks')) { + obj['DisplaySectionLinks'] = ApiClient.convertToType(data['DisplaySectionLinks'], 'Boolean'); + } + if (data.hasOwnProperty('MenuSectionBehaviour')) { + obj['MenuSectionBehaviour'] = ApiClient.convertToType(data['MenuSectionBehaviour'], 'String'); + } + if (data.hasOwnProperty('TaxType')) { + obj['TaxType'] = ApiClient.convertToType(data['TaxType'], 'String'); + } + if (data.hasOwnProperty('IsIntegrated')) { + obj['IsIntegrated'] = ApiClient.convertToType(data['IsIntegrated'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +Menu.prototype['MenuId'] = undefined; + +/** + * Last modified time + * @member {Date} ModifiedTime + */ +Menu.prototype['ModifiedTime'] = undefined; + +/** + * Menu version + * @member {Number} VersionNumber + */ +Menu.prototype['VersionNumber'] = undefined; + +/** + * Image Name + * @member {String} ImageName + */ +Menu.prototype['ImageName'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +Menu.prototype['ImageUrl'] = undefined; + +/** + * Name of Menu, only shown in portal + * @member {String} Name + */ +Menu.prototype['Name'] = undefined; + +/** + * Locked: is menu locked against modifcation + * @member {Boolean} Locked + */ +Menu.prototype['Locked'] = undefined; + +/** + * Menu sections (startes, main etc) + * @member {Array.} MenuSections + */ +Menu.prototype['MenuSections'] = undefined; + +/** + * Menu tax rates + * @member {Array.} TaxRates + */ +Menu.prototype['TaxRates'] = undefined; + +/** + * Identifier of App the menu is attached to + * @member {String} AppId + */ +Menu.prototype['AppId'] = undefined; + +/** + * Display menu section link on UI + * @member {Boolean} DisplaySectionLinks + */ +Menu.prototype['DisplaySectionLinks'] = undefined; + +/** + * Menu section behaviour + * @member {module:model/Menu.MenuSectionBehaviourEnum} MenuSectionBehaviour + */ +Menu.prototype['MenuSectionBehaviour'] = undefined; + +/** + * Tax type + * @member {module:model/Menu.TaxTypeEnum} TaxType + */ +Menu.prototype['TaxType'] = undefined; + +/** + * Flag to indicate if the menu is integrated (contains metadata) + * @member {Boolean} IsIntegrated + */ +Menu.prototype['IsIntegrated'] = undefined; + + + + + +/** + * Allowed values for the MenuSectionBehaviour property. + * @enum {String} + * @readonly + */ +Menu['MenuSectionBehaviourEnum'] = { + + /** + * value: "ExpandSingle" + * @const + */ + "ExpandSingle": "ExpandSingle", + + /** + * value: "ExpandMultiple" + * @const + */ + "ExpandMultiple": "ExpandMultiple" +}; + + +/** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ +Menu['TaxTypeEnum'] = { + + /** + * value: "IncludedInBasePrice" + * @const + */ + "IncludedInBasePrice": "IncludedInBasePrice", + + /** + * value: "ExcludedFromBasePrice" + * @const + */ + "ExcludedFromBasePrice": "ExcludedFromBasePrice" +}; + + + +export default Menu; + diff --git a/src/model/MenuAsyncCreationCompletedEvent.js b/src/model/MenuAsyncCreationCompletedEvent.js new file mode 100644 index 00000000..b3bee75c --- /dev/null +++ b/src/model/MenuAsyncCreationCompletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Menu from './Menu'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuAsyncCreationCompletedEvent model module. + * @module model/MenuAsyncCreationCompletedEvent + * @version 1.0.0 + */ +class MenuAsyncCreationCompletedEvent { + /** + * Constructs a new MenuAsyncCreationCompletedEvent. + * Menu async creation completed event + * @alias module:model/MenuAsyncCreationCompletedEvent + */ + constructor() { + + MenuAsyncCreationCompletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuAsyncCreationCompletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuAsyncCreationCompletedEvent} obj Optional instance to populate. + * @return {module:model/MenuAsyncCreationCompletedEvent} The populated MenuAsyncCreationCompletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuAsyncCreationCompletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Menu')) { + obj['Menu'] = Menu.constructFromObject(data['Menu']); + } + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +MenuAsyncCreationCompletedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuAsyncCreationCompletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuAsyncCreationCompletedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Menu} Menu + */ +MenuAsyncCreationCompletedEvent.prototype['Menu'] = undefined; + +/** + * Flag indicating if the menu creation was successful + * @member {Boolean} Success + */ +MenuAsyncCreationCompletedEvent.prototype['Success'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuAsyncCreationCompletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuAsyncCreationCompletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuAsyncCreationCompletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuAsyncCreationCompletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuAsyncCreationCompletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuAsyncCreationCompletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuAsyncCreationCompletedEvent; + diff --git a/src/model/MenuBase.js b/src/model/MenuBase.js new file mode 100644 index 00000000..c870cbb2 --- /dev/null +++ b/src/model/MenuBase.js @@ -0,0 +1,142 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuBase model module. + * @module model/MenuBase + * @version 1.0.0 + */ +class MenuBase { + /** + * Constructs a new MenuBase. + * Menu base + * @alias module:model/MenuBase + */ + constructor() { + + MenuBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuBase} obj Optional instance to populate. + * @return {module:model/MenuBase} The populated MenuBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuBase(); + + if (data.hasOwnProperty('DisplaySectionLinks')) { + obj['DisplaySectionLinks'] = ApiClient.convertToType(data['DisplaySectionLinks'], 'Boolean'); + } + if (data.hasOwnProperty('MenuSectionBehaviour')) { + obj['MenuSectionBehaviour'] = ApiClient.convertToType(data['MenuSectionBehaviour'], 'String'); + } + if (data.hasOwnProperty('TaxType')) { + obj['TaxType'] = ApiClient.convertToType(data['TaxType'], 'String'); + } + if (data.hasOwnProperty('IsIntegrated')) { + obj['IsIntegrated'] = ApiClient.convertToType(data['IsIntegrated'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Display menu section link on UI + * @member {Boolean} DisplaySectionLinks + */ +MenuBase.prototype['DisplaySectionLinks'] = undefined; + +/** + * Menu section behaviour + * @member {module:model/MenuBase.MenuSectionBehaviourEnum} MenuSectionBehaviour + */ +MenuBase.prototype['MenuSectionBehaviour'] = undefined; + +/** + * Tax type + * @member {module:model/MenuBase.TaxTypeEnum} TaxType + */ +MenuBase.prototype['TaxType'] = undefined; + +/** + * Flag to indicate if the menu is integrated (contains metadata) + * @member {Boolean} IsIntegrated + */ +MenuBase.prototype['IsIntegrated'] = undefined; + + + + + +/** + * Allowed values for the MenuSectionBehaviour property. + * @enum {String} + * @readonly + */ +MenuBase['MenuSectionBehaviourEnum'] = { + + /** + * value: "ExpandSingle" + * @const + */ + "ExpandSingle": "ExpandSingle", + + /** + * value: "ExpandMultiple" + * @const + */ + "ExpandMultiple": "ExpandMultiple" +}; + + +/** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ +MenuBase['TaxTypeEnum'] = { + + /** + * value: "IncludedInBasePrice" + * @const + */ + "IncludedInBasePrice": "IncludedInBasePrice", + + /** + * value: "ExcludedFromBasePrice" + * @const + */ + "ExcludedFromBasePrice": "ExcludedFromBasePrice" +}; + + + +export default MenuBase; + diff --git a/src/model/MenuBulkEditEvent.js b/src/model/MenuBulkEditEvent.js new file mode 100644 index 00000000..bd30b355 --- /dev/null +++ b/src/model/MenuBulkEditEvent.js @@ -0,0 +1,190 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuBulkEditEvent model module. + * @module model/MenuBulkEditEvent + * @version 1.0.0 + */ +class MenuBulkEditEvent { + /** + * Constructs a new MenuBulkEditEvent. + * Menu bulk event + * @alias module:model/MenuBulkEditEvent + */ + constructor() { + + MenuBulkEditEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuBulkEditEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuBulkEditEvent} obj Optional instance to populate. + * @return {module:model/MenuBulkEditEvent} The populated MenuBulkEditEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuBulkEditEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('MenuName')) { + obj['MenuName'] = ApiClient.convertToType(data['MenuName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Item')) { + obj['Item'] = ApiClient.convertToType(data['Item'], 'String'); + } + if (data.hasOwnProperty('InstanceCount')) { + obj['InstanceCount'] = ApiClient.convertToType(data['InstanceCount'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +MenuBulkEditEvent.prototype['EventName'] = undefined; + +/** + * Menu Name + * @member {String} MenuName + */ +MenuBulkEditEvent.prototype['MenuName'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuBulkEditEvent.prototype['Description'] = undefined; + +/** + * Product + * @member {String} Item + */ +MenuBulkEditEvent.prototype['Item'] = undefined; + +/** + * Quantity of product + * @member {Number} InstanceCount + */ +MenuBulkEditEvent.prototype['InstanceCount'] = undefined; + +/** + * Visibility of the item + * @member {Boolean} IsAvailable + */ +MenuBulkEditEvent.prototype['IsAvailable'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuBulkEditEvent.prototype['User'] = undefined; + +/** + * The menu Id + * @member {Number} MenuId + */ +MenuBulkEditEvent.prototype['MenuId'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuBulkEditEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuBulkEditEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuBulkEditEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuBulkEditEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuBulkEditEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuBulkEditEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuBulkEditEvent; + diff --git a/src/model/MenuCatalogItem.js b/src/model/MenuCatalogItem.js new file mode 100644 index 00000000..7fe80ca6 --- /dev/null +++ b/src/model/MenuCatalogItem.js @@ -0,0 +1,117 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuCatalogItem model module. + * @module model/MenuCatalogItem + * @version 1.0.0 + */ +class MenuCatalogItem { + /** + * Constructs a new MenuCatalogItem. + * Information to add a CatalogItem to a Menu + * @alias module:model/MenuCatalogItem + * @param CatalogItemId {String} Product Id to the product to add as Menu Item + */ + constructor(CatalogItemId) { + + MenuCatalogItem.initialize(this, CatalogItemId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogItemId) { + obj['CatalogItemId'] = CatalogItemId; + } + + /** + * Constructs a MenuCatalogItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuCatalogItem} obj Optional instance to populate. + * @return {module:model/MenuCatalogItem} The populated MenuCatalogItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuCatalogItem(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Product Id to the product to add as Menu Item + * @member {String} CatalogItemId + */ +MenuCatalogItem.prototype['CatalogItemId'] = undefined; + +/** + * Small | Medium | Large | HiddenImage Affects the layout of the menu. + * @member {module:model/MenuCatalogItem.CellLayoutTypeEnum} CellLayoutType + */ +MenuCatalogItem.prototype['CellLayoutType'] = undefined; + + + + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +MenuCatalogItem['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default MenuCatalogItem; + diff --git a/src/model/MenuCheckpoint.js b/src/model/MenuCheckpoint.js new file mode 100644 index 00000000..557248bc --- /dev/null +++ b/src/model/MenuCheckpoint.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuCheckpoint model module. + * @module model/MenuCheckpoint + * @version 1.0.0 + */ +class MenuCheckpoint { + /** + * Constructs a new MenuCheckpoint. + * Menu Checkpoint + * @alias module:model/MenuCheckpoint + */ + constructor() { + + MenuCheckpoint.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuCheckpoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuCheckpoint} obj Optional instance to populate. + * @return {module:model/MenuCheckpoint} The populated MenuCheckpoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuCheckpoint(); + + if (data.hasOwnProperty('MenuCheckpointId')) { + obj['MenuCheckpointId'] = ApiClient.convertToType(data['MenuCheckpointId'], 'Number'); + } + if (data.hasOwnProperty('Time')) { + obj['Time'] = ApiClient.convertToType(data['Time'], 'Date'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Url')) { + obj['Url'] = ApiClient.convertToType(data['Url'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier of Menu Checkpoint + * @member {Number} MenuCheckpointId + */ +MenuCheckpoint.prototype['MenuCheckpointId'] = undefined; + +/** + * Time of creation of checkpoint + * @member {Date} Time + */ +MenuCheckpoint.prototype['Time'] = undefined; + +/** + * Name of checkpoint + * @member {String} Name + */ +MenuCheckpoint.prototype['Name'] = undefined; + +/** + * Url that points to Serialized Checkpoint + * @member {String} Url + */ +MenuCheckpoint.prototype['Url'] = undefined; + + + + + + +export default MenuCheckpoint; + diff --git a/src/model/MenuCheckpointCreatedEvent.js b/src/model/MenuCheckpointCreatedEvent.js new file mode 100644 index 00000000..421853df --- /dev/null +++ b/src/model/MenuCheckpointCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Menu from './Menu'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuCheckpointCreatedEvent model module. + * @module model/MenuCheckpointCreatedEvent + * @version 1.0.0 + */ +class MenuCheckpointCreatedEvent { + /** + * Constructs a new MenuCheckpointCreatedEvent. + * + * @alias module:model/MenuCheckpointCreatedEvent + */ + constructor() { + + MenuCheckpointCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuCheckpointCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuCheckpointCreatedEvent} obj Optional instance to populate. + * @return {module:model/MenuCheckpointCreatedEvent} The populated MenuCheckpointCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuCheckpointCreatedEvent(); + + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Menu')) { + obj['Menu'] = Menu.constructFromObject(data['Menu']); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Description + * @member {String} Description + */ +MenuCheckpointCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuCheckpointCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Menu} Menu + */ +MenuCheckpointCreatedEvent.prototype['Menu'] = undefined; + +/** + * Menu Id + * @member {Number} MenuId + */ +MenuCheckpointCreatedEvent.prototype['MenuId'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuCheckpointCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuCheckpointCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuCheckpointCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuCheckpointCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuCheckpointCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuCheckpointCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuCheckpointCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuCheckpointCreatedEvent; + diff --git a/src/model/MenuCreatedEvent.js b/src/model/MenuCreatedEvent.js new file mode 100644 index 00000000..5ab993df --- /dev/null +++ b/src/model/MenuCreatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Menu from './Menu'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuCreatedEvent model module. + * @module model/MenuCreatedEvent + * @version 1.0.0 + */ +class MenuCreatedEvent { + /** + * Constructs a new MenuCreatedEvent. + * Menu created event + * @alias module:model/MenuCreatedEvent + */ + constructor() { + + MenuCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuCreatedEvent} obj Optional instance to populate. + * @return {module:model/MenuCreatedEvent} The populated MenuCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Menu')) { + obj['Menu'] = Menu.constructFromObject(data['Menu']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +MenuCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Menu} Menu + */ +MenuCreatedEvent.prototype['Menu'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuCreatedEvent; + diff --git a/src/model/MenuElementEditResponse.js b/src/model/MenuElementEditResponse.js new file mode 100644 index 00000000..17798ab2 --- /dev/null +++ b/src/model/MenuElementEditResponse.js @@ -0,0 +1,187 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuElementEditResponse model module. + * @module model/MenuElementEditResponse + * @version 1.0.0 + */ +class MenuElementEditResponse { + /** + * Constructs a new MenuElementEditResponse. + * Response with any menu elements that had issues being hidden/shown + * @alias module:model/MenuElementEditResponse + */ + constructor() { + + MenuElementEditResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuElementEditResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuElementEditResponse} obj Optional instance to populate. + * @return {module:model/MenuElementEditResponse} The populated MenuElementEditResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuElementEditResponse(); + + if (data.hasOwnProperty('SectionName')) { + obj['SectionName'] = ApiClient.convertToType(data['SectionName'], 'String'); + } + if (data.hasOwnProperty('ItemName')) { + obj['ItemName'] = ApiClient.convertToType(data['ItemName'], 'String'); + } + if (data.hasOwnProperty('OptionSetName')) { + obj['OptionSetName'] = ApiClient.convertToType(data['OptionSetName'], 'String'); + } + if (data.hasOwnProperty('OptionSetItemName')) { + obj['OptionSetItemName'] = ApiClient.convertToType(data['OptionSetItemName'], 'String'); + } + if (data.hasOwnProperty('MenuElementId')) { + obj['MenuElementId'] = ApiClient.convertToType(data['MenuElementId'], 'Number'); + } + if (data.hasOwnProperty('MenuElementType')) { + obj['MenuElementType'] = ApiClient.convertToType(data['MenuElementType'], 'String'); + } + if (data.hasOwnProperty('ValidationCode')) { + obj['ValidationCode'] = ApiClient.convertToType(data['ValidationCode'], 'String'); + } + } + return obj; + } + + +} + +/** + * Section name + * @member {String} SectionName + */ +MenuElementEditResponse.prototype['SectionName'] = undefined; + +/** + * Item name + * @member {String} ItemName + */ +MenuElementEditResponse.prototype['ItemName'] = undefined; + +/** + * Option Set name + * @member {String} OptionSetName + */ +MenuElementEditResponse.prototype['OptionSetName'] = undefined; + +/** + * Element name + * @member {String} OptionSetItemName + */ +MenuElementEditResponse.prototype['OptionSetItemName'] = undefined; + +/** + * Holds the information for the A and CNAME Records of a domain. + * @member {Number} MenuElementId + */ +MenuElementEditResponse.prototype['MenuElementId'] = undefined; + +/** + * Type of menu element + * @member {module:model/MenuElementEditResponse.MenuElementTypeEnum} MenuElementType + */ +MenuElementEditResponse.prototype['MenuElementType'] = undefined; + +/** + * Validation message for menu element issue + * @member {module:model/MenuElementEditResponse.ValidationCodeEnum} ValidationCode + */ +MenuElementEditResponse.prototype['ValidationCode'] = undefined; + + + + + +/** + * Allowed values for the MenuElementType property. + * @enum {String} + * @readonly + */ +MenuElementEditResponse['MenuElementTypeEnum'] = { + + /** + * value: "Item" + * @const + */ + "Item": "Item", + + /** + * value: "OptionSetItem" + * @const + */ + "OptionSetItem": "OptionSetItem" +}; + + +/** + * Allowed values for the ValidationCode property. + * @enum {String} + * @readonly + */ +MenuElementEditResponse['ValidationCodeEnum'] = { + + /** + * value: "Success" + * @const + */ + "Success": "Success", + + /** + * value: "MinimumCountViolation" + * @const + */ + "MinimumCountViolation": "MinimumCountViolation", + + /** + * value: "MasterOptionSetViolation" + * @const + */ + "MasterOptionSetViolation": "MasterOptionSetViolation", + + /** + * value: "IncorrectElementTypeInMenu" + * @const + */ + "IncorrectElementTypeInMenu": "IncorrectElementTypeInMenu", + + /** + * value: "DBFailed" + * @const + */ + "DBFailed": "DBFailed" +}; + + + +export default MenuElementEditResponse; + diff --git a/src/model/MenuElementHide.js b/src/model/MenuElementHide.js new file mode 100644 index 00000000..bbdb820b --- /dev/null +++ b/src/model/MenuElementHide.js @@ -0,0 +1,103 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuElementHide model module. + * @module model/MenuElementHide + * @version 1.0.0 + */ +class MenuElementHide { + /** + * Constructs a new MenuElementHide. + * Menu element hide + * @alias module:model/MenuElementHide + */ + constructor() { + + MenuElementHide.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuElementHide from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuElementHide} obj Optional instance to populate. + * @return {module:model/MenuElementHide} The populated MenuElementHide instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuElementHide(); + + if (data.hasOwnProperty('MenuElementId')) { + obj['MenuElementId'] = ApiClient.convertToType(data['MenuElementId'], 'Number'); + } + if (data.hasOwnProperty('MenuElementType')) { + obj['MenuElementType'] = ApiClient.convertToType(data['MenuElementType'], 'String'); + } + } + return obj; + } + + +} + +/** + * id of the menu item or menu option set item + * @member {Number} MenuElementId + */ +MenuElementHide.prototype['MenuElementId'] = undefined; + +/** + * Type of menu element + * @member {module:model/MenuElementHide.MenuElementTypeEnum} MenuElementType + */ +MenuElementHide.prototype['MenuElementType'] = undefined; + + + + + +/** + * Allowed values for the MenuElementType property. + * @enum {String} + * @readonly + */ +MenuElementHide['MenuElementTypeEnum'] = { + + /** + * value: "Item" + * @const + */ + "Item": "Item", + + /** + * value: "OptionSetItem" + * @const + */ + "OptionSetItem": "OptionSetItem" +}; + + + +export default MenuElementHide; + diff --git a/src/model/MenuElementListItemResponse.js b/src/model/MenuElementListItemResponse.js new file mode 100644 index 00000000..4ddcec50 --- /dev/null +++ b/src/model/MenuElementListItemResponse.js @@ -0,0 +1,103 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuElementListItemResponse model module. + * @module model/MenuElementListItemResponse + * @version 1.0.0 + */ +class MenuElementListItemResponse { + /** + * Constructs a new MenuElementListItemResponse. + * Response with any menu elements that had issues being hidden/shown + * @alias module:model/MenuElementListItemResponse + */ + constructor() { + + MenuElementListItemResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuElementListItemResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuElementListItemResponse} obj Optional instance to populate. + * @return {module:model/MenuElementListItemResponse} The populated MenuElementListItemResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuElementListItemResponse(); + + if (data.hasOwnProperty('MenuElementId')) { + obj['MenuElementId'] = ApiClient.convertToType(data['MenuElementId'], 'Number'); + } + if (data.hasOwnProperty('MenuElementType')) { + obj['MenuElementType'] = ApiClient.convertToType(data['MenuElementType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Holds the information for the A and CNAME Records of a domain. + * @member {Number} MenuElementId + */ +MenuElementListItemResponse.prototype['MenuElementId'] = undefined; + +/** + * Type of menu element + * @member {module:model/MenuElementListItemResponse.MenuElementTypeEnum} MenuElementType + */ +MenuElementListItemResponse.prototype['MenuElementType'] = undefined; + + + + + +/** + * Allowed values for the MenuElementType property. + * @enum {String} + * @readonly + */ +MenuElementListItemResponse['MenuElementTypeEnum'] = { + + /** + * value: "Item" + * @const + */ + "Item": "Item", + + /** + * value: "OptionSetItem" + * @const + */ + "OptionSetItem": "OptionSetItem" +}; + + + +export default MenuElementListItemResponse; + diff --git a/src/model/MenuElementListResponse.js b/src/model/MenuElementListResponse.js new file mode 100644 index 00000000..7601685e --- /dev/null +++ b/src/model/MenuElementListResponse.js @@ -0,0 +1,110 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuElementListItemResponse from './MenuElementListItemResponse'; + +/** + * The MenuElementListResponse model module. + * @module model/MenuElementListResponse + * @version 1.0.0 + */ +class MenuElementListResponse { + /** + * Constructs a new MenuElementListResponse. + * Response with any menu elements that had issues being hidden/shown + * @alias module:model/MenuElementListResponse + */ + constructor() { + + MenuElementListResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuElementListResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuElementListResponse} obj Optional instance to populate. + * @return {module:model/MenuElementListResponse} The populated MenuElementListResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuElementListResponse(); + + if (data.hasOwnProperty('MenuName')) { + obj['MenuName'] = ApiClient.convertToType(data['MenuName'], 'String'); + } + if (data.hasOwnProperty('MenuElementName')) { + obj['MenuElementName'] = ApiClient.convertToType(data['MenuElementName'], 'String'); + } + if (data.hasOwnProperty('InstanceCount')) { + obj['InstanceCount'] = ApiClient.convertToType(data['InstanceCount'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('Items')) { + obj['Items'] = ApiClient.convertToType(data['Items'], [MenuElementListItemResponse]); + } + } + return obj; + } + + +} + +/** + * Menu Name + * @member {String} MenuName + */ +MenuElementListResponse.prototype['MenuName'] = undefined; + +/** + * Menu Item Name + * @member {String} MenuElementName + */ +MenuElementListResponse.prototype['MenuElementName'] = undefined; + +/** + * Menu Item Count + * @member {Number} InstanceCount + */ +MenuElementListResponse.prototype['InstanceCount'] = undefined; + +/** + * Menu Item is hide or unhide + * @member {Boolean} IsAvailable + */ +MenuElementListResponse.prototype['IsAvailable'] = undefined; + +/** + * List of Items + * @member {Array.} Items + */ +MenuElementListResponse.prototype['Items'] = undefined; + + + + + + +export default MenuElementListResponse; + diff --git a/src/model/MenuItemOptionSet.js b/src/model/MenuItemOptionSet.js new file mode 100644 index 00000000..1e1453b0 --- /dev/null +++ b/src/model/MenuItemOptionSet.js @@ -0,0 +1,206 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSetItem from './MenuItemOptionSetItem'; + +/** + * The MenuItemOptionSet model module. + * @module model/MenuItemOptionSet + * @version 1.0.0 + */ +class MenuItemOptionSet { + /** + * Constructs a new MenuItemOptionSet. + * Menu item option set + * @alias module:model/MenuItemOptionSet + */ + constructor() { + + MenuItemOptionSet.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSet} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSet} The populated MenuItemOptionSet instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSet(); + + if (data.hasOwnProperty('MenuItemOptionSetId')) { + obj['MenuItemOptionSetId'] = ApiClient.convertToType(data['MenuItemOptionSetId'], 'Number'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('MenuItemOptionSetItems')) { + obj['MenuItemOptionSetItems'] = ApiClient.convertToType(data['MenuItemOptionSetItems'], [MenuItemOptionSetItem]); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('IsMasterOptionSet')) { + obj['IsMasterOptionSet'] = ApiClient.convertToType(data['IsMasterOptionSet'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('MinSelectCount')) { + obj['MinSelectCount'] = ApiClient.convertToType(data['MinSelectCount'], 'Number'); + } + if (data.hasOwnProperty('MaxSelectCount')) { + obj['MaxSelectCount'] = ApiClient.convertToType(data['MaxSelectCount'], 'Number'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu item option set identifier + * @member {Number} MenuItemOptionSetId + */ +MenuItemOptionSet.prototype['MenuItemOptionSetId'] = undefined; + +/** + * Image Name + * @member {String} ImageName + */ +MenuItemOptionSet.prototype['ImageName'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +MenuItemOptionSet.prototype['ImageUrl'] = undefined; + +/** + * Option set items + * @member {Array.} MenuItemOptionSetItems + */ +MenuItemOptionSet.prototype['MenuItemOptionSetItems'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuItemOptionSet.prototype['PublicId'] = undefined; + +/** + * Catalog item Id when the OptionSet is associated to a Product + * @member {String} CatalogItemId + */ +MenuItemOptionSet.prototype['CatalogItemId'] = undefined; + +/** + * Menu item option set name + * @member {String} Name + */ +MenuItemOptionSet.prototype['Name'] = undefined; + +/** + * Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + * @member {Boolean} IsMasterOptionSet + */ +MenuItemOptionSet.prototype['IsMasterOptionSet'] = undefined; + +/** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ +MenuItemOptionSet.prototype['DisplayOrder'] = undefined; + +/** + * Minimum items must be selected + * @member {Number} MinSelectCount + */ +MenuItemOptionSet.prototype['MinSelectCount'] = undefined; + +/** + * Maximum number of items can be selected + * @member {Number} MaxSelectCount + */ +MenuItemOptionSet.prototype['MaxSelectCount'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/MenuItemOptionSet.CellLayoutTypeEnum} CellLayoutType + */ +MenuItemOptionSet.prototype['CellLayoutType'] = undefined; + + + + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +MenuItemOptionSet['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default MenuItemOptionSet; + diff --git a/src/model/MenuItemOptionSetBase.js b/src/model/MenuItemOptionSetBase.js new file mode 100644 index 00000000..30ee985b --- /dev/null +++ b/src/model/MenuItemOptionSetBase.js @@ -0,0 +1,160 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuItemOptionSetBase model module. + * @module model/MenuItemOptionSetBase + * @version 1.0.0 + */ +class MenuItemOptionSetBase { + /** + * Constructs a new MenuItemOptionSetBase. + * Menu item option set + * @alias module:model/MenuItemOptionSetBase + */ + constructor() { + + MenuItemOptionSetBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetBase} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetBase} The populated MenuItemOptionSetBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetBase(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('IsMasterOptionSet')) { + obj['IsMasterOptionSet'] = ApiClient.convertToType(data['IsMasterOptionSet'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('MinSelectCount')) { + obj['MinSelectCount'] = ApiClient.convertToType(data['MinSelectCount'], 'Number'); + } + if (data.hasOwnProperty('MaxSelectCount')) { + obj['MaxSelectCount'] = ApiClient.convertToType(data['MaxSelectCount'], 'Number'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu item option set name + * @member {String} Name + */ +MenuItemOptionSetBase.prototype['Name'] = undefined; + +/** + * Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\"with ketchup\") or modifier (\"large\"). + * @member {Boolean} IsMasterOptionSet + */ +MenuItemOptionSetBase.prototype['IsMasterOptionSet'] = undefined; + +/** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ +MenuItemOptionSetBase.prototype['DisplayOrder'] = undefined; + +/** + * Minimum items must be selected + * @member {Number} MinSelectCount + */ +MenuItemOptionSetBase.prototype['MinSelectCount'] = undefined; + +/** + * Maximum number of items can be selected + * @member {Number} MaxSelectCount + */ +MenuItemOptionSetBase.prototype['MaxSelectCount'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/MenuItemOptionSetBase.CellLayoutTypeEnum} CellLayoutType + */ +MenuItemOptionSetBase.prototype['CellLayoutType'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuItemOptionSetBase.prototype['PublicId'] = undefined; + + + + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +MenuItemOptionSetBase['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default MenuItemOptionSetBase; + diff --git a/src/model/MenuItemOptionSetCreatedEvent.js b/src/model/MenuItemOptionSetCreatedEvent.js new file mode 100644 index 00000000..54893738 --- /dev/null +++ b/src/model/MenuItemOptionSetCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSet from './MenuItemOptionSet'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuItemOptionSetCreatedEvent model module. + * @module model/MenuItemOptionSetCreatedEvent + * @version 1.0.0 + */ +class MenuItemOptionSetCreatedEvent { + /** + * Constructs a new MenuItemOptionSetCreatedEvent. + * + * @alias module:model/MenuItemOptionSetCreatedEvent + */ + constructor() { + + MenuItemOptionSetCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetCreatedEvent} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetCreatedEvent} The populated MenuItemOptionSetCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetCreatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuItemOptionSet')) { + obj['MenuItemOptionSet'] = MenuItemOptionSet.constructFromObject(data['MenuItemOptionSet']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuItemOptionSetCreatedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuItemOptionSetCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuItemOptionSetCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuItemOptionSet} MenuItemOptionSet + */ +MenuItemOptionSetCreatedEvent.prototype['MenuItemOptionSet'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuItemOptionSetCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuItemOptionSetCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuItemOptionSetCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuItemOptionSetCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuItemOptionSetCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuItemOptionSetCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuItemOptionSetCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuItemOptionSetCreatedEvent; + diff --git a/src/model/MenuItemOptionSetDeletedEvent.js b/src/model/MenuItemOptionSetDeletedEvent.js new file mode 100644 index 00000000..b2d7b754 --- /dev/null +++ b/src/model/MenuItemOptionSetDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSet from './MenuItemOptionSet'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuItemOptionSetDeletedEvent model module. + * @module model/MenuItemOptionSetDeletedEvent + * @version 1.0.0 + */ +class MenuItemOptionSetDeletedEvent { + /** + * Constructs a new MenuItemOptionSetDeletedEvent. + * + * @alias module:model/MenuItemOptionSetDeletedEvent + */ + constructor() { + + MenuItemOptionSetDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetDeletedEvent} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetDeletedEvent} The populated MenuItemOptionSetDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetDeletedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuItemOptionSet')) { + obj['MenuItemOptionSet'] = MenuItemOptionSet.constructFromObject(data['MenuItemOptionSet']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuItemOptionSetDeletedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuItemOptionSetDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuItemOptionSetDeletedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuItemOptionSet} MenuItemOptionSet + */ +MenuItemOptionSetDeletedEvent.prototype['MenuItemOptionSet'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuItemOptionSetDeletedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuItemOptionSetDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuItemOptionSetDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuItemOptionSetDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuItemOptionSetDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuItemOptionSetDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuItemOptionSetDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuItemOptionSetDeletedEvent; + diff --git a/src/model/MenuItemOptionSetItem.js b/src/model/MenuItemOptionSetItem.js new file mode 100644 index 00000000..98cca839 --- /dev/null +++ b/src/model/MenuItemOptionSetItem.js @@ -0,0 +1,231 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateMetadata from './CreateMetadata'; + +/** + * The MenuItemOptionSetItem model module. + * @module model/MenuItemOptionSetItem + * @version 1.0.0 + */ +class MenuItemOptionSetItem { + /** + * Constructs a new MenuItemOptionSetItem. + * Menu item option set item + * @alias module:model/MenuItemOptionSetItem + */ + constructor() { + + MenuItemOptionSetItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetItem} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetItem} The populated MenuItemOptionSetItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetItem(); + + if (data.hasOwnProperty('MenuItemOptionSetItemId')) { + obj['MenuItemOptionSetItemId'] = ApiClient.convertToType(data['MenuItemOptionSetItemId'], 'Number'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], [CreateMetadata]); + } + if (data.hasOwnProperty('NextMenuItemOptionSetId')) { + obj['NextMenuItemOptionSetId'] = ApiClient.convertToType(data['NextMenuItemOptionSetId'], 'Number'); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('TaxRateName')) { + obj['TaxRateName'] = ApiClient.convertToType(data['TaxRateName'], 'String'); + } + if (data.hasOwnProperty('TaxRateId')) { + obj['TaxRateId'] = ApiClient.convertToType(data['TaxRateId'], 'Number'); + } + if (data.hasOwnProperty('TaxValue')) { + obj['TaxValue'] = ApiClient.convertToType(data['TaxValue'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu item option set item identifier + * @member {Number} MenuItemOptionSetItemId + */ +MenuItemOptionSetItem.prototype['MenuItemOptionSetItemId'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuItemOptionSetItem.prototype['PublicId'] = undefined; + +/** + * List of metadata + * @member {Array.} Metadata + */ +MenuItemOptionSetItem.prototype['Metadata'] = undefined; + +/** + * if null, next option set is next. if -1, this is the final option set + * @member {Number} NextMenuItemOptionSetId + */ +MenuItemOptionSetItem.prototype['NextMenuItemOptionSetId'] = undefined; + +/** + * Catalog item Id when the OptionSet is associated to a Product + * @member {String} CatalogItemId + */ +MenuItemOptionSetItem.prototype['CatalogItemId'] = undefined; + +/** + * Tax rate name + * @member {String} TaxRateName + */ +MenuItemOptionSetItem.prototype['TaxRateName'] = undefined; + +/** + * @member {Number} TaxRateId + */ +MenuItemOptionSetItem.prototype['TaxRateId'] = undefined; + +/** + * @member {Number} TaxValue + */ +MenuItemOptionSetItem.prototype['TaxValue'] = undefined; + +/** + * Name + * @member {String} Name + */ +MenuItemOptionSetItem.prototype['Name'] = undefined; + +/** + * Price + * @member {Number} Price + */ +MenuItemOptionSetItem.prototype['Price'] = undefined; + +/** + * An optional fee that can be added to the price of the item. + * @member {Number} DepositReturnFee + */ +MenuItemOptionSetItem.prototype['DepositReturnFee'] = undefined; + +/** + * Is available + * @member {Boolean} IsAvailable + */ +MenuItemOptionSetItem.prototype['IsAvailable'] = undefined; + +/** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ +MenuItemOptionSetItem.prototype['DisplayOrder'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/MenuItemOptionSetItem.CellLayoutTypeEnum} CellLayoutType + */ +MenuItemOptionSetItem.prototype['CellLayoutType'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +MenuItemOptionSetItem.prototype['ImageUrl'] = undefined; + + + + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +MenuItemOptionSetItem['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default MenuItemOptionSetItem; + diff --git a/src/model/MenuItemOptionSetItemBase.js b/src/model/MenuItemOptionSetItemBase.js new file mode 100644 index 00000000..79601447 --- /dev/null +++ b/src/model/MenuItemOptionSetItemBase.js @@ -0,0 +1,169 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuItemOptionSetItemBase model module. + * @module model/MenuItemOptionSetItemBase + * @version 1.0.0 + */ +class MenuItemOptionSetItemBase { + /** + * Constructs a new MenuItemOptionSetItemBase. + * Menu item option set item + * @alias module:model/MenuItemOptionSetItemBase + */ + constructor() { + + MenuItemOptionSetItemBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetItemBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetItemBase} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetItemBase} The populated MenuItemOptionSetItemBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetItemBase(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Name + * @member {String} Name + */ +MenuItemOptionSetItemBase.prototype['Name'] = undefined; + +/** + * Price + * @member {Number} Price + */ +MenuItemOptionSetItemBase.prototype['Price'] = undefined; + +/** + * An optional fee that can be added to the price of the item. + * @member {Number} DepositReturnFee + */ +MenuItemOptionSetItemBase.prototype['DepositReturnFee'] = undefined; + +/** + * Is available + * @member {Boolean} IsAvailable + */ +MenuItemOptionSetItemBase.prototype['IsAvailable'] = undefined; + +/** + * Display order. Displayed in ascending order. + * @member {Number} DisplayOrder + */ +MenuItemOptionSetItemBase.prototype['DisplayOrder'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/MenuItemOptionSetItemBase.CellLayoutTypeEnum} CellLayoutType + */ +MenuItemOptionSetItemBase.prototype['CellLayoutType'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +MenuItemOptionSetItemBase.prototype['ImageUrl'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuItemOptionSetItemBase.prototype['PublicId'] = undefined; + + + + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +MenuItemOptionSetItemBase['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default MenuItemOptionSetItemBase; + diff --git a/src/model/MenuItemOptionSetItemCreatedEvent.js b/src/model/MenuItemOptionSetItemCreatedEvent.js new file mode 100644 index 00000000..f1115e79 --- /dev/null +++ b/src/model/MenuItemOptionSetItemCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSetItem from './MenuItemOptionSetItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuItemOptionSetItemCreatedEvent model module. + * @module model/MenuItemOptionSetItemCreatedEvent + * @version 1.0.0 + */ +class MenuItemOptionSetItemCreatedEvent { + /** + * Constructs a new MenuItemOptionSetItemCreatedEvent. + * + * @alias module:model/MenuItemOptionSetItemCreatedEvent + */ + constructor() { + + MenuItemOptionSetItemCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetItemCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetItemCreatedEvent} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetItemCreatedEvent} The populated MenuItemOptionSetItemCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetItemCreatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuItemOptionSetItem')) { + obj['MenuItemOptionSetItem'] = MenuItemOptionSetItem.constructFromObject(data['MenuItemOptionSetItem']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuItemOptionSetItemCreatedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuItemOptionSetItemCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuItemOptionSetItemCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuItemOptionSetItem} MenuItemOptionSetItem + */ +MenuItemOptionSetItemCreatedEvent.prototype['MenuItemOptionSetItem'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuItemOptionSetItemCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuItemOptionSetItemCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuItemOptionSetItemCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuItemOptionSetItemCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuItemOptionSetItemCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuItemOptionSetItemCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuItemOptionSetItemCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuItemOptionSetItemCreatedEvent; + diff --git a/src/model/MenuItemOptionSetItemDeletedEvent.js b/src/model/MenuItemOptionSetItemDeletedEvent.js new file mode 100644 index 00000000..fdd05b13 --- /dev/null +++ b/src/model/MenuItemOptionSetItemDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSetItem from './MenuItemOptionSetItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuItemOptionSetItemDeletedEvent model module. + * @module model/MenuItemOptionSetItemDeletedEvent + * @version 1.0.0 + */ +class MenuItemOptionSetItemDeletedEvent { + /** + * Constructs a new MenuItemOptionSetItemDeletedEvent. + * + * @alias module:model/MenuItemOptionSetItemDeletedEvent + */ + constructor() { + + MenuItemOptionSetItemDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetItemDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetItemDeletedEvent} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetItemDeletedEvent} The populated MenuItemOptionSetItemDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetItemDeletedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuItemOptionSetItem')) { + obj['MenuItemOptionSetItem'] = MenuItemOptionSetItem.constructFromObject(data['MenuItemOptionSetItem']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuItemOptionSetItemDeletedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuItemOptionSetItemDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuItemOptionSetItemDeletedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuItemOptionSetItem} MenuItemOptionSetItem + */ +MenuItemOptionSetItemDeletedEvent.prototype['MenuItemOptionSetItem'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuItemOptionSetItemDeletedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuItemOptionSetItemDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuItemOptionSetItemDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuItemOptionSetItemDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuItemOptionSetItemDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuItemOptionSetItemDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuItemOptionSetItemDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuItemOptionSetItemDeletedEvent; + diff --git a/src/model/MenuItemOptionSetItemUpdatedEvent.js b/src/model/MenuItemOptionSetItemUpdatedEvent.js new file mode 100644 index 00000000..9f1d6f62 --- /dev/null +++ b/src/model/MenuItemOptionSetItemUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSetItem from './MenuItemOptionSetItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuItemOptionSetItemUpdatedEvent model module. + * @module model/MenuItemOptionSetItemUpdatedEvent + * @version 1.0.0 + */ +class MenuItemOptionSetItemUpdatedEvent { + /** + * Constructs a new MenuItemOptionSetItemUpdatedEvent. + * + * @alias module:model/MenuItemOptionSetItemUpdatedEvent + */ + constructor() { + + MenuItemOptionSetItemUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetItemUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetItemUpdatedEvent} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetItemUpdatedEvent} The populated MenuItemOptionSetItemUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetItemUpdatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuItemOptionSetItem')) { + obj['MenuItemOptionSetItem'] = MenuItemOptionSetItem.constructFromObject(data['MenuItemOptionSetItem']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuItemOptionSetItemUpdatedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuItemOptionSetItemUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuItemOptionSetItemUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuItemOptionSetItem} MenuItemOptionSetItem + */ +MenuItemOptionSetItemUpdatedEvent.prototype['MenuItemOptionSetItem'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuItemOptionSetItemUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuItemOptionSetItemUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuItemOptionSetItemUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuItemOptionSetItemUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuItemOptionSetItemUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuItemOptionSetItemUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuItemOptionSetItemUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuItemOptionSetItemUpdatedEvent; + diff --git a/src/model/MenuItemOptionSetUpdatedEvent.js b/src/model/MenuItemOptionSetUpdatedEvent.js new file mode 100644 index 00000000..48d66239 --- /dev/null +++ b/src/model/MenuItemOptionSetUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSet from './MenuItemOptionSet'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuItemOptionSetUpdatedEvent model module. + * @module model/MenuItemOptionSetUpdatedEvent + * @version 1.0.0 + */ +class MenuItemOptionSetUpdatedEvent { + /** + * Constructs a new MenuItemOptionSetUpdatedEvent. + * + * @alias module:model/MenuItemOptionSetUpdatedEvent + */ + constructor() { + + MenuItemOptionSetUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuItemOptionSetUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuItemOptionSetUpdatedEvent} obj Optional instance to populate. + * @return {module:model/MenuItemOptionSetUpdatedEvent} The populated MenuItemOptionSetUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuItemOptionSetUpdatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuItemOptionSet')) { + obj['MenuItemOptionSet'] = MenuItemOptionSet.constructFromObject(data['MenuItemOptionSet']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuItemOptionSetUpdatedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuItemOptionSetUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuItemOptionSetUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuItemOptionSet} MenuItemOptionSet + */ +MenuItemOptionSetUpdatedEvent.prototype['MenuItemOptionSet'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuItemOptionSetUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuItemOptionSetUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuItemOptionSetUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuItemOptionSetUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuItemOptionSetUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuItemOptionSetUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuItemOptionSetUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuItemOptionSetUpdatedEvent; + diff --git a/src/model/MenuNutritionInfoHeader.js b/src/model/MenuNutritionInfoHeader.js new file mode 100644 index 00000000..7c240efc --- /dev/null +++ b/src/model/MenuNutritionInfoHeader.js @@ -0,0 +1,90 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuNutritionInfoHeader model module. + * @module model/MenuNutritionInfoHeader + * @version 1.0.0 + */ +class MenuNutritionInfoHeader { + /** + * Constructs a new MenuNutritionInfoHeader. + * @alias module:model/MenuNutritionInfoHeader + */ + constructor() { + + MenuNutritionInfoHeader.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuNutritionInfoHeader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuNutritionInfoHeader} obj Optional instance to populate. + * @return {module:model/MenuNutritionInfoHeader} The populated MenuNutritionInfoHeader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuNutritionInfoHeader(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('NutritionInfoVersionGuid')) { + obj['NutritionInfoVersionGuid'] = ApiClient.convertToType(data['NutritionInfoVersionGuid'], 'String'); + } + if (data.hasOwnProperty('AbsoluteUrl')) { + obj['AbsoluteUrl'] = ApiClient.convertToType(data['AbsoluteUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu Id + * @member {Number} MenuId + */ +MenuNutritionInfoHeader.prototype['MenuId'] = undefined; + +/** + * Nutrition information version guid (generated every time the nutrition information is updated) + * @member {String} NutritionInfoVersionGuid + */ +MenuNutritionInfoHeader.prototype['NutritionInfoVersionGuid'] = undefined; + +/** + * Absolute URL of the nutrition information json file + * @member {String} AbsoluteUrl + */ +MenuNutritionInfoHeader.prototype['AbsoluteUrl'] = undefined; + + + + + + +export default MenuNutritionInfoHeader; + diff --git a/src/model/MenuObjectDisplayOrders.js b/src/model/MenuObjectDisplayOrders.js new file mode 100644 index 00000000..9f1913cc --- /dev/null +++ b/src/model/MenuObjectDisplayOrders.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ObjectDisplayOrder from './ObjectDisplayOrder'; + +/** + * The MenuObjectDisplayOrders model module. + * @module model/MenuObjectDisplayOrders + * @version 1.0.0 + */ +class MenuObjectDisplayOrders { + /** + * Constructs a new MenuObjectDisplayOrders. + * Collection of Display Orders for a Menu Object (Menu Section / Menu Items / Option Sets etc) + * @alias module:model/MenuObjectDisplayOrders + */ + constructor() { + + MenuObjectDisplayOrders.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuObjectDisplayOrders from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuObjectDisplayOrders} obj Optional instance to populate. + * @return {module:model/MenuObjectDisplayOrders} The populated MenuObjectDisplayOrders instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuObjectDisplayOrders(); + + if (data.hasOwnProperty('DisplayOrders')) { + obj['DisplayOrders'] = ApiClient.convertToType(data['DisplayOrders'], [ObjectDisplayOrder]); + } + } + return obj; + } + + +} + +/** + * List of Objects and their new Display Orders + * @member {Array.} DisplayOrders + */ +MenuObjectDisplayOrders.prototype['DisplayOrders'] = undefined; + + + + + + +export default MenuObjectDisplayOrders; + diff --git a/src/model/MenuSection.js b/src/model/MenuSection.js new file mode 100644 index 00000000..cb78642e --- /dev/null +++ b/src/model/MenuSection.js @@ -0,0 +1,164 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionAvailability from './MenuSectionAvailability'; +import MenuSectionItem from './MenuSectionItem'; + +/** + * The MenuSection model module. + * @module model/MenuSection + * @version 1.0.0 + */ +class MenuSection { + /** + * Constructs a new MenuSection. + * Menu section + * @alias module:model/MenuSection + */ + constructor() { + + MenuSection.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSection} obj Optional instance to populate. + * @return {module:model/MenuSection} The populated MenuSection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSection(); + + if (data.hasOwnProperty('MenuSectionId')) { + obj['MenuSectionId'] = ApiClient.convertToType(data['MenuSectionId'], 'Number'); + } + if (data.hasOwnProperty('MenuItems')) { + obj['MenuItems'] = ApiClient.convertToType(data['MenuItems'], [MenuSectionItem]); + } + if (data.hasOwnProperty('MenuSectionAvailability')) { + obj['MenuSectionAvailability'] = MenuSectionAvailability.constructFromObject(data['MenuSectionAvailability']); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('IsHiddenFromCustomers')) { + obj['IsHiddenFromCustomers'] = ApiClient.convertToType(data['IsHiddenFromCustomers'], 'Boolean'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu section identifier + * @member {Number} MenuSectionId + */ +MenuSection.prototype['MenuSectionId'] = undefined; + +/** + * Menu items + * @member {Array.} MenuItems + */ +MenuSection.prototype['MenuItems'] = undefined; + +/** + * @member {module:model/MenuSectionAvailability} MenuSectionAvailability + */ +MenuSection.prototype['MenuSectionAvailability'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuSection.prototype['PublicId'] = undefined; + +/** + * Image Name + * @member {String} ImageName + */ +MenuSection.prototype['ImageName'] = undefined; + +/** + * Name + * @member {String} Name + */ +MenuSection.prototype['Name'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuSection.prototype['Description'] = undefined; + +/** + * Display order + * @member {Number} DisplayOrder + */ +MenuSection.prototype['DisplayOrder'] = undefined; + +/** + * Is available + * @member {Boolean} IsAvailable + */ +MenuSection.prototype['IsAvailable'] = undefined; + +/** + * Is hidden from customer. Perhaps when the item is out of stock. + * @member {Boolean} IsHiddenFromCustomers + */ +MenuSection.prototype['IsHiddenFromCustomers'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +MenuSection.prototype['ImageUrl'] = undefined; + + + + + + +export default MenuSection; + diff --git a/src/model/MenuSectionAvailability.js b/src/model/MenuSectionAvailability.js new file mode 100644 index 00000000..55001e4d --- /dev/null +++ b/src/model/MenuSectionAvailability.js @@ -0,0 +1,116 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursPeriod from './BusinessHoursPeriod'; + +/** + * The MenuSectionAvailability model module. + * @module model/MenuSectionAvailability + * @version 1.0.0 + */ +class MenuSectionAvailability { + /** + * Constructs a new MenuSectionAvailability. + * Menu section availability + * @alias module:model/MenuSectionAvailability + */ + constructor() { + + MenuSectionAvailability.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionAvailability from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionAvailability} obj Optional instance to populate. + * @return {module:model/MenuSectionAvailability} The populated MenuSectionAvailability instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionAvailability(); + + if (data.hasOwnProperty('AvailableTimes')) { + obj['AvailableTimes'] = ApiClient.convertToType(data['AvailableTimes'], [BusinessHoursPeriod]); + } + if (data.hasOwnProperty('AvailabilityMode')) { + obj['AvailabilityMode'] = ApiClient.convertToType(data['AvailabilityMode'], 'String'); + } + } + return obj; + } + + +} + +/** + * Available times + * @member {Array.} AvailableTimes + */ +MenuSectionAvailability.prototype['AvailableTimes'] = undefined; + +/** + * Availability mode + * @member {module:model/MenuSectionAvailability.AvailabilityModeEnum} AvailabilityMode + */ +MenuSectionAvailability.prototype['AvailabilityMode'] = undefined; + + + + + +/** + * Allowed values for the AvailabilityMode property. + * @enum {String} + * @readonly + */ +MenuSectionAvailability['AvailabilityModeEnum'] = { + + /** + * value: "DisplayAlways" + * @const + */ + "DisplayAlways": "DisplayAlways", + + /** + * value: "DisplayBasedOnTimes" + * @const + */ + "DisplayBasedOnTimes": "DisplayBasedOnTimes", + + /** + * value: "DisplayAlwaysStartCollapsed" + * @const + */ + "DisplayAlwaysStartCollapsed": "DisplayAlwaysStartCollapsed", + + /** + * value: "DisplayAlwaysStartCollapsedBasedOnTimes" + * @const + */ + "DisplayAlwaysStartCollapsedBasedOnTimes": "DisplayAlwaysStartCollapsedBasedOnTimes" +}; + + + +export default MenuSectionAvailability; + diff --git a/src/model/MenuSectionAvailabilityBase.js b/src/model/MenuSectionAvailabilityBase.js new file mode 100644 index 00000000..bbc4bbd2 --- /dev/null +++ b/src/model/MenuSectionAvailabilityBase.js @@ -0,0 +1,106 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuSectionAvailabilityBase model module. + * @module model/MenuSectionAvailabilityBase + * @version 1.0.0 + */ +class MenuSectionAvailabilityBase { + /** + * Constructs a new MenuSectionAvailabilityBase. + * Menu section availability + * @alias module:model/MenuSectionAvailabilityBase + */ + constructor() { + + MenuSectionAvailabilityBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionAvailabilityBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionAvailabilityBase} obj Optional instance to populate. + * @return {module:model/MenuSectionAvailabilityBase} The populated MenuSectionAvailabilityBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionAvailabilityBase(); + + if (data.hasOwnProperty('AvailabilityMode')) { + obj['AvailabilityMode'] = ApiClient.convertToType(data['AvailabilityMode'], 'String'); + } + } + return obj; + } + + +} + +/** + * Availability mode + * @member {module:model/MenuSectionAvailabilityBase.AvailabilityModeEnum} AvailabilityMode + */ +MenuSectionAvailabilityBase.prototype['AvailabilityMode'] = undefined; + + + + + +/** + * Allowed values for the AvailabilityMode property. + * @enum {String} + * @readonly + */ +MenuSectionAvailabilityBase['AvailabilityModeEnum'] = { + + /** + * value: "DisplayAlways" + * @const + */ + "DisplayAlways": "DisplayAlways", + + /** + * value: "DisplayBasedOnTimes" + * @const + */ + "DisplayBasedOnTimes": "DisplayBasedOnTimes", + + /** + * value: "DisplayAlwaysStartCollapsed" + * @const + */ + "DisplayAlwaysStartCollapsed": "DisplayAlwaysStartCollapsed", + + /** + * value: "DisplayAlwaysStartCollapsedBasedOnTimes" + * @const + */ + "DisplayAlwaysStartCollapsedBasedOnTimes": "DisplayAlwaysStartCollapsedBasedOnTimes" +}; + + + +export default MenuSectionAvailabilityBase; + diff --git a/src/model/MenuSectionBase.js b/src/model/MenuSectionBase.js new file mode 100644 index 00000000..7139c090 --- /dev/null +++ b/src/model/MenuSectionBase.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuSectionBase model module. + * @module model/MenuSectionBase + * @version 1.0.0 + */ +class MenuSectionBase { + /** + * Constructs a new MenuSectionBase. + * Menu section + * @alias module:model/MenuSectionBase + */ + constructor() { + + MenuSectionBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionBase} obj Optional instance to populate. + * @return {module:model/MenuSectionBase} The populated MenuSectionBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionBase(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('IsHiddenFromCustomers')) { + obj['IsHiddenFromCustomers'] = ApiClient.convertToType(data['IsHiddenFromCustomers'], 'Boolean'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('MenuSectionId')) { + obj['MenuSectionId'] = ApiClient.convertToType(data['MenuSectionId'], 'Number'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Name + * @member {String} Name + */ +MenuSectionBase.prototype['Name'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuSectionBase.prototype['Description'] = undefined; + +/** + * Display order + * @member {Number} DisplayOrder + */ +MenuSectionBase.prototype['DisplayOrder'] = undefined; + +/** + * Is available + * @member {Boolean} IsAvailable + */ +MenuSectionBase.prototype['IsAvailable'] = undefined; + +/** + * Is hidden from customer. Perhaps when the item is out of stock. + * @member {Boolean} IsHiddenFromCustomers + */ +MenuSectionBase.prototype['IsHiddenFromCustomers'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +MenuSectionBase.prototype['ImageUrl'] = undefined; + +/** + * Menu Section Id + * @member {Number} MenuSectionId + */ +MenuSectionBase.prototype['MenuSectionId'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuSectionBase.prototype['PublicId'] = undefined; + + + + + + +export default MenuSectionBase; + diff --git a/src/model/MenuSectionCreatedEvent.js b/src/model/MenuSectionCreatedEvent.js new file mode 100644 index 00000000..8c34c128 --- /dev/null +++ b/src/model/MenuSectionCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSection from './MenuSection'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuSectionCreatedEvent model module. + * @module model/MenuSectionCreatedEvent + * @version 1.0.0 + */ +class MenuSectionCreatedEvent { + /** + * Constructs a new MenuSectionCreatedEvent. + * + * @alias module:model/MenuSectionCreatedEvent + */ + constructor() { + + MenuSectionCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionCreatedEvent} obj Optional instance to populate. + * @return {module:model/MenuSectionCreatedEvent} The populated MenuSectionCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionCreatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuSection')) { + obj['MenuSection'] = MenuSection.constructFromObject(data['MenuSection']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuSectionCreatedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuSectionCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuSectionCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuSection} MenuSection + */ +MenuSectionCreatedEvent.prototype['MenuSection'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuSectionCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuSectionCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuSectionCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuSectionCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuSectionCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuSectionCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuSectionCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuSectionCreatedEvent; + diff --git a/src/model/MenuSectionDeletedEvent.js b/src/model/MenuSectionDeletedEvent.js new file mode 100644 index 00000000..3916fbfb --- /dev/null +++ b/src/model/MenuSectionDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSection from './MenuSection'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuSectionDeletedEvent model module. + * @module model/MenuSectionDeletedEvent + * @version 1.0.0 + */ +class MenuSectionDeletedEvent { + /** + * Constructs a new MenuSectionDeletedEvent. + * + * @alias module:model/MenuSectionDeletedEvent + */ + constructor() { + + MenuSectionDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionDeletedEvent} obj Optional instance to populate. + * @return {module:model/MenuSectionDeletedEvent} The populated MenuSectionDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionDeletedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuSection')) { + obj['MenuSection'] = MenuSection.constructFromObject(data['MenuSection']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuSectionDeletedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuSectionDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuSectionDeletedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuSection} MenuSection + */ +MenuSectionDeletedEvent.prototype['MenuSection'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuSectionDeletedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuSectionDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuSectionDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuSectionDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuSectionDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuSectionDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuSectionDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuSectionDeletedEvent; + diff --git a/src/model/MenuSectionItem.js b/src/model/MenuSectionItem.js new file mode 100644 index 00000000..2bdf747d --- /dev/null +++ b/src/model/MenuSectionItem.js @@ -0,0 +1,340 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursPeriod from './BusinessHoursPeriod'; +import CreateMetadata from './CreateMetadata'; +import MenuItemOptionSet from './MenuItemOptionSet'; + +/** + * The MenuSectionItem model module. + * @module model/MenuSectionItem + * @version 1.0.0 + */ +class MenuSectionItem { + /** + * Constructs a new MenuSectionItem. + * Menu item + * @alias module:model/MenuSectionItem + */ + constructor() { + + MenuSectionItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionItem} obj Optional instance to populate. + * @return {module:model/MenuSectionItem} The populated MenuSectionItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionItem(); + + if (data.hasOwnProperty('ActualPrice')) { + obj['ActualPrice'] = ApiClient.convertToType(data['ActualPrice'], 'Number'); + } + if (data.hasOwnProperty('MenuItemOptionSets')) { + obj['MenuItemOptionSets'] = ApiClient.convertToType(data['MenuItemOptionSets'], [MenuItemOptionSet]); + } + if (data.hasOwnProperty('DailySpecialHours')) { + obj['DailySpecialHours'] = ApiClient.convertToType(data['DailySpecialHours'], [BusinessHoursPeriod]); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('TaxRateName')) { + obj['TaxRateName'] = ApiClient.convertToType(data['TaxRateName'], 'String'); + } + if (data.hasOwnProperty('TaxRateId')) { + obj['TaxRateId'] = ApiClient.convertToType(data['TaxRateId'], 'Number'); + } + if (data.hasOwnProperty('TaxValue')) { + obj['TaxValue'] = ApiClient.convertToType(data['TaxValue'], 'Number'); + } + if (data.hasOwnProperty('ExcludeFromVoucherDiscounting')) { + obj['ExcludeFromVoucherDiscounting'] = ApiClient.convertToType(data['ExcludeFromVoucherDiscounting'], 'Boolean'); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], [CreateMetadata]); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('SpicinessRating')) { + obj['SpicinessRating'] = ApiClient.convertToType(data['SpicinessRating'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('DisableVouchers')) { + obj['DisableVouchers'] = ApiClient.convertToType(data['DisableVouchers'], 'Boolean'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('MenuItemId')) { + obj['MenuItemId'] = ApiClient.convertToType(data['MenuItemId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Actual price - the minimum price possible when all required option set items prices are included. + * @member {Number} ActualPrice + */ +MenuSectionItem.prototype['ActualPrice'] = undefined; + +/** + * Menu item option sets + * @member {Array.} MenuItemOptionSets + */ +MenuSectionItem.prototype['MenuItemOptionSets'] = undefined; + +/** + * Daily special hours + * @member {Array.} DailySpecialHours + */ +MenuSectionItem.prototype['DailySpecialHours'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuSectionItem.prototype['PublicId'] = undefined; + +/** + * Tax rate name + * @member {String} TaxRateName + */ +MenuSectionItem.prototype['TaxRateName'] = undefined; + +/** + * TaxRate + * @member {Number} TaxRateId + */ +MenuSectionItem.prototype['TaxRateId'] = undefined; + +/** + * TaxValue - the tax associated with this item, based on TaxRate / TaxType and Currency (currency determines decimal point precision) + * @member {Number} TaxValue + */ +MenuSectionItem.prototype['TaxValue'] = undefined; + +/** + * If true, the item is excluded from voucher discount calculations + * @member {Boolean} ExcludeFromVoucherDiscounting + */ +MenuSectionItem.prototype['ExcludeFromVoucherDiscounting'] = undefined; + +/** + * List of metadata + * @member {Array.} Metadata + */ +MenuSectionItem.prototype['Metadata'] = undefined; + +/** + * Catalog item Id when the Item is associated to a Product + * @member {String} CatalogItemId + */ +MenuSectionItem.prototype['CatalogItemId'] = undefined; + +/** + * Menu item name (like \"Korma\") + * @member {String} Name + */ +MenuSectionItem.prototype['Name'] = undefined; + +/** + * Description (like \"A lovely dish from the east\") + * @member {String} Description + */ +MenuSectionItem.prototype['Description'] = undefined; + +/** + * Spiciness rating + * @member {module:model/MenuSectionItem.SpicinessRatingEnum} SpicinessRating + */ +MenuSectionItem.prototype['SpicinessRating'] = undefined; + +/** + * Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + * @member {Number} Price + */ +MenuSectionItem.prototype['Price'] = undefined; + +/** + * An optional fee that can be added to the price of the item. + * @member {Number} DepositReturnFee + */ +MenuSectionItem.prototype['DepositReturnFee'] = undefined; + +/** + * Display order + * @member {Number} DisplayOrder + */ +MenuSectionItem.prototype['DisplayOrder'] = undefined; + +/** + * To be set true if the item or an option of the item contains an alcoholic drink. + * @member {Boolean} Alcohol + */ +MenuSectionItem.prototype['Alcohol'] = undefined; + +/** + * True if we accept orders for this item still + * @member {Boolean} IsAvailable + */ +MenuSectionItem.prototype['IsAvailable'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/MenuSectionItem.CellLayoutTypeEnum} CellLayoutType + */ +MenuSectionItem.prototype['CellLayoutType'] = undefined; + +/** + * If true, then vouchers won't be applied for this item + * @member {Boolean} DisableVouchers + */ +MenuSectionItem.prototype['DisableVouchers'] = undefined; + +/** + * Image url + * @member {String} ImageName + */ +MenuSectionItem.prototype['ImageName'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +MenuSectionItem.prototype['ImageUrl'] = undefined; + +/** + * Menu Item Id + * @member {Number} MenuItemId + */ +MenuSectionItem.prototype['MenuItemId'] = undefined; + + + + + +/** + * Allowed values for the SpicinessRating property. + * @enum {String} + * @readonly + */ +MenuSectionItem['SpicinessRatingEnum'] = { + + /** + * value: "NotRated" + * @const + */ + "NotRated": "NotRated", + + /** + * value: "Mild" + * @const + */ + "Mild": "Mild", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Hot" + * @const + */ + "Hot": "Hot" +}; + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +MenuSectionItem['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default MenuSectionItem; + diff --git a/src/model/MenuSectionItemBase.js b/src/model/MenuSectionItemBase.js new file mode 100644 index 00000000..84461b0e --- /dev/null +++ b/src/model/MenuSectionItemBase.js @@ -0,0 +1,265 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuSectionItemBase model module. + * @module model/MenuSectionItemBase + * @version 1.0.0 + */ +class MenuSectionItemBase { + /** + * Constructs a new MenuSectionItemBase. + * Menu item + * @alias module:model/MenuSectionItemBase + */ + constructor() { + + MenuSectionItemBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionItemBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionItemBase} obj Optional instance to populate. + * @return {module:model/MenuSectionItemBase} The populated MenuSectionItemBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionItemBase(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('SpicinessRating')) { + obj['SpicinessRating'] = ApiClient.convertToType(data['SpicinessRating'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('CellLayoutType')) { + obj['CellLayoutType'] = ApiClient.convertToType(data['CellLayoutType'], 'String'); + } + if (data.hasOwnProperty('DisableVouchers')) { + obj['DisableVouchers'] = ApiClient.convertToType(data['DisableVouchers'], 'Boolean'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + if (data.hasOwnProperty('MenuItemId')) { + obj['MenuItemId'] = ApiClient.convertToType(data['MenuItemId'], 'Number'); + } + if (data.hasOwnProperty('ExcludeFromVoucherDiscounting')) { + obj['ExcludeFromVoucherDiscounting'] = ApiClient.convertToType(data['ExcludeFromVoucherDiscounting'], 'Boolean'); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu item name (like \"Korma\") + * @member {String} Name + */ +MenuSectionItemBase.prototype['Name'] = undefined; + +/** + * Description (like \"A lovely dish from the east\") + * @member {String} Description + */ +MenuSectionItemBase.prototype['Description'] = undefined; + +/** + * Spiciness rating + * @member {module:model/MenuSectionItemBase.SpicinessRatingEnum} SpicinessRating + */ +MenuSectionItemBase.prototype['SpicinessRating'] = undefined; + +/** + * Price - this is only used when there is no master option set and should be set to 0 if a master option set exists. + * @member {Number} Price + */ +MenuSectionItemBase.prototype['Price'] = undefined; + +/** + * An optional fee that can be added to the price of the item. + * @member {Number} DepositReturnFee + */ +MenuSectionItemBase.prototype['DepositReturnFee'] = undefined; + +/** + * Display order + * @member {Number} DisplayOrder + */ +MenuSectionItemBase.prototype['DisplayOrder'] = undefined; + +/** + * To be set true if the item or an option of the item contains an alcoholic drink. + * @member {Boolean} Alcohol + */ +MenuSectionItemBase.prototype['Alcohol'] = undefined; + +/** + * True if we accept orders for this item still + * @member {Boolean} IsAvailable + */ +MenuSectionItemBase.prototype['IsAvailable'] = undefined; + +/** + * Small | Medium | Large Affects the layout of the menu. + * @member {module:model/MenuSectionItemBase.CellLayoutTypeEnum} CellLayoutType + */ +MenuSectionItemBase.prototype['CellLayoutType'] = undefined; + +/** + * If true, then vouchers won't be applied for this item + * @member {Boolean} DisableVouchers + */ +MenuSectionItemBase.prototype['DisableVouchers'] = undefined; + +/** + * Image url + * @member {String} ImageName + */ +MenuSectionItemBase.prototype['ImageName'] = undefined; + +/** + * Image url + * @member {String} ImageUrl + */ +MenuSectionItemBase.prototype['ImageUrl'] = undefined; + +/** + * Menu Item Id + * @member {Number} MenuItemId + */ +MenuSectionItemBase.prototype['MenuItemId'] = undefined; + +/** + * If true, the item is excluded from voucher discount calculations + * @member {Boolean} ExcludeFromVoucherDiscounting + */ +MenuSectionItemBase.prototype['ExcludeFromVoucherDiscounting'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +MenuSectionItemBase.prototype['PublicId'] = undefined; + + + + + +/** + * Allowed values for the SpicinessRating property. + * @enum {String} + * @readonly + */ +MenuSectionItemBase['SpicinessRatingEnum'] = { + + /** + * value: "NotRated" + * @const + */ + "NotRated": "NotRated", + + /** + * value: "Mild" + * @const + */ + "Mild": "Mild", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Hot" + * @const + */ + "Hot": "Hot" +}; + + +/** + * Allowed values for the CellLayoutType property. + * @enum {String} + * @readonly + */ +MenuSectionItemBase['CellLayoutTypeEnum'] = { + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "HiddenImage" + * @const + */ + "HiddenImage": "HiddenImage" +}; + + + +export default MenuSectionItemBase; + diff --git a/src/model/MenuSectionItemCreatedEvent.js b/src/model/MenuSectionItemCreatedEvent.js new file mode 100644 index 00000000..c75788d5 --- /dev/null +++ b/src/model/MenuSectionItemCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionItem from './MenuSectionItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuSectionItemCreatedEvent model module. + * @module model/MenuSectionItemCreatedEvent + * @version 1.0.0 + */ +class MenuSectionItemCreatedEvent { + /** + * Constructs a new MenuSectionItemCreatedEvent. + * + * @alias module:model/MenuSectionItemCreatedEvent + */ + constructor() { + + MenuSectionItemCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionItemCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionItemCreatedEvent} obj Optional instance to populate. + * @return {module:model/MenuSectionItemCreatedEvent} The populated MenuSectionItemCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionItemCreatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuSectionItem')) { + obj['MenuSectionItem'] = MenuSectionItem.constructFromObject(data['MenuSectionItem']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuSectionItemCreatedEvent.prototype['MenuId'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuSectionItemCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuSectionItemCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuSectionItem} MenuSectionItem + */ +MenuSectionItemCreatedEvent.prototype['MenuSectionItem'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuSectionItemCreatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuSectionItemCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuSectionItemCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuSectionItemCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuSectionItemCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuSectionItemCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuSectionItemCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuSectionItemCreatedEvent; + diff --git a/src/model/MenuSectionItemDeletedEvent.js b/src/model/MenuSectionItemDeletedEvent.js new file mode 100644 index 00000000..0beccaa3 --- /dev/null +++ b/src/model/MenuSectionItemDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionItem from './MenuSectionItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuSectionItemDeletedEvent model module. + * @module model/MenuSectionItemDeletedEvent + * @version 1.0.0 + */ +class MenuSectionItemDeletedEvent { + /** + * Constructs a new MenuSectionItemDeletedEvent. + * + * @alias module:model/MenuSectionItemDeletedEvent + */ + constructor() { + + MenuSectionItemDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionItemDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionItemDeletedEvent} obj Optional instance to populate. + * @return {module:model/MenuSectionItemDeletedEvent} The populated MenuSectionItemDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionItemDeletedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuSectionItem')) { + obj['MenuSectionItem'] = MenuSectionItem.constructFromObject(data['MenuSectionItem']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuSectionItemDeletedEvent.prototype['MenuId'] = undefined; + +/** + * Event description + * @member {String} Description + */ +MenuSectionItemDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuSectionItemDeletedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuSectionItem} MenuSectionItem + */ +MenuSectionItemDeletedEvent.prototype['MenuSectionItem'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuSectionItemDeletedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuSectionItemDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuSectionItemDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuSectionItemDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuSectionItemDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuSectionItemDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuSectionItemDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuSectionItemDeletedEvent; + diff --git a/src/model/MenuSectionItemUpdatedEvent.js b/src/model/MenuSectionItemUpdatedEvent.js new file mode 100644 index 00000000..8a5baaac --- /dev/null +++ b/src/model/MenuSectionItemUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionItem from './MenuSectionItem'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuSectionItemUpdatedEvent model module. + * @module model/MenuSectionItemUpdatedEvent + * @version 1.0.0 + */ +class MenuSectionItemUpdatedEvent { + /** + * Constructs a new MenuSectionItemUpdatedEvent. + * + * @alias module:model/MenuSectionItemUpdatedEvent + */ + constructor() { + + MenuSectionItemUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionItemUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionItemUpdatedEvent} obj Optional instance to populate. + * @return {module:model/MenuSectionItemUpdatedEvent} The populated MenuSectionItemUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionItemUpdatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuSectionItem')) { + obj['MenuSectionItem'] = MenuSectionItem.constructFromObject(data['MenuSectionItem']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuSectionItemUpdatedEvent.prototype['MenuId'] = undefined; + +/** + * Event description + * @member {String} Description + */ +MenuSectionItemUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuSectionItemUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuSectionItem} MenuSectionItem + */ +MenuSectionItemUpdatedEvent.prototype['MenuSectionItem'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuSectionItemUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuSectionItemUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuSectionItemUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuSectionItemUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuSectionItemUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuSectionItemUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuSectionItemUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuSectionItemUpdatedEvent; + diff --git a/src/model/MenuSectionUpdatedEvent.js b/src/model/MenuSectionUpdatedEvent.js new file mode 100644 index 00000000..6702a6ad --- /dev/null +++ b/src/model/MenuSectionUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSection from './MenuSection'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuSectionUpdatedEvent model module. + * @module model/MenuSectionUpdatedEvent + * @version 1.0.0 + */ +class MenuSectionUpdatedEvent { + /** + * Constructs a new MenuSectionUpdatedEvent. + * + * @alias module:model/MenuSectionUpdatedEvent + */ + constructor() { + + MenuSectionUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSectionUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSectionUpdatedEvent} obj Optional instance to populate. + * @return {module:model/MenuSectionUpdatedEvent} The populated MenuSectionUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSectionUpdatedEvent(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MenuSection')) { + obj['MenuSection'] = MenuSection.constructFromObject(data['MenuSection']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuSectionUpdatedEvent.prototype['MenuId'] = undefined; + +/** + * Event description + * @member {String} Description + */ +MenuSectionUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuSectionUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MenuSection} MenuSection + */ +MenuSectionUpdatedEvent.prototype['MenuSection'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +MenuSectionUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuSectionUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuSectionUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuSectionUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuSectionUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuSectionUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuSectionUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuSectionUpdatedEvent; + diff --git a/src/model/MenuStoreNames.js b/src/model/MenuStoreNames.js new file mode 100644 index 00000000..1515890b --- /dev/null +++ b/src/model/MenuStoreNames.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuStoreNames model module. + * @module model/MenuStoreNames + * @version 1.0.0 + */ +class MenuStoreNames { + /** + * Constructs a new MenuStoreNames. + * Menu Store Names + * @alias module:model/MenuStoreNames + */ + constructor() { + + MenuStoreNames.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuStoreNames from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuStoreNames} obj Optional instance to populate. + * @return {module:model/MenuStoreNames} The populated MenuStoreNames instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuStoreNames(); + + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], ['String']); + } + } + return obj; + } + + +} + +/** + * Names of stores associated with menu + * @member {Array.} StoreNames + */ +MenuStoreNames.prototype['StoreNames'] = undefined; + + + + + + +export default MenuStoreNames; + diff --git a/src/model/MenuSummary.js b/src/model/MenuSummary.js new file mode 100644 index 00000000..f2f5b244 --- /dev/null +++ b/src/model/MenuSummary.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuSummary model module. + * @module model/MenuSummary + * @version 1.0.0 + */ +class MenuSummary { + /** + * Constructs a new MenuSummary. + * Menu Summary + * @alias module:model/MenuSummary + */ + constructor() { + + MenuSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuSummary} obj Optional instance to populate. + * @return {module:model/MenuSummary} The populated MenuSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuSummary(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('ModifiedTime')) { + obj['ModifiedTime'] = ApiClient.convertToType(data['ModifiedTime'], 'Date'); + } + if (data.hasOwnProperty('VersionNumber')) { + obj['VersionNumber'] = ApiClient.convertToType(data['VersionNumber'], 'Number'); + } + if (data.hasOwnProperty('MenuUrl')) { + obj['MenuUrl'] = ApiClient.convertToType(data['MenuUrl'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Locked')) { + obj['Locked'] = ApiClient.convertToType(data['Locked'], 'Boolean'); + } + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], ['String']); + } + if (data.hasOwnProperty('IsIntegrated')) { + obj['IsIntegrated'] = ApiClient.convertToType(data['IsIntegrated'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Menu identifier + * @member {Number} MenuId + */ +MenuSummary.prototype['MenuId'] = undefined; + +/** + * Last modified time + * @member {Date} ModifiedTime + */ +MenuSummary.prototype['ModifiedTime'] = undefined; + +/** + * Menu version + * @member {Number} VersionNumber + */ +MenuSummary.prototype['VersionNumber'] = undefined; + +/** + * Menu Url + * @member {String} MenuUrl + */ +MenuSummary.prototype['MenuUrl'] = undefined; + +/** + * Name of Menu, only shown in portal + * @member {String} Name + */ +MenuSummary.prototype['Name'] = undefined; + +/** + * Locked: is menu locked against modifcation + * @member {Boolean} Locked + */ +MenuSummary.prototype['Locked'] = undefined; + +/** + * List of stores names which are associated with this menu + * @member {Array.} StoreNames + */ +MenuSummary.prototype['StoreNames'] = undefined; + +/** + * Flag to indicate if the menu is integrated (contains metadata) + * @member {Boolean} IsIntegrated + */ +MenuSummary.prototype['IsIntegrated'] = undefined; + + + + + + +export default MenuSummary; + diff --git a/src/model/MenuTaxDetails.js b/src/model/MenuTaxDetails.js new file mode 100644 index 00000000..3b0c6256 --- /dev/null +++ b/src/model/MenuTaxDetails.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuTaxRate from './MenuTaxRate'; + +/** + * The MenuTaxDetails model module. + * @module model/MenuTaxDetails + * @version 1.0.0 + */ +class MenuTaxDetails { + /** + * Constructs a new MenuTaxDetails. + * Tax information for Menu + * @alias module:model/MenuTaxDetails + */ + constructor() { + + MenuTaxDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuTaxDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuTaxDetails} obj Optional instance to populate. + * @return {module:model/MenuTaxDetails} The populated MenuTaxDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuTaxDetails(); + + if (data.hasOwnProperty('TaxRates')) { + obj['TaxRates'] = ApiClient.convertToType(data['TaxRates'], [MenuTaxRate]); + } + if (data.hasOwnProperty('DisplayTax')) { + obj['DisplayTax'] = ApiClient.convertToType(data['DisplayTax'], 'Boolean'); + } + if (data.hasOwnProperty('TaxType')) { + obj['TaxType'] = ApiClient.convertToType(data['TaxType'], 'String'); + } + if (data.hasOwnProperty('ItemTaxes')) { + obj['ItemTaxes'] = ApiClient.convertToType(data['ItemTaxes'], {'String': 'Number'}); + } + if (data.hasOwnProperty('SetItemTaxes')) { + obj['SetItemTaxes'] = ApiClient.convertToType(data['SetItemTaxes'], {'String': 'Number'}); + } + } + return obj; + } + + +} + +/** + * Tax Rates + * @member {Array.} TaxRates + */ +MenuTaxDetails.prototype['TaxRates'] = undefined; + +/** + * Display tax for Menu + * @member {Boolean} DisplayTax + */ +MenuTaxDetails.prototype['DisplayTax'] = undefined; + +/** + * TaxType + * @member {module:model/MenuTaxDetails.TaxTypeEnum} TaxType + */ +MenuTaxDetails.prototype['TaxType'] = undefined; + +/** + * ItemIds and TaxIds + * @member {Object.} ItemTaxes + */ +MenuTaxDetails.prototype['ItemTaxes'] = undefined; + +/** + * SetItemIds and TaxIds + * @member {Object.} SetItemTaxes + */ +MenuTaxDetails.prototype['SetItemTaxes'] = undefined; + + + + + +/** + * Allowed values for the TaxType property. + * @enum {String} + * @readonly + */ +MenuTaxDetails['TaxTypeEnum'] = { + + /** + * value: "IncludedInBasePrice" + * @const + */ + "IncludedInBasePrice": "IncludedInBasePrice", + + /** + * value: "ExcludedFromBasePrice" + * @const + */ + "ExcludedFromBasePrice": "ExcludedFromBasePrice" +}; + + + +export default MenuTaxDetails; + diff --git a/src/model/MenuTaxRate.js b/src/model/MenuTaxRate.js new file mode 100644 index 00000000..c28a99a4 --- /dev/null +++ b/src/model/MenuTaxRate.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuTaxRate model module. + * @module model/MenuTaxRate + * @version 1.0.0 + */ +class MenuTaxRate { + /** + * Constructs a new MenuTaxRate. + * Tax Rates Associated with a Menu + * @alias module:model/MenuTaxRate + */ + constructor() { + + MenuTaxRate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuTaxRate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuTaxRate} obj Optional instance to populate. + * @return {module:model/MenuTaxRate} The populated MenuTaxRate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuTaxRate(); + + if (data.hasOwnProperty('TaxRateId')) { + obj['TaxRateId'] = ApiClient.convertToType(data['TaxRateId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Rate')) { + obj['Rate'] = ApiClient.convertToType(data['Rate'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Id of Tax Rate + * @member {Number} TaxRateId + */ +MenuTaxRate.prototype['TaxRateId'] = undefined; + +/** + * Name of Tax Rate + * @member {String} Name + */ +MenuTaxRate.prototype['Name'] = undefined; + +/** + * In Percentage + * @member {Number} Rate + */ +MenuTaxRate.prototype['Rate'] = undefined; + + + + + + +export default MenuTaxRate; + diff --git a/src/model/MenuUpdatedEvent.js b/src/model/MenuUpdatedEvent.js new file mode 100644 index 00000000..c54b1603 --- /dev/null +++ b/src/model/MenuUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Menu from './Menu'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuUpdatedEvent model module. + * @module model/MenuUpdatedEvent + * @version 1.0.0 + */ +class MenuUpdatedEvent { + /** + * Constructs a new MenuUpdatedEvent. + * Menu updated event + * @alias module:model/MenuUpdatedEvent + */ + constructor() { + + MenuUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuUpdatedEvent} obj Optional instance to populate. + * @return {module:model/MenuUpdatedEvent} The populated MenuUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Menu')) { + obj['Menu'] = Menu.constructFromObject(data['Menu']); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +MenuUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Menu} Menu + */ +MenuUpdatedEvent.prototype['Menu'] = undefined; + +/** + * Menu Id + * @member {Number} MenuId + */ +MenuUpdatedEvent.prototype['MenuId'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuUpdatedEvent; + diff --git a/src/model/MenuUploadedEvent.js b/src/model/MenuUploadedEvent.js new file mode 100644 index 00000000..9708e69b --- /dev/null +++ b/src/model/MenuUploadedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Menu from './Menu'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MenuUploadedEvent model module. + * @module model/MenuUploadedEvent + * @version 1.0.0 + */ +class MenuUploadedEvent { + /** + * Constructs a new MenuUploadedEvent. + * Menu uploaded event + * @alias module:model/MenuUploadedEvent + */ + constructor() { + + MenuUploadedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuUploadedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuUploadedEvent} obj Optional instance to populate. + * @return {module:model/MenuUploadedEvent} The populated MenuUploadedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuUploadedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Menu')) { + obj['Menu'] = Menu.constructFromObject(data['Menu']); + } + if (data.hasOwnProperty('InstanceEventCount')) { + obj['InstanceEventCount'] = ApiClient.convertToType(data['InstanceEventCount'], 'String'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +MenuUploadedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +MenuUploadedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MenuUploadedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Menu} Menu + */ +MenuUploadedEvent.prototype['Menu'] = undefined; + +/** + * Quantity of events + * @member {String} InstanceEventCount + */ +MenuUploadedEvent.prototype['InstanceEventCount'] = undefined; + +/** + * The menu Id + * @member {Number} MenuId + */ +MenuUploadedEvent.prototype['MenuId'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MenuUploadedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MenuUploadedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MenuUploadedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MenuUploadedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MenuUploadedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MenuUploadedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MenuUploadedEvent; + diff --git a/src/model/MenuZone.js b/src/model/MenuZone.js new file mode 100644 index 00000000..de0c2acd --- /dev/null +++ b/src/model/MenuZone.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MenuZone model module. + * @module model/MenuZone + * @version 1.0.0 + */ +class MenuZone { + /** + * Constructs a new MenuZone. + * @alias module:model/MenuZone + */ + constructor() { + + MenuZone.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MenuZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MenuZone} obj Optional instance to populate. + * @return {module:model/MenuZone} The populated MenuZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MenuZone(); + + if (data.hasOwnProperty('MenuZoneId')) { + obj['MenuZoneId'] = ApiClient.convertToType(data['MenuZoneId'], 'Number'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} MenuZoneId + */ +MenuZone.prototype['MenuZoneId'] = undefined; + +/** + * @member {Number} MenuId + */ +MenuZone.prototype['MenuId'] = undefined; + +/** + * @member {String} Name + */ +MenuZone.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +MenuZone.prototype['Description'] = undefined; + +/** + * @member {String} ImageName + */ +MenuZone.prototype['ImageName'] = undefined; + +/** + * @member {Number} DisplayOrder + */ +MenuZone.prototype['DisplayOrder'] = undefined; + +/** + * @member {String} ImageUrl + */ +MenuZone.prototype['ImageUrl'] = undefined; + + + + + + +export default MenuZone; + diff --git a/src/model/Metadata.js b/src/model/Metadata.js new file mode 100644 index 00000000..d53d3dcb --- /dev/null +++ b/src/model/Metadata.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Metadata model module. + * @module model/Metadata + * @version 1.0.0 + */ +class Metadata { + /** + * Constructs a new Metadata. + * Metadata + * @alias module:model/Metadata + */ + constructor() { + + Metadata.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Metadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Metadata} obj Optional instance to populate. + * @return {module:model/Metadata} The populated Metadata instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Metadata(); + + if (data.hasOwnProperty('MenuEntityId')) { + obj['MenuEntityId'] = ApiClient.convertToType(data['MenuEntityId'], 'Number'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + } + return obj; + } + + +} + +/** + * Menu entity identifier (eg: MenuItemId, MenuItemOptionSetItemId) + * @member {Number} MenuEntityId + */ +Metadata.prototype['MenuEntityId'] = undefined; + +/** + * Metadata key (Unique identifier) + * @member {String} Key + */ +Metadata.prototype['Key'] = undefined; + +/** + * Metadata value + * @member {String} Value + */ +Metadata.prototype['Value'] = undefined; + + + + + + +export default Metadata; + diff --git a/src/model/Metafield.js b/src/model/Metafield.js new file mode 100644 index 00000000..b8fbc602 --- /dev/null +++ b/src/model/Metafield.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Metafield model module. + * @module model/Metafield + * @version 1.0.0 + */ +class Metafield { + /** + * Constructs a new Metafield. + * Metafield + * @alias module:model/Metafield + * @param Key {String} Key of the metafield. Allowed characters: lowercase letters, numbers, hyphen, underscore and dot + * @param Value {String} Value of the metafield. + */ + constructor(Key, Value) { + + Metafield.initialize(this, Key, Value); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Key, Value) { + obj['Key'] = Key; + obj['Value'] = Value; + } + + /** + * Constructs a Metafield from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Metafield} obj Optional instance to populate. + * @return {module:model/Metafield} The populated Metafield instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Metafield(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + } + return obj; + } + + +} + +/** + * Key of the metafield. Allowed characters: lowercase letters, numbers, hyphen, underscore and dot + * @member {String} Key + */ +Metafield.prototype['Key'] = undefined; + +/** + * Value of the metafield. + * @member {String} Value + */ +Metafield.prototype['Value'] = undefined; + + + + + + +export default Metafield; + diff --git a/src/model/MetafieldDefinition.js b/src/model/MetafieldDefinition.js new file mode 100644 index 00000000..aaaf9d91 --- /dev/null +++ b/src/model/MetafieldDefinition.js @@ -0,0 +1,221 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MetafieldDefinition model module. + * @module model/MetafieldDefinition + * @version 1.0.0 + */ +class MetafieldDefinition { + /** + * Constructs a new MetafieldDefinition. + * Metafield Definition + * @alias module:model/MetafieldDefinition + * @param 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 + * @param Name {String} Field Name + */ + constructor(Key, Name) { + + MetafieldDefinition.initialize(this, Key, Name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Key, Name) { + obj['Key'] = Key; + obj['Name'] = Name; + } + + /** + * Constructs a MetafieldDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MetafieldDefinition} obj Optional instance to populate. + * @return {module:model/MetafieldDefinition} The populated MetafieldDefinition instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MetafieldDefinition(); + + if (data.hasOwnProperty('IsReadOnly')) { + obj['IsReadOnly'] = ApiClient.convertToType(data['IsReadOnly'], 'Boolean'); + } + if (data.hasOwnProperty('OwnerEntity')) { + obj['OwnerEntity'] = ApiClient.convertToType(data['OwnerEntity'], 'String'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('ValueType')) { + obj['ValueType'] = ApiClient.convertToType(data['ValueType'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Behaviors')) { + obj['Behaviors'] = ApiClient.convertToType(data['Behaviors'], ['String']); + } + if (data.hasOwnProperty('MetafieldDefinitionRecommendationId')) { + obj['MetafieldDefinitionRecommendationId'] = ApiClient.convertToType(data['MetafieldDefinitionRecommendationId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Indicates if a definition can be edited or not + * @member {Boolean} IsReadOnly + */ +MetafieldDefinition.prototype['IsReadOnly'] = undefined; + +/** + * The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + * @member {module:model/MetafieldDefinition.OwnerEntityEnum} OwnerEntity + */ +MetafieldDefinition.prototype['OwnerEntity'] = undefined; + +/** + * 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 + * @member {String} Key + */ +MetafieldDefinition.prototype['Key'] = undefined; + +/** + * The excepted type for the Value field + * @member {module:model/MetafieldDefinition.ValueTypeEnum} ValueType + */ +MetafieldDefinition.prototype['ValueType'] = undefined; + +/** + * Field Name + * @member {String} Name + */ +MetafieldDefinition.prototype['Name'] = undefined; + +/** + * Field Description + * @member {String} Description + */ +MetafieldDefinition.prototype['Description'] = undefined; + +/** + * Enable Metafield Behaviors + * @member {Array.} Behaviors + */ +MetafieldDefinition.prototype['Behaviors'] = undefined; + +/** + * Metafield Recommendation Id + * @member {Number} MetafieldDefinitionRecommendationId + */ +MetafieldDefinition.prototype['MetafieldDefinitionRecommendationId'] = undefined; + + + + + +/** + * Allowed values for the OwnerEntity property. + * @enum {String} + * @readonly + */ +MetafieldDefinition['OwnerEntityEnum'] = { + + /** + * value: "CatalogItem" + * @const + */ + "CatalogItem": "CatalogItem", + + /** + * value: "CatalogGroup" + * @const + */ + "CatalogGroup": "CatalogGroup", + + /** + * value: "Menu" + * @const + */ + "Menu": "Menu" +}; + + +/** + * Allowed values for the ValueType property. + * @enum {String} + * @readonly + */ +MetafieldDefinition['ValueTypeEnum'] = { + + /** + * value: "Boolean" + * @const + */ + "Boolean": "Boolean", + + /** + * value: "Json" + * @const + */ + "Json": "Json", + + /** + * value: "SingleLineString" + * @const + */ + "SingleLineString": "SingleLineString", + + /** + * value: "MultiLineString" + * @const + */ + "MultiLineString": "MultiLineString" +}; + + +/** + * Allowed values for the Behaviors property. + * @enum {String} + * @readonly + */ +MetafieldDefinition['BehaviorsEnum'] = { + + /** + * value: "SendToOrder" + * @const + */ + "SendToOrder": "SendToOrder", + + /** + * value: "SendToMenu" + * @const + */ + "SendToMenu": "SendToMenu" +}; + + + +export default MetafieldDefinition; + diff --git a/src/model/MetafieldDefinitionRecommendation.js b/src/model/MetafieldDefinitionRecommendation.js new file mode 100644 index 00000000..90e93764 --- /dev/null +++ b/src/model/MetafieldDefinitionRecommendation.js @@ -0,0 +1,212 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MetafieldDefinitionRecommendation model module. + * @module model/MetafieldDefinitionRecommendation + * @version 1.0.0 + */ +class MetafieldDefinitionRecommendation { + /** + * Constructs a new MetafieldDefinitionRecommendation. + * OwnerEntity Metafield Definition Recommendation + * @alias module:model/MetafieldDefinitionRecommendation + * @param 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 + * @param Name {String} Field Name + */ + constructor(Key, Name) { + + MetafieldDefinitionRecommendation.initialize(this, Key, Name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Key, Name) { + obj['Key'] = Key; + obj['Name'] = Name; + } + + /** + * Constructs a MetafieldDefinitionRecommendation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MetafieldDefinitionRecommendation} obj Optional instance to populate. + * @return {module:model/MetafieldDefinitionRecommendation} The populated MetafieldDefinitionRecommendation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MetafieldDefinitionRecommendation(); + + if (data.hasOwnProperty('OwnerEntity')) { + obj['OwnerEntity'] = ApiClient.convertToType(data['OwnerEntity'], 'String'); + } + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('ValueType')) { + obj['ValueType'] = ApiClient.convertToType(data['ValueType'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Behaviors')) { + obj['Behaviors'] = ApiClient.convertToType(data['Behaviors'], ['String']); + } + if (data.hasOwnProperty('MetafieldDefinitionRecommendationId')) { + obj['MetafieldDefinitionRecommendationId'] = ApiClient.convertToType(data['MetafieldDefinitionRecommendationId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} + * @member {module:model/MetafieldDefinitionRecommendation.OwnerEntityEnum} OwnerEntity + */ +MetafieldDefinitionRecommendation.prototype['OwnerEntity'] = undefined; + +/** + * 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 + * @member {String} Key + */ +MetafieldDefinitionRecommendation.prototype['Key'] = undefined; + +/** + * The excepted type for the Value field + * @member {module:model/MetafieldDefinitionRecommendation.ValueTypeEnum} ValueType + */ +MetafieldDefinitionRecommendation.prototype['ValueType'] = undefined; + +/** + * Field Name + * @member {String} Name + */ +MetafieldDefinitionRecommendation.prototype['Name'] = undefined; + +/** + * Field Description + * @member {String} Description + */ +MetafieldDefinitionRecommendation.prototype['Description'] = undefined; + +/** + * Enable Metafield Behaviors + * @member {Array.} Behaviors + */ +MetafieldDefinitionRecommendation.prototype['Behaviors'] = undefined; + +/** + * Metafield Recommendation Id + * @member {Number} MetafieldDefinitionRecommendationId + */ +MetafieldDefinitionRecommendation.prototype['MetafieldDefinitionRecommendationId'] = undefined; + + + + + +/** + * Allowed values for the OwnerEntity property. + * @enum {String} + * @readonly + */ +MetafieldDefinitionRecommendation['OwnerEntityEnum'] = { + + /** + * value: "CatalogItem" + * @const + */ + "CatalogItem": "CatalogItem", + + /** + * value: "CatalogGroup" + * @const + */ + "CatalogGroup": "CatalogGroup", + + /** + * value: "Menu" + * @const + */ + "Menu": "Menu" +}; + + +/** + * Allowed values for the ValueType property. + * @enum {String} + * @readonly + */ +MetafieldDefinitionRecommendation['ValueTypeEnum'] = { + + /** + * value: "Boolean" + * @const + */ + "Boolean": "Boolean", + + /** + * value: "Json" + * @const + */ + "Json": "Json", + + /** + * value: "SingleLineString" + * @const + */ + "SingleLineString": "SingleLineString", + + /** + * value: "MultiLineString" + * @const + */ + "MultiLineString": "MultiLineString" +}; + + +/** + * Allowed values for the Behaviors property. + * @enum {String} + * @readonly + */ +MetafieldDefinitionRecommendation['BehaviorsEnum'] = { + + /** + * value: "SendToOrder" + * @const + */ + "SendToOrder": "SendToOrder", + + /** + * value: "SendToMenu" + * @const + */ + "SendToMenu": "SendToMenu" +}; + + + +export default MetafieldDefinitionRecommendation; + diff --git a/src/model/MobileAppsImage.js b/src/model/MobileAppsImage.js new file mode 100644 index 00000000..a3b047e1 --- /dev/null +++ b/src/model/MobileAppsImage.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MobileAppsImage model module. + * @module model/MobileAppsImage + * @version 1.0.0 + */ +class MobileAppsImage { + /** + * Constructs a new MobileAppsImage. + * Mobile Apps Image + * @alias module:model/MobileAppsImage + */ + constructor() { + + MobileAppsImage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MobileAppsImage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MobileAppsImage} obj Optional instance to populate. + * @return {module:model/MobileAppsImage} The populated MobileAppsImage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MobileAppsImage(); + + if (data.hasOwnProperty('ImageUri')) { + obj['ImageUri'] = ApiClient.convertToType(data['ImageUri'], 'String'); + } + } + return obj; + } + + +} + +/** + * Unique catalog Item id + * @member {String} ImageUri + */ +MobileAppsImage.prototype['ImageUri'] = undefined; + + + + + + +export default MobileAppsImage; + diff --git a/src/model/MobileAppsStatistics.js b/src/model/MobileAppsStatistics.js new file mode 100644 index 00000000..b1b22f60 --- /dev/null +++ b/src/model/MobileAppsStatistics.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MobileAppsStatistics model module. + * @module model/MobileAppsStatistics + * @version 1.0.0 + */ +class MobileAppsStatistics { + /** + * Constructs a new MobileAppsStatistics. + * Mobile Apps Statistics + * @alias module:model/MobileAppsStatistics + */ + constructor() { + + MobileAppsStatistics.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MobileAppsStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MobileAppsStatistics} obj Optional instance to populate. + * @return {module:model/MobileAppsStatistics} The populated MobileAppsStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MobileAppsStatistics(); + + if (data.hasOwnProperty('NumberDownload')) { + obj['NumberDownload'] = ApiClient.convertToType(data['NumberDownload'], 'Number'); + } + if (data.hasOwnProperty('CurrentRate')) { + obj['CurrentRate'] = ApiClient.convertToType(data['CurrentRate'], 'Number'); + } + if (data.hasOwnProperty('CurrentVersion')) { + obj['CurrentVersion'] = ApiClient.convertToType(data['CurrentVersion'], 'String'); + } + if (data.hasOwnProperty('PlayStoreLink')) { + obj['PlayStoreLink'] = ApiClient.convertToType(data['PlayStoreLink'], 'String'); + } + if (data.hasOwnProperty('AppBundleId')) { + obj['AppBundleId'] = ApiClient.convertToType(data['AppBundleId'], 'String'); + } + if (data.hasOwnProperty('LastUpdated')) { + obj['LastUpdated'] = ApiClient.convertToType(data['LastUpdated'], 'Date'); + } + if (data.hasOwnProperty('Notes')) { + obj['Notes'] = ApiClient.convertToType(data['Notes'], 'String'); + } + if (data.hasOwnProperty('Published')) { + obj['Published'] = ApiClient.convertToType(data['Published'], 'Boolean'); + } + if (data.hasOwnProperty('PlatformType')) { + obj['PlatformType'] = ApiClient.convertToType(data['PlatformType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Number Download + * @member {Number} NumberDownload + */ +MobileAppsStatistics.prototype['NumberDownload'] = undefined; + +/** + * Current Rate + * @member {Number} CurrentRate + */ +MobileAppsStatistics.prototype['CurrentRate'] = undefined; + +/** + * Current Version + * @member {String} CurrentVersion + */ +MobileAppsStatistics.prototype['CurrentVersion'] = undefined; + +/** + * Play Store Link + * @member {String} PlayStoreLink + */ +MobileAppsStatistics.prototype['PlayStoreLink'] = undefined; + +/** + * App Bundle Id + * @member {String} AppBundleId + */ +MobileAppsStatistics.prototype['AppBundleId'] = undefined; + +/** + * Last Updated + * @member {Date} LastUpdated + */ +MobileAppsStatistics.prototype['LastUpdated'] = undefined; + +/** + * Last Updated + * @member {String} Notes + */ +MobileAppsStatistics.prototype['Notes'] = undefined; + +/** + * Published + * @member {Boolean} Published + */ +MobileAppsStatistics.prototype['Published'] = undefined; + +/** + * Platform Type + * @member {module:model/MobileAppsStatistics.PlatformTypeEnum} PlatformType + */ +MobileAppsStatistics.prototype['PlatformType'] = undefined; + + + + + +/** + * Allowed values for the PlatformType property. + * @enum {String} + * @readonly + */ +MobileAppsStatistics['PlatformTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "IOS" + * @const + */ + "IOS": "IOS" +}; + + + +export default MobileAppsStatistics; + diff --git a/src/model/MobileAppsSubmission.js b/src/model/MobileAppsSubmission.js new file mode 100644 index 00000000..9c30453e --- /dev/null +++ b/src/model/MobileAppsSubmission.js @@ -0,0 +1,124 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MobileAppsSubmission model module. + * @module model/MobileAppsSubmission + * @version 1.0.0 + */ +class MobileAppsSubmission { + /** + * Constructs a new MobileAppsSubmission. + * Mobile Apps form submission + * @alias module:model/MobileAppsSubmission + * @param AppName {String} App Name + * @param AppDescription {String} App Description + * @param AppShortDescription {String} App Description + */ + constructor(AppName, AppDescription, AppShortDescription) { + + MobileAppsSubmission.initialize(this, AppName, AppDescription, AppShortDescription); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, AppName, AppDescription, AppShortDescription) { + obj['AppName'] = AppName; + obj['AppDescription'] = AppDescription; + obj['AppShortDescription'] = AppShortDescription; + } + + /** + * Constructs a MobileAppsSubmission from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MobileAppsSubmission} obj Optional instance to populate. + * @return {module:model/MobileAppsSubmission} The populated MobileAppsSubmission instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MobileAppsSubmission(); + + if (data.hasOwnProperty('SubmissionId')) { + obj['SubmissionId'] = ApiClient.convertToType(data['SubmissionId'], 'Number'); + } + if (data.hasOwnProperty('AppName')) { + obj['AppName'] = ApiClient.convertToType(data['AppName'], 'String'); + } + if (data.hasOwnProperty('AppDescription')) { + obj['AppDescription'] = ApiClient.convertToType(data['AppDescription'], 'String'); + } + if (data.hasOwnProperty('AppShortDescription')) { + obj['AppShortDescription'] = ApiClient.convertToType(data['AppShortDescription'], 'String'); + } + if (data.hasOwnProperty('Keywords')) { + obj['Keywords'] = ApiClient.convertToType(data['Keywords'], ['String']); + } + if (data.hasOwnProperty('AutoPublish')) { + obj['AutoPublish'] = ApiClient.convertToType(data['AutoPublish'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Mobile Apps Submission Id + * @member {Number} SubmissionId + */ +MobileAppsSubmission.prototype['SubmissionId'] = undefined; + +/** + * App Name + * @member {String} AppName + */ +MobileAppsSubmission.prototype['AppName'] = undefined; + +/** + * App Description + * @member {String} AppDescription + */ +MobileAppsSubmission.prototype['AppDescription'] = undefined; + +/** + * App Description + * @member {String} AppShortDescription + */ +MobileAppsSubmission.prototype['AppShortDescription'] = undefined; + +/** + * Keywords + * @member {Array.} Keywords + */ +MobileAppsSubmission.prototype['Keywords'] = undefined; + +/** + * Publish automatically + * @member {Boolean} AutoPublish + */ +MobileAppsSubmission.prototype['AutoPublish'] = undefined; + + + + + + +export default MobileAppsSubmission; + diff --git a/src/model/MobileAppsSubmissionDetails.js b/src/model/MobileAppsSubmissionDetails.js new file mode 100644 index 00000000..a834235a --- /dev/null +++ b/src/model/MobileAppsSubmissionDetails.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MobileAppsSubmissionStatus from './MobileAppsSubmissionStatus'; + +/** + * The MobileAppsSubmissionDetails model module. + * @module model/MobileAppsSubmissionDetails + * @version 1.0.0 + */ +class MobileAppsSubmissionDetails { + /** + * Constructs a new MobileAppsSubmissionDetails. + * Mobile Apps form submission + * @alias module:model/MobileAppsSubmissionDetails + */ + constructor() { + + MobileAppsSubmissionDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MobileAppsSubmissionDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MobileAppsSubmissionDetails} obj Optional instance to populate. + * @return {module:model/MobileAppsSubmissionDetails} The populated MobileAppsSubmissionDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MobileAppsSubmissionDetails(); + + if (data.hasOwnProperty('MobileAppsSubmissionId')) { + obj['MobileAppsSubmissionId'] = ApiClient.convertToType(data['MobileAppsSubmissionId'], 'Number'); + } + if (data.hasOwnProperty('AppName')) { + obj['AppName'] = ApiClient.convertToType(data['AppName'], 'String'); + } + if (data.hasOwnProperty('AppDescription')) { + obj['AppDescription'] = ApiClient.convertToType(data['AppDescription'], 'String'); + } + if (data.hasOwnProperty('AppShortDescription')) { + obj['AppShortDescription'] = ApiClient.convertToType(data['AppShortDescription'], 'String'); + } + if (data.hasOwnProperty('Keywords')) { + obj['Keywords'] = ApiClient.convertToType(data['Keywords'], ['String']); + } + if (data.hasOwnProperty('AppLogoUrl')) { + obj['AppLogoUrl'] = ApiClient.convertToType(data['AppLogoUrl'], 'String'); + } + if (data.hasOwnProperty('AutoPublish')) { + obj['AutoPublish'] = ApiClient.convertToType(data['AutoPublish'], 'Boolean'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], [MobileAppsSubmissionStatus]); + } + } + return obj; + } + + +} + +/** + * Mobile Apps Submission Id + * @member {Number} MobileAppsSubmissionId + */ +MobileAppsSubmissionDetails.prototype['MobileAppsSubmissionId'] = undefined; + +/** + * App Name + * @member {String} AppName + */ +MobileAppsSubmissionDetails.prototype['AppName'] = undefined; + +/** + * App Description + * @member {String} AppDescription + */ +MobileAppsSubmissionDetails.prototype['AppDescription'] = undefined; + +/** + * App Description + * @member {String} AppShortDescription + */ +MobileAppsSubmissionDetails.prototype['AppShortDescription'] = undefined; + +/** + * Keywords + * @member {Array.} Keywords + */ +MobileAppsSubmissionDetails.prototype['Keywords'] = undefined; + +/** + * Logo URL + * @member {String} AppLogoUrl + */ +MobileAppsSubmissionDetails.prototype['AppLogoUrl'] = undefined; + +/** + * Publish automatically + * @member {Boolean} AutoPublish + */ +MobileAppsSubmissionDetails.prototype['AutoPublish'] = undefined; + +/** + * Mobile App Status + * @member {Array.} Status + */ +MobileAppsSubmissionDetails.prototype['Status'] = undefined; + + + + + + +export default MobileAppsSubmissionDetails; + diff --git a/src/model/MobileAppsSubmissionStatus.js b/src/model/MobileAppsSubmissionStatus.js new file mode 100644 index 00000000..0dff78ad --- /dev/null +++ b/src/model/MobileAppsSubmissionStatus.js @@ -0,0 +1,244 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MobileAppsSubmissionStatus model module. + * @module model/MobileAppsSubmissionStatus + * @version 1.0.0 + */ +class MobileAppsSubmissionStatus { + /** + * Constructs a new MobileAppsSubmissionStatus. + * Mobile Apps Status + * @alias module:model/MobileAppsSubmissionStatus + */ + constructor() { + + MobileAppsSubmissionStatus.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MobileAppsSubmissionStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MobileAppsSubmissionStatus} obj Optional instance to populate. + * @return {module:model/MobileAppsSubmissionStatus} The populated MobileAppsSubmissionStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MobileAppsSubmissionStatus(); + + if (data.hasOwnProperty('MobileAppsSubmissionStatusId')) { + obj['MobileAppsSubmissionStatusId'] = ApiClient.convertToType(data['MobileAppsSubmissionStatusId'], 'Number'); + } + if (data.hasOwnProperty('MobileAppsSubmissionId')) { + obj['MobileAppsSubmissionId'] = ApiClient.convertToType(data['MobileAppsSubmissionId'], 'Number'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('AppStatus')) { + obj['AppStatus'] = ApiClient.convertToType(data['AppStatus'], 'String'); + } + if (data.hasOwnProperty('UpdateStatus')) { + obj['UpdateStatus'] = ApiClient.convertToType(data['UpdateStatus'], 'String'); + } + if (data.hasOwnProperty('LastUpdateStatusTime')) { + obj['LastUpdateStatusTime'] = ApiClient.convertToType(data['LastUpdateStatusTime'], 'Date'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('UpdateTime')) { + obj['UpdateTime'] = ApiClient.convertToType(data['UpdateTime'], 'Date'); + } + if (data.hasOwnProperty('Notes')) { + obj['Notes'] = ApiClient.convertToType(data['Notes'], 'String'); + } + } + return obj; + } + + +} + +/** + * Mobile Apps Submission Status Id + * @member {Number} MobileAppsSubmissionStatusId + */ +MobileAppsSubmissionStatus.prototype['MobileAppsSubmissionStatusId'] = undefined; + +/** + * Mobile Apps Submission Id + * @member {Number} MobileAppsSubmissionId + */ +MobileAppsSubmissionStatus.prototype['MobileAppsSubmissionId'] = undefined; + +/** + * Mobile Type + * @member {module:model/MobileAppsSubmissionStatus.TypeEnum} Type + */ +MobileAppsSubmissionStatus.prototype['Type'] = undefined; + +/** + * Mobile App Status + * @member {module:model/MobileAppsSubmissionStatus.AppStatusEnum} AppStatus + */ +MobileAppsSubmissionStatus.prototype['AppStatus'] = undefined; + +/** + * Mobile App Status + * @member {module:model/MobileAppsSubmissionStatus.UpdateStatusEnum} UpdateStatus + */ +MobileAppsSubmissionStatus.prototype['UpdateStatus'] = undefined; + +/** + * Mobile LastUpdateStatusTime + * @member {Date} LastUpdateStatusTime + */ +MobileAppsSubmissionStatus.prototype['LastUpdateStatusTime'] = undefined; + +/** + * Mobile CreateTime + * @member {Date} CreateTime + */ +MobileAppsSubmissionStatus.prototype['CreateTime'] = undefined; + +/** + * Mobile UpdateTime + * @member {Date} UpdateTime + */ +MobileAppsSubmissionStatus.prototype['UpdateTime'] = undefined; + +/** + * Mobile Notes + * @member {String} Notes + */ +MobileAppsSubmissionStatus.prototype['Notes'] = undefined; + + + + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +MobileAppsSubmissionStatus['TypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "IOS" + * @const + */ + "IOS": "IOS" +}; + + +/** + * Allowed values for the AppStatus property. + * @enum {String} + * @readonly + */ +MobileAppsSubmissionStatus['AppStatusEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Published" + * @const + */ + "Published": "Published", + + /** + * value: "Unpublished" + * @const + */ + "Unpublished": "Unpublished" +}; + + +/** + * Allowed values for the UpdateStatus property. + * @enum {String} + * @readonly + */ +MobileAppsSubmissionStatus['UpdateStatusEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Submitted" + * @const + */ + "Submitted": "Submitted", + + /** + * value: "InReview" + * @const + */ + "InReview": "InReview", + + /** + * value: "Rejected" + * @const + */ + "Rejected": "Rejected", + + /** + * value: "Approved" + * @const + */ + "Approved": "Approved", + + /** + * value: "Published" + * @const + */ + "Published": "Published" +}; + + + +export default MobileAppsSubmissionStatus; + diff --git a/src/model/MobileAppsSubmissionStatusUpdatedEvent.js b/src/model/MobileAppsSubmissionStatusUpdatedEvent.js new file mode 100644 index 00000000..1f8a18f4 --- /dev/null +++ b/src/model/MobileAppsSubmissionStatusUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MobileAppsSubmissionStatus from './MobileAppsSubmissionStatus'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MobileAppsSubmissionStatusUpdatedEvent model module. + * @module model/MobileAppsSubmissionStatusUpdatedEvent + * @version 1.0.0 + */ +class MobileAppsSubmissionStatusUpdatedEvent { + /** + * Constructs a new MobileAppsSubmissionStatusUpdatedEvent. + * Mobile Apps event + * @alias module:model/MobileAppsSubmissionStatusUpdatedEvent + */ + constructor() { + + MobileAppsSubmissionStatusUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MobileAppsSubmissionStatusUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MobileAppsSubmissionStatusUpdatedEvent} obj Optional instance to populate. + * @return {module:model/MobileAppsSubmissionStatusUpdatedEvent} The populated MobileAppsSubmissionStatusUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MobileAppsSubmissionStatusUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MobileAppsSubmissionStatus')) { + obj['MobileAppsSubmissionStatus'] = MobileAppsSubmissionStatus.constructFromObject(data['MobileAppsSubmissionStatus']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/MobileAppsSubmissionStatus} MobileAppsSubmissionStatus + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['MobileAppsSubmissionStatus'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MobileAppsSubmissionStatusUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MobileAppsSubmissionStatusUpdatedEvent; + diff --git a/src/model/MobileAppsSubmissionUpdatedEvent.js b/src/model/MobileAppsSubmissionUpdatedEvent.js new file mode 100644 index 00000000..e636a29c --- /dev/null +++ b/src/model/MobileAppsSubmissionUpdatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The MobileAppsSubmissionUpdatedEvent model module. + * @module model/MobileAppsSubmissionUpdatedEvent + * @version 1.0.0 + */ +class MobileAppsSubmissionUpdatedEvent { + /** + * Constructs a new MobileAppsSubmissionUpdatedEvent. + * Mobile Apps event + * @alias module:model/MobileAppsSubmissionUpdatedEvent + */ + constructor() { + + MobileAppsSubmissionUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MobileAppsSubmissionUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MobileAppsSubmissionUpdatedEvent} obj Optional instance to populate. + * @return {module:model/MobileAppsSubmissionUpdatedEvent} The populated MobileAppsSubmissionUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MobileAppsSubmissionUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +MobileAppsSubmissionUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +MobileAppsSubmissionUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +MobileAppsSubmissionUpdatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +MobileAppsSubmissionUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +MobileAppsSubmissionUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +MobileAppsSubmissionUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +MobileAppsSubmissionUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +MobileAppsSubmissionUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +MobileAppsSubmissionUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default MobileAppsSubmissionUpdatedEvent; + diff --git a/src/model/NextStatusWithOrderType.js b/src/model/NextStatusWithOrderType.js new file mode 100644 index 00000000..e52256be --- /dev/null +++ b/src/model/NextStatusWithOrderType.js @@ -0,0 +1,115 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NextStatusWithOrderType model module. + * @module model/NextStatusWithOrderType + * @version 1.0.0 + */ +class NextStatusWithOrderType { + /** + * Constructs a new NextStatusWithOrderType. + * Next status by order type + * @alias module:model/NextStatusWithOrderType + */ + constructor() { + + NextStatusWithOrderType.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NextStatusWithOrderType from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NextStatusWithOrderType} obj Optional instance to populate. + * @return {module:model/NextStatusWithOrderType} The populated NextStatusWithOrderType instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NextStatusWithOrderType(); + + if (data.hasOwnProperty('OrderType')) { + obj['OrderType'] = ApiClient.convertToType(data['OrderType'], 'String'); + } + if (data.hasOwnProperty('NextStatus')) { + obj['NextStatus'] = ApiClient.convertToType(data['NextStatus'], 'String'); + } + } + return obj; + } + + +} + +/** + * Order type + * @member {module:model/NextStatusWithOrderType.OrderTypeEnum} OrderType + */ +NextStatusWithOrderType.prototype['OrderType'] = undefined; + +/** + * Next status id + * @member {String} NextStatus + */ +NextStatusWithOrderType.prototype['NextStatus'] = undefined; + + + + + +/** + * Allowed values for the OrderType property. + * @enum {String} + * @readonly + */ +NextStatusWithOrderType['OrderTypeEnum'] = { + + /** + * value: "All" + * @const + */ + "All": "All", + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Collection" + * @const + */ + "Collection": "Collection", + + /** + * value: "DineIn" + * @const + */ + "DineIn": "DineIn" +}; + + + +export default NextStatusWithOrderType; + diff --git a/src/model/NutritionInfo.js b/src/model/NutritionInfo.js new file mode 100644 index 00000000..7338b61f --- /dev/null +++ b/src/model/NutritionInfo.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfoMenuItem from './NutritionInfoMenuItem'; +import NutritionInfoMenuOptionSetItem from './NutritionInfoMenuOptionSetItem'; + +/** + * The NutritionInfo model module. + * @module model/NutritionInfo + * @version 1.0.0 + */ +class NutritionInfo { + /** + * Constructs a new NutritionInfo. + * Menu Nutrition Information + * @alias module:model/NutritionInfo + */ + constructor() { + + NutritionInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfo} obj Optional instance to populate. + * @return {module:model/NutritionInfo} The populated NutritionInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfo(); + + if (data.hasOwnProperty('Version')) { + obj['Version'] = ApiClient.convertToType(data['Version'], 'String'); + } + if (data.hasOwnProperty('MenuItems')) { + obj['MenuItems'] = ApiClient.convertToType(data['MenuItems'], [NutritionInfoMenuItem]); + } + if (data.hasOwnProperty('MenuItemOptionSetItems')) { + obj['MenuItemOptionSetItems'] = ApiClient.convertToType(data['MenuItemOptionSetItems'], [NutritionInfoMenuOptionSetItem]); + } + } + return obj; + } + + +} + +/** + * Version of the nutrition information model + * @member {String} Version + */ +NutritionInfo.prototype['Version'] = undefined; + +/** + * List of menu item nutrition infos + * @member {Array.} MenuItems + */ +NutritionInfo.prototype['MenuItems'] = undefined; + +/** + * List of menu item option set nutrition infos + * @member {Array.} MenuItemOptionSetItems + */ +NutritionInfo.prototype['MenuItemOptionSetItems'] = undefined; + + + + + + +export default NutritionInfo; + diff --git a/src/model/NutritionInfoItemAddUpdateLabelModel.js b/src/model/NutritionInfoItemAddUpdateLabelModel.js new file mode 100644 index 00000000..a1d60a89 --- /dev/null +++ b/src/model/NutritionInfoItemAddUpdateLabelModel.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NutritionInfoItemAddUpdateLabelModel model module. + * @module model/NutritionInfoItemAddUpdateLabelModel + * @version 1.0.0 + */ +class NutritionInfoItemAddUpdateLabelModel { + /** + * Constructs a new NutritionInfoItemAddUpdateLabelModel. + * @alias module:model/NutritionInfoItemAddUpdateLabelModel + */ + constructor() { + + NutritionInfoItemAddUpdateLabelModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfoItemAddUpdateLabelModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfoItemAddUpdateLabelModel} obj Optional instance to populate. + * @return {module:model/NutritionInfoItemAddUpdateLabelModel} The populated NutritionInfoItemAddUpdateLabelModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfoItemAddUpdateLabelModel(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Values')) { + obj['Values'] = ApiClient.convertToType(data['Values'], ['String']); + } + if (data.hasOwnProperty('IconUrl')) { + obj['IconUrl'] = ApiClient.convertToType(data['IconUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +NutritionInfoItemAddUpdateLabelModel.prototype['Name'] = undefined; + +/** + * @member {Array.} Values + */ +NutritionInfoItemAddUpdateLabelModel.prototype['Values'] = undefined; + +/** + * @member {String} IconUrl + */ +NutritionInfoItemAddUpdateLabelModel.prototype['IconUrl'] = undefined; + + + + + + +export default NutritionInfoItemAddUpdateLabelModel; + diff --git a/src/model/NutritionInfoLabel.js b/src/model/NutritionInfoLabel.js new file mode 100644 index 00000000..a5a0c7c3 --- /dev/null +++ b/src/model/NutritionInfoLabel.js @@ -0,0 +1,90 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NutritionInfoLabel model module. + * @module model/NutritionInfoLabel + * @version 1.0.0 + */ +class NutritionInfoLabel { + /** + * Constructs a new NutritionInfoLabel. + * @alias module:model/NutritionInfoLabel + */ + constructor() { + + NutritionInfoLabel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfoLabel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfoLabel} obj Optional instance to populate. + * @return {module:model/NutritionInfoLabel} The populated NutritionInfoLabel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfoLabel(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Values')) { + obj['Values'] = ApiClient.convertToType(data['Values'], ['String']); + } + if (data.hasOwnProperty('IconUrl')) { + obj['IconUrl'] = ApiClient.convertToType(data['IconUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Name of the allergen / ingredient + * @member {String} Name + */ +NutritionInfoLabel.prototype['Name'] = undefined; + +/** + * Optional list of values for the allergen / ingredient + * @member {Array.} Values + */ +NutritionInfoLabel.prototype['Values'] = undefined; + +/** + * Url to the icon for the allergen / ingredient + * @member {String} IconUrl + */ +NutritionInfoLabel.prototype['IconUrl'] = undefined; + + + + + + +export default NutritionInfoLabel; + diff --git a/src/model/NutritionInfoMenuItem.js b/src/model/NutritionInfoMenuItem.js new file mode 100644 index 00000000..cd7de074 --- /dev/null +++ b/src/model/NutritionInfoMenuItem.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfoLabel from './NutritionInfoLabel'; + +/** + * The NutritionInfoMenuItem model module. + * @module model/NutritionInfoMenuItem + * @version 1.0.0 + */ +class NutritionInfoMenuItem { + /** + * Constructs a new NutritionInfoMenuItem. + * @alias module:model/NutritionInfoMenuItem + */ + constructor() { + + NutritionInfoMenuItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfoMenuItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfoMenuItem} obj Optional instance to populate. + * @return {module:model/NutritionInfoMenuItem} The populated NutritionInfoMenuItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfoMenuItem(); + + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('Labels')) { + obj['Labels'] = ApiClient.convertToType(data['Labels'], [NutritionInfoLabel]); + } + } + return obj; + } + + +} + +/** + * Menu item public id + * @member {String} PublicId + */ +NutritionInfoMenuItem.prototype['PublicId'] = undefined; + +/** + * List of Nutrition Info Labels for this menu item + * @member {Array.} Labels + */ +NutritionInfoMenuItem.prototype['Labels'] = undefined; + + + + + + +export default NutritionInfoMenuItem; + diff --git a/src/model/NutritionInfoMenuOptionSetItem.js b/src/model/NutritionInfoMenuOptionSetItem.js new file mode 100644 index 00000000..e371a824 --- /dev/null +++ b/src/model/NutritionInfoMenuOptionSetItem.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfoLabel from './NutritionInfoLabel'; + +/** + * The NutritionInfoMenuOptionSetItem model module. + * @module model/NutritionInfoMenuOptionSetItem + * @version 1.0.0 + */ +class NutritionInfoMenuOptionSetItem { + /** + * Constructs a new NutritionInfoMenuOptionSetItem. + * @alias module:model/NutritionInfoMenuOptionSetItem + */ + constructor() { + + NutritionInfoMenuOptionSetItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfoMenuOptionSetItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfoMenuOptionSetItem} obj Optional instance to populate. + * @return {module:model/NutritionInfoMenuOptionSetItem} The populated NutritionInfoMenuOptionSetItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfoMenuOptionSetItem(); + + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('Labels')) { + obj['Labels'] = ApiClient.convertToType(data['Labels'], [NutritionInfoLabel]); + } + } + return obj; + } + + +} + +/** + * Menu item option set item public id + * @member {String} PublicId + */ +NutritionInfoMenuOptionSetItem.prototype['PublicId'] = undefined; + +/** + * List of Nutrition Info Labels for this menu item option set item + * @member {Array.} Labels + */ +NutritionInfoMenuOptionSetItem.prototype['Labels'] = undefined; + + + + + + +export default NutritionInfoMenuOptionSetItem; + diff --git a/src/model/NutritionInfoV2.js b/src/model/NutritionInfoV2.js new file mode 100644 index 00000000..436c0643 --- /dev/null +++ b/src/model/NutritionInfoV2.js @@ -0,0 +1,92 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfoV2Item from './NutritionInfoV2Item'; + +/** + * The NutritionInfoV2 model module. + * @module model/NutritionInfoV2 + * @version 1.0.0 + */ +class NutritionInfoV2 { + /** + * Constructs a new NutritionInfoV2. + * Menu Nutrition Information. Version 2 (localized). + * @alias module:model/NutritionInfoV2 + */ + constructor() { + + NutritionInfoV2.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfoV2 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfoV2} obj Optional instance to populate. + * @return {module:model/NutritionInfoV2} The populated NutritionInfoV2 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfoV2(); + + if (data.hasOwnProperty('MenuItems')) { + obj['MenuItems'] = ApiClient.convertToType(data['MenuItems'], [NutritionInfoV2Item]); + } + if (data.hasOwnProperty('MenuItemOptionSetItems')) { + obj['MenuItemOptionSetItems'] = ApiClient.convertToType(data['MenuItemOptionSetItems'], [NutritionInfoV2Item]); + } + if (data.hasOwnProperty('ImageBaseUrl')) { + obj['ImageBaseUrl'] = ApiClient.convertToType(data['ImageBaseUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * List of menu item nutrition infos + * @member {Array.} MenuItems + */ +NutritionInfoV2.prototype['MenuItems'] = undefined; + +/** + * List of menu item option set nutrition infos + * @member {Array.} MenuItemOptionSetItems + */ +NutritionInfoV2.prototype['MenuItemOptionSetItems'] = undefined; + +/** + * Base url for allergen images + * @member {String} ImageBaseUrl + */ +NutritionInfoV2.prototype['ImageBaseUrl'] = undefined; + + + + + + +export default NutritionInfoV2; + diff --git a/src/model/NutritionInfoV2Allergen.js b/src/model/NutritionInfoV2Allergen.js new file mode 100644 index 00000000..4301b9d8 --- /dev/null +++ b/src/model/NutritionInfoV2Allergen.js @@ -0,0 +1,90 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NutritionInfoV2Allergen model module. + * @module model/NutritionInfoV2Allergen + * @version 1.0.0 + */ +class NutritionInfoV2Allergen { + /** + * Constructs a new NutritionInfoV2Allergen. + * @alias module:model/NutritionInfoV2Allergen + */ + constructor() { + + NutritionInfoV2Allergen.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfoV2Allergen from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfoV2Allergen} obj Optional instance to populate. + * @return {module:model/NutritionInfoV2Allergen} The populated NutritionInfoV2Allergen instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfoV2Allergen(); + + if (data.hasOwnProperty('AllergenId')) { + obj['AllergenId'] = ApiClient.convertToType(data['AllergenId'], 'String'); + } + if (data.hasOwnProperty('LocalizedName')) { + obj['LocalizedName'] = ApiClient.convertToType(data['LocalizedName'], 'String'); + } + if (data.hasOwnProperty('ImageName')) { + obj['ImageName'] = ApiClient.convertToType(data['ImageName'], 'String'); + } + } + return obj; + } + + +} + +/** + * AllergenId (unique string identifier) + * @member {String} AllergenId + */ +NutritionInfoV2Allergen.prototype['AllergenId'] = undefined; + +/** + * Localized allergen name + * @member {String} LocalizedName + */ +NutritionInfoV2Allergen.prototype['LocalizedName'] = undefined; + +/** + * Name of the image file. Append it to ImageBaseUrl to get the full URL + * @member {String} ImageName + */ +NutritionInfoV2Allergen.prototype['ImageName'] = undefined; + + + + + + +export default NutritionInfoV2Allergen; + diff --git a/src/model/NutritionInfoV2Item.js b/src/model/NutritionInfoV2Item.js new file mode 100644 index 00000000..b5e2ce87 --- /dev/null +++ b/src/model/NutritionInfoV2Item.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfoV2Allergen from './NutritionInfoV2Allergen'; + +/** + * The NutritionInfoV2Item model module. + * @module model/NutritionInfoV2Item + * @version 1.0.0 + */ +class NutritionInfoV2Item { + /** + * Constructs a new NutritionInfoV2Item. + * @alias module:model/NutritionInfoV2Item + */ + constructor() { + + NutritionInfoV2Item.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NutritionInfoV2Item from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NutritionInfoV2Item} obj Optional instance to populate. + * @return {module:model/NutritionInfoV2Item} The populated NutritionInfoV2Item instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NutritionInfoV2Item(); + + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('Allergens')) { + obj['Allergens'] = ApiClient.convertToType(data['Allergens'], [NutritionInfoV2Allergen]); + } + } + return obj; + } + + +} + +/** + * Menu item or menu item option set item public id + * @member {String} PublicId + */ +NutritionInfoV2Item.prototype['PublicId'] = undefined; + +/** + * List of allergens for this item + * @member {Array.} Allergens + */ +NutritionInfoV2Item.prototype['Allergens'] = undefined; + + + + + + +export default NutritionInfoV2Item; + diff --git a/src/model/OAuthApp.js b/src/model/OAuthApp.js new file mode 100644 index 00000000..a6d351dd --- /dev/null +++ b/src/model/OAuthApp.js @@ -0,0 +1,190 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OAuthApp model module. + * @module model/OAuthApp + * @version 1.0.0 + */ +class OAuthApp { + /** + * Constructs a new OAuthApp. + * Oauth client (also knowns as 'app') + * @alias module:model/OAuthApp + */ + constructor() { + + OAuthApp.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OAuthApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OAuthApp} obj Optional instance to populate. + * @return {module:model/OAuthApp} The populated OAuthApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OAuthApp(); + + if (data.hasOwnProperty('OauthAppId')) { + obj['OauthAppId'] = ApiClient.convertToType(data['OauthAppId'], 'String'); + } + if (data.hasOwnProperty('OauthAppName')) { + obj['OauthAppName'] = ApiClient.convertToType(data['OauthAppName'], 'String'); + } + if (data.hasOwnProperty('OwnerUserId')) { + obj['OwnerUserId'] = ApiClient.convertToType(data['OwnerUserId'], 'Number'); + } + if (data.hasOwnProperty('LogoUri')) { + obj['LogoUri'] = ApiClient.convertToType(data['LogoUri'], 'String'); + } + if (data.hasOwnProperty('Flow')) { + obj['Flow'] = ApiClient.convertToType(data['Flow'], 'String'); + } + if (data.hasOwnProperty('RefreshTokenUsage')) { + obj['RefreshTokenUsage'] = ApiClient.convertToType(data['RefreshTokenUsage'], 'String'); + } + if (data.hasOwnProperty('AccessTokenLifetime')) { + obj['AccessTokenLifetime'] = ApiClient.convertToType(data['AccessTokenLifetime'], 'Number'); + } + if (data.hasOwnProperty('AbsoluteRefreshTokenLifetime')) { + obj['AbsoluteRefreshTokenLifetime'] = ApiClient.convertToType(data['AbsoluteRefreshTokenLifetime'], 'Number'); + } + } + return obj; + } + + +} + +/** + * OAuth App Identifier + * @member {String} OauthAppId + */ +OAuthApp.prototype['OauthAppId'] = undefined; + +/** + * OAuth App Name + * @member {String} OauthAppName + */ +OAuthApp.prototype['OauthAppName'] = undefined; + +/** + * OAuth App owner user identifier + * @member {Number} OwnerUserId + */ +OAuthApp.prototype['OwnerUserId'] = undefined; + +/** + * OAuth App logo uri + * @member {String} LogoUri + */ +OAuthApp.prototype['LogoUri'] = undefined; + +/** + * Supported OpenID Connect flows + * @member {module:model/OAuthApp.FlowEnum} Flow + */ +OAuthApp.prototype['Flow'] = undefined; + +/** + * ReUse: the refresh token handle will stay the same when refreshing tokens OneTime: the refresh token handle will be updated when refreshing tokens + * @member {module:model/OAuthApp.RefreshTokenUsageEnum} RefreshTokenUsage + */ +OAuthApp.prototype['RefreshTokenUsage'] = undefined; + +/** + * Timem it takes for the IdentityToken to expire in seconds + * @member {Number} AccessTokenLifetime + */ +OAuthApp.prototype['AccessTokenLifetime'] = undefined; + +/** + * Maximum lifetime of a refresh token in seconds + * @member {Number} AbsoluteRefreshTokenLifetime + */ +OAuthApp.prototype['AbsoluteRefreshTokenLifetime'] = undefined; + + + + + +/** + * Allowed values for the Flow property. + * @enum {String} + * @readonly + */ +OAuthApp['FlowEnum'] = { + + /** + * value: "AuthorizationCode" + * @const + */ + "AuthorizationCode": "AuthorizationCode", + + /** + * value: "Implicit" + * @const + */ + "Implicit": "Implicit", + + /** + * value: "Hybrid" + * @const + */ + "Hybrid": "Hybrid", + + /** + * value: "ClientCredentials" + * @const + */ + "ClientCredentials": "ClientCredentials" +}; + + +/** + * Allowed values for the RefreshTokenUsage property. + * @enum {String} + * @readonly + */ +OAuthApp['RefreshTokenUsageEnum'] = { + + /** + * value: "ReUse" + * @const + */ + "ReUse": "ReUse", + + /** + * value: "OneTimeOnly" + * @const + */ + "OneTimeOnly": "OneTimeOnly" +}; + + + +export default OAuthApp; + diff --git a/src/model/OAuthTokenModel.js b/src/model/OAuthTokenModel.js new file mode 100644 index 00000000..590bab29 --- /dev/null +++ b/src/model/OAuthTokenModel.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OAuthTokenModel model module. + * @module model/OAuthTokenModel + * @version 1.0.0 + */ +class OAuthTokenModel { + /** + * Constructs a new OAuthTokenModel. + * OAuth token model + * @alias module:model/OAuthTokenModel + */ + constructor() { + + OAuthTokenModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OAuthTokenModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OAuthTokenModel} obj Optional instance to populate. + * @return {module:model/OAuthTokenModel} The populated OAuthTokenModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OAuthTokenModel(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('TokenType')) { + obj['TokenType'] = ApiClient.convertToType(data['TokenType'], 'String'); + } + if (data.hasOwnProperty('SubjectId')) { + obj['SubjectId'] = ApiClient.convertToType(data['SubjectId'], 'String'); + } + if (data.hasOwnProperty('ClientId')) { + obj['ClientId'] = ApiClient.convertToType(data['ClientId'], 'String'); + } + if (data.hasOwnProperty('Expiry')) { + obj['Expiry'] = ApiClient.convertToType(data['Expiry'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Identitifier key + * @member {String} Key + */ +OAuthTokenModel.prototype['Key'] = undefined; + +/** + * Token type + * @member {String} TokenType + */ +OAuthTokenModel.prototype['TokenType'] = undefined; + +/** + * Oauth subject identifier + * @member {String} SubjectId + */ +OAuthTokenModel.prototype['SubjectId'] = undefined; + +/** + * Oauth client identifier + * @member {String} ClientId + */ +OAuthTokenModel.prototype['ClientId'] = undefined; + +/** + * Token expiry + * @member {Date} Expiry + */ +OAuthTokenModel.prototype['Expiry'] = undefined; + + + + + + +export default OAuthTokenModel; + diff --git a/src/model/OauthClientRedirectUri.js b/src/model/OauthClientRedirectUri.js new file mode 100644 index 00000000..0d103243 --- /dev/null +++ b/src/model/OauthClientRedirectUri.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OauthClientRedirectUri model module. + * @module model/OauthClientRedirectUri + * @version 1.0.0 + */ +class OauthClientRedirectUri { + /** + * Constructs a new OauthClientRedirectUri. + * OAuth client redirect uri + * @alias module:model/OauthClientRedirectUri + */ + constructor() { + + OauthClientRedirectUri.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OauthClientRedirectUri from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OauthClientRedirectUri} obj Optional instance to populate. + * @return {module:model/OauthClientRedirectUri} The populated OauthClientRedirectUri instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OauthClientRedirectUri(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('Uri')) { + obj['Uri'] = ApiClient.convertToType(data['Uri'], 'String'); + } + } + return obj; + } + + +} + +/** + * Redirect uri identifier + * @member {Number} Id + */ +OauthClientRedirectUri.prototype['Id'] = undefined; + +/** + * Redirect uri + * @member {String} Uri + */ +OauthClientRedirectUri.prototype['Uri'] = undefined; + + + + + + +export default OauthClientRedirectUri; + diff --git a/src/model/ObjectDisplayOrder.js b/src/model/ObjectDisplayOrder.js new file mode 100644 index 00000000..844235e0 --- /dev/null +++ b/src/model/ObjectDisplayOrder.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ObjectDisplayOrder model module. + * @module model/ObjectDisplayOrder + * @version 1.0.0 + */ +class ObjectDisplayOrder { + /** + * Constructs a new ObjectDisplayOrder. + * + * @alias module:model/ObjectDisplayOrder + */ + constructor() { + + ObjectDisplayOrder.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ObjectDisplayOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ObjectDisplayOrder} obj Optional instance to populate. + * @return {module:model/ObjectDisplayOrder} The populated ObjectDisplayOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectDisplayOrder(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('DisplayOrder')) { + obj['DisplayOrder'] = ApiClient.convertToType(data['DisplayOrder'], 'Number'); + } + } + return obj; + } + + +} + +/** + * ID of object to be ordered + * @member {Number} Id + */ +ObjectDisplayOrder.prototype['Id'] = undefined; + +/** + * New Display order + * @member {Number} DisplayOrder + */ +ObjectDisplayOrder.prototype['DisplayOrder'] = undefined; + + + + + + +export default ObjectDisplayOrder; + diff --git a/src/model/OktaPortalFeatureFlag.js b/src/model/OktaPortalFeatureFlag.js new file mode 100644 index 00000000..ca0ffc29 --- /dev/null +++ b/src/model/OktaPortalFeatureFlag.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OktaPortalFeatureFlag model module. + * @module model/OktaPortalFeatureFlag + * @version 1.0.0 + */ +class OktaPortalFeatureFlag { + /** + * Constructs a new OktaPortalFeatureFlag. + * Okta Portal Feature Flag Value + * @alias module:model/OktaPortalFeatureFlag + */ + constructor() { + + OktaPortalFeatureFlag.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OktaPortalFeatureFlag from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OktaPortalFeatureFlag} obj Optional instance to populate. + * @return {module:model/OktaPortalFeatureFlag} The populated OktaPortalFeatureFlag instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OktaPortalFeatureFlag(); + + if (data.hasOwnProperty('OktaPortalEnabled')) { + obj['OktaPortalEnabled'] = ApiClient.convertToType(data['OktaPortalEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Feature flag backend_portal_enableOktaWebApi value + * @member {Boolean} OktaPortalEnabled + */ +OktaPortalFeatureFlag.prototype['OktaPortalEnabled'] = undefined; + + + + + + +export default OktaPortalFeatureFlag; + diff --git a/src/model/OnboardingConfigUpdate.js b/src/model/OnboardingConfigUpdate.js new file mode 100644 index 00000000..528ac066 --- /dev/null +++ b/src/model/OnboardingConfigUpdate.js @@ -0,0 +1,112 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OnboardingConfigUpdate model module. + * @module model/OnboardingConfigUpdate + * @version 1.0.0 + */ +class OnboardingConfigUpdate { + /** + * Constructs a new OnboardingConfigUpdate. + * Model for updating the onboarding config + * @alias module:model/OnboardingConfigUpdate + */ + constructor() { + + OnboardingConfigUpdate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OnboardingConfigUpdate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OnboardingConfigUpdate} obj Optional instance to populate. + * @return {module:model/OnboardingConfigUpdate} The populated OnboardingConfigUpdate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OnboardingConfigUpdate(); + + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsWelcomeScreenEnabled')) { + obj['IsWelcomeScreenEnabled'] = ApiClient.convertToType(data['IsWelcomeScreenEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('ConfigType')) { + obj['ConfigType'] = ApiClient.convertToType(data['ConfigType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Gets or sets whether onboarding is enabled + * @member {Boolean} IsEnabled + */ +OnboardingConfigUpdate.prototype['IsEnabled'] = undefined; + +/** + * Gets or sets whether welcome screen is enabled + * @member {Boolean} IsWelcomeScreenEnabled + */ +OnboardingConfigUpdate.prototype['IsWelcomeScreenEnabled'] = undefined; + +/** + * Onboarding config type + * @member {module:model/OnboardingConfigUpdate.ConfigTypeEnum} ConfigType + */ +OnboardingConfigUpdate.prototype['ConfigType'] = undefined; + + + + + +/** + * Allowed values for the ConfigType property. + * @enum {String} + * @readonly + */ +OnboardingConfigUpdate['ConfigTypeEnum'] = { + + /** + * value: "Tutorial" + * @const + */ + "Tutorial": "Tutorial", + + /** + * value: "OnboardingWizard" + * @const + */ + "OnboardingWizard": "OnboardingWizard" +}; + + + +export default OnboardingConfigUpdate; + diff --git a/src/model/OnboardingItemUpdate.js b/src/model/OnboardingItemUpdate.js new file mode 100644 index 00000000..bef98b3d --- /dev/null +++ b/src/model/OnboardingItemUpdate.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OnboardingItemUpdate model module. + * @module model/OnboardingItemUpdate + * @version 1.0.0 + */ +class OnboardingItemUpdate { + /** + * Constructs a new OnboardingItemUpdate. + * + * @alias module:model/OnboardingItemUpdate + */ + constructor() { + + OnboardingItemUpdate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OnboardingItemUpdate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OnboardingItemUpdate} obj Optional instance to populate. + * @return {module:model/OnboardingItemUpdate} The populated OnboardingItemUpdate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OnboardingItemUpdate(); + + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + } + return obj; + } + + +} + +/** + * Completion Status for Onboarding Item + * @member {module:model/OnboardingItemUpdate.StatusEnum} Status + */ +OnboardingItemUpdate.prototype['Status'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +OnboardingItemUpdate['StatusEnum'] = { + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "InProgress" + * @const + */ + "InProgress": "InProgress", + + /** + * value: "Completed" + * @const + */ + "Completed": "Completed" +}; + + + +export default OnboardingItemUpdate; + diff --git a/src/model/Order.js b/src/model/Order.js new file mode 100644 index 00000000..96ff9768 --- /dev/null +++ b/src/model/Order.js @@ -0,0 +1,1056 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Channel from './Channel'; +import Coordinates from './Coordinates'; +import CustomerSummary from './CustomerSummary'; +import DeliveryLocation from './DeliveryLocation'; +import FeeSummary from './FeeSummary'; +import MaskedPhoneNumber from './MaskedPhoneNumber'; +import OrderBatchSummary from './OrderBatchSummary'; +import OrderDropOffLocation from './OrderDropOffLocation'; +import OrderFulfillmentStatusBase from './OrderFulfillmentStatusBase'; +import OrderItem from './OrderItem'; +import OrderVoucherSummary from './OrderVoucherSummary'; +import StoreSummary from './StoreSummary'; +import TaxItem from './TaxItem'; + +/** + * The Order model module. + * @module model/Order + * @version 1.0.0 + */ +class Order { + /** + * Constructs a new Order. + * Order + * @alias module:model/Order + */ + constructor() { + + Order.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Order from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Order} obj Optional instance to populate. + * @return {module:model/Order} The populated Order instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Order(); + + if (data.hasOwnProperty('Store')) { + obj['Store'] = StoreSummary.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('Customer')) { + obj['Customer'] = CustomerSummary.constructFromObject(data['Customer']); + } + if (data.hasOwnProperty('Voucher')) { + obj['Voucher'] = OrderVoucherSummary.constructFromObject(data['Voucher']); + } + if (data.hasOwnProperty('Fees')) { + obj['Fees'] = FeeSummary.constructFromObject(data['Fees']); + } + if (data.hasOwnProperty('OrderItems')) { + obj['OrderItems'] = ApiClient.convertToType(data['OrderItems'], [OrderItem]); + } + if (data.hasOwnProperty('DeliveryLocation')) { + obj['DeliveryLocation'] = DeliveryLocation.constructFromObject(data['DeliveryLocation']); + } + if (data.hasOwnProperty('CustomerLocation')) { + obj['CustomerLocation'] = Coordinates.constructFromObject(data['CustomerLocation']); + } + if (data.hasOwnProperty('MaskedPhoneNumber')) { + obj['MaskedPhoneNumber'] = MaskedPhoneNumber.constructFromObject(data['MaskedPhoneNumber']); + } + if (data.hasOwnProperty('DropOffLocationId')) { + obj['DropOffLocationId'] = ApiClient.convertToType(data['DropOffLocationId'], 'Number'); + } + if (data.hasOwnProperty('DropOffLocation')) { + obj['DropOffLocation'] = ApiClient.convertToType(data['DropOffLocation'], 'String'); + } + if (data.hasOwnProperty('AcceptedFor')) { + obj['AcceptedFor'] = ApiClient.convertToType(data['AcceptedFor'], 'Date'); + } + if (data.hasOwnProperty('InFraudZone')) { + obj['InFraudZone'] = ApiClient.convertToType(data['InFraudZone'], 'Boolean'); + } + if (data.hasOwnProperty('UnusualHighValueOrder')) { + obj['UnusualHighValueOrder'] = ApiClient.convertToType(data['UnusualHighValueOrder'], 'Boolean'); + } + if (data.hasOwnProperty('RejectedByUserId')) { + obj['RejectedByUserId'] = ApiClient.convertToType(data['RejectedByUserId'], 'Number'); + } + if (data.hasOwnProperty('ChannelOrderId')) { + obj['ChannelOrderId'] = ApiClient.convertToType(data['ChannelOrderId'], 'String'); + } + if (data.hasOwnProperty('ChannelOrderDisplayId')) { + obj['ChannelOrderDisplayId'] = ApiClient.convertToType(data['ChannelOrderDisplayId'], 'String'); + } + if (data.hasOwnProperty('Channel')) { + obj['Channel'] = Channel.constructFromObject(data['Channel']); + } + if (data.hasOwnProperty('OrderDropOffLocation')) { + obj['OrderDropOffLocation'] = OrderDropOffLocation.constructFromObject(data['OrderDropOffLocation']); + } + if (data.hasOwnProperty('FulfillmentStatus')) { + obj['FulfillmentStatus'] = OrderFulfillmentStatusBase.constructFromObject(data['FulfillmentStatus']); + } + if (data.hasOwnProperty('OrderBatchInfo')) { + obj['OrderBatchInfo'] = OrderBatchSummary.constructFromObject(data['OrderBatchInfo']); + } + if (data.hasOwnProperty('TaxItems')) { + obj['TaxItems'] = ApiClient.convertToType(data['TaxItems'], [TaxItem]); + } + if (data.hasOwnProperty('CreatedCampaignVoucherId')) { + obj['CreatedCampaignVoucherId'] = ApiClient.convertToType(data['CreatedCampaignVoucherId'], 'Number'); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('LocalOrderId')) { + obj['LocalOrderId'] = ApiClient.convertToType(data['LocalOrderId'], 'String'); + } + if (data.hasOwnProperty('DeliveryType')) { + obj['DeliveryType'] = ApiClient.convertToType(data['DeliveryType'], 'String'); + } + if (data.hasOwnProperty('PickupLocationType')) { + obj['PickupLocationType'] = ApiClient.convertToType(data['PickupLocationType'], 'String'); + } + if (data.hasOwnProperty('TableServiceCatagory')) { + obj['TableServiceCatagory'] = ApiClient.convertToType(data['TableServiceCatagory'], 'String'); + } + if (data.hasOwnProperty('TipAmount')) { + obj['TipAmount'] = ApiClient.convertToType(data['TipAmount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryAmount')) { + obj['DeliveryAmount'] = ApiClient.convertToType(data['DeliveryAmount'], 'Number'); + } + if (data.hasOwnProperty('OrderItemsAmount')) { + obj['OrderItemsAmount'] = ApiClient.convertToType(data['OrderItemsAmount'], 'Number'); + } + if (data.hasOwnProperty('ServiceChargeAmount')) { + obj['ServiceChargeAmount'] = ApiClient.convertToType(data['ServiceChargeAmount'], 'Number'); + } + if (data.hasOwnProperty('ServiceChargePercentage')) { + obj['ServiceChargePercentage'] = ApiClient.convertToType(data['ServiceChargePercentage'], 'Number'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('ProcessingFee')) { + obj['ProcessingFee'] = ApiClient.convertToType(data['ProcessingFee'], 'Number'); + } + if (data.hasOwnProperty('PaymentAccountType')) { + obj['PaymentAccountType'] = ApiClient.convertToType(data['PaymentAccountType'], 'String'); + } + if (data.hasOwnProperty('PaymentAccountDescription')) { + obj['PaymentAccountDescription'] = ApiClient.convertToType(data['PaymentAccountDescription'], 'String'); + } + if (data.hasOwnProperty('OrderState')) { + obj['OrderState'] = ApiClient.convertToType(data['OrderState'], 'String'); + } + if (data.hasOwnProperty('IsPreOrder')) { + obj['IsPreOrder'] = ApiClient.convertToType(data['IsPreOrder'], 'Boolean'); + } + if (data.hasOwnProperty('PlacedTime')) { + obj['PlacedTime'] = ApiClient.convertToType(data['PlacedTime'], 'Date'); + } + if (data.hasOwnProperty('RequestedForTime')) { + obj['RequestedForTime'] = ApiClient.convertToType(data['RequestedForTime'], 'Date'); + } + if (data.hasOwnProperty('ChefNote')) { + obj['ChefNote'] = ApiClient.convertToType(data['ChefNote'], 'String'); + } + if (data.hasOwnProperty('AppType')) { + obj['AppType'] = ApiClient.convertToType(data['AppType'], 'String'); + } + if (data.hasOwnProperty('UserRating')) { + obj['UserRating'] = ApiClient.convertToType(data['UserRating'], 'Number'); + } + if (data.hasOwnProperty('PaymentStatus')) { + obj['PaymentStatus'] = ApiClient.convertToType(data['PaymentStatus'], 'String'); + } + if (data.hasOwnProperty('RejectionReason')) { + obj['RejectionReason'] = ApiClient.convertToType(data['RejectionReason'], 'String'); + } + if (data.hasOwnProperty('RefundedAmount')) { + obj['RefundedAmount'] = ApiClient.convertToType(data['RefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryTrackingStatus')) { + obj['DeliveryTrackingStatus'] = ApiClient.convertToType(data['DeliveryTrackingStatus'], 'String'); + } + if (data.hasOwnProperty('DriverId')) { + obj['DriverId'] = ApiClient.convertToType(data['DriverId'], 'Number'); + } + if (data.hasOwnProperty('TotalTax')) { + obj['TotalTax'] = ApiClient.convertToType(data['TotalTax'], 'Number'); + } + if (data.hasOwnProperty('OrderTrackingCode')) { + obj['OrderTrackingCode'] = ApiClient.convertToType(data['OrderTrackingCode'], 'String'); + } + if (data.hasOwnProperty('DeliveryFeeAreaId')) { + obj['DeliveryFeeAreaId'] = ApiClient.convertToType(data['DeliveryFeeAreaId'], 'Number'); + } + if (data.hasOwnProperty('ReceiptCode')) { + obj['ReceiptCode'] = ApiClient.convertToType(data['ReceiptCode'], 'String'); + } + if (data.hasOwnProperty('TotalDepositReturnFeeAmount')) { + obj['TotalDepositReturnFeeAmount'] = ApiClient.convertToType(data['TotalDepositReturnFeeAmount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StoreSummary} Store + */ +Order.prototype['Store'] = undefined; + +/** + * @member {module:model/CustomerSummary} Customer + */ +Order.prototype['Customer'] = undefined; + +/** + * @member {module:model/OrderVoucherSummary} Voucher + */ +Order.prototype['Voucher'] = undefined; + +/** + * @member {module:model/FeeSummary} Fees + */ +Order.prototype['Fees'] = undefined; + +/** + * Ordered items + * @member {Array.} OrderItems + */ +Order.prototype['OrderItems'] = undefined; + +/** + * @member {module:model/DeliveryLocation} DeliveryLocation + */ +Order.prototype['DeliveryLocation'] = undefined; + +/** + * @member {module:model/Coordinates} CustomerLocation + */ +Order.prototype['CustomerLocation'] = undefined; + +/** + * @member {module:model/MaskedPhoneNumber} MaskedPhoneNumber + */ +Order.prototype['MaskedPhoneNumber'] = undefined; + +/** + * Represents table service drop off location + * @member {Number} DropOffLocationId + */ +Order.prototype['DropOffLocationId'] = undefined; + +/** + * Represents table service drop off location + * @member {String} DropOffLocation + */ +Order.prototype['DropOffLocation'] = undefined; + +/** + * Time store has accepted the order for + * @member {Date} AcceptedFor + */ +Order.prototype['AcceptedFor'] = undefined; + +/** + * Was order made within a fraud zone + * @member {Boolean} InFraudZone + */ +Order.prototype['InFraudZone'] = undefined; + +/** + * Is order of unusually high value + * @member {Boolean} UnusualHighValueOrder + */ +Order.prototype['UnusualHighValueOrder'] = undefined; + +/** + * Id of user who rejected order, if available + * @member {Number} RejectedByUserId + */ +Order.prototype['RejectedByUserId'] = undefined; + +/** + * ChannelOrderId from external channel + * @member {String} ChannelOrderId + */ +Order.prototype['ChannelOrderId'] = undefined; + +/** + * ChannelOrderDisplayId from external channel + * @member {String} ChannelOrderDisplayId + */ +Order.prototype['ChannelOrderDisplayId'] = undefined; + +/** + * @member {module:model/Channel} Channel + */ +Order.prototype['Channel'] = undefined; + +/** + * @member {module:model/OrderDropOffLocation} OrderDropOffLocation + */ +Order.prototype['OrderDropOffLocation'] = undefined; + +/** + * @member {module:model/OrderFulfillmentStatusBase} FulfillmentStatus + */ +Order.prototype['FulfillmentStatus'] = undefined; + +/** + * @member {module:model/OrderBatchSummary} OrderBatchInfo + */ +Order.prototype['OrderBatchInfo'] = undefined; + +/** + * A collection of tax items on the order. + * @member {Array.} TaxItems + */ +Order.prototype['TaxItems'] = undefined; + +/** + * The id of the campaign voucher that was created from this order + * @member {Number} CreatedCampaignVoucherId + */ +Order.prototype['CreatedCampaignVoucherId'] = undefined; + +/** + * Order identifier + * @member {Number} OrderId + */ +Order.prototype['OrderId'] = undefined; + +/** + * Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + * @member {String} LocalOrderId + */ +Order.prototype['LocalOrderId'] = undefined; + +/** + * Delivery type + * @member {module:model/Order.DeliveryTypeEnum} DeliveryType + */ +Order.prototype['DeliveryType'] = undefined; + +/** + * Pickup location type + * @member {module:model/Order.PickupLocationTypeEnum} PickupLocationType + */ +Order.prototype['PickupLocationType'] = undefined; + +/** + * Pickup location type + * @member {module:model/Order.TableServiceCatagoryEnum} TableServiceCatagory + */ +Order.prototype['TableServiceCatagory'] = undefined; + +/** + * Tip amount + * @member {Number} TipAmount + */ +Order.prototype['TipAmount'] = undefined; + +/** + * Delivery amount + * @member {Number} DeliveryAmount + */ +Order.prototype['DeliveryAmount'] = undefined; + +/** + * Ordered items amount + * @member {Number} OrderItemsAmount + */ +Order.prototype['OrderItemsAmount'] = undefined; + +/** + * Service Charge Amount + * @member {Number} ServiceChargeAmount + */ +Order.prototype['ServiceChargeAmount'] = undefined; + +/** + * Service Charge Percentage + * @member {Number} ServiceChargePercentage + */ +Order.prototype['ServiceChargePercentage'] = undefined; + +/** + * This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee for cash orders. It does not include the OnlineOrderingFee in the case of card orders as this fee is charged by Flipdish directly to the customer. + * @member {Number} Amount + */ +Order.prototype['Amount'] = undefined; + +/** + * This contains the online ordering processing fee. For card payments this is charged directly to the customer and for cash orders it is paid by the customer to the store. It is tax inclusive. + * @member {Number} ProcessingFee + */ +Order.prototype['ProcessingFee'] = undefined; + +/** + * Payment account type + * @member {module:model/Order.PaymentAccountTypeEnum} PaymentAccountType + */ +Order.prototype['PaymentAccountType'] = undefined; + +/** + * Payment account description (like Visa ****2371 or Apple Pay. or Cash) + * @member {String} PaymentAccountDescription + */ +Order.prototype['PaymentAccountDescription'] = undefined; + +/** + * Order state + * @member {module:model/Order.OrderStateEnum} OrderState + */ +Order.prototype['OrderState'] = undefined; + +/** + * Is pre-order + * @member {Boolean} IsPreOrder + */ +Order.prototype['IsPreOrder'] = undefined; + +/** + * Order placed time + * @member {Date} PlacedTime + */ +Order.prototype['PlacedTime'] = undefined; + +/** + * Order requested for + * @member {Date} RequestedForTime + */ +Order.prototype['RequestedForTime'] = undefined; + +/** + * Chef note + * @member {String} ChefNote + */ +Order.prototype['ChefNote'] = undefined; + +/** + * Used app type + * @member {module:model/Order.AppTypeEnum} AppType + */ +Order.prototype['AppType'] = undefined; + +/** + * User rating + * @member {Number} UserRating + */ +Order.prototype['UserRating'] = undefined; + +/** + * Status of the payment + * @member {module:model/Order.PaymentStatusEnum} PaymentStatus + */ +Order.prototype['PaymentStatus'] = undefined; + +/** + * Rejection reason. Can have value if the order is rejected. + * @member {module:model/Order.RejectionReasonEnum} RejectionReason + */ +Order.prototype['RejectionReason'] = undefined; + +/** + * Amount refunded to customer. + * @member {Number} RefundedAmount + */ +Order.prototype['RefundedAmount'] = undefined; + +/** + * Delivery tracking status + * @member {module:model/Order.DeliveryTrackingStatusEnum} DeliveryTrackingStatus + */ +Order.prototype['DeliveryTrackingStatus'] = undefined; + +/** + * Assigned driver identifier + * @member {Number} DriverId + */ +Order.prototype['DriverId'] = undefined; + +/** + * Total tax applied to order + * @member {Number} TotalTax + */ +Order.prototype['TotalTax'] = undefined; + +/** + * Unique, 6 character long alpha numeric code for tracking. + * @member {String} OrderTrackingCode + */ +Order.prototype['OrderTrackingCode'] = undefined; + +/** + * Delivery area identifier + * @member {Number} DeliveryFeeAreaId + */ +Order.prototype['DeliveryFeeAreaId'] = undefined; + +/** + * Code used to view the order's receipt + * @member {String} ReceiptCode + */ +Order.prototype['ReceiptCode'] = undefined; + +/** + * This contains the total deposit return fee amount for the order. + * @member {Number} TotalDepositReturnFeeAmount + */ +Order.prototype['TotalDepositReturnFeeAmount'] = undefined; + + + + + +/** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ +Order['DeliveryTypeEnum'] = { + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Pickup" + * @const + */ + "Pickup": "Pickup" +}; + + +/** + * Allowed values for the PickupLocationType property. + * @enum {String} + * @readonly + */ +Order['PickupLocationTypeEnum'] = { + + /** + * value: "TakeOut" + * @const + */ + "TakeOut": "TakeOut", + + /** + * value: "TableService" + * @const + */ + "TableService": "TableService", + + /** + * value: "DineIn" + * @const + */ + "DineIn": "DineIn" +}; + + +/** + * Allowed values for the TableServiceCatagory property. + * @enum {String} + * @readonly + */ +Order['TableServiceCatagoryEnum'] = { + + /** + * value: "Generic" + * @const + */ + "Generic": "Generic", + + /** + * value: "Villa" + * @const + */ + "Villa": "Villa", + + /** + * value: "House" + * @const + */ + "House": "House", + + /** + * value: "Room" + * @const + */ + "Room": "Room", + + /** + * value: "Area" + * @const + */ + "Area": "Area", + + /** + * value: "Table" + * @const + */ + "Table": "Table", + + /** + * value: "ParkingBay" + * @const + */ + "ParkingBay": "ParkingBay", + + /** + * value: "Gate" + * @const + */ + "Gate": "Gate", + + /** + * value: "DriveThrough" + * @const + */ + "DriveThrough": "DriveThrough", + + /** + * value: "Team" + * @const + */ + "Team": "Team" +}; + + +/** + * Allowed values for the PaymentAccountType property. + * @enum {String} + * @readonly + */ +Order['PaymentAccountTypeEnum'] = { + + /** + * value: "Card" + * @const + */ + "Card": "Card", + + /** + * value: "Cash" + * @const + */ + "Cash": "Cash", + + /** + * value: "Ideal" + * @const + */ + "Ideal": "Ideal", + + /** + * value: "Bancontact" + * @const + */ + "Bancontact": "Bancontact", + + /** + * value: "Giropay" + * @const + */ + "Giropay": "Giropay", + + /** + * value: "Eps" + * @const + */ + "Eps": "Eps", + + /** + * value: "Emv" + * @const + */ + "Emv": "Emv", + + /** + * value: "PayPal" + * @const + */ + "PayPal": "PayPal", + + /** + * value: "PayGreen" + * @const + */ + "PayGreen": "PayGreen", + + /** + * value: "GoogleWalletToken" + * @const + */ + "GoogleWalletToken": "GoogleWalletToken" +}; + + +/** + * Allowed values for the OrderState property. + * @enum {String} + * @readonly + */ +Order['OrderStateEnum'] = { + + /** + * value: "Created" + * @const + */ + "Created": "Created", + + /** + * value: "PlacedCanBeCancelled" + * @const + */ + "PlacedCanBeCancelled": "PlacedCanBeCancelled", + + /** + * value: "ReadyToProcess" + * @const + */ + "ReadyToProcess": "ReadyToProcess", + + /** + * value: "AcceptedByRestaurant" + * @const + */ + "AcceptedByRestaurant": "AcceptedByRestaurant", + + /** + * value: "Dispatched" + * @const + */ + "Dispatched": "Dispatched", + + /** + * value: "Delivered" + * @const + */ + "Delivered": "Delivered", + + /** + * value: "Cancelled" + * @const + */ + "Cancelled": "Cancelled", + + /** + * value: "ManualReview" + * @const + */ + "ManualReview": "ManualReview", + + /** + * value: "RejectedByStore" + * @const + */ + "RejectedByStore": "RejectedByStore", + + /** + * value: "RejectedByFlipdish" + * @const + */ + "RejectedByFlipdish": "RejectedByFlipdish", + + /** + * value: "RejectedAutomatically" + * @const + */ + "RejectedAutomatically": "RejectedAutomatically", + + /** + * value: "RejectedAfterBeingAccepted" + * @const + */ + "RejectedAfterBeingAccepted": "RejectedAfterBeingAccepted", + + /** + * value: "AcceptedAndRefunded" + * @const + */ + "AcceptedAndRefunded": "AcceptedAndRefunded", + + /** + * value: "PendingPayment" + * @const + */ + "PendingPayment": "PendingPayment" +}; + + +/** + * Allowed values for the AppType property. + * @enum {String} + * @readonly + */ +Order['AppTypeEnum'] = { + + /** + * value: "Unknown" + * @const + */ + "Unknown": "Unknown", + + /** + * value: "Ios" + * @const + */ + "Ios": "Ios", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "TelephoneCall" + * @const + */ + "TelephoneCall": "TelephoneCall", + + /** + * value: "Sms" + * @const + */ + "Sms": "Sms", + + /** + * value: "PwaAndroid" + * @const + */ + "PwaAndroid": "PwaAndroid", + + /** + * value: "PwaIos" + * @const + */ + "PwaIos": "PwaIos", + + /** + * value: "Google" + * @const + */ + "Google": "Google" +}; + + +/** + * Allowed values for the PaymentStatus property. + * @enum {String} + * @readonly + */ +Order['PaymentStatusEnum'] = { + + /** + * value: "Paid" + * @const + */ + "Paid": "Paid", + + /** + * value: "Unpaid" + * @const + */ + "Unpaid": "Unpaid", + + /** + * value: "Refunded" + * @const + */ + "Refunded": "Refunded", + + /** + * value: "PartiallyRefunded" + * @const + */ + "PartiallyRefunded": "PartiallyRefunded", + + /** + * value: "Disputed" + * @const + */ + "Disputed": "Disputed" +}; + + +/** + * Allowed values for the RejectionReason property. + * @enum {String} + * @readonly + */ +Order['RejectionReasonEnum'] = { + + /** + * value: "TooBusy" + * @const + */ + "TooBusy": "TooBusy", + + /** + * value: "FoodUnavailable" + * @const + */ + "FoodUnavailable": "FoodUnavailable", + + /** + * value: "UnableToDeliver" + * @const + */ + "UnableToDeliver": "UnableToDeliver", + + /** + * value: "UnknownAddress" + * @const + */ + "UnknownAddress": "UnknownAddress", + + /** + * value: "UnknownReason" + * @const + */ + "UnknownReason": "UnknownReason", + + /** + * value: "TooSoon" + * @const + */ + "TooSoon": "TooSoon", + + /** + * value: "TimeUnavailable" + * @const + */ + "TimeUnavailable": "TimeUnavailable", + + /** + * value: "DontDeliverToArea" + * @const + */ + "DontDeliverToArea": "DontDeliverToArea", + + /** + * value: "StoreUncontactable" + * @const + */ + "StoreUncontactable": "StoreUncontactable" +}; + + +/** + * Allowed values for the DeliveryTrackingStatus property. + * @enum {String} + * @readonly + */ +Order['DeliveryTrackingStatusEnum'] = { + + /** + * value: "Unassigned" + * @const + */ + "Unassigned": "Unassigned", + + /** + * value: "Unaccepted" + * @const + */ + "Unaccepted": "Unaccepted", + + /** + * value: "Accepted" + * @const + */ + "Accepted": "Accepted", + + /** + * value: "Carrying" + * @const + */ + "Carrying": "Carrying", + + /** + * value: "OnTheWay" + * @const + */ + "OnTheWay": "OnTheWay", + + /** + * value: "ArrivedAtLocation" + * @const + */ + "ArrivedAtLocation": "ArrivedAtLocation", + + /** + * value: "Delivered" + * @const + */ + "Delivered": "Delivered", + + /** + * value: "CannotDeliver" + * @const + */ + "CannotDeliver": "CannotDeliver" +}; + + + +export default Order; + diff --git a/src/model/OrderAcceptedEvent.js b/src/model/OrderAcceptedEvent.js new file mode 100644 index 00000000..f20cb9aa --- /dev/null +++ b/src/model/OrderAcceptedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; +import UserEventInfo from './UserEventInfo'; + +/** + * The OrderAcceptedEvent model module. + * @module model/OrderAcceptedEvent + * @version 1.0.0 + */ +class OrderAcceptedEvent { + /** + * Constructs a new OrderAcceptedEvent. + * Order Accepted Event + * @alias module:model/OrderAcceptedEvent + */ + constructor() { + + OrderAcceptedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderAcceptedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderAcceptedEvent} obj Optional instance to populate. + * @return {module:model/OrderAcceptedEvent} The populated OrderAcceptedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderAcceptedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('OrderAcceptedTime')) { + obj['OrderAcceptedTime'] = ApiClient.convertToType(data['OrderAcceptedTime'], 'Date'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderAcceptedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +OrderAcceptedEvent.prototype['OrgId'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderAcceptedEvent.prototype['Description'] = undefined; + +/** + * Order Accepted Time + * @member {Date} OrderAcceptedTime + */ +OrderAcceptedEvent.prototype['OrderAcceptedTime'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +OrderAcceptedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderAcceptedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderAcceptedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderAcceptedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderAcceptedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderAcceptedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderAcceptedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderAcceptedEvent; + diff --git a/src/model/OrderBatch.js b/src/model/OrderBatch.js new file mode 100644 index 00000000..f521d857 --- /dev/null +++ b/src/model/OrderBatch.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderBatch model module. + * @module model/OrderBatch + * @version 1.0.0 + */ +class OrderBatch { + /** + * Constructs a new OrderBatch. + * Order batch detailed information + * @alias module:model/OrderBatch + */ + constructor() { + + OrderBatch.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderBatch from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderBatch} obj Optional instance to populate. + * @return {module:model/OrderBatch} The populated OrderBatch instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderBatch(); + + if (data.hasOwnProperty('OrderIds')) { + obj['OrderIds'] = ApiClient.convertToType(data['OrderIds'], ['Number']); + } + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('DisplayCode')) { + obj['DisplayCode'] = ApiClient.convertToType(data['DisplayCode'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('IsPublished')) { + obj['IsPublished'] = ApiClient.convertToType(data['IsPublished'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Orders' ids on the batch + * @member {Array.} OrderIds + */ +OrderBatch.prototype['OrderIds'] = undefined; + +/** + * Order batch id + * @member {Number} Id + */ +OrderBatch.prototype['Id'] = undefined; + +/** + * Order batch 6-sign human readable code + * @member {String} DisplayCode + */ +OrderBatch.prototype['DisplayCode'] = undefined; + +/** + * Batch creation date and time + * @member {Date} CreateTime + */ +OrderBatch.prototype['CreateTime'] = undefined; + +/** + * If the batch is already published + * @member {Boolean} IsPublished + */ +OrderBatch.prototype['IsPublished'] = undefined; + + + + + + +export default OrderBatch; + diff --git a/src/model/OrderBatchPublishedEvent.js b/src/model/OrderBatchPublishedEvent.js new file mode 100644 index 00000000..cc9af967 --- /dev/null +++ b/src/model/OrderBatchPublishedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderBatchPublishedEvent model module. + * @module model/OrderBatchPublishedEvent + * @version 1.0.0 + */ +class OrderBatchPublishedEvent { + /** + * Constructs a new OrderBatchPublishedEvent. + * Order Batch Published Event + * @alias module:model/OrderBatchPublishedEvent + */ + constructor() { + + OrderBatchPublishedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderBatchPublishedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderBatchPublishedEvent} obj Optional instance to populate. + * @return {module:model/OrderBatchPublishedEvent} The populated OrderBatchPublishedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderBatchPublishedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrderBatchId')) { + obj['OrderBatchId'] = ApiClient.convertToType(data['OrderBatchId'], 'Number'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('OrderIds')) { + obj['OrderIds'] = ApiClient.convertToType(data['OrderIds'], ['Number']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderBatchPublishedEvent.prototype['EventName'] = undefined; + +/** + * Order Batch Id + * @member {Number} OrderBatchId + */ +OrderBatchPublishedEvent.prototype['OrderBatchId'] = undefined; + +/** + * Store id the order batch belogs to + * @member {Number} StoreId + */ +OrderBatchPublishedEvent.prototype['StoreId'] = undefined; + +/** + * Orders' ids on the batch + * @member {Array.} OrderIds + */ +OrderBatchPublishedEvent.prototype['OrderIds'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderBatchPublishedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderBatchPublishedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderBatchPublishedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderBatchPublishedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderBatchPublishedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderBatchPublishedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderBatchPublishedEvent; + diff --git a/src/model/OrderBatchSummary.js b/src/model/OrderBatchSummary.js new file mode 100644 index 00000000..d72861ea --- /dev/null +++ b/src/model/OrderBatchSummary.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderBatchSummary model module. + * @module model/OrderBatchSummary + * @version 1.0.0 + */ +class OrderBatchSummary { + /** + * Constructs a new OrderBatchSummary. + * Order batch info + * @alias module:model/OrderBatchSummary + */ + constructor() { + + OrderBatchSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderBatchSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderBatchSummary} obj Optional instance to populate. + * @return {module:model/OrderBatchSummary} The populated OrderBatchSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderBatchSummary(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('DisplayCode')) { + obj['DisplayCode'] = ApiClient.convertToType(data['DisplayCode'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('IsPublished')) { + obj['IsPublished'] = ApiClient.convertToType(data['IsPublished'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Order batch id + * @member {Number} Id + */ +OrderBatchSummary.prototype['Id'] = undefined; + +/** + * Order batch 6-sign human readable code + * @member {String} DisplayCode + */ +OrderBatchSummary.prototype['DisplayCode'] = undefined; + +/** + * Batch creation date and time + * @member {Date} CreateTime + */ +OrderBatchSummary.prototype['CreateTime'] = undefined; + +/** + * If the batch is already published + * @member {Boolean} IsPublished + */ +OrderBatchSummary.prototype['IsPublished'] = undefined; + + + + + + +export default OrderBatchSummary; + diff --git a/src/model/OrderBatchingConfiguration.js b/src/model/OrderBatchingConfiguration.js new file mode 100644 index 00000000..03fe1802 --- /dev/null +++ b/src/model/OrderBatchingConfiguration.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderBatchingConfiguration model module. + * @module model/OrderBatchingConfiguration + * @version 1.0.0 + */ +class OrderBatchingConfiguration { + /** + * Constructs a new OrderBatchingConfiguration. + * Describes the configuration of OrderBatching + * @alias module:model/OrderBatchingConfiguration + */ + constructor() { + + OrderBatchingConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderBatchingConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderBatchingConfiguration} obj Optional instance to populate. + * @return {module:model/OrderBatchingConfiguration} The populated OrderBatchingConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderBatchingConfiguration(); + + if (data.hasOwnProperty('BatchIntervalInSeconds')) { + obj['BatchIntervalInSeconds'] = ApiClient.convertToType(data['BatchIntervalInSeconds'], 'Number'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Batch sending interval in seconds + * @member {Number} BatchIntervalInSeconds + */ +OrderBatchingConfiguration.prototype['BatchIntervalInSeconds'] = undefined; + +/** + * OrderBatching is enabled or not + * @member {Boolean} IsEnabled + */ +OrderBatchingConfiguration.prototype['IsEnabled'] = undefined; + + + + + + +export default OrderBatchingConfiguration; + diff --git a/src/model/OrderCapacityConfigUpdatedEvent.js b/src/model/OrderCapacityConfigUpdatedEvent.js new file mode 100644 index 00000000..4e2da04e --- /dev/null +++ b/src/model/OrderCapacityConfigUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreOrderCapacityConfigEditModel from './StoreOrderCapacityConfigEditModel'; +import UserEventInfo from './UserEventInfo'; + +/** + * The OrderCapacityConfigUpdatedEvent model module. + * @module model/OrderCapacityConfigUpdatedEvent + * @version 1.0.0 + */ +class OrderCapacityConfigUpdatedEvent { + /** + * Constructs a new OrderCapacityConfigUpdatedEvent. + * Store's Order Capacity Configuration Updated + * @alias module:model/OrderCapacityConfigUpdatedEvent + */ + constructor() { + + OrderCapacityConfigUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderCapacityConfigUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderCapacityConfigUpdatedEvent} obj Optional instance to populate. + * @return {module:model/OrderCapacityConfigUpdatedEvent} The populated OrderCapacityConfigUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderCapacityConfigUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('OrderCapacityConfig')) { + obj['OrderCapacityConfig'] = StoreOrderCapacityConfigEditModel.constructFromObject(data['OrderCapacityConfig']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderCapacityConfigUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Id of the store whose order capacity configuration has been updated + * @member {Number} StoreId + */ +OrderCapacityConfigUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +OrderCapacityConfigUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderCapacityConfigUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/StoreOrderCapacityConfigEditModel} OrderCapacityConfig + */ +OrderCapacityConfigUpdatedEvent.prototype['OrderCapacityConfig'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderCapacityConfigUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderCapacityConfigUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderCapacityConfigUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderCapacityConfigUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderCapacityConfigUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderCapacityConfigUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderCapacityConfigUpdatedEvent; + diff --git a/src/model/OrderCreatedEvent.js b/src/model/OrderCreatedEvent.js new file mode 100644 index 00000000..47bbbe05 --- /dev/null +++ b/src/model/OrderCreatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The OrderCreatedEvent model module. + * @module model/OrderCreatedEvent + * @version 1.0.0 + */ +class OrderCreatedEvent { + /** + * Constructs a new OrderCreatedEvent. + * Order Created Event + * @alias module:model/OrderCreatedEvent + */ + constructor() { + + OrderCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderCreatedEvent} obj Optional instance to populate. + * @return {module:model/OrderCreatedEvent} The populated OrderCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('OrderCreatedTime')) { + obj['OrderCreatedTime'] = ApiClient.convertToType(data['OrderCreatedTime'], 'Date'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderCreatedEvent.prototype['Description'] = undefined; + +/** + * Order Created Time + * @member {Date} OrderCreatedTime + */ +OrderCreatedEvent.prototype['OrderCreatedTime'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderCreatedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderCreatedEvent; + diff --git a/src/model/OrderCustomerTrackingCreatedEvent.js b/src/model/OrderCustomerTrackingCreatedEvent.js new file mode 100644 index 00000000..16113440 --- /dev/null +++ b/src/model/OrderCustomerTrackingCreatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CustomerDeliveryTrackingOrder from './CustomerDeliveryTrackingOrder'; + +/** + * The OrderCustomerTrackingCreatedEvent model module. + * @module model/OrderCustomerTrackingCreatedEvent + * @version 1.0.0 + */ +class OrderCustomerTrackingCreatedEvent { + /** + * Constructs a new OrderCustomerTrackingCreatedEvent. + * + * @alias module:model/OrderCustomerTrackingCreatedEvent + */ + constructor() { + + OrderCustomerTrackingCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderCustomerTrackingCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderCustomerTrackingCreatedEvent} obj Optional instance to populate. + * @return {module:model/OrderCustomerTrackingCreatedEvent} The populated OrderCustomerTrackingCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderCustomerTrackingCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = CustomerDeliveryTrackingOrder.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderCustomerTrackingCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderCustomerTrackingCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/CustomerDeliveryTrackingOrder} Order + */ +OrderCustomerTrackingCreatedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderCustomerTrackingCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderCustomerTrackingCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderCustomerTrackingCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderCustomerTrackingCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderCustomerTrackingCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderCustomerTrackingCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderCustomerTrackingCreatedEvent; + diff --git a/src/model/OrderDeliveryInformation.js b/src/model/OrderDeliveryInformation.js new file mode 100644 index 00000000..678a9ac9 --- /dev/null +++ b/src/model/OrderDeliveryInformation.js @@ -0,0 +1,199 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderDeliveryInformation model module. + * @module model/OrderDeliveryInformation + * @version 1.0.0 + */ +class OrderDeliveryInformation { + /** + * Constructs a new OrderDeliveryInformation. + * Order Delivery Status Information + * @alias module:model/OrderDeliveryInformation + */ + constructor() { + + OrderDeliveryInformation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderDeliveryInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderDeliveryInformation} obj Optional instance to populate. + * @return {module:model/OrderDeliveryInformation} The populated OrderDeliveryInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderDeliveryInformation(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('ExternalReferenceId')) { + obj['ExternalReferenceId'] = ApiClient.convertToType(data['ExternalReferenceId'], 'String'); + } + if (data.hasOwnProperty('TrackUrl')) { + obj['TrackUrl'] = ApiClient.convertToType(data['TrackUrl'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('DeliveryStatusNotes')) { + obj['DeliveryStatusNotes'] = ApiClient.convertToType(data['DeliveryStatusNotes'], 'String'); + } + if (data.hasOwnProperty('ErrorMessage')) { + obj['ErrorMessage'] = ApiClient.convertToType(data['ErrorMessage'], 'String'); + } + if (data.hasOwnProperty('IntegrationCode')) { + obj['IntegrationCode'] = ApiClient.convertToType(data['IntegrationCode'], 'String'); + } + if (data.hasOwnProperty('IntegrationName')) { + obj['IntegrationName'] = ApiClient.convertToType(data['IntegrationName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Order Id + * @member {Number} OrderId + */ +OrderDeliveryInformation.prototype['OrderId'] = undefined; + +/** + * External Reference Id + * @member {String} ExternalReferenceId + */ +OrderDeliveryInformation.prototype['ExternalReferenceId'] = undefined; + +/** + * Tracking Url + * @member {String} TrackUrl + */ +OrderDeliveryInformation.prototype['TrackUrl'] = undefined; + +/** + * Delivery Status + * @member {module:model/OrderDeliveryInformation.StatusEnum} Status + */ +OrderDeliveryInformation.prototype['Status'] = undefined; + +/** + * Delivery Status Notes + * @member {String} DeliveryStatusNotes + */ +OrderDeliveryInformation.prototype['DeliveryStatusNotes'] = undefined; + +/** + * Error Message + * @member {String} ErrorMessage + */ +OrderDeliveryInformation.prototype['ErrorMessage'] = undefined; + +/** + * Integration Code + * @member {String} IntegrationCode + */ +OrderDeliveryInformation.prototype['IntegrationCode'] = undefined; + +/** + * Integration Name + * @member {String} IntegrationName + */ +OrderDeliveryInformation.prototype['IntegrationName'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +OrderDeliveryInformation['StatusEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Unassigned" + * @const + */ + "Unassigned": "Unassigned", + + /** + * value: "Unaccepted" + * @const + */ + "Unaccepted": "Unaccepted", + + /** + * value: "Accepted" + * @const + */ + "Accepted": "Accepted", + + /** + * value: "Carrying" + * @const + */ + "Carrying": "Carrying", + + /** + * value: "OnTheWay" + * @const + */ + "OnTheWay": "OnTheWay", + + /** + * value: "ArrivedAtLocation" + * @const + */ + "ArrivedAtLocation": "ArrivedAtLocation", + + /** + * value: "Delivered" + * @const + */ + "Delivered": "Delivered", + + /** + * value: "CannotDeliver" + * @const + */ + "CannotDeliver": "CannotDeliver" +}; + + + +export default OrderDeliveryInformation; + diff --git a/src/model/OrderDeliveryInformationBase.js b/src/model/OrderDeliveryInformationBase.js new file mode 100644 index 00000000..0bfe7e9e --- /dev/null +++ b/src/model/OrderDeliveryInformationBase.js @@ -0,0 +1,190 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderDeliveryInformationBase model module. + * @module model/OrderDeliveryInformationBase + * @version 1.0.0 + */ +class OrderDeliveryInformationBase { + /** + * Constructs a new OrderDeliveryInformationBase. + * Order Delivery Status Information + * @alias module:model/OrderDeliveryInformationBase + */ + constructor() { + + OrderDeliveryInformationBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderDeliveryInformationBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderDeliveryInformationBase} obj Optional instance to populate. + * @return {module:model/OrderDeliveryInformationBase} The populated OrderDeliveryInformationBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderDeliveryInformationBase(); + + if (data.hasOwnProperty('ExternalReferenceId')) { + obj['ExternalReferenceId'] = ApiClient.convertToType(data['ExternalReferenceId'], 'String'); + } + if (data.hasOwnProperty('TrackUrl')) { + obj['TrackUrl'] = ApiClient.convertToType(data['TrackUrl'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('DeliveryStatusNotes')) { + obj['DeliveryStatusNotes'] = ApiClient.convertToType(data['DeliveryStatusNotes'], 'String'); + } + if (data.hasOwnProperty('ErrorMessage')) { + obj['ErrorMessage'] = ApiClient.convertToType(data['ErrorMessage'], 'String'); + } + if (data.hasOwnProperty('IntegrationCode')) { + obj['IntegrationCode'] = ApiClient.convertToType(data['IntegrationCode'], 'String'); + } + if (data.hasOwnProperty('IntegrationName')) { + obj['IntegrationName'] = ApiClient.convertToType(data['IntegrationName'], 'String'); + } + } + return obj; + } + + +} + +/** + * External Reference Id + * @member {String} ExternalReferenceId + */ +OrderDeliveryInformationBase.prototype['ExternalReferenceId'] = undefined; + +/** + * Tracking Url + * @member {String} TrackUrl + */ +OrderDeliveryInformationBase.prototype['TrackUrl'] = undefined; + +/** + * Delivery Status + * @member {module:model/OrderDeliveryInformationBase.StatusEnum} Status + */ +OrderDeliveryInformationBase.prototype['Status'] = undefined; + +/** + * Delivery Status Notes + * @member {String} DeliveryStatusNotes + */ +OrderDeliveryInformationBase.prototype['DeliveryStatusNotes'] = undefined; + +/** + * Error Message + * @member {String} ErrorMessage + */ +OrderDeliveryInformationBase.prototype['ErrorMessage'] = undefined; + +/** + * Integration Code + * @member {String} IntegrationCode + */ +OrderDeliveryInformationBase.prototype['IntegrationCode'] = undefined; + +/** + * Integration Name + * @member {String} IntegrationName + */ +OrderDeliveryInformationBase.prototype['IntegrationName'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +OrderDeliveryInformationBase['StatusEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Unassigned" + * @const + */ + "Unassigned": "Unassigned", + + /** + * value: "Unaccepted" + * @const + */ + "Unaccepted": "Unaccepted", + + /** + * value: "Accepted" + * @const + */ + "Accepted": "Accepted", + + /** + * value: "Carrying" + * @const + */ + "Carrying": "Carrying", + + /** + * value: "OnTheWay" + * @const + */ + "OnTheWay": "OnTheWay", + + /** + * value: "ArrivedAtLocation" + * @const + */ + "ArrivedAtLocation": "ArrivedAtLocation", + + /** + * value: "Delivered" + * @const + */ + "Delivered": "Delivered", + + /** + * value: "CannotDeliver" + * @const + */ + "CannotDeliver": "CannotDeliver" +}; + + + +export default OrderDeliveryInformationBase; + diff --git a/src/model/OrderDeliveryTrackingStatusUpdatedEvent.js b/src/model/OrderDeliveryTrackingStatusUpdatedEvent.js new file mode 100644 index 00000000..b439c6e0 --- /dev/null +++ b/src/model/OrderDeliveryTrackingStatusUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The OrderDeliveryTrackingStatusUpdatedEvent model module. + * @module model/OrderDeliveryTrackingStatusUpdatedEvent + * @version 1.0.0 + */ +class OrderDeliveryTrackingStatusUpdatedEvent { + /** + * Constructs a new OrderDeliveryTrackingStatusUpdatedEvent. + * + * @alias module:model/OrderDeliveryTrackingStatusUpdatedEvent + */ + constructor() { + + OrderDeliveryTrackingStatusUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderDeliveryTrackingStatusUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderDeliveryTrackingStatusUpdatedEvent} obj Optional instance to populate. + * @return {module:model/OrderDeliveryTrackingStatusUpdatedEvent} The populated OrderDeliveryTrackingStatusUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderDeliveryTrackingStatusUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('DeliveryIntegrationName')) { + obj['DeliveryIntegrationName'] = ApiClient.convertToType(data['DeliveryIntegrationName'], 'String'); + } + if (data.hasOwnProperty('DeliveryErrorMessage')) { + obj['DeliveryErrorMessage'] = ApiClient.convertToType(data['DeliveryErrorMessage'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['Order'] = undefined; + +/** + * Delivery integration name + * @member {String} DeliveryIntegrationName + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['DeliveryIntegrationName'] = undefined; + +/** + * Delivery error message (optional) + * @member {String} DeliveryErrorMessage + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['DeliveryErrorMessage'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderDeliveryTrackingStatusUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderDeliveryTrackingStatusUpdatedEvent; + diff --git a/src/model/OrderDispatchedEvent.js b/src/model/OrderDispatchedEvent.js new file mode 100644 index 00000000..571d8bbe --- /dev/null +++ b/src/model/OrderDispatchedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The OrderDispatchedEvent model module. + * @module model/OrderDispatchedEvent + * @version 1.0.0 + */ +class OrderDispatchedEvent { + /** + * Constructs a new OrderDispatchedEvent. + * Order Dispatched Event + * @alias module:model/OrderDispatchedEvent + */ + constructor() { + + OrderDispatchedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderDispatchedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderDispatchedEvent} obj Optional instance to populate. + * @return {module:model/OrderDispatchedEvent} The populated OrderDispatchedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderDispatchedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('OrderDispatchedTime')) { + obj['OrderDispatchedTime'] = ApiClient.convertToType(data['OrderDispatchedTime'], 'Date'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderDispatchedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderDispatchedEvent.prototype['Description'] = undefined; + +/** + * Order Rejected Time + * @member {Date} OrderDispatchedTime + */ +OrderDispatchedEvent.prototype['OrderDispatchedTime'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderDispatchedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderDispatchedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderDispatchedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderDispatchedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderDispatchedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderDispatchedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderDispatchedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderDispatchedEvent; + diff --git a/src/model/OrderDropOffLocation.js b/src/model/OrderDropOffLocation.js new file mode 100644 index 00000000..64dbd9dd --- /dev/null +++ b/src/model/OrderDropOffLocation.js @@ -0,0 +1,111 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderDropOffLocation model module. + * @module model/OrderDropOffLocation + * @version 1.0.0 + */ +class OrderDropOffLocation { + /** + * Constructs a new OrderDropOffLocation. + * @alias module:model/OrderDropOffLocation + */ + constructor() { + + OrderDropOffLocation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderDropOffLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderDropOffLocation} obj Optional instance to populate. + * @return {module:model/OrderDropOffLocation} The populated OrderDropOffLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderDropOffLocation(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('LocationName')) { + obj['LocationName'] = ApiClient.convertToType(data['LocationName'], 'String'); + } + if (data.hasOwnProperty('LocationAreaName')) { + obj['LocationAreaName'] = ApiClient.convertToType(data['LocationAreaName'], 'String'); + } + if (data.hasOwnProperty('LocationId')) { + obj['LocationId'] = ApiClient.convertToType(data['LocationId'], 'Number'); + } + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'Number'); + } + if (data.hasOwnProperty('ExternalLocationId')) { + obj['ExternalLocationId'] = ApiClient.convertToType(data['ExternalLocationId'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} OrderId + */ +OrderDropOffLocation.prototype['OrderId'] = undefined; + +/** + * @member {String} LocationName + */ +OrderDropOffLocation.prototype['LocationName'] = undefined; + +/** + * @member {String} LocationAreaName + */ +OrderDropOffLocation.prototype['LocationAreaName'] = undefined; + +/** + * @member {Number} LocationId + */ +OrderDropOffLocation.prototype['LocationId'] = undefined; + +/** + * @member {Number} LocationAreaId + */ +OrderDropOffLocation.prototype['LocationAreaId'] = undefined; + +/** + * @member {String} ExternalLocationId + */ +OrderDropOffLocation.prototype['ExternalLocationId'] = undefined; + + + + + + +export default OrderDropOffLocation; + diff --git a/src/model/OrderFulfillmentStatus.js b/src/model/OrderFulfillmentStatus.js new file mode 100644 index 00000000..df2854be --- /dev/null +++ b/src/model/OrderFulfillmentStatus.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderFulfillmentStatus model module. + * @module model/OrderFulfillmentStatus + * @version 1.0.0 + */ +class OrderFulfillmentStatus { + /** + * Constructs a new OrderFulfillmentStatus. + * Order Fulfillment Status Information + * @alias module:model/OrderFulfillmentStatus + */ + constructor() { + + OrderFulfillmentStatus.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderFulfillmentStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderFulfillmentStatus} obj Optional instance to populate. + * @return {module:model/OrderFulfillmentStatus} The populated OrderFulfillmentStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderFulfillmentStatus(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('StatusId')) { + obj['StatusId'] = ApiClient.convertToType(data['StatusId'], 'String'); + } + if (data.hasOwnProperty('StatusName')) { + obj['StatusName'] = ApiClient.convertToType(data['StatusName'], 'String'); + } + if (data.hasOwnProperty('Icon')) { + obj['Icon'] = ApiClient.convertToType(data['Icon'], 'String'); + } + } + return obj; + } + + +} + +/** + * Order Id + * @member {Number} OrderId + */ +OrderFulfillmentStatus.prototype['OrderId'] = undefined; + +/** + * Fulfillment Status Id + * @member {String} StatusId + */ +OrderFulfillmentStatus.prototype['StatusId'] = undefined; + +/** + * Fulfillment Status Name + * @member {String} StatusName + */ +OrderFulfillmentStatus.prototype['StatusName'] = undefined; + +/** + * Status Icon + * @member {String} Icon + */ +OrderFulfillmentStatus.prototype['Icon'] = undefined; + + + + + + +export default OrderFulfillmentStatus; + diff --git a/src/model/OrderFulfillmentStatusBase.js b/src/model/OrderFulfillmentStatusBase.js new file mode 100644 index 00000000..cc1b76a5 --- /dev/null +++ b/src/model/OrderFulfillmentStatusBase.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderFulfillmentStatusBase model module. + * @module model/OrderFulfillmentStatusBase + * @version 1.0.0 + */ +class OrderFulfillmentStatusBase { + /** + * Constructs a new OrderFulfillmentStatusBase. + * Fulfillment Status Information + * @alias module:model/OrderFulfillmentStatusBase + */ + constructor() { + + OrderFulfillmentStatusBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderFulfillmentStatusBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderFulfillmentStatusBase} obj Optional instance to populate. + * @return {module:model/OrderFulfillmentStatusBase} The populated OrderFulfillmentStatusBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderFulfillmentStatusBase(); + + if (data.hasOwnProperty('StatusId')) { + obj['StatusId'] = ApiClient.convertToType(data['StatusId'], 'String'); + } + if (data.hasOwnProperty('StatusName')) { + obj['StatusName'] = ApiClient.convertToType(data['StatusName'], 'String'); + } + if (data.hasOwnProperty('Icon')) { + obj['Icon'] = ApiClient.convertToType(data['Icon'], 'String'); + } + } + return obj; + } + + +} + +/** + * Fulfillment Status Id + * @member {String} StatusId + */ +OrderFulfillmentStatusBase.prototype['StatusId'] = undefined; + +/** + * Fulfillment Status Name + * @member {String} StatusName + */ +OrderFulfillmentStatusBase.prototype['StatusName'] = undefined; + +/** + * Status Icon + * @member {String} Icon + */ +OrderFulfillmentStatusBase.prototype['Icon'] = undefined; + + + + + + +export default OrderFulfillmentStatusBase; + diff --git a/src/model/OrderFulfillmentStatusUpdate.js b/src/model/OrderFulfillmentStatusUpdate.js new file mode 100644 index 00000000..a667f4ed --- /dev/null +++ b/src/model/OrderFulfillmentStatusUpdate.js @@ -0,0 +1,72 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderFulfillmentStatusUpdate model module. + * @module model/OrderFulfillmentStatusUpdate + * @version 1.0.0 + */ +class OrderFulfillmentStatusUpdate { + /** + * Constructs a new OrderFulfillmentStatusUpdate. + * @alias module:model/OrderFulfillmentStatusUpdate + */ + constructor() { + + OrderFulfillmentStatusUpdate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderFulfillmentStatusUpdate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderFulfillmentStatusUpdate} obj Optional instance to populate. + * @return {module:model/OrderFulfillmentStatusUpdate} The populated OrderFulfillmentStatusUpdate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderFulfillmentStatusUpdate(); + + if (data.hasOwnProperty('StatusId')) { + obj['StatusId'] = ApiClient.convertToType(data['StatusId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Fulfillment Status Id + * @member {String} StatusId + */ +OrderFulfillmentStatusUpdate.prototype['StatusId'] = undefined; + + + + + + +export default OrderFulfillmentStatusUpdate; + diff --git a/src/model/OrderFulfillmentStatusUpdatedEvent.js b/src/model/OrderFulfillmentStatusUpdatedEvent.js new file mode 100644 index 00000000..984af01d --- /dev/null +++ b/src/model/OrderFulfillmentStatusUpdatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderFulfillmentStatusUpdatedEvent model module. + * @module model/OrderFulfillmentStatusUpdatedEvent + * @version 1.0.0 + */ +class OrderFulfillmentStatusUpdatedEvent { + /** + * Constructs a new OrderFulfillmentStatusUpdatedEvent. + * Fulfillment status updated event + * @alias module:model/OrderFulfillmentStatusUpdatedEvent + */ + constructor() { + + OrderFulfillmentStatusUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderFulfillmentStatusUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderFulfillmentStatusUpdatedEvent} obj Optional instance to populate. + * @return {module:model/OrderFulfillmentStatusUpdatedEvent} The populated OrderFulfillmentStatusUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderFulfillmentStatusUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('StatusName')) { + obj['StatusName'] = ApiClient.convertToType(data['StatusName'], 'String'); + } + if (data.hasOwnProperty('StatusId')) { + obj['StatusId'] = ApiClient.convertToType(data['StatusId'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderFulfillmentStatusUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +OrderFulfillmentStatusUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderFulfillmentStatusUpdatedEvent.prototype['Description'] = undefined; + +/** + * Order Id + * @member {Number} OrderId + */ +OrderFulfillmentStatusUpdatedEvent.prototype['OrderId'] = undefined; + +/** + * Fulfillment status name + * @member {String} StatusName + */ +OrderFulfillmentStatusUpdatedEvent.prototype['StatusName'] = undefined; + +/** + * Fulfillment status ID + * @member {String} StatusId + */ +OrderFulfillmentStatusUpdatedEvent.prototype['StatusId'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderFulfillmentStatusUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderFulfillmentStatusUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderFulfillmentStatusUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderFulfillmentStatusUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderFulfillmentStatusUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderFulfillmentStatusUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderFulfillmentStatusUpdatedEvent; + diff --git a/src/model/OrderFulfillmentStatusWithConfigurationActions.js b/src/model/OrderFulfillmentStatusWithConfigurationActions.js new file mode 100644 index 00000000..378a8c40 --- /dev/null +++ b/src/model/OrderFulfillmentStatusWithConfigurationActions.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FulfillentStatusActionItem from './FulfillentStatusActionItem'; + +/** + * The OrderFulfillmentStatusWithConfigurationActions model module. + * @module model/OrderFulfillmentStatusWithConfigurationActions + * @version 1.0.0 + */ +class OrderFulfillmentStatusWithConfigurationActions { + /** + * Constructs a new OrderFulfillmentStatusWithConfigurationActions. + * Order Fulfillment status with configured next actions + * @alias module:model/OrderFulfillmentStatusWithConfigurationActions + */ + constructor() { + + OrderFulfillmentStatusWithConfigurationActions.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderFulfillmentStatusWithConfigurationActions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderFulfillmentStatusWithConfigurationActions} obj Optional instance to populate. + * @return {module:model/OrderFulfillmentStatusWithConfigurationActions} The populated OrderFulfillmentStatusWithConfigurationActions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderFulfillmentStatusWithConfigurationActions(); + + if (data.hasOwnProperty('DefaultNextStatus')) { + obj['DefaultNextStatus'] = ApiClient.convertToType(data['DefaultNextStatus'], 'String'); + } + if (data.hasOwnProperty('NextStatuses')) { + obj['NextStatuses'] = ApiClient.convertToType(data['NextStatuses'], [FulfillentStatusActionItem]); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('StatusId')) { + obj['StatusId'] = ApiClient.convertToType(data['StatusId'], 'String'); + } + if (data.hasOwnProperty('StatusName')) { + obj['StatusName'] = ApiClient.convertToType(data['StatusName'], 'String'); + } + if (data.hasOwnProperty('Icon')) { + obj['Icon'] = ApiClient.convertToType(data['Icon'], 'String'); + } + } + return obj; + } + + +} + +/** + * Default next status (id) + * @member {String} DefaultNextStatus + */ +OrderFulfillmentStatusWithConfigurationActions.prototype['DefaultNextStatus'] = undefined; + +/** + * Possible next statuses + * @member {Array.} NextStatuses + */ +OrderFulfillmentStatusWithConfigurationActions.prototype['NextStatuses'] = undefined; + +/** + * Order Id + * @member {Number} OrderId + */ +OrderFulfillmentStatusWithConfigurationActions.prototype['OrderId'] = undefined; + +/** + * Fulfillment Status Id + * @member {String} StatusId + */ +OrderFulfillmentStatusWithConfigurationActions.prototype['StatusId'] = undefined; + +/** + * Fulfillment Status Name + * @member {String} StatusName + */ +OrderFulfillmentStatusWithConfigurationActions.prototype['StatusName'] = undefined; + +/** + * Status Icon + * @member {String} Icon + */ +OrderFulfillmentStatusWithConfigurationActions.prototype['Icon'] = undefined; + + + + + + +export default OrderFulfillmentStatusWithConfigurationActions; + diff --git a/src/model/OrderItem.js b/src/model/OrderItem.js new file mode 100644 index 00000000..473a9e89 --- /dev/null +++ b/src/model/OrderItem.js @@ -0,0 +1,191 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderItemOption from './OrderItemOption'; + +/** + * The OrderItem model module. + * @module model/OrderItem + * @version 1.0.0 + */ +class OrderItem { + /** + * Constructs a new OrderItem. + * Order item + * @alias module:model/OrderItem + */ + constructor() { + + OrderItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderItem} obj Optional instance to populate. + * @return {module:model/OrderItem} The populated OrderItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderItem(); + + if (data.hasOwnProperty('OrderItemOptions')) { + obj['OrderItemOptions'] = ApiClient.convertToType(data['OrderItemOptions'], [OrderItemOption]); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], {'String': 'String'}); + } + if (data.hasOwnProperty('MenuItemPublicId')) { + obj['MenuItemPublicId'] = ApiClient.convertToType(data['MenuItemPublicId'], 'String'); + } + if (data.hasOwnProperty('MenuSectionName')) { + obj['MenuSectionName'] = ApiClient.convertToType(data['MenuSectionName'], 'String'); + } + if (data.hasOwnProperty('MenuSectionDisplayOrder')) { + obj['MenuSectionDisplayOrder'] = ApiClient.convertToType(data['MenuSectionDisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('TaxAmount')) { + obj['TaxAmount'] = ApiClient.convertToType(data['TaxAmount'], 'Number'); + } + if (data.hasOwnProperty('PriceIncludingOptionSetItems')) { + obj['PriceIncludingOptionSetItems'] = ApiClient.convertToType(data['PriceIncludingOptionSetItems'], 'Number'); + } + if (data.hasOwnProperty('MenuItemId')) { + obj['MenuItemId'] = ApiClient.convertToType(data['MenuItemId'], 'Number'); + } + if (data.hasOwnProperty('MenuItemDisplayOrder')) { + obj['MenuItemDisplayOrder'] = ApiClient.convertToType(data['MenuItemDisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('IsAvailable')) { + obj['IsAvailable'] = ApiClient.convertToType(data['IsAvailable'], 'Boolean'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Option list + * @member {Array.} OrderItemOptions + */ +OrderItem.prototype['OrderItemOptions'] = undefined; + +/** + * Metadata + * @member {Object.} Metadata + */ +OrderItem.prototype['Metadata'] = undefined; + +/** + * Public id of the Menu Item + * @member {String} MenuItemPublicId + */ +OrderItem.prototype['MenuItemPublicId'] = undefined; + +/** + * Menu section name + * @member {String} MenuSectionName + */ +OrderItem.prototype['MenuSectionName'] = undefined; + +/** + * Menu section display order + * @member {Number} MenuSectionDisplayOrder + */ +OrderItem.prototype['MenuSectionDisplayOrder'] = undefined; + +/** + * Name + * @member {String} Name + */ +OrderItem.prototype['Name'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderItem.prototype['Description'] = undefined; + +/** + * Price + * @member {Number} Price + */ +OrderItem.prototype['Price'] = undefined; + +/** + * Tax currency amount + * @member {Number} TaxAmount + */ +OrderItem.prototype['TaxAmount'] = undefined; + +/** + * Price including option set items + * @member {Number} PriceIncludingOptionSetItems + */ +OrderItem.prototype['PriceIncludingOptionSetItems'] = undefined; + +/** + * Menu item identifier + * @member {Number} MenuItemId + */ +OrderItem.prototype['MenuItemId'] = undefined; + +/** + * Menu item display order + * @member {Number} MenuItemDisplayOrder + */ +OrderItem.prototype['MenuItemDisplayOrder'] = undefined; + +/** + * Is available + * @member {Boolean} IsAvailable + */ +OrderItem.prototype['IsAvailable'] = undefined; + +/** + * Deposit return fee + * @member {Number} DepositReturnFee + */ +OrderItem.prototype['DepositReturnFee'] = undefined; + + + + + + +export default OrderItem; + diff --git a/src/model/OrderItemOption.js b/src/model/OrderItemOption.js new file mode 100644 index 00000000..d6a7b0ff --- /dev/null +++ b/src/model/OrderItemOption.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderItemOption model module. + * @module model/OrderItemOption + * @version 1.0.0 + */ +class OrderItemOption { + /** + * Constructs a new OrderItemOption. + * Order item option + * @alias module:model/OrderItemOption + */ + constructor() { + + OrderItemOption.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderItemOption from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderItemOption} obj Optional instance to populate. + * @return {module:model/OrderItemOption} The populated OrderItemOption instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderItemOption(); + + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], {'String': 'String'}); + } + if (data.hasOwnProperty('MenuItemOptionPublicId')) { + obj['MenuItemOptionPublicId'] = ApiClient.convertToType(data['MenuItemOptionPublicId'], 'String'); + } + if (data.hasOwnProperty('MenuItemOptionId')) { + obj['MenuItemOptionId'] = ApiClient.convertToType(data['MenuItemOptionId'], 'Number'); + } + if (data.hasOwnProperty('IsMasterOptionSetItem')) { + obj['IsMasterOptionSetItem'] = ApiClient.convertToType(data['IsMasterOptionSetItem'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('TaxAmount')) { + obj['TaxAmount'] = ApiClient.convertToType(data['TaxAmount'], 'Number'); + } + if (data.hasOwnProperty('MenuItemOptionDisplayOrder')) { + obj['MenuItemOptionDisplayOrder'] = ApiClient.convertToType(data['MenuItemOptionDisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('MenuItemOptionSetDisplayOrder')) { + obj['MenuItemOptionSetDisplayOrder'] = ApiClient.convertToType(data['MenuItemOptionSetDisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Metadata + * @member {Object.} Metadata + */ +OrderItemOption.prototype['Metadata'] = undefined; + +/** + * Public id of the Menu Item Option + * @member {String} MenuItemOptionPublicId + */ +OrderItemOption.prototype['MenuItemOptionPublicId'] = undefined; + +/** + * Menu item option identifier + * @member {Number} MenuItemOptionId + */ +OrderItemOption.prototype['MenuItemOptionId'] = undefined; + +/** + * Is master option set item + * @member {Boolean} IsMasterOptionSetItem + */ +OrderItemOption.prototype['IsMasterOptionSetItem'] = undefined; + +/** + * Name + * @member {String} Name + */ +OrderItemOption.prototype['Name'] = undefined; + +/** + * Price + * @member {Number} Price + */ +OrderItemOption.prototype['Price'] = undefined; + +/** + * Tax currency amount + * @member {Number} TaxAmount + */ +OrderItemOption.prototype['TaxAmount'] = undefined; + +/** + * Menu item option display order + * @member {Number} MenuItemOptionDisplayOrder + */ +OrderItemOption.prototype['MenuItemOptionDisplayOrder'] = undefined; + +/** + * Menu item option set display order + * @member {Number} MenuItemOptionSetDisplayOrder + */ +OrderItemOption.prototype['MenuItemOptionSetDisplayOrder'] = undefined; + +/** + * Deposit return fee + * @member {Number} DepositReturnFee + */ +OrderItemOption.prototype['DepositReturnFee'] = undefined; + + + + + + +export default OrderItemOption; + diff --git a/src/model/OrderLeadTimes.js b/src/model/OrderLeadTimes.js new file mode 100644 index 00000000..b1bf910a --- /dev/null +++ b/src/model/OrderLeadTimes.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderLeadTimes model module. + * @module model/OrderLeadTimes + * @version 1.0.0 + */ +class OrderLeadTimes { + /** + * Constructs a new OrderLeadTimes. + * 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. + * @alias module:model/OrderLeadTimes + */ + constructor() { + + OrderLeadTimes.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderLeadTimes from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderLeadTimes} obj Optional instance to populate. + * @return {module:model/OrderLeadTimes} The populated OrderLeadTimes instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderLeadTimes(); + + if (data.hasOwnProperty('LeadTimeMinutes')) { + obj['LeadTimeMinutes'] = ApiClient.convertToType(data['LeadTimeMinutes'], {'String': 'Number'}); + } + } + return obj; + } + + +} + +/** + * 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. + * @member {Object.} LeadTimeMinutes + */ +OrderLeadTimes.prototype['LeadTimeMinutes'] = undefined; + + + + + + +export default OrderLeadTimes; + diff --git a/src/model/OrderList.js b/src/model/OrderList.js new file mode 100644 index 00000000..d58358f8 --- /dev/null +++ b/src/model/OrderList.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderReference from './OrderReference'; + +/** + * The OrderList model module. + * @module model/OrderList + * @version 1.0.0 + */ +class OrderList { + /** + * Constructs a new OrderList. + * A list of orders. + * @alias module:model/OrderList + */ + constructor() { + + OrderList.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderList} obj Optional instance to populate. + * @return {module:model/OrderList} The populated OrderList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderList(); + + if (data.hasOwnProperty('Orders')) { + obj['Orders'] = ApiClient.convertToType(data['Orders'], [OrderReference]); + } + } + return obj; + } + + +} + +/** + * A list of orders. + * @member {Array.} Orders + */ +OrderList.prototype['Orders'] = undefined; + + + + + + +export default OrderList; + diff --git a/src/model/OrderPaymentInformation.js b/src/model/OrderPaymentInformation.js new file mode 100644 index 00000000..0680823e --- /dev/null +++ b/src/model/OrderPaymentInformation.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderPaymentInformation model module. + * @module model/OrderPaymentInformation + * @version 1.0.0 + */ +class OrderPaymentInformation { + /** + * Constructs a new OrderPaymentInformation. + * Order Payment Information + * @alias module:model/OrderPaymentInformation + */ + constructor() { + + OrderPaymentInformation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderPaymentInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderPaymentInformation} obj Optional instance to populate. + * @return {module:model/OrderPaymentInformation} The populated OrderPaymentInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderPaymentInformation(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('PaymentRefundable')) { + obj['PaymentRefundable'] = ApiClient.convertToType(data['PaymentRefundable'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * ID of the Order + * @member {Number} OrderId + */ +OrderPaymentInformation.prototype['OrderId'] = undefined; + +/** + * Signifies if the payment is refundable + * @member {Boolean} PaymentRefundable + */ +OrderPaymentInformation.prototype['PaymentRefundable'] = undefined; + + + + + + +export default OrderPaymentInformation; + diff --git a/src/model/OrderRatingUpdatedEvent.js b/src/model/OrderRatingUpdatedEvent.js new file mode 100644 index 00000000..3b8b6090 --- /dev/null +++ b/src/model/OrderRatingUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The OrderRatingUpdatedEvent model module. + * @module model/OrderRatingUpdatedEvent + * @version 1.0.0 + */ +class OrderRatingUpdatedEvent { + /** + * Constructs a new OrderRatingUpdatedEvent. + * Order Rating Update Event + * @alias module:model/OrderRatingUpdatedEvent + */ + constructor() { + + OrderRatingUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderRatingUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderRatingUpdatedEvent} obj Optional instance to populate. + * @return {module:model/OrderRatingUpdatedEvent} The populated OrderRatingUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderRatingUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Rating')) { + obj['Rating'] = ApiClient.convertToType(data['Rating'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderRatingUpdatedEvent.prototype['EventName'] = undefined; + +/** + * New User Rating + * @member {Number} Rating + */ +OrderRatingUpdatedEvent.prototype['Rating'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderRatingUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderRatingUpdatedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderRatingUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderRatingUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderRatingUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderRatingUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderRatingUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderRatingUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderRatingUpdatedEvent; + diff --git a/src/model/OrderReference.js b/src/model/OrderReference.js new file mode 100644 index 00000000..162610b6 --- /dev/null +++ b/src/model/OrderReference.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderReference model module. + * @module model/OrderReference + * @version 1.0.0 + */ +class OrderReference { + /** + * Constructs a new OrderReference. + * A reference to an order. + * @alias module:model/OrderReference + */ + constructor() { + + OrderReference.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderReference} obj Optional instance to populate. + * @return {module:model/OrderReference} The populated OrderReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderReference(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The ID of the order. + * @member {Number} OrderId + */ +OrderReference.prototype['OrderId'] = undefined; + + + + + + +export default OrderReference; + diff --git a/src/model/OrderRefundedEvent.js b/src/model/OrderRefundedEvent.js new file mode 100644 index 00000000..df4ba25c --- /dev/null +++ b/src/model/OrderRefundedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; +import UserEventInfo from './UserEventInfo'; + +/** + * The OrderRefundedEvent model module. + * @module model/OrderRefundedEvent + * @version 1.0.0 + */ +class OrderRefundedEvent { + /** + * Constructs a new OrderRefundedEvent. + * Order Refunded Event + * @alias module:model/OrderRefundedEvent + */ + constructor() { + + OrderRefundedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderRefundedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderRefundedEvent} obj Optional instance to populate. + * @return {module:model/OrderRefundedEvent} The populated OrderRefundedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderRefundedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('RefundedAmount')) { + obj['RefundedAmount'] = ApiClient.convertToType(data['RefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderRefundedEvent.prototype['EventName'] = undefined; + +/** + * The amount refunded + * @member {Number} RefundedAmount + */ +OrderRefundedEvent.prototype['RefundedAmount'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderRefundedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +OrderRefundedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderRefundedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderRefundedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderRefundedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderRefundedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderRefundedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderRefundedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderRefundedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderRefundedEvent; + diff --git a/src/model/OrderRejectedEvent.js b/src/model/OrderRejectedEvent.js new file mode 100644 index 00000000..599071fc --- /dev/null +++ b/src/model/OrderRejectedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; +import UserEventInfo from './UserEventInfo'; + +/** + * The OrderRejectedEvent model module. + * @module model/OrderRejectedEvent + * @version 1.0.0 + */ +class OrderRejectedEvent { + /** + * Constructs a new OrderRejectedEvent. + * Order Rejected Event + * @alias module:model/OrderRejectedEvent + */ + constructor() { + + OrderRejectedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderRejectedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderRejectedEvent} obj Optional instance to populate. + * @return {module:model/OrderRejectedEvent} The populated OrderRejectedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderRejectedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('OrderRejectedTime')) { + obj['OrderRejectedTime'] = ApiClient.convertToType(data['OrderRejectedTime'], 'Date'); + } + if (data.hasOwnProperty('Reason')) { + obj['Reason'] = ApiClient.convertToType(data['Reason'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderRejectedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderRejectedEvent.prototype['Description'] = undefined; + +/** + * Order Rejected Time + * @member {Date} OrderRejectedTime + */ +OrderRejectedEvent.prototype['OrderRejectedTime'] = undefined; + +/** + * Reason for Rejection + * @member {String} Reason + */ +OrderRejectedEvent.prototype['Reason'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +OrderRejectedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderRejectedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderRejectedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderRejectedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderRejectedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderRejectedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderRejectedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderRejectedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderRejectedEvent; + diff --git a/src/model/OrderSummary.js b/src/model/OrderSummary.js new file mode 100644 index 00000000..8a9c4ae7 --- /dev/null +++ b/src/model/OrderSummary.js @@ -0,0 +1,1396 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Channel from './Channel'; +import DeliveryLocation from './DeliveryLocation'; +import OrderBatchSummary from './OrderBatchSummary'; +import OrderDropOffLocation from './OrderDropOffLocation'; + +/** + * The OrderSummary model module. + * @module model/OrderSummary + * @version 1.0.0 + */ +class OrderSummary { + /** + * Constructs a new OrderSummary. + * Order summary + * @alias module:model/OrderSummary + */ + constructor() { + + OrderSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderSummary} obj Optional instance to populate. + * @return {module:model/OrderSummary} The populated OrderSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderSummary(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('DeliveryType')) { + obj['DeliveryType'] = ApiClient.convertToType(data['DeliveryType'], 'String'); + } + if (data.hasOwnProperty('PickupLocationType')) { + obj['PickupLocationType'] = ApiClient.convertToType(data['PickupLocationType'], 'String'); + } + if (data.hasOwnProperty('TableServiceCatagory')) { + obj['TableServiceCatagory'] = ApiClient.convertToType(data['TableServiceCatagory'], 'String'); + } + if (data.hasOwnProperty('OrderState')) { + obj['OrderState'] = ApiClient.convertToType(data['OrderState'], 'String'); + } + if (data.hasOwnProperty('RequestedForTime')) { + obj['RequestedForTime'] = ApiClient.convertToType(data['RequestedForTime'], 'Date'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('StoreIanaTimeZone')) { + obj['StoreIanaTimeZone'] = ApiClient.convertToType(data['StoreIanaTimeZone'], 'String'); + } + if (data.hasOwnProperty('CustomerName')) { + obj['CustomerName'] = ApiClient.convertToType(data['CustomerName'], 'String'); + } + if (data.hasOwnProperty('CustomerPhoneNumber')) { + obj['CustomerPhoneNumber'] = ApiClient.convertToType(data['CustomerPhoneNumber'], 'String'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('RefundedAmount')) { + obj['RefundedAmount'] = ApiClient.convertToType(data['RefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('PaymentAccountType')) { + obj['PaymentAccountType'] = ApiClient.convertToType(data['PaymentAccountType'], 'String'); + } + if (data.hasOwnProperty('PaymentStatus')) { + obj['PaymentStatus'] = ApiClient.convertToType(data['PaymentStatus'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('AppType')) { + obj['AppType'] = ApiClient.convertToType(data['AppType'], 'String'); + } + if (data.hasOwnProperty('LocalOrderId')) { + obj['LocalOrderId'] = ApiClient.convertToType(data['LocalOrderId'], 'String'); + } + if (data.hasOwnProperty('DropOffLocationId')) { + obj['DropOffLocationId'] = ApiClient.convertToType(data['DropOffLocationId'], 'Number'); + } + if (data.hasOwnProperty('DropOffLocation')) { + obj['DropOffLocation'] = ApiClient.convertToType(data['DropOffLocation'], 'String'); + } + if (data.hasOwnProperty('AcceptedFor')) { + obj['AcceptedFor'] = ApiClient.convertToType(data['AcceptedFor'], 'Date'); + } + if (data.hasOwnProperty('Channel')) { + obj['Channel'] = Channel.constructFromObject(data['Channel']); + } + if (data.hasOwnProperty('InFraudZone')) { + obj['InFraudZone'] = ApiClient.convertToType(data['InFraudZone'], 'Boolean'); + } + if (data.hasOwnProperty('UnusualHighValueOrder')) { + obj['UnusualHighValueOrder'] = ApiClient.convertToType(data['UnusualHighValueOrder'], 'Boolean'); + } + if (data.hasOwnProperty('ChannelOrderId')) { + obj['ChannelOrderId'] = ApiClient.convertToType(data['ChannelOrderId'], 'String'); + } + if (data.hasOwnProperty('ChannelOrderDisplayId')) { + obj['ChannelOrderDisplayId'] = ApiClient.convertToType(data['ChannelOrderDisplayId'], 'String'); + } + if (data.hasOwnProperty('OrderDropOffLocation')) { + obj['OrderDropOffLocation'] = OrderDropOffLocation.constructFromObject(data['OrderDropOffLocation']); + } + if (data.hasOwnProperty('OrderBatchInfo')) { + obj['OrderBatchInfo'] = OrderBatchSummary.constructFromObject(data['OrderBatchInfo']); + } + if (data.hasOwnProperty('DeliveryLocation')) { + obj['DeliveryLocation'] = DeliveryLocation.constructFromObject(data['DeliveryLocation']); + } + } + return obj; + } + + +} + +/** + * Order identifier + * @member {Number} OrderId + */ +OrderSummary.prototype['OrderId'] = undefined; + +/** + * Delivery type + * @member {module:model/OrderSummary.DeliveryTypeEnum} DeliveryType + */ +OrderSummary.prototype['DeliveryType'] = undefined; + +/** + * Pickup location type + * @member {module:model/OrderSummary.PickupLocationTypeEnum} PickupLocationType + */ +OrderSummary.prototype['PickupLocationType'] = undefined; + +/** + * Table service category + * @member {module:model/OrderSummary.TableServiceCatagoryEnum} TableServiceCatagory + */ +OrderSummary.prototype['TableServiceCatagory'] = undefined; + +/** + * Order state + * @member {module:model/OrderSummary.OrderStateEnum} OrderState + */ +OrderSummary.prototype['OrderState'] = undefined; + +/** + * Order requested for + * @member {Date} RequestedForTime + */ +OrderSummary.prototype['RequestedForTime'] = undefined; + +/** + * Name of the store + * @member {String} StoreName + */ +OrderSummary.prototype['StoreName'] = undefined; + +/** + * Store IANA time zone + * @member {String} StoreIanaTimeZone + */ +OrderSummary.prototype['StoreIanaTimeZone'] = undefined; + +/** + * Name of the customer + * @member {String} CustomerName + */ +OrderSummary.prototype['CustomerName'] = undefined; + +/** + * Phone number of customer + * @member {String} CustomerPhoneNumber + */ +OrderSummary.prototype['CustomerPhoneNumber'] = undefined; + +/** + * This is the sum of the OrderItemsAmount, DeliveryAmount, TipAmount and Voucher.Amount (which is usually negative) and OnlineOrderingFee It does include the OnlineOrderingFee + * @member {Number} Amount + */ +OrderSummary.prototype['Amount'] = undefined; + +/** + * Refunded amount + * @member {Number} RefundedAmount + */ +OrderSummary.prototype['RefundedAmount'] = undefined; + +/** + * Payment Account + * @member {module:model/OrderSummary.PaymentAccountTypeEnum} PaymentAccountType + */ +OrderSummary.prototype['PaymentAccountType'] = undefined; + +/** + * Status of the payment + * @member {module:model/OrderSummary.PaymentStatusEnum} PaymentStatus + */ +OrderSummary.prototype['PaymentStatus'] = undefined; + +/** + * Currency of payment + * @member {module:model/OrderSummary.CurrencyEnum} Currency + */ +OrderSummary.prototype['Currency'] = undefined; + +/** + * Type of app end user is on + * @member {module:model/OrderSummary.AppTypeEnum} AppType + */ +OrderSummary.prototype['AppType'] = undefined; + +/** + * Local order Id. This is used for displaying a \"shorter\" order ID for customers (eg. Kiosk orders) + * @member {String} LocalOrderId + */ +OrderSummary.prototype['LocalOrderId'] = undefined; + +/** + * id of the collection/drop off location + * @member {Number} DropOffLocationId + */ +OrderSummary.prototype['DropOffLocationId'] = undefined; + +/** + * Represents table service drop off location + * @member {String} DropOffLocation + */ +OrderSummary.prototype['DropOffLocation'] = undefined; + +/** + * Time store has accepted the order for + * @member {Date} AcceptedFor + */ +OrderSummary.prototype['AcceptedFor'] = undefined; + +/** + * @member {module:model/Channel} Channel + */ +OrderSummary.prototype['Channel'] = undefined; + +/** + * Was order made within a fraud zone + * @member {Boolean} InFraudZone + */ +OrderSummary.prototype['InFraudZone'] = undefined; + +/** + * Is order of unusually high value + * @member {Boolean} UnusualHighValueOrder + */ +OrderSummary.prototype['UnusualHighValueOrder'] = undefined; + +/** + * ChannelOrderId from external channel + * @member {String} ChannelOrderId + */ +OrderSummary.prototype['ChannelOrderId'] = undefined; + +/** + * ChannelOrderDisplayId from external channel + * @member {String} ChannelOrderDisplayId + */ +OrderSummary.prototype['ChannelOrderDisplayId'] = undefined; + +/** + * @member {module:model/OrderDropOffLocation} OrderDropOffLocation + */ +OrderSummary.prototype['OrderDropOffLocation'] = undefined; + +/** + * @member {module:model/OrderBatchSummary} OrderBatchInfo + */ +OrderSummary.prototype['OrderBatchInfo'] = undefined; + +/** + * @member {module:model/DeliveryLocation} DeliveryLocation + */ +OrderSummary.prototype['DeliveryLocation'] = undefined; + + + + + +/** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ +OrderSummary['DeliveryTypeEnum'] = { + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Pickup" + * @const + */ + "Pickup": "Pickup" +}; + + +/** + * Allowed values for the PickupLocationType property. + * @enum {String} + * @readonly + */ +OrderSummary['PickupLocationTypeEnum'] = { + + /** + * value: "TakeOut" + * @const + */ + "TakeOut": "TakeOut", + + /** + * value: "TableService" + * @const + */ + "TableService": "TableService", + + /** + * value: "DineIn" + * @const + */ + "DineIn": "DineIn" +}; + + +/** + * Allowed values for the TableServiceCatagory property. + * @enum {String} + * @readonly + */ +OrderSummary['TableServiceCatagoryEnum'] = { + + /** + * value: "Generic" + * @const + */ + "Generic": "Generic", + + /** + * value: "Villa" + * @const + */ + "Villa": "Villa", + + /** + * value: "House" + * @const + */ + "House": "House", + + /** + * value: "Room" + * @const + */ + "Room": "Room", + + /** + * value: "Area" + * @const + */ + "Area": "Area", + + /** + * value: "Table" + * @const + */ + "Table": "Table", + + /** + * value: "ParkingBay" + * @const + */ + "ParkingBay": "ParkingBay", + + /** + * value: "Gate" + * @const + */ + "Gate": "Gate", + + /** + * value: "DriveThrough" + * @const + */ + "DriveThrough": "DriveThrough", + + /** + * value: "Team" + * @const + */ + "Team": "Team" +}; + + +/** + * Allowed values for the OrderState property. + * @enum {String} + * @readonly + */ +OrderSummary['OrderStateEnum'] = { + + /** + * value: "Created" + * @const + */ + "Created": "Created", + + /** + * value: "PlacedCanBeCancelled" + * @const + */ + "PlacedCanBeCancelled": "PlacedCanBeCancelled", + + /** + * value: "ReadyToProcess" + * @const + */ + "ReadyToProcess": "ReadyToProcess", + + /** + * value: "AcceptedByRestaurant" + * @const + */ + "AcceptedByRestaurant": "AcceptedByRestaurant", + + /** + * value: "Dispatched" + * @const + */ + "Dispatched": "Dispatched", + + /** + * value: "Delivered" + * @const + */ + "Delivered": "Delivered", + + /** + * value: "Cancelled" + * @const + */ + "Cancelled": "Cancelled", + + /** + * value: "ManualReview" + * @const + */ + "ManualReview": "ManualReview", + + /** + * value: "RejectedByStore" + * @const + */ + "RejectedByStore": "RejectedByStore", + + /** + * value: "RejectedByFlipdish" + * @const + */ + "RejectedByFlipdish": "RejectedByFlipdish", + + /** + * value: "RejectedAutomatically" + * @const + */ + "RejectedAutomatically": "RejectedAutomatically", + + /** + * value: "RejectedAfterBeingAccepted" + * @const + */ + "RejectedAfterBeingAccepted": "RejectedAfterBeingAccepted", + + /** + * value: "AcceptedAndRefunded" + * @const + */ + "AcceptedAndRefunded": "AcceptedAndRefunded", + + /** + * value: "PendingPayment" + * @const + */ + "PendingPayment": "PendingPayment" +}; + + +/** + * Allowed values for the PaymentAccountType property. + * @enum {String} + * @readonly + */ +OrderSummary['PaymentAccountTypeEnum'] = { + + /** + * value: "Card" + * @const + */ + "Card": "Card", + + /** + * value: "Cash" + * @const + */ + "Cash": "Cash", + + /** + * value: "Ideal" + * @const + */ + "Ideal": "Ideal", + + /** + * value: "Bancontact" + * @const + */ + "Bancontact": "Bancontact", + + /** + * value: "Giropay" + * @const + */ + "Giropay": "Giropay", + + /** + * value: "Eps" + * @const + */ + "Eps": "Eps", + + /** + * value: "Emv" + * @const + */ + "Emv": "Emv", + + /** + * value: "PayPal" + * @const + */ + "PayPal": "PayPal", + + /** + * value: "PayGreen" + * @const + */ + "PayGreen": "PayGreen", + + /** + * value: "GoogleWalletToken" + * @const + */ + "GoogleWalletToken": "GoogleWalletToken" +}; + + +/** + * Allowed values for the PaymentStatus property. + * @enum {String} + * @readonly + */ +OrderSummary['PaymentStatusEnum'] = { + + /** + * value: "Paid" + * @const + */ + "Paid": "Paid", + + /** + * value: "Unpaid" + * @const + */ + "Unpaid": "Unpaid", + + /** + * value: "Refunded" + * @const + */ + "Refunded": "Refunded", + + /** + * value: "PartiallyRefunded" + * @const + */ + "PartiallyRefunded": "PartiallyRefunded", + + /** + * value: "Disputed" + * @const + */ + "Disputed": "Disputed" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +OrderSummary['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the AppType property. + * @enum {String} + * @readonly + */ +OrderSummary['AppTypeEnum'] = { + + /** + * value: "Unknown" + * @const + */ + "Unknown": "Unknown", + + /** + * value: "Ios" + * @const + */ + "Ios": "Ios", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "TelephoneCall" + * @const + */ + "TelephoneCall": "TelephoneCall", + + /** + * value: "Sms" + * @const + */ + "Sms": "Sms", + + /** + * value: "PwaAndroid" + * @const + */ + "PwaAndroid": "PwaAndroid", + + /** + * value: "PwaIos" + * @const + */ + "PwaIos": "PwaIos", + + /** + * value: "Google" + * @const + */ + "Google": "Google" +}; + + + +export default OrderSummary; + diff --git a/src/model/OrderTipUpdatedEvent.js b/src/model/OrderTipUpdatedEvent.js new file mode 100644 index 00000000..0519b56a --- /dev/null +++ b/src/model/OrderTipUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The OrderTipUpdatedEvent model module. + * @module model/OrderTipUpdatedEvent + * @version 1.0.0 + */ +class OrderTipUpdatedEvent { + /** + * Constructs a new OrderTipUpdatedEvent. + * Order Tip Update Event + * @alias module:model/OrderTipUpdatedEvent + */ + constructor() { + + OrderTipUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderTipUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderTipUpdatedEvent} obj Optional instance to populate. + * @return {module:model/OrderTipUpdatedEvent} The populated OrderTipUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderTipUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('TipAmount')) { + obj['TipAmount'] = ApiClient.convertToType(data['TipAmount'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Order')) { + obj['Order'] = Order.constructFromObject(data['Order']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +OrderTipUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Tip Amount + * @member {Number} TipAmount + */ +OrderTipUpdatedEvent.prototype['TipAmount'] = undefined; + +/** + * Description + * @member {String} Description + */ +OrderTipUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Order} Order + */ +OrderTipUpdatedEvent.prototype['Order'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +OrderTipUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +OrderTipUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +OrderTipUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +OrderTipUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +OrderTipUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +OrderTipUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default OrderTipUpdatedEvent; + diff --git a/src/model/OrderVoucherSummary.js b/src/model/OrderVoucherSummary.js new file mode 100644 index 00000000..f9fe9f44 --- /dev/null +++ b/src/model/OrderVoucherSummary.js @@ -0,0 +1,217 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OrderVoucherSummary model module. + * @module model/OrderVoucherSummary + * @version 1.0.0 + */ +class OrderVoucherSummary { + /** + * Constructs a new OrderVoucherSummary. + * Voucher summary + * @alias module:model/OrderVoucherSummary + */ + constructor() { + + OrderVoucherSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OrderVoucherSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OrderVoucherSummary} obj Optional instance to populate. + * @return {module:model/OrderVoucherSummary} The populated OrderVoucherSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrderVoucherSummary(); + + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('SubType')) { + obj['SubType'] = ApiClient.convertToType(data['SubType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Voucher ID + * @member {Number} VoucherId + */ +OrderVoucherSummary.prototype['VoucherId'] = undefined; + +/** + * Voucher name + * @member {String} Name + */ +OrderVoucherSummary.prototype['Name'] = undefined; + +/** + * Voucher description + * @member {String} Description + */ +OrderVoucherSummary.prototype['Description'] = undefined; + +/** + * Voucher code + * @member {String} Code + */ +OrderVoucherSummary.prototype['Code'] = undefined; + +/** + * Voucher amount + * @member {Number} Amount + */ +OrderVoucherSummary.prototype['Amount'] = undefined; + +/** + * Voucher type + * @member {module:model/OrderVoucherSummary.TypeEnum} Type + */ +OrderVoucherSummary.prototype['Type'] = undefined; + +/** + * Voucher sub type + * @member {module:model/OrderVoucherSummary.SubTypeEnum} SubType + */ +OrderVoucherSummary.prototype['SubType'] = undefined; + + + + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +OrderVoucherSummary['TypeEnum'] = { + + /** + * value: "PercentageDiscount" + * @const + */ + "PercentageDiscount": "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + "LumpDiscount": "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + "AddItem": "AddItem", + + /** + * value: "CreditNote" + * @const + */ + "CreditNote": "CreditNote", + + /** + * value: "FreeDelivery" + * @const + */ + "FreeDelivery": "FreeDelivery" +}; + + +/** + * Allowed values for the SubType property. + * @enum {String} + * @readonly + */ +OrderVoucherSummary['SubTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "SignUp" + * @const + */ + "SignUp": "SignUp", + + /** + * value: "Loyalty" + * @const + */ + "Loyalty": "Loyalty", + + /** + * value: "Loyalty25" + * @const + */ + "Loyalty25": "Loyalty25", + + /** + * value: "Retention" + * @const + */ + "Retention": "Retention", + + /** + * value: "SecondaryRetention" + * @const + */ + "SecondaryRetention": "SecondaryRetention", + + /** + * value: "Custom" + * @const + */ + "Custom": "Custom" +}; + + + +export default OrderVoucherSummary; + diff --git a/src/model/OtherChargesDetails.js b/src/model/OtherChargesDetails.js new file mode 100644 index 00000000..dfacd1c4 --- /dev/null +++ b/src/model/OtherChargesDetails.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OtherChargesDetails model module. + * @module model/OtherChargesDetails + * @version 1.0.0 + */ +class OtherChargesDetails { + /** + * Constructs a new OtherChargesDetails. + * Breakdown of other charges + * @alias module:model/OtherChargesDetails + */ + constructor() { + + OtherChargesDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OtherChargesDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OtherChargesDetails} obj Optional instance to populate. + * @return {module:model/OtherChargesDetails} The populated OtherChargesDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OtherChargesDetails(); + + if (data.hasOwnProperty('TotalOtherCharges')) { + obj['TotalOtherCharges'] = ApiClient.convertToType(data['TotalOtherCharges'], 'Number'); + } + if (data.hasOwnProperty('ChargesCount')) { + obj['ChargesCount'] = ApiClient.convertToType(data['ChargesCount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Total amount of other charges + * @member {Number} TotalOtherCharges + */ +OtherChargesDetails.prototype['TotalOtherCharges'] = undefined; + +/** + * Number of other charges + * @member {Number} ChargesCount + */ +OtherChargesDetails.prototype['ChargesCount'] = undefined; + + + + + + +export default OtherChargesDetails; + diff --git a/src/model/OwnerEntityConfiguration.js b/src/model/OwnerEntityConfiguration.js new file mode 100644 index 00000000..9fc7fc6d --- /dev/null +++ b/src/model/OwnerEntityConfiguration.js @@ -0,0 +1,130 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The OwnerEntityConfiguration model module. + * @module model/OwnerEntityConfiguration + * @version 1.0.0 + */ +class OwnerEntityConfiguration { + /** + * Constructs a new OwnerEntityConfiguration. + * OwnerEntity information to configure its {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition}s + * @alias module:model/OwnerEntityConfiguration + */ + constructor() { + + OwnerEntityConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OwnerEntityConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OwnerEntityConfiguration} obj Optional instance to populate. + * @return {module:model/OwnerEntityConfiguration} The populated OwnerEntityConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OwnerEntityConfiguration(); + + if (data.hasOwnProperty('OwnerEntity')) { + obj['OwnerEntity'] = ApiClient.convertToType(data['OwnerEntity'], 'String'); + } + if (data.hasOwnProperty('AllowedBehaviors')) { + obj['AllowedBehaviors'] = ApiClient.convertToType(data['AllowedBehaviors'], ['String']); + } + } + return obj; + } + + +} + +/** + * Owner Entity + * @member {module:model/OwnerEntityConfiguration.OwnerEntityEnum} OwnerEntity + */ +OwnerEntityConfiguration.prototype['OwnerEntity'] = undefined; + +/** + * + * @member {Array.} AllowedBehaviors + */ +OwnerEntityConfiguration.prototype['AllowedBehaviors'] = undefined; + + + + + +/** + * Allowed values for the OwnerEntity property. + * @enum {String} + * @readonly + */ +OwnerEntityConfiguration['OwnerEntityEnum'] = { + + /** + * value: "CatalogItem" + * @const + */ + "CatalogItem": "CatalogItem", + + /** + * value: "CatalogGroup" + * @const + */ + "CatalogGroup": "CatalogGroup", + + /** + * value: "Menu" + * @const + */ + "Menu": "Menu" +}; + + +/** + * Allowed values for the AllowedBehaviors property. + * @enum {String} + * @readonly + */ +OwnerEntityConfiguration['AllowedBehaviorsEnum'] = { + + /** + * value: "SendToOrder" + * @const + */ + "SendToOrder": "SendToOrder", + + /** + * value: "SendToMenu" + * @const + */ + "SendToMenu": "SendToMenu" +}; + + + +export default OwnerEntityConfiguration; + diff --git a/src/model/OwnerEntityConfigurations.js b/src/model/OwnerEntityConfigurations.js new file mode 100644 index 00000000..a8037f49 --- /dev/null +++ b/src/model/OwnerEntityConfigurations.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OwnerEntityConfiguration from './OwnerEntityConfiguration'; + +/** + * The OwnerEntityConfigurations model module. + * @module model/OwnerEntityConfigurations + * @version 1.0.0 + */ +class OwnerEntityConfigurations { + /** + * Constructs a new OwnerEntityConfigurations. + * Owner Entity Configurations + * @alias module:model/OwnerEntityConfigurations + */ + constructor() { + + OwnerEntityConfigurations.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a OwnerEntityConfigurations from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OwnerEntityConfigurations} obj Optional instance to populate. + * @return {module:model/OwnerEntityConfigurations} The populated OwnerEntityConfigurations instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OwnerEntityConfigurations(); + + if (data.hasOwnProperty('Configurations')) { + obj['Configurations'] = ApiClient.convertToType(data['Configurations'], [OwnerEntityConfiguration]); + } + } + return obj; + } + + +} + +/** + * Owner Entity Configuration + * @member {Array.} Configurations + */ +OwnerEntityConfigurations.prototype['Configurations'] = undefined; + + + + + + +export default OwnerEntityConfigurations; + diff --git a/src/model/PasswordResetModel.js b/src/model/PasswordResetModel.js new file mode 100644 index 00000000..6799a499 --- /dev/null +++ b/src/model/PasswordResetModel.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PasswordResetModel model module. + * @module model/PasswordResetModel + * @version 1.0.0 + */ +class PasswordResetModel { + /** + * Constructs a new PasswordResetModel. + * Password reset model + * @alias module:model/PasswordResetModel + * @param Password {String} Password + * @param PasswordConfirmation {String} Password confirmation + */ + constructor(Password, PasswordConfirmation) { + + PasswordResetModel.initialize(this, Password, PasswordConfirmation); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Password, PasswordConfirmation) { + obj['Password'] = Password; + obj['PasswordConfirmation'] = PasswordConfirmation; + } + + /** + * Constructs a PasswordResetModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PasswordResetModel} obj Optional instance to populate. + * @return {module:model/PasswordResetModel} The populated PasswordResetModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PasswordResetModel(); + + if (data.hasOwnProperty('TokenId')) { + obj['TokenId'] = ApiClient.convertToType(data['TokenId'], 'String'); + } + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('Password')) { + obj['Password'] = ApiClient.convertToType(data['Password'], 'String'); + } + if (data.hasOwnProperty('PasswordConfirmation')) { + obj['PasswordConfirmation'] = ApiClient.convertToType(data['PasswordConfirmation'], 'String'); + } + if (data.hasOwnProperty('Token')) { + obj['Token'] = ApiClient.convertToType(data['Token'], 'String'); + } + } + return obj; + } + + +} + +/** + * Token Id + * @member {String} TokenId + */ +PasswordResetModel.prototype['TokenId'] = undefined; + +/** + * Email address + * @member {String} Email + */ +PasswordResetModel.prototype['Email'] = undefined; + +/** + * Password + * @member {String} Password + */ +PasswordResetModel.prototype['Password'] = undefined; + +/** + * Password confirmation + * @member {String} PasswordConfirmation + */ +PasswordResetModel.prototype['PasswordConfirmation'] = undefined; + +/** + * Password reset token + * @member {String} Token + */ +PasswordResetModel.prototype['Token'] = undefined; + + + + + + +export default PasswordResetModel; + diff --git a/src/model/PaymentAccount.js b/src/model/PaymentAccount.js new file mode 100644 index 00000000..6cb0c7a3 --- /dev/null +++ b/src/model/PaymentAccount.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PaymentAccount model module. + * @module model/PaymentAccount + * @version 1.0.0 + */ +class PaymentAccount { + /** + * Constructs a new PaymentAccount. + * Payment Account information + * @alias module:model/PaymentAccount + */ + constructor() { + + PaymentAccount.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PaymentAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaymentAccount} obj Optional instance to populate. + * @return {module:model/PaymentAccount} The populated PaymentAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PaymentAccount(); + + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('PaymentAccountId')) { + obj['PaymentAccountId'] = ApiClient.convertToType(data['PaymentAccountId'], 'Number'); + } + if (data.hasOwnProperty('CanRemoveFromCustomerView')) { + obj['CanRemoveFromCustomerView'] = ApiClient.convertToType(data['CanRemoveFromCustomerView'], 'Boolean'); + } + if (data.hasOwnProperty('Bin')) { + obj['Bin'] = ApiClient.convertToType(data['Bin'], 'String'); + } + if (data.hasOwnProperty('IsDefaultPaymentMethod')) { + obj['IsDefaultPaymentMethod'] = ApiClient.convertToType(data['IsDefaultPaymentMethod'], 'Boolean'); + } + if (data.hasOwnProperty('IsVisibleToCustomer')) { + obj['IsVisibleToCustomer'] = ApiClient.convertToType(data['IsVisibleToCustomer'], 'Boolean'); + } + if (data.hasOwnProperty('PaymentAccountType')) { + obj['PaymentAccountType'] = ApiClient.convertToType(data['PaymentAccountType'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('CustomerId')) { + obj['CustomerId'] = ApiClient.convertToType(data['CustomerId'], 'String'); + } + } + return obj; + } + + +} + +/** + * The user ID associated with the payment account. + * @member {Number} UserId + */ +PaymentAccount.prototype['UserId'] = undefined; + +/** + * Unique identifier for the payment account. + * @member {Number} PaymentAccountId + */ +PaymentAccount.prototype['PaymentAccountId'] = undefined; + +/** + * Indicates if the payment account can be removed from the customer view. + * @member {Boolean} CanRemoveFromCustomerView + */ +PaymentAccount.prototype['CanRemoveFromCustomerView'] = undefined; + +/** + * Bank Identification Number (BIN) of the payment method. + * @member {String} Bin + */ +PaymentAccount.prototype['Bin'] = undefined; + +/** + * Indicates if this is the default payment method. + * @member {Boolean} IsDefaultPaymentMethod + */ +PaymentAccount.prototype['IsDefaultPaymentMethod'] = undefined; + +/** + * Indicates if the payment account is visible to the customer. + * @member {Boolean} IsVisibleToCustomer + */ +PaymentAccount.prototype['IsVisibleToCustomer'] = undefined; + +/** + * The type of payment account (e.g., card, PayPal). + * @member {String} PaymentAccountType + */ +PaymentAccount.prototype['PaymentAccountType'] = undefined; + +/** + * Description of the payment account. + * @member {String} Description + */ +PaymentAccount.prototype['Description'] = undefined; + +/** + * The customer ID associated with the payment account. + * @member {String} CustomerId + */ +PaymentAccount.prototype['CustomerId'] = undefined; + + + + + + +export default PaymentAccount; + diff --git a/src/model/PaymentIntent.js b/src/model/PaymentIntent.js new file mode 100644 index 00000000..33a618e0 --- /dev/null +++ b/src/model/PaymentIntent.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LastPaymentError from './LastPaymentError'; + +/** + * The PaymentIntent model module. + * @module model/PaymentIntent + * @version 1.0.0 + */ +class PaymentIntent { + /** + * Constructs a new PaymentIntent. + * Represents stripe PaymentIntent + * @alias module:model/PaymentIntent + */ + constructor() { + + PaymentIntent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PaymentIntent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaymentIntent} obj Optional instance to populate. + * @return {module:model/PaymentIntent} The populated PaymentIntent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PaymentIntent(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('Created')) { + obj['Created'] = ApiClient.convertToType(data['Created'], 'Date'); + } + if (data.hasOwnProperty('LastPaymentError')) { + obj['LastPaymentError'] = LastPaymentError.constructFromObject(data['LastPaymentError']); + } + } + return obj; + } + + +} + +/** + * Id of payment intent + * @member {String} Id + */ +PaymentIntent.prototype['Id'] = undefined; + +/** + * An arbitrary string attached to the object. Often useful for displaying to users. + * @member {String} Description + */ +PaymentIntent.prototype['Description'] = undefined; + +/** + * Three-letter ISO currency code, in lowercase. Must be a supported currency. + * @member {String} Currency + */ +PaymentIntent.prototype['Currency'] = undefined; + +/** + * Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent status. One of: canceled, processing, requires_action, requires_capture, requires_confirmation, requires_payment_method, or succeeded. + * @member {String} Status + */ +PaymentIntent.prototype['Status'] = undefined; + +/** + * Time at which the object was created. Measured in seconds since the Unix epoch. + * @member {Date} Created + */ +PaymentIntent.prototype['Created'] = undefined; + +/** + * @member {module:model/LastPaymentError} LastPaymentError + */ +PaymentIntent.prototype['LastPaymentError'] = undefined; + + + + + + +export default PaymentIntent; + diff --git a/src/model/PaymentTerminalDetails.js b/src/model/PaymentTerminalDetails.js new file mode 100644 index 00000000..6d549177 --- /dev/null +++ b/src/model/PaymentTerminalDetails.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PaymentTerminalDetails model module. + * @module model/PaymentTerminalDetails + * @version 1.0.0 + */ +class PaymentTerminalDetails { + /** + * Constructs a new PaymentTerminalDetails. + * Details of Payment Terminal + * @alias module:model/PaymentTerminalDetails + */ + constructor() { + + PaymentTerminalDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PaymentTerminalDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaymentTerminalDetails} obj Optional instance to populate. + * @return {module:model/PaymentTerminalDetails} The populated PaymentTerminalDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PaymentTerminalDetails(); + + if (data.hasOwnProperty('TerminalId')) { + obj['TerminalId'] = ApiClient.convertToType(data['TerminalId'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('Uri')) { + obj['Uri'] = ApiClient.convertToType(data['Uri'], 'String'); + } + } + return obj; + } + + +} + +/** + * Terminal Id (tid) + * @member {String} TerminalId + */ +PaymentTerminalDetails.prototype['TerminalId'] = undefined; + +/** + * Status of Terminal + * @member {String} Status + */ +PaymentTerminalDetails.prototype['Status'] = undefined; + +/** + * Currency configured on the terminal + * @member {String} Currency + */ +PaymentTerminalDetails.prototype['Currency'] = undefined; + +/** + * Location to Device + * @member {String} Uri + */ +PaymentTerminalDetails.prototype['Uri'] = undefined; + + + + + + +export default PaymentTerminalDetails; + diff --git a/src/model/PaymentTerminalTransactionDetails.js b/src/model/PaymentTerminalTransactionDetails.js new file mode 100644 index 00000000..92d7b780 --- /dev/null +++ b/src/model/PaymentTerminalTransactionDetails.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PaymentTerminalTransactionDetails model module. + * @module model/PaymentTerminalTransactionDetails + * @version 1.0.0 + */ +class PaymentTerminalTransactionDetails { + /** + * Constructs a new PaymentTerminalTransactionDetails. + * Details of Payment Terminal Transaction + * @alias module:model/PaymentTerminalTransactionDetails + */ + constructor() { + + PaymentTerminalTransactionDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PaymentTerminalTransactionDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PaymentTerminalTransactionDetails} obj Optional instance to populate. + * @return {module:model/PaymentTerminalTransactionDetails} The populated PaymentTerminalTransactionDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PaymentTerminalTransactionDetails(); + + if (data.hasOwnProperty('CardSchemeName')) { + obj['CardSchemeName'] = ApiClient.convertToType(data['CardSchemeName'], 'String'); + } + if (data.hasOwnProperty('DateOfExpiry')) { + obj['DateOfExpiry'] = ApiClient.convertToType(data['DateOfExpiry'], 'String'); + } + if (data.hasOwnProperty('AuthCode')) { + obj['AuthCode'] = ApiClient.convertToType(data['AuthCode'], 'String'); + } + if (data.hasOwnProperty('TransactionResult')) { + obj['TransactionResult'] = ApiClient.convertToType(data['TransactionResult'], 'String'); + } + if (data.hasOwnProperty('PrimaryAccountNumber')) { + obj['PrimaryAccountNumber'] = ApiClient.convertToType(data['PrimaryAccountNumber'], 'String'); + } + if (data.hasOwnProperty('CardholderVerificationMethod')) { + obj['CardholderVerificationMethod'] = ApiClient.convertToType(data['CardholderVerificationMethod'], 'String'); + } + } + return obj; + } + + +} + +/** + * Card Type + * @member {String} CardSchemeName + */ +PaymentTerminalTransactionDetails.prototype['CardSchemeName'] = undefined; + +/** + * Expirey Date on Card + * @member {String} DateOfExpiry + */ +PaymentTerminalTransactionDetails.prototype['DateOfExpiry'] = undefined; + +/** + * AuthCode + * @member {String} AuthCode + */ +PaymentTerminalTransactionDetails.prototype['AuthCode'] = undefined; + +/** + * State of Request, \"PENDING\" is not yet completed + * @member {String} TransactionResult + */ +PaymentTerminalTransactionDetails.prototype['TransactionResult'] = undefined; + +/** + * Masked PAN + * @member {String} PrimaryAccountNumber + */ +PaymentTerminalTransactionDetails.prototype['PrimaryAccountNumber'] = undefined; + +/** + * Type of Verification. + * @member {String} CardholderVerificationMethod + */ +PaymentTerminalTransactionDetails.prototype['CardholderVerificationMethod'] = undefined; + + + + + + +export default PaymentTerminalTransactionDetails; + diff --git a/src/model/Payout.js b/src/model/Payout.js new file mode 100644 index 00000000..503d9bd8 --- /dev/null +++ b/src/model/Payout.js @@ -0,0 +1,1207 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Payout model module. + * @module model/Payout + * @version 1.0.0 + */ +class Payout { + /** + * Constructs a new Payout. + * Holds the information for a whitelabel payout. + * @alias module:model/Payout + */ + constructor() { + + Payout.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Payout from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Payout} obj Optional instance to populate. + * @return {module:model/Payout} The populated Payout instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Payout(); + + if (data.hasOwnProperty('PayoutId')) { + obj['PayoutId'] = ApiClient.convertToType(data['PayoutId'], 'Number'); + } + if (data.hasOwnProperty('PayeeBankAccountId')) { + obj['PayeeBankAccountId'] = ApiClient.convertToType(data['PayeeBankAccountId'], 'Number'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('PayoutStatus')) { + obj['PayoutStatus'] = ApiClient.convertToType(data['PayoutStatus'], 'String'); + } + if (data.hasOwnProperty('CreatedDate')) { + obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'Date'); + } + if (data.hasOwnProperty('PeriodStartTime')) { + obj['PeriodStartTime'] = ApiClient.convertToType(data['PeriodStartTime'], 'Date'); + } + if (data.hasOwnProperty('PeriodEndTime')) { + obj['PeriodEndTime'] = ApiClient.convertToType(data['PeriodEndTime'], 'Date'); + } + if (data.hasOwnProperty('DestinationBank')) { + obj['DestinationBank'] = ApiClient.convertToType(data['DestinationBank'], 'String'); + } + if (data.hasOwnProperty('DestinationAccount')) { + obj['DestinationAccount'] = ApiClient.convertToType(data['DestinationAccount'], 'String'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('PayoutType')) { + obj['PayoutType'] = ApiClient.convertToType(data['PayoutType'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('CutoffDate')) { + obj['CutoffDate'] = ApiClient.convertToType(data['CutoffDate'], 'Date'); + } + if (data.hasOwnProperty('OnlineSalesAmount')) { + obj['OnlineSalesAmount'] = ApiClient.convertToType(data['OnlineSalesAmount'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesDeliveryCharges')) { + obj['OnlineSalesDeliveryCharges'] = ApiClient.convertToType(data['OnlineSalesDeliveryCharges'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesTips')) { + obj['OnlineSalesTips'] = ApiClient.convertToType(data['OnlineSalesTips'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesServiceCharges')) { + obj['OnlineSalesServiceCharges'] = ApiClient.convertToType(data['OnlineSalesServiceCharges'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesRefundedFees')) { + obj['OnlineSalesRefundedFees'] = ApiClient.convertToType(data['OnlineSalesRefundedFees'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesFees')) { + obj['OnlineSalesFees'] = ApiClient.convertToType(data['OnlineSalesFees'], 'Number'); + } + if (data.hasOwnProperty('PosSalesFees')) { + obj['PosSalesFees'] = ApiClient.convertToType(data['PosSalesFees'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesRefundedAmount')) { + obj['OnlineSalesRefundedAmount'] = ApiClient.convertToType(data['OnlineSalesRefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('PosSalesRefundedAmount')) { + obj['PosSalesRefundedAmount'] = ApiClient.convertToType(data['PosSalesRefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesTax')) { + obj['OnlineSalesTax'] = ApiClient.convertToType(data['OnlineSalesTax'], 'Number'); + } + if (data.hasOwnProperty('TotalOnlineRevenue')) { + obj['TotalOnlineRevenue'] = ApiClient.convertToType(data['TotalOnlineRevenue'], 'Number'); + } + if (data.hasOwnProperty('CashSalesFees')) { + obj['CashSalesFees'] = ApiClient.convertToType(data['CashSalesFees'], 'Number'); + } + if (data.hasOwnProperty('CashSalesRefundedFees')) { + obj['CashSalesRefundedFees'] = ApiClient.convertToType(data['CashSalesRefundedFees'], 'Number'); + } + if (data.hasOwnProperty('CustomerCashFees')) { + obj['CustomerCashFees'] = ApiClient.convertToType(data['CustomerCashFees'], 'Number'); + } + if (data.hasOwnProperty('SalesFeesVat')) { + obj['SalesFeesVat'] = ApiClient.convertToType(data['SalesFeesVat'], 'Number'); + } + if (data.hasOwnProperty('TotalFees')) { + obj['TotalFees'] = ApiClient.convertToType(data['TotalFees'], 'Number'); + } + if (data.hasOwnProperty('TotalOnlineRevenueAdjustments')) { + obj['TotalOnlineRevenueAdjustments'] = ApiClient.convertToType(data['TotalOnlineRevenueAdjustments'], 'Number'); + } + if (data.hasOwnProperty('ChargebackAmount')) { + obj['ChargebackAmount'] = ApiClient.convertToType(data['ChargebackAmount'], 'Number'); + } + if (data.hasOwnProperty('PosSalesChargebackAmount')) { + obj['PosSalesChargebackAmount'] = ApiClient.convertToType(data['PosSalesChargebackAmount'], 'Number'); + } + if (data.hasOwnProperty('ChargebackRefundedFees')) { + obj['ChargebackRefundedFees'] = ApiClient.convertToType(data['ChargebackRefundedFees'], 'Number'); + } + if (data.hasOwnProperty('TotalChargebackCost')) { + obj['TotalChargebackCost'] = ApiClient.convertToType(data['TotalChargebackCost'], 'Number'); + } + if (data.hasOwnProperty('TotalOtherCharges')) { + obj['TotalOtherCharges'] = ApiClient.convertToType(data['TotalOtherCharges'], 'Number'); + } + if (data.hasOwnProperty('OpeningBalance')) { + obj['OpeningBalance'] = ApiClient.convertToType(data['OpeningBalance'], 'Number'); + } + if (data.hasOwnProperty('ClosingBalance')) { + obj['ClosingBalance'] = ApiClient.convertToType(data['ClosingBalance'], 'Number'); + } + if (data.hasOwnProperty('PayGreenSalesAmount')) { + obj['PayGreenSalesAmount'] = ApiClient.convertToType(data['PayGreenSalesAmount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryIntegrationFee')) { + obj['DeliveryIntegrationFee'] = ApiClient.convertToType(data['DeliveryIntegrationFee'], 'Number'); + } + if (data.hasOwnProperty('DeliveryIntegrationTipFee')) { + obj['DeliveryIntegrationTipFee'] = ApiClient.convertToType(data['DeliveryIntegrationTipFee'], 'Number'); + } + if (data.hasOwnProperty('TotalThirdPartyFees')) { + obj['TotalThirdPartyFees'] = ApiClient.convertToType(data['TotalThirdPartyFees'], 'Number'); + } + if (data.hasOwnProperty('PosSalesAmount')) { + obj['PosSalesAmount'] = ApiClient.convertToType(data['PosSalesAmount'], 'Number'); + } + if (data.hasOwnProperty('PosSalesTax')) { + obj['PosSalesTax'] = ApiClient.convertToType(data['PosSalesTax'], 'Number'); + } + if (data.hasOwnProperty('TipsOnPosSales')) { + obj['TipsOnPosSales'] = ApiClient.convertToType(data['TipsOnPosSales'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The id of the payout. + * @member {Number} PayoutId + */ +Payout.prototype['PayoutId'] = undefined; + +/** + * Bank account identifier + * @member {Number} PayeeBankAccountId + */ +Payout.prototype['PayeeBankAccountId'] = undefined; + +/** + * Account name of the payout destination + * @member {String} AccountName + */ +Payout.prototype['AccountName'] = undefined; + +/** + * Status of the payout + * @member {module:model/Payout.PayoutStatusEnum} PayoutStatus + */ +Payout.prototype['PayoutStatus'] = undefined; + +/** + * Date payout was created + * @member {Date} CreatedDate + */ +Payout.prototype['CreatedDate'] = undefined; + +/** + * This payout includes operations after at this date (inclusive) + * @member {Date} PeriodStartTime + */ +Payout.prototype['PeriodStartTime'] = undefined; + +/** + * This payout includes operations before at this date (exclusive) + * @member {Date} PeriodEndTime + */ +Payout.prototype['PeriodEndTime'] = undefined; + +/** + * Destination bank name + * @member {String} DestinationBank + */ +Payout.prototype['DestinationBank'] = undefined; + +/** + * Last 4 digits of the destination bank IBAN + * @member {String} DestinationAccount + */ +Payout.prototype['DestinationAccount'] = undefined; + +/** + * Payout amount + * @member {Number} Amount + */ +Payout.prototype['Amount'] = undefined; + +/** + * Type of payout source + * @member {module:model/Payout.PayoutTypeEnum} PayoutType + */ +Payout.prototype['PayoutType'] = undefined; + +/** + * Payout currency + * @member {module:model/Payout.CurrencyEnum} Currency + */ +Payout.prototype['Currency'] = undefined; + +/** + * Payouts before this date do not have a details breakdown + * @member {Date} CutoffDate + */ +Payout.prototype['CutoffDate'] = undefined; + +/** + * Payout online sales amount + * @member {Number} OnlineSalesAmount + */ +Payout.prototype['OnlineSalesAmount'] = undefined; + +/** + * Payout online sales delivery charges + * @member {Number} OnlineSalesDeliveryCharges + */ +Payout.prototype['OnlineSalesDeliveryCharges'] = undefined; + +/** + * Payout online sales tips + * @member {Number} OnlineSalesTips + */ +Payout.prototype['OnlineSalesTips'] = undefined; + +/** + * Payout online sales service charges + * @member {Number} OnlineSalesServiceCharges + */ +Payout.prototype['OnlineSalesServiceCharges'] = undefined; + +/** + * Payout online sales refunded fees + * @member {Number} OnlineSalesRefundedFees + */ +Payout.prototype['OnlineSalesRefundedFees'] = undefined; + +/** + * Payout online sales fees + * @member {Number} OnlineSalesFees + */ +Payout.prototype['OnlineSalesFees'] = undefined; + +/** + * Payout online sales fees + * @member {Number} PosSalesFees + */ +Payout.prototype['PosSalesFees'] = undefined; + +/** + * Payout online sales refunded amount + * @member {Number} OnlineSalesRefundedAmount + */ +Payout.prototype['OnlineSalesRefundedAmount'] = undefined; + +/** + * POS Payout online sales refunded amount + * @member {Number} PosSalesRefundedAmount + */ +Payout.prototype['PosSalesRefundedAmount'] = undefined; + +/** + * Payout online sales tax + * @member {Number} OnlineSalesTax + */ +Payout.prototype['OnlineSalesTax'] = undefined; + +/** + * Payout total online revenue + * @member {Number} TotalOnlineRevenue + */ +Payout.prototype['TotalOnlineRevenue'] = undefined; + +/** + * Payout cash sales fees + * @member {Number} CashSalesFees + */ +Payout.prototype['CashSalesFees'] = undefined; + +/** + * Payout cash sales refunded fees + * @member {Number} CashSalesRefundedFees + */ +Payout.prototype['CashSalesRefundedFees'] = undefined; + +/** + * Payout cash fees charged to customer + * @member {Number} CustomerCashFees + */ +Payout.prototype['CustomerCashFees'] = undefined; + +/** + * Payout sales fees vat + * @member {Number} SalesFeesVat + */ +Payout.prototype['SalesFeesVat'] = undefined; + +/** + * Payout total fees + * @member {Number} TotalFees + */ +Payout.prototype['TotalFees'] = undefined; + +/** + * Payout total online revenue adjustments + * @member {Number} TotalOnlineRevenueAdjustments + */ +Payout.prototype['TotalOnlineRevenueAdjustments'] = undefined; + +/** + * Payout chargeback amount + * @member {Number} ChargebackAmount + */ +Payout.prototype['ChargebackAmount'] = undefined; + +/** + * POS Payout chargeback amount + * @member {Number} PosSalesChargebackAmount + */ +Payout.prototype['PosSalesChargebackAmount'] = undefined; + +/** + * Payout chargeback refunded fees + * @member {Number} ChargebackRefundedFees + */ +Payout.prototype['ChargebackRefundedFees'] = undefined; + +/** + * Payout chargebacks total cost + * @member {Number} TotalChargebackCost + */ +Payout.prototype['TotalChargebackCost'] = undefined; + +/** + * Payout other charges total + * @member {Number} TotalOtherCharges + */ +Payout.prototype['TotalOtherCharges'] = undefined; + +/** + * Payout opening balance + * @member {Number} OpeningBalance + */ +Payout.prototype['OpeningBalance'] = undefined; + +/** + * Payout closing balance + * @member {Number} ClosingBalance + */ +Payout.prototype['ClosingBalance'] = undefined; + +/** + * Amount of sales through PayGreen (restaurant vouchers) + * @member {Number} PayGreenSalesAmount + */ +Payout.prototype['PayGreenSalesAmount'] = undefined; + +/** + * Third party integration delivery fee + * @member {Number} DeliveryIntegrationFee + */ +Payout.prototype['DeliveryIntegrationFee'] = undefined; + +/** + * Third party integration delivery tip fee + * @member {Number} DeliveryIntegrationTipFee + */ +Payout.prototype['DeliveryIntegrationTipFee'] = undefined; + +/** + * Total third party integration fees + * @member {Number} TotalThirdPartyFees + */ +Payout.prototype['TotalThirdPartyFees'] = undefined; + +/** + * POS sales amount + * @member {Number} PosSalesAmount + */ +Payout.prototype['PosSalesAmount'] = undefined; + +/** + * POS sales tax + * @member {Number} PosSalesTax + */ +Payout.prototype['PosSalesTax'] = undefined; + +/** + * Tips on POS sales + * @member {Number} TipsOnPosSales + */ +Payout.prototype['TipsOnPosSales'] = undefined; + + + + + +/** + * Allowed values for the PayoutStatus property. + * @enum {String} + * @readonly + */ +Payout['PayoutStatusEnum'] = { + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "InTransit" + * @const + */ + "InTransit": "InTransit", + + /** + * value: "Paid" + * @const + */ + "Paid": "Paid", + + /** + * value: "Failed" + * @const + */ + "Failed": "Failed", + + /** + * value: "Cancelled" + * @const + */ + "Cancelled": "Cancelled" +}; + + +/** + * Allowed values for the PayoutType property. + * @enum {String} + * @readonly + */ +Payout['PayoutTypeEnum'] = { + + /** + * value: "Internal" + * @const + */ + "Internal": "Internal", + + /** + * value: "Stripe" + * @const + */ + "Stripe": "Stripe" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +Payout['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default Payout; + diff --git a/src/model/PayoutChargeback.js b/src/model/PayoutChargeback.js new file mode 100644 index 00000000..a22ddcaa --- /dev/null +++ b/src/model/PayoutChargeback.js @@ -0,0 +1,853 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutChargeback model module. + * @module model/PayoutChargeback + * @version 1.0.0 + */ +class PayoutChargeback { + /** + * Constructs a new PayoutChargeback. + * Holds the information for a chargeback related to a payout + * @alias module:model/PayoutChargeback + */ + constructor() { + + PayoutChargeback.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutChargeback from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutChargeback} obj Optional instance to populate. + * @return {module:model/PayoutChargeback} The populated PayoutChargeback instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutChargeback(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('OrderCurrency')) { + obj['OrderCurrency'] = ApiClient.convertToType(data['OrderCurrency'], 'String'); + } + if (data.hasOwnProperty('PayoutId')) { + obj['PayoutId'] = ApiClient.convertToType(data['PayoutId'], 'Number'); + } + if (data.hasOwnProperty('OrderDate')) { + obj['OrderDate'] = ApiClient.convertToType(data['OrderDate'], 'Date'); + } + if (data.hasOwnProperty('OrderType')) { + obj['OrderType'] = ApiClient.convertToType(data['OrderType'], 'String'); + } + if (data.hasOwnProperty('ChargebackDate')) { + obj['ChargebackDate'] = ApiClient.convertToType(data['ChargebackDate'], 'Date'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('ChargebackAmount')) { + obj['ChargebackAmount'] = ApiClient.convertToType(data['ChargebackAmount'], 'Number'); + } + if (data.hasOwnProperty('RefundedFees')) { + obj['RefundedFees'] = ApiClient.convertToType(data['RefundedFees'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The id of the order the chargeback was for + * @member {Number} OrderId + */ +PayoutChargeback.prototype['OrderId'] = undefined; + +/** + * Order currency + * @member {module:model/PayoutChargeback.OrderCurrencyEnum} OrderCurrency + */ +PayoutChargeback.prototype['OrderCurrency'] = undefined; + +/** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ +PayoutChargeback.prototype['PayoutId'] = undefined; + +/** + * The date the order was placed + * @member {Date} OrderDate + */ +PayoutChargeback.prototype['OrderDate'] = undefined; + +/** + * Order type (online or cash) + * @member {module:model/PayoutChargeback.OrderTypeEnum} OrderType + */ +PayoutChargeback.prototype['OrderType'] = undefined; + +/** + * The date the chargeback was done + * @member {Date} ChargebackDate + */ +PayoutChargeback.prototype['ChargebackDate'] = undefined; + +/** + * Store id + * @member {Number} StoreId + */ +PayoutChargeback.prototype['StoreId'] = undefined; + +/** + * Chargeback amount + * @member {Number} ChargebackAmount + */ +PayoutChargeback.prototype['ChargebackAmount'] = undefined; + +/** + * Amount of refunded fees + * @member {Number} RefundedFees + */ +PayoutChargeback.prototype['RefundedFees'] = undefined; + + + + + +/** + * Allowed values for the OrderCurrency property. + * @enum {String} + * @readonly + */ +PayoutChargeback['OrderCurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the OrderType property. + * @enum {String} + * @readonly + */ +PayoutChargeback['OrderTypeEnum'] = { + + /** + * value: "Cash" + * @const + */ + "Cash": "Cash", + + /** + * value: "Online" + * @const + */ + "Online": "Online" +}; + + + +export default PayoutChargeback; + diff --git a/src/model/PayoutDetail.js b/src/model/PayoutDetail.js new file mode 100644 index 00000000..486b2425 --- /dev/null +++ b/src/model/PayoutDetail.js @@ -0,0 +1,938 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutStore from './PayoutStore'; + +/** + * The PayoutDetail model module. + * @module model/PayoutDetail + * @version 1.0.0 + */ +class PayoutDetail { + /** + * Constructs a new PayoutDetail. + * Holds the information for a whitelabel payout with details broken down by Store + * @alias module:model/PayoutDetail + */ + constructor() { + + PayoutDetail.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutDetail} obj Optional instance to populate. + * @return {module:model/PayoutDetail} The populated PayoutDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutDetail(); + + if (data.hasOwnProperty('PayoutId')) { + obj['PayoutId'] = ApiClient.convertToType(data['PayoutId'], 'Number'); + } + if (data.hasOwnProperty('BankAccountId')) { + obj['BankAccountId'] = ApiClient.convertToType(data['BankAccountId'], 'Number'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('PayoutStatus')) { + obj['PayoutStatus'] = ApiClient.convertToType(data['PayoutStatus'], 'String'); + } + if (data.hasOwnProperty('CreatedDate')) { + obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'Date'); + } + if (data.hasOwnProperty('PeriodStartTime')) { + obj['PeriodStartTime'] = ApiClient.convertToType(data['PeriodStartTime'], 'Date'); + } + if (data.hasOwnProperty('PeriodEndTime')) { + obj['PeriodEndTime'] = ApiClient.convertToType(data['PeriodEndTime'], 'Date'); + } + if (data.hasOwnProperty('DestinationBank')) { + obj['DestinationBank'] = ApiClient.convertToType(data['DestinationBank'], 'String'); + } + if (data.hasOwnProperty('DestinationAccount')) { + obj['DestinationAccount'] = ApiClient.convertToType(data['DestinationAccount'], 'String'); + } + if (data.hasOwnProperty('PayoutType')) { + obj['PayoutType'] = ApiClient.convertToType(data['PayoutType'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('PayoutStores')) { + obj['PayoutStores'] = ApiClient.convertToType(data['PayoutStores'], [PayoutStore]); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('CutoffDate')) { + obj['CutoffDate'] = ApiClient.convertToType(data['CutoffDate'], 'Date'); + } + } + return obj; + } + + +} + +/** + * The id of the payout. + * @member {Number} PayoutId + */ +PayoutDetail.prototype['PayoutId'] = undefined; + +/** + * Bank account identifier + * @member {Number} BankAccountId + */ +PayoutDetail.prototype['BankAccountId'] = undefined; + +/** + * Account name of the payout destination + * @member {String} AccountName + */ +PayoutDetail.prototype['AccountName'] = undefined; + +/** + * Status of the payout + * @member {module:model/PayoutDetail.PayoutStatusEnum} PayoutStatus + */ +PayoutDetail.prototype['PayoutStatus'] = undefined; + +/** + * Date payout was created + * @member {Date} CreatedDate + */ +PayoutDetail.prototype['CreatedDate'] = undefined; + +/** + * This payout includes operations after at this date (inclusive) + * @member {Date} PeriodStartTime + */ +PayoutDetail.prototype['PeriodStartTime'] = undefined; + +/** + * This payout includes operations before at this date (exclusive) + * @member {Date} PeriodEndTime + */ +PayoutDetail.prototype['PeriodEndTime'] = undefined; + +/** + * Destination bank name + * @member {String} DestinationBank + */ +PayoutDetail.prototype['DestinationBank'] = undefined; + +/** + * Last 4 digits of the destination bank IBAN + * @member {String} DestinationAccount + */ +PayoutDetail.prototype['DestinationAccount'] = undefined; + +/** + * Type of payout source + * @member {module:model/PayoutDetail.PayoutTypeEnum} PayoutType + */ +PayoutDetail.prototype['PayoutType'] = undefined; + +/** + * Payout currency + * @member {module:model/PayoutDetail.CurrencyEnum} Currency + */ +PayoutDetail.prototype['Currency'] = undefined; + +/** + * Payout information broken down by Store + * @member {Array.} PayoutStores + */ +PayoutDetail.prototype['PayoutStores'] = undefined; + +/** + * Payout amount + * @member {Number} Amount + */ +PayoutDetail.prototype['Amount'] = undefined; + +/** + * Payouts before this date do not have a details breakdown + * @member {Date} CutoffDate + */ +PayoutDetail.prototype['CutoffDate'] = undefined; + + + + + +/** + * Allowed values for the PayoutStatus property. + * @enum {String} + * @readonly + */ +PayoutDetail['PayoutStatusEnum'] = { + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "InTransit" + * @const + */ + "InTransit": "InTransit", + + /** + * value: "Paid" + * @const + */ + "Paid": "Paid", + + /** + * value: "Failed" + * @const + */ + "Failed": "Failed", + + /** + * value: "Cancelled" + * @const + */ + "Cancelled": "Cancelled" +}; + + +/** + * Allowed values for the PayoutType property. + * @enum {String} + * @readonly + */ +PayoutDetail['PayoutTypeEnum'] = { + + /** + * value: "Internal" + * @const + */ + "Internal": "Internal", + + /** + * value: "Stripe" + * @const + */ + "Stripe": "Stripe" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +PayoutDetail['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default PayoutDetail; + diff --git a/src/model/PayoutOrder.js b/src/model/PayoutOrder.js new file mode 100644 index 00000000..383e701d --- /dev/null +++ b/src/model/PayoutOrder.js @@ -0,0 +1,970 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutOrder model module. + * @module model/PayoutOrder + * @version 1.0.0 + */ +class PayoutOrder { + /** + * Constructs a new PayoutOrder. + * Holds the information for an order related to a payout + * @alias module:model/PayoutOrder + */ + constructor() { + + PayoutOrder.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutOrder} obj Optional instance to populate. + * @return {module:model/PayoutOrder} The populated PayoutOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutOrder(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('PayoutId')) { + obj['PayoutId'] = ApiClient.convertToType(data['PayoutId'], 'Number'); + } + if (data.hasOwnProperty('OrderDate')) { + obj['OrderDate'] = ApiClient.convertToType(data['OrderDate'], 'Date'); + } + if (data.hasOwnProperty('OrderType')) { + obj['OrderType'] = ApiClient.convertToType(data['OrderType'], 'String'); + } + if (data.hasOwnProperty('OrderCurrency')) { + obj['OrderCurrency'] = ApiClient.convertToType(data['OrderCurrency'], 'String'); + } + if (data.hasOwnProperty('Sales')) { + obj['Sales'] = ApiClient.convertToType(data['Sales'], 'Number'); + } + if (data.hasOwnProperty('SalesTax')) { + obj['SalesTax'] = ApiClient.convertToType(data['SalesTax'], 'Number'); + } + if (data.hasOwnProperty('DeliveryCharges')) { + obj['DeliveryCharges'] = ApiClient.convertToType(data['DeliveryCharges'], 'Number'); + } + if (data.hasOwnProperty('Tips')) { + obj['Tips'] = ApiClient.convertToType(data['Tips'], 'Number'); + } + if (data.hasOwnProperty('Voucher')) { + obj['Voucher'] = ApiClient.convertToType(data['Voucher'], 'Number'); + } + if (data.hasOwnProperty('FlatFeeExcludingVat')) { + obj['FlatFeeExcludingVat'] = ApiClient.convertToType(data['FlatFeeExcludingVat'], 'Number'); + } + if (data.hasOwnProperty('FlatFeeExcludingVAT')) { + obj['FlatFeeExcludingVAT'] = ApiClient.convertToType(data['FlatFeeExcludingVAT'], 'Number'); + } + if (data.hasOwnProperty('FlatFeeIncludingVat')) { + obj['FlatFeeIncludingVat'] = ApiClient.convertToType(data['FlatFeeIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('PercentageFeeExcludingVat')) { + obj['PercentageFeeExcludingVat'] = ApiClient.convertToType(data['PercentageFeeExcludingVat'], 'Number'); + } + if (data.hasOwnProperty('PercentageFeeExcludingVAT')) { + obj['PercentageFeeExcludingVAT'] = ApiClient.convertToType(data['PercentageFeeExcludingVAT'], 'Number'); + } + if (data.hasOwnProperty('Vat')) { + obj['Vat'] = ApiClient.convertToType(data['Vat'], 'Number'); + } + if (data.hasOwnProperty('TotalFees')) { + obj['TotalFees'] = ApiClient.convertToType(data['TotalFees'], 'Number'); + } + if (data.hasOwnProperty('CashFeeChargedToCustomer')) { + obj['CashFeeChargedToCustomer'] = ApiClient.convertToType(data['CashFeeChargedToCustomer'], 'Number'); + } + if (data.hasOwnProperty('NetSales')) { + obj['NetSales'] = ApiClient.convertToType(data['NetSales'], 'Number'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('ServiceChargeAmount')) { + obj['ServiceChargeAmount'] = ApiClient.convertToType(data['ServiceChargeAmount'], 'Number'); + } + if (data.hasOwnProperty('ServiceChargePercentage')) { + obj['ServiceChargePercentage'] = ApiClient.convertToType(data['ServiceChargePercentage'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The id of the order + * @member {Number} OrderId + */ +PayoutOrder.prototype['OrderId'] = undefined; + +/** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ +PayoutOrder.prototype['PayoutId'] = undefined; + +/** + * The date the order was placed + * @member {Date} OrderDate + */ +PayoutOrder.prototype['OrderDate'] = undefined; + +/** + * Order type (online or cash) + * @member {module:model/PayoutOrder.OrderTypeEnum} OrderType + */ +PayoutOrder.prototype['OrderType'] = undefined; + +/** + * Order currency + * @member {module:model/PayoutOrder.OrderCurrencyEnum} OrderCurrency + */ +PayoutOrder.prototype['OrderCurrency'] = undefined; + +/** + * Order sales amount + * @member {Number} Sales + */ +PayoutOrder.prototype['Sales'] = undefined; + +/** + * Order sales tax amount + * @member {Number} SalesTax + */ +PayoutOrder.prototype['SalesTax'] = undefined; + +/** + * Order delivery charges + * @member {Number} DeliveryCharges + */ +PayoutOrder.prototype['DeliveryCharges'] = undefined; + +/** + * Order tips amount + * @member {Number} Tips + */ +PayoutOrder.prototype['Tips'] = undefined; + +/** + * Order voucher amount + * @member {Number} Voucher + */ +PayoutOrder.prototype['Voucher'] = undefined; + +/** + * Order flat fee amount excluding VAT + * @member {Number} FlatFeeExcludingVat + */ +PayoutOrder.prototype['FlatFeeExcludingVat'] = undefined; + +/** + * Order flat fee amount excluding VAT + * @member {Number} FlatFeeExcludingVAT + */ +PayoutOrder.prototype['FlatFeeExcludingVAT'] = undefined; + +/** + * Order flat fee amount including VAT + * @member {Number} FlatFeeIncludingVat + */ +PayoutOrder.prototype['FlatFeeIncludingVat'] = undefined; + +/** + * Order percentage fee excluding VAT + * @member {Number} PercentageFeeExcludingVat + */ +PayoutOrder.prototype['PercentageFeeExcludingVat'] = undefined; + +/** + * Order percentage fee excluding VAT + * @member {Number} PercentageFeeExcludingVAT + */ +PayoutOrder.prototype['PercentageFeeExcludingVAT'] = undefined; + +/** + * Order VAT amount + * @member {Number} Vat + */ +PayoutOrder.prototype['Vat'] = undefined; + +/** + * Total order fees amount + * @member {Number} TotalFees + */ +PayoutOrder.prototype['TotalFees'] = undefined; + +/** + * Cash fee charged to customer + * @member {Number} CashFeeChargedToCustomer + */ +PayoutOrder.prototype['CashFeeChargedToCustomer'] = undefined; + +/** + * Order net sales amount + * @member {Number} NetSales + */ +PayoutOrder.prototype['NetSales'] = undefined; + +/** + * Store id + * @member {Number} StoreId + */ +PayoutOrder.prototype['StoreId'] = undefined; + +/** + * Order ServiceChargeAmount amount + * @member {Number} ServiceChargeAmount + */ +PayoutOrder.prototype['ServiceChargeAmount'] = undefined; + +/** + * Order ServiceChargePercentage amount + * @member {Number} ServiceChargePercentage + */ +PayoutOrder.prototype['ServiceChargePercentage'] = undefined; + + + + + +/** + * Allowed values for the OrderType property. + * @enum {String} + * @readonly + */ +PayoutOrder['OrderTypeEnum'] = { + + /** + * value: "Cash" + * @const + */ + "Cash": "Cash", + + /** + * value: "Online" + * @const + */ + "Online": "Online" +}; + + +/** + * Allowed values for the OrderCurrency property. + * @enum {String} + * @readonly + */ +PayoutOrder['OrderCurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default PayoutOrder; + diff --git a/src/model/PayoutOtherCharge.js b/src/model/PayoutOtherCharge.js new file mode 100644 index 00000000..7384b50f --- /dev/null +++ b/src/model/PayoutOtherCharge.js @@ -0,0 +1,880 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutOtherCharge model module. + * @module model/PayoutOtherCharge + * @version 1.0.0 + */ +class PayoutOtherCharge { + /** + * Constructs a new PayoutOtherCharge. + * Holds the information for a charge related to a payout + * @alias module:model/PayoutOtherCharge + */ + constructor() { + + PayoutOtherCharge.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutOtherCharge from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutOtherCharge} obj Optional instance to populate. + * @return {module:model/PayoutOtherCharge} The populated PayoutOtherCharge instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutOtherCharge(); + + if (data.hasOwnProperty('ChargeId')) { + obj['ChargeId'] = ApiClient.convertToType(data['ChargeId'], 'Number'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('PayoutId')) { + obj['PayoutId'] = ApiClient.convertToType(data['PayoutId'], 'Number'); + } + if (data.hasOwnProperty('ChargeDate')) { + obj['ChargeDate'] = ApiClient.convertToType(data['ChargeDate'], 'Date'); + } + if (data.hasOwnProperty('ChargeType')) { + obj['ChargeType'] = ApiClient.convertToType(data['ChargeType'], 'String'); + } + if (data.hasOwnProperty('ChargeDescription')) { + obj['ChargeDescription'] = ApiClient.convertToType(data['ChargeDescription'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The id of the charge + * @member {Number} ChargeId + */ +PayoutOtherCharge.prototype['ChargeId'] = undefined; + +/** + * Charge amount + * @member {Number} Amount + */ +PayoutOtherCharge.prototype['Amount'] = undefined; + +/** + * Currency of the charge + * @member {module:model/PayoutOtherCharge.CurrencyEnum} Currency + */ +PayoutOtherCharge.prototype['Currency'] = undefined; + +/** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ +PayoutOtherCharge.prototype['PayoutId'] = undefined; + +/** + * The date the order was placed + * @member {Date} ChargeDate + */ +PayoutOtherCharge.prototype['ChargeDate'] = undefined; + +/** + * Charge type + * @member {module:model/PayoutOtherCharge.ChargeTypeEnum} ChargeType + */ +PayoutOtherCharge.prototype['ChargeType'] = undefined; + +/** + * Charge description + * @member {String} ChargeDescription + */ +PayoutOtherCharge.prototype['ChargeDescription'] = undefined; + +/** + * Store id + * @member {Number} StoreId + */ +PayoutOtherCharge.prototype['StoreId'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +PayoutOtherCharge['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the ChargeType property. + * @enum {String} + * @readonly + */ +PayoutOtherCharge['ChargeTypeEnum'] = { + + /** + * value: "Other" + * @const + */ + "Other": "Other", + + /** + * value: "Fees" + * @const + */ + "Fees": "Fees", + + /** + * value: "Chargeback" + * @const + */ + "Chargeback": "Chargeback", + + /** + * value: "TipFailure" + * @const + */ + "TipFailure": "TipFailure", + + /** + * value: "ExternalDisbursement" + * @const + */ + "ExternalDisbursement": "ExternalDisbursement", + + /** + * value: "Goods" + * @const + */ + "Goods": "Goods", + + /** + * value: "RestaurantSales" + * @const + */ + "RestaurantSales": "RestaurantSales", + + /** + * value: "Tips" + * @const + */ + "Tips": "Tips" +}; + + + +export default PayoutOtherCharge; + diff --git a/src/model/PayoutRefund.js b/src/model/PayoutRefund.js new file mode 100644 index 00000000..fd883cb7 --- /dev/null +++ b/src/model/PayoutRefund.js @@ -0,0 +1,871 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutRefund model module. + * @module model/PayoutRefund + * @version 1.0.0 + */ +class PayoutRefund { + /** + * Constructs a new PayoutRefund. + * Holds the information for a refund related to a payout + * @alias module:model/PayoutRefund + */ + constructor() { + + PayoutRefund.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutRefund from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutRefund} obj Optional instance to populate. + * @return {module:model/PayoutRefund} The populated PayoutRefund instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutRefund(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('OrderCurrency')) { + obj['OrderCurrency'] = ApiClient.convertToType(data['OrderCurrency'], 'String'); + } + if (data.hasOwnProperty('PayoutId')) { + obj['PayoutId'] = ApiClient.convertToType(data['PayoutId'], 'Number'); + } + if (data.hasOwnProperty('OrderDate')) { + obj['OrderDate'] = ApiClient.convertToType(data['OrderDate'], 'Date'); + } + if (data.hasOwnProperty('OrderType')) { + obj['OrderType'] = ApiClient.convertToType(data['OrderType'], 'String'); + } + if (data.hasOwnProperty('RefundDate')) { + obj['RefundDate'] = ApiClient.convertToType(data['RefundDate'], 'Date'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('TotalRefund')) { + obj['TotalRefund'] = ApiClient.convertToType(data['TotalRefund'], 'Number'); + } + if (data.hasOwnProperty('RefundedFees')) { + obj['RefundedFees'] = ApiClient.convertToType(data['RefundedFees'], 'Number'); + } + if (data.hasOwnProperty('RefundedAmount')) { + obj['RefundedAmount'] = ApiClient.convertToType(data['RefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('CashFeeRefundedToCustomer')) { + obj['CashFeeRefundedToCustomer'] = ApiClient.convertToType(data['CashFeeRefundedToCustomer'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The id of the order the refund was for + * @member {Number} OrderId + */ +PayoutRefund.prototype['OrderId'] = undefined; + +/** + * Order currency + * @member {module:model/PayoutRefund.OrderCurrencyEnum} OrderCurrency + */ +PayoutRefund.prototype['OrderCurrency'] = undefined; + +/** + * The id of the payout the order is related to + * @member {Number} PayoutId + */ +PayoutRefund.prototype['PayoutId'] = undefined; + +/** + * The date the order was placed + * @member {Date} OrderDate + */ +PayoutRefund.prototype['OrderDate'] = undefined; + +/** + * Order type (online or cash) + * @member {module:model/PayoutRefund.OrderTypeEnum} OrderType + */ +PayoutRefund.prototype['OrderType'] = undefined; + +/** + * The date the refund was done + * @member {Date} RefundDate + */ +PayoutRefund.prototype['RefundDate'] = undefined; + +/** + * Store id + * @member {Number} StoreId + */ +PayoutRefund.prototype['StoreId'] = undefined; + +/** + * Total refund amount + * @member {Number} TotalRefund + */ +PayoutRefund.prototype['TotalRefund'] = undefined; + +/** + * Refunded fees amount + * @member {Number} RefundedFees + */ +PayoutRefund.prototype['RefundedFees'] = undefined; + +/** + * Refunded amount + * @member {Number} RefundedAmount + */ +PayoutRefund.prototype['RefundedAmount'] = undefined; + +/** + * Cash fee refunded to customer + * @member {Number} CashFeeRefundedToCustomer + */ +PayoutRefund.prototype['CashFeeRefundedToCustomer'] = undefined; + + + + + +/** + * Allowed values for the OrderCurrency property. + * @enum {String} + * @readonly + */ +PayoutRefund['OrderCurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the OrderType property. + * @enum {String} + * @readonly + */ +PayoutRefund['OrderTypeEnum'] = { + + /** + * value: "Cash" + * @const + */ + "Cash": "Cash", + + /** + * value: "Online" + * @const + */ + "Online": "Online" +}; + + + +export default PayoutRefund; + diff --git a/src/model/PayoutReport3Details.js b/src/model/PayoutReport3Details.js new file mode 100644 index 00000000..eb51b1a0 --- /dev/null +++ b/src/model/PayoutReport3Details.js @@ -0,0 +1,115 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutReport3DetailsAdjustments from './PayoutReport3DetailsAdjustments'; +import PayoutReport3DetailsFlipdishFees from './PayoutReport3DetailsFlipdishFees'; +import PayoutReport3DetailsRevenue from './PayoutReport3DetailsRevenue'; +import PayoutReport3DetailsSummary from './PayoutReport3DetailsSummary'; + +/** + * The PayoutReport3Details model module. + * @module model/PayoutReport3Details + * @version 1.0.0 + */ +class PayoutReport3Details { + /** + * Constructs a new PayoutReport3Details. + * @alias module:model/PayoutReport3Details + */ + constructor() { + + PayoutReport3Details.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3Details from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3Details} obj Optional instance to populate. + * @return {module:model/PayoutReport3Details} The populated PayoutReport3Details instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3Details(); + + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('Summary')) { + obj['Summary'] = PayoutReport3DetailsSummary.constructFromObject(data['Summary']); + } + if (data.hasOwnProperty('Revenue')) { + obj['Revenue'] = PayoutReport3DetailsRevenue.constructFromObject(data['Revenue']); + } + if (data.hasOwnProperty('FlipdishFees')) { + obj['FlipdishFees'] = PayoutReport3DetailsFlipdishFees.constructFromObject(data['FlipdishFees']); + } + if (data.hasOwnProperty('Adjustments')) { + obj['Adjustments'] = PayoutReport3DetailsAdjustments.constructFromObject(data['Adjustments']); + } + } + return obj; + } + + +} + +/** + * @member {Number} Amount + */ +PayoutReport3Details.prototype['Amount'] = undefined; + +/** + * @member {String} Currency + */ +PayoutReport3Details.prototype['Currency'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSummary} Summary + */ +PayoutReport3Details.prototype['Summary'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsRevenue} Revenue + */ +PayoutReport3Details.prototype['Revenue'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsFlipdishFees} FlipdishFees + */ +PayoutReport3Details.prototype['FlipdishFees'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsAdjustments} Adjustments + */ +PayoutReport3Details.prototype['Adjustments'] = undefined; + + + + + + +export default PayoutReport3Details; + diff --git a/src/model/PayoutReport3DetailsAdjustments.js b/src/model/PayoutReport3DetailsAdjustments.js new file mode 100644 index 00000000..f9f9ac04 --- /dev/null +++ b/src/model/PayoutReport3DetailsAdjustments.js @@ -0,0 +1,231 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutReport3DetailsAdjustments model module. + * @module model/PayoutReport3DetailsAdjustments + * @version 1.0.0 + */ +class PayoutReport3DetailsAdjustments { + /** + * Constructs a new PayoutReport3DetailsAdjustments. + * @alias module:model/PayoutReport3DetailsAdjustments + */ + constructor() { + + PayoutReport3DetailsAdjustments.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3DetailsAdjustments from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3DetailsAdjustments} obj Optional instance to populate. + * @return {module:model/PayoutReport3DetailsAdjustments} The populated PayoutReport3DetailsAdjustments instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3DetailsAdjustments(); + + if (data.hasOwnProperty('OpeningBalanceDate')) { + obj['OpeningBalanceDate'] = ApiClient.convertToType(data['OpeningBalanceDate'], 'Date'); + } + if (data.hasOwnProperty('ClosingBalanceDate')) { + obj['ClosingBalanceDate'] = ApiClient.convertToType(data['ClosingBalanceDate'], 'Date'); + } + if (data.hasOwnProperty('OpeningBalance')) { + obj['OpeningBalance'] = ApiClient.convertToType(data['OpeningBalance'], 'Number'); + } + if (data.hasOwnProperty('RefundsOnCardOrders')) { + obj['RefundsOnCardOrders'] = ApiClient.convertToType(data['RefundsOnCardOrders'], 'Number'); + } + if (data.hasOwnProperty('RefundsOnCashOrders')) { + obj['RefundsOnCashOrders'] = ApiClient.convertToType(data['RefundsOnCashOrders'], 'Number'); + } + if (data.hasOwnProperty('CashCustomerFees')) { + obj['CashCustomerFees'] = ApiClient.convertToType(data['CashCustomerFees'], 'Number'); + } + if (data.hasOwnProperty('Chargebacks')) { + obj['Chargebacks'] = ApiClient.convertToType(data['Chargebacks'], 'Number'); + } + if (data.hasOwnProperty('OtherTransactions')) { + obj['OtherTransactions'] = ApiClient.convertToType(data['OtherTransactions'], 'Number'); + } + if (data.hasOwnProperty('ClosingBalance')) { + obj['ClosingBalance'] = ApiClient.convertToType(data['ClosingBalance'], 'Number'); + } + if (data.hasOwnProperty('BalanceRepaid')) { + obj['BalanceRepaid'] = ApiClient.convertToType(data['BalanceRepaid'], 'Number'); + } + if (data.hasOwnProperty('RefundsOnCardOrdersBracketsAmount')) { + obj['RefundsOnCardOrdersBracketsAmount'] = ApiClient.convertToType(data['RefundsOnCardOrdersBracketsAmount'], 'Number'); + } + if (data.hasOwnProperty('RefundsOnCardOrdersBracketsOutOfAmount')) { + obj['RefundsOnCardOrdersBracketsOutOfAmount'] = ApiClient.convertToType(data['RefundsOnCardOrdersBracketsOutOfAmount'], 'Number'); + } + if (data.hasOwnProperty('RefundsOnCashOrdersBracketsAmount')) { + obj['RefundsOnCashOrdersBracketsAmount'] = ApiClient.convertToType(data['RefundsOnCashOrdersBracketsAmount'], 'Number'); + } + if (data.hasOwnProperty('RefundsOnCashOrdersBracketsOutOfAmount')) { + obj['RefundsOnCashOrdersBracketsOutOfAmount'] = ApiClient.convertToType(data['RefundsOnCashOrdersBracketsOutOfAmount'], 'Number'); + } + if (data.hasOwnProperty('CashCustomerFeesBracketsAmount')) { + obj['CashCustomerFeesBracketsAmount'] = ApiClient.convertToType(data['CashCustomerFeesBracketsAmount'], 'Number'); + } + if (data.hasOwnProperty('CashCustomerFeesBracketsOutOfAmount')) { + obj['CashCustomerFeesBracketsOutOfAmount'] = ApiClient.convertToType(data['CashCustomerFeesBracketsOutOfAmount'], 'Number'); + } + if (data.hasOwnProperty('BalanceChange')) { + obj['BalanceChange'] = ApiClient.convertToType(data['BalanceChange'], 'Number'); + } + if (data.hasOwnProperty('PreviousPayoutId')) { + obj['PreviousPayoutId'] = ApiClient.convertToType(data['PreviousPayoutId'], 'Number'); + } + if (data.hasOwnProperty('NextPayoutId')) { + obj['NextPayoutId'] = ApiClient.convertToType(data['NextPayoutId'], 'Number'); + } + if (data.hasOwnProperty('RefundedFeesOnChargebacks')) { + obj['RefundedFeesOnChargebacks'] = ApiClient.convertToType(data['RefundedFeesOnChargebacks'], 'Number'); + } + if (data.hasOwnProperty('TotalChargebackCost')) { + obj['TotalChargebackCost'] = ApiClient.convertToType(data['TotalChargebackCost'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Date} OpeningBalanceDate + */ +PayoutReport3DetailsAdjustments.prototype['OpeningBalanceDate'] = undefined; + +/** + * @member {Date} ClosingBalanceDate + */ +PayoutReport3DetailsAdjustments.prototype['ClosingBalanceDate'] = undefined; + +/** + * @member {Number} OpeningBalance + */ +PayoutReport3DetailsAdjustments.prototype['OpeningBalance'] = undefined; + +/** + * @member {Number} RefundsOnCardOrders + */ +PayoutReport3DetailsAdjustments.prototype['RefundsOnCardOrders'] = undefined; + +/** + * @member {Number} RefundsOnCashOrders + */ +PayoutReport3DetailsAdjustments.prototype['RefundsOnCashOrders'] = undefined; + +/** + * @member {Number} CashCustomerFees + */ +PayoutReport3DetailsAdjustments.prototype['CashCustomerFees'] = undefined; + +/** + * @member {Number} Chargebacks + */ +PayoutReport3DetailsAdjustments.prototype['Chargebacks'] = undefined; + +/** + * @member {Number} OtherTransactions + */ +PayoutReport3DetailsAdjustments.prototype['OtherTransactions'] = undefined; + +/** + * @member {Number} ClosingBalance + */ +PayoutReport3DetailsAdjustments.prototype['ClosingBalance'] = undefined; + +/** + * @member {Number} BalanceRepaid + */ +PayoutReport3DetailsAdjustments.prototype['BalanceRepaid'] = undefined; + +/** + * @member {Number} RefundsOnCardOrdersBracketsAmount + */ +PayoutReport3DetailsAdjustments.prototype['RefundsOnCardOrdersBracketsAmount'] = undefined; + +/** + * @member {Number} RefundsOnCardOrdersBracketsOutOfAmount + */ +PayoutReport3DetailsAdjustments.prototype['RefundsOnCardOrdersBracketsOutOfAmount'] = undefined; + +/** + * @member {Number} RefundsOnCashOrdersBracketsAmount + */ +PayoutReport3DetailsAdjustments.prototype['RefundsOnCashOrdersBracketsAmount'] = undefined; + +/** + * @member {Number} RefundsOnCashOrdersBracketsOutOfAmount + */ +PayoutReport3DetailsAdjustments.prototype['RefundsOnCashOrdersBracketsOutOfAmount'] = undefined; + +/** + * @member {Number} CashCustomerFeesBracketsAmount + */ +PayoutReport3DetailsAdjustments.prototype['CashCustomerFeesBracketsAmount'] = undefined; + +/** + * @member {Number} CashCustomerFeesBracketsOutOfAmount + */ +PayoutReport3DetailsAdjustments.prototype['CashCustomerFeesBracketsOutOfAmount'] = undefined; + +/** + * @member {Number} BalanceChange + */ +PayoutReport3DetailsAdjustments.prototype['BalanceChange'] = undefined; + +/** + * @member {Number} PreviousPayoutId + */ +PayoutReport3DetailsAdjustments.prototype['PreviousPayoutId'] = undefined; + +/** + * @member {Number} NextPayoutId + */ +PayoutReport3DetailsAdjustments.prototype['NextPayoutId'] = undefined; + +/** + * @member {Number} RefundedFeesOnChargebacks + */ +PayoutReport3DetailsAdjustments.prototype['RefundedFeesOnChargebacks'] = undefined; + +/** + * @member {Number} TotalChargebackCost + */ +PayoutReport3DetailsAdjustments.prototype['TotalChargebackCost'] = undefined; + + + + + + +export default PayoutReport3DetailsAdjustments; + diff --git a/src/model/PayoutReport3DetailsFlipdishFees.js b/src/model/PayoutReport3DetailsFlipdishFees.js new file mode 100644 index 00000000..b6eaf564 --- /dev/null +++ b/src/model/PayoutReport3DetailsFlipdishFees.js @@ -0,0 +1,295 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutReport3DetailsFlipdishFees model module. + * @module model/PayoutReport3DetailsFlipdishFees + * @version 1.0.0 + */ +class PayoutReport3DetailsFlipdishFees { + /** + * Constructs a new PayoutReport3DetailsFlipdishFees. + * @alias module:model/PayoutReport3DetailsFlipdishFees + */ + constructor() { + + PayoutReport3DetailsFlipdishFees.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3DetailsFlipdishFees from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3DetailsFlipdishFees} obj Optional instance to populate. + * @return {module:model/PayoutReport3DetailsFlipdishFees} The populated PayoutReport3DetailsFlipdishFees instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3DetailsFlipdishFees(); + + if (data.hasOwnProperty('WebAndAppCash')) { + obj['WebAndAppCash'] = ApiClient.convertToType(data['WebAndAppCash'], 'Number'); + } + if (data.hasOwnProperty('WebAndAppCashRevenueIncludingTips')) { + obj['WebAndAppCashRevenueIncludingTips'] = ApiClient.convertToType(data['WebAndAppCashRevenueIncludingTips'], 'Number'); + } + if (data.hasOwnProperty('WebAndAppCard')) { + obj['WebAndAppCard'] = ApiClient.convertToType(data['WebAndAppCard'], 'Number'); + } + if (data.hasOwnProperty('WebAndAppCardRevenueIncludingTips')) { + obj['WebAndAppCardRevenueIncludingTips'] = ApiClient.convertToType(data['WebAndAppCardRevenueIncludingTips'], 'Number'); + } + if (data.hasOwnProperty('KioskCash')) { + obj['KioskCash'] = ApiClient.convertToType(data['KioskCash'], 'Number'); + } + if (data.hasOwnProperty('KioskCashRevenue')) { + obj['KioskCashRevenue'] = ApiClient.convertToType(data['KioskCashRevenue'], 'Number'); + } + if (data.hasOwnProperty('KioskCard')) { + obj['KioskCard'] = ApiClient.convertToType(data['KioskCard'], 'Number'); + } + if (data.hasOwnProperty('KioskCardRevenue')) { + obj['KioskCardRevenue'] = ApiClient.convertToType(data['KioskCardRevenue'], 'Number'); + } + if (data.hasOwnProperty('QropCash')) { + obj['QropCash'] = ApiClient.convertToType(data['QropCash'], 'Number'); + } + if (data.hasOwnProperty('QropCashRevenue')) { + obj['QropCashRevenue'] = ApiClient.convertToType(data['QropCashRevenue'], 'Number'); + } + if (data.hasOwnProperty('QropCard')) { + obj['QropCard'] = ApiClient.convertToType(data['QropCard'], 'Number'); + } + if (data.hasOwnProperty('QropCardRevenue')) { + obj['QropCardRevenue'] = ApiClient.convertToType(data['QropCardRevenue'], 'Number'); + } + if (data.hasOwnProperty('PosCard')) { + obj['PosCard'] = ApiClient.convertToType(data['PosCard'], 'Number'); + } + if (data.hasOwnProperty('PosCardRevenue')) { + obj['PosCardRevenue'] = ApiClient.convertToType(data['PosCardRevenue'], 'Number'); + } + if (data.hasOwnProperty('PosCardOnFlipdishOrders')) { + obj['PosCardOnFlipdishOrders'] = ApiClient.convertToType(data['PosCardOnFlipdishOrders'], 'Number'); + } + if (data.hasOwnProperty('OtherIntegrationFees')) { + obj['OtherIntegrationFees'] = ApiClient.convertToType(data['OtherIntegrationFees'], 'Number'); + } + if (data.hasOwnProperty('OtherIntegrationTips')) { + obj['OtherIntegrationTips'] = ApiClient.convertToType(data['OtherIntegrationTips'], 'Number'); + } + if (data.hasOwnProperty('RefundedFeesOnRefundedSales')) { + obj['RefundedFeesOnRefundedSales'] = ApiClient.convertToType(data['RefundedFeesOnRefundedSales'], 'Number'); + } + if (data.hasOwnProperty('Vat')) { + obj['Vat'] = ApiClient.convertToType(data['Vat'], 'Number'); + } + if (data.hasOwnProperty('RefundedFeesOnPosSales')) { + obj['RefundedFeesOnPosSales'] = ApiClient.convertToType(data['RefundedFeesOnPosSales'], 'Number'); + } + if (data.hasOwnProperty('Total')) { + obj['Total'] = ApiClient.convertToType(data['Total'], 'Number'); + } + if (data.hasOwnProperty('ThirdPartyIntegrationFeesAndTips')) { + obj['ThirdPartyIntegrationFeesAndTips'] = ApiClient.convertToType(data['ThirdPartyIntegrationFeesAndTips'], 'Number'); + } + if (data.hasOwnProperty('WebAndAppCardOnXOrders')) { + obj['WebAndAppCardOnXOrders'] = ApiClient.convertToType(data['WebAndAppCardOnXOrders'], 'Number'); + } + if (data.hasOwnProperty('WebAndAppCashOnXOrders')) { + obj['WebAndAppCashOnXOrders'] = ApiClient.convertToType(data['WebAndAppCashOnXOrders'], 'Number'); + } + if (data.hasOwnProperty('KioskCardOnXOrders')) { + obj['KioskCardOnXOrders'] = ApiClient.convertToType(data['KioskCardOnXOrders'], 'Number'); + } + if (data.hasOwnProperty('KioskCashOnXOrders')) { + obj['KioskCashOnXOrders'] = ApiClient.convertToType(data['KioskCashOnXOrders'], 'Number'); + } + if (data.hasOwnProperty('QropCardOnXOrders')) { + obj['QropCardOnXOrders'] = ApiClient.convertToType(data['QropCardOnXOrders'], 'Number'); + } + if (data.hasOwnProperty('QropCashOnXOrders')) { + obj['QropCashOnXOrders'] = ApiClient.convertToType(data['QropCashOnXOrders'], 'Number'); + } + if (data.hasOwnProperty('PosCardOnXOrders')) { + obj['PosCardOnXOrders'] = ApiClient.convertToType(data['PosCardOnXOrders'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} WebAndAppCash + */ +PayoutReport3DetailsFlipdishFees.prototype['WebAndAppCash'] = undefined; + +/** + * @member {Number} WebAndAppCashRevenueIncludingTips + */ +PayoutReport3DetailsFlipdishFees.prototype['WebAndAppCashRevenueIncludingTips'] = undefined; + +/** + * @member {Number} WebAndAppCard + */ +PayoutReport3DetailsFlipdishFees.prototype['WebAndAppCard'] = undefined; + +/** + * @member {Number} WebAndAppCardRevenueIncludingTips + */ +PayoutReport3DetailsFlipdishFees.prototype['WebAndAppCardRevenueIncludingTips'] = undefined; + +/** + * @member {Number} KioskCash + */ +PayoutReport3DetailsFlipdishFees.prototype['KioskCash'] = undefined; + +/** + * @member {Number} KioskCashRevenue + */ +PayoutReport3DetailsFlipdishFees.prototype['KioskCashRevenue'] = undefined; + +/** + * @member {Number} KioskCard + */ +PayoutReport3DetailsFlipdishFees.prototype['KioskCard'] = undefined; + +/** + * @member {Number} KioskCardRevenue + */ +PayoutReport3DetailsFlipdishFees.prototype['KioskCardRevenue'] = undefined; + +/** + * @member {Number} QropCash + */ +PayoutReport3DetailsFlipdishFees.prototype['QropCash'] = undefined; + +/** + * @member {Number} QropCashRevenue + */ +PayoutReport3DetailsFlipdishFees.prototype['QropCashRevenue'] = undefined; + +/** + * @member {Number} QropCard + */ +PayoutReport3DetailsFlipdishFees.prototype['QropCard'] = undefined; + +/** + * @member {Number} QropCardRevenue + */ +PayoutReport3DetailsFlipdishFees.prototype['QropCardRevenue'] = undefined; + +/** + * @member {Number} PosCard + */ +PayoutReport3DetailsFlipdishFees.prototype['PosCard'] = undefined; + +/** + * @member {Number} PosCardRevenue + */ +PayoutReport3DetailsFlipdishFees.prototype['PosCardRevenue'] = undefined; + +/** + * @member {Number} PosCardOnFlipdishOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['PosCardOnFlipdishOrders'] = undefined; + +/** + * @member {Number} OtherIntegrationFees + */ +PayoutReport3DetailsFlipdishFees.prototype['OtherIntegrationFees'] = undefined; + +/** + * @member {Number} OtherIntegrationTips + */ +PayoutReport3DetailsFlipdishFees.prototype['OtherIntegrationTips'] = undefined; + +/** + * @member {Number} RefundedFeesOnRefundedSales + */ +PayoutReport3DetailsFlipdishFees.prototype['RefundedFeesOnRefundedSales'] = undefined; + +/** + * @member {Number} Vat + */ +PayoutReport3DetailsFlipdishFees.prototype['Vat'] = undefined; + +/** + * @member {Number} RefundedFeesOnPosSales + */ +PayoutReport3DetailsFlipdishFees.prototype['RefundedFeesOnPosSales'] = undefined; + +/** + * @member {Number} Total + */ +PayoutReport3DetailsFlipdishFees.prototype['Total'] = undefined; + +/** + * @member {Number} ThirdPartyIntegrationFeesAndTips + */ +PayoutReport3DetailsFlipdishFees.prototype['ThirdPartyIntegrationFeesAndTips'] = undefined; + +/** + * @member {Number} WebAndAppCardOnXOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['WebAndAppCardOnXOrders'] = undefined; + +/** + * @member {Number} WebAndAppCashOnXOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['WebAndAppCashOnXOrders'] = undefined; + +/** + * @member {Number} KioskCardOnXOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['KioskCardOnXOrders'] = undefined; + +/** + * @member {Number} KioskCashOnXOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['KioskCashOnXOrders'] = undefined; + +/** + * @member {Number} QropCardOnXOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['QropCardOnXOrders'] = undefined; + +/** + * @member {Number} QropCashOnXOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['QropCashOnXOrders'] = undefined; + +/** + * @member {Number} PosCardOnXOrders + */ +PayoutReport3DetailsFlipdishFees.prototype['PosCardOnXOrders'] = undefined; + + + + + + +export default PayoutReport3DetailsFlipdishFees; + diff --git a/src/model/PayoutReport3DetailsRevenue.js b/src/model/PayoutReport3DetailsRevenue.js new file mode 100644 index 00000000..6a31d360 --- /dev/null +++ b/src/model/PayoutReport3DetailsRevenue.js @@ -0,0 +1,128 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutReport3DetailsSalesLine from './PayoutReport3DetailsSalesLine'; + +/** + * The PayoutReport3DetailsRevenue model module. + * @module model/PayoutReport3DetailsRevenue + * @version 1.0.0 + */ +class PayoutReport3DetailsRevenue { + /** + * Constructs a new PayoutReport3DetailsRevenue. + * @alias module:model/PayoutReport3DetailsRevenue + */ + constructor() { + + PayoutReport3DetailsRevenue.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3DetailsRevenue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3DetailsRevenue} obj Optional instance to populate. + * @return {module:model/PayoutReport3DetailsRevenue} The populated PayoutReport3DetailsRevenue instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3DetailsRevenue(); + + if (data.hasOwnProperty('GrossSales')) { + obj['GrossSales'] = PayoutReport3DetailsSalesLine.constructFromObject(data['GrossSales']); + } + if (data.hasOwnProperty('SalesTax')) { + obj['SalesTax'] = PayoutReport3DetailsSalesLine.constructFromObject(data['SalesTax']); + } + if (data.hasOwnProperty('DeliveryCharges')) { + obj['DeliveryCharges'] = PayoutReport3DetailsSalesLine.constructFromObject(data['DeliveryCharges']); + } + if (data.hasOwnProperty('OtherCharges')) { + obj['OtherCharges'] = PayoutReport3DetailsSalesLine.constructFromObject(data['OtherCharges']); + } + if (data.hasOwnProperty('Tips')) { + obj['Tips'] = PayoutReport3DetailsSalesLine.constructFromObject(data['Tips']); + } + if (data.hasOwnProperty('TotalRevenue')) { + obj['TotalRevenue'] = PayoutReport3DetailsSalesLine.constructFromObject(data['TotalRevenue']); + } + if (data.hasOwnProperty('RevenueForFeeCalculations')) { + obj['RevenueForFeeCalculations'] = PayoutReport3DetailsSalesLine.constructFromObject(data['RevenueForFeeCalculations']); + } + if (data.hasOwnProperty('DrsCharges')) { + obj['DrsCharges'] = PayoutReport3DetailsSalesLine.constructFromObject(data['DrsCharges']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} GrossSales + */ +PayoutReport3DetailsRevenue.prototype['GrossSales'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} SalesTax + */ +PayoutReport3DetailsRevenue.prototype['SalesTax'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} DeliveryCharges + */ +PayoutReport3DetailsRevenue.prototype['DeliveryCharges'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} OtherCharges + */ +PayoutReport3DetailsRevenue.prototype['OtherCharges'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} Tips + */ +PayoutReport3DetailsRevenue.prototype['Tips'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} TotalRevenue + */ +PayoutReport3DetailsRevenue.prototype['TotalRevenue'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} RevenueForFeeCalculations + */ +PayoutReport3DetailsRevenue.prototype['RevenueForFeeCalculations'] = undefined; + +/** + * @member {module:model/PayoutReport3DetailsSalesLine} DrsCharges + */ +PayoutReport3DetailsRevenue.prototype['DrsCharges'] = undefined; + + + + + + +export default PayoutReport3DetailsRevenue; + diff --git a/src/model/PayoutReport3DetailsSalesLine.js b/src/model/PayoutReport3DetailsSalesLine.js new file mode 100644 index 00000000..edd1d3a0 --- /dev/null +++ b/src/model/PayoutReport3DetailsSalesLine.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutReport3DetailsSalesLine model module. + * @module model/PayoutReport3DetailsSalesLine + * @version 1.0.0 + */ +class PayoutReport3DetailsSalesLine { + /** + * Constructs a new PayoutReport3DetailsSalesLine. + * @alias module:model/PayoutReport3DetailsSalesLine + */ + constructor() { + + PayoutReport3DetailsSalesLine.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3DetailsSalesLine from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3DetailsSalesLine} obj Optional instance to populate. + * @return {module:model/PayoutReport3DetailsSalesLine} The populated PayoutReport3DetailsSalesLine instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3DetailsSalesLine(); + + if (data.hasOwnProperty('Online')) { + obj['Online'] = ApiClient.convertToType(data['Online'], 'Number'); + } + if (data.hasOwnProperty('Pos')) { + obj['Pos'] = ApiClient.convertToType(data['Pos'], 'Number'); + } + if (data.hasOwnProperty('Other')) { + obj['Other'] = ApiClient.convertToType(data['Other'], 'Number'); + } + if (data.hasOwnProperty('Total')) { + obj['Total'] = ApiClient.convertToType(data['Total'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} Online + */ +PayoutReport3DetailsSalesLine.prototype['Online'] = undefined; + +/** + * @member {Number} Pos + */ +PayoutReport3DetailsSalesLine.prototype['Pos'] = undefined; + +/** + * @member {Number} Other + */ +PayoutReport3DetailsSalesLine.prototype['Other'] = undefined; + +/** + * @member {Number} Total + */ +PayoutReport3DetailsSalesLine.prototype['Total'] = undefined; + + + + + + +export default PayoutReport3DetailsSalesLine; + diff --git a/src/model/PayoutReport3DetailsSummary.js b/src/model/PayoutReport3DetailsSummary.js new file mode 100644 index 00000000..cc540969 --- /dev/null +++ b/src/model/PayoutReport3DetailsSummary.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutReport3DetailsSummary model module. + * @module model/PayoutReport3DetailsSummary + * @version 1.0.0 + */ +class PayoutReport3DetailsSummary { + /** + * Constructs a new PayoutReport3DetailsSummary. + * @alias module:model/PayoutReport3DetailsSummary + */ + constructor() { + + PayoutReport3DetailsSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3DetailsSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3DetailsSummary} obj Optional instance to populate. + * @return {module:model/PayoutReport3DetailsSummary} The populated PayoutReport3DetailsSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3DetailsSummary(); + + if (data.hasOwnProperty('Revenue')) { + obj['Revenue'] = ApiClient.convertToType(data['Revenue'], 'Number'); + } + if (data.hasOwnProperty('RevenueOfWhichCash')) { + obj['RevenueOfWhichCash'] = ApiClient.convertToType(data['RevenueOfWhichCash'], 'Number'); + } + if (data.hasOwnProperty('RevenueForFeeCalculations')) { + obj['RevenueForFeeCalculations'] = ApiClient.convertToType(data['RevenueForFeeCalculations'], 'Number'); + } + if (data.hasOwnProperty('FlipdishFees')) { + obj['FlipdishFees'] = ApiClient.convertToType(data['FlipdishFees'], 'Number'); + } + if (data.hasOwnProperty('Adjustments')) { + obj['Adjustments'] = ApiClient.convertToType(data['Adjustments'], 'Number'); + } + if (data.hasOwnProperty('ThirdPartyIntegrationFeesAndTips')) { + obj['ThirdPartyIntegrationFeesAndTips'] = ApiClient.convertToType(data['ThirdPartyIntegrationFeesAndTips'], 'Number'); + } + if (data.hasOwnProperty('Total')) { + obj['Total'] = ApiClient.convertToType(data['Total'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} Revenue + */ +PayoutReport3DetailsSummary.prototype['Revenue'] = undefined; + +/** + * @member {Number} RevenueOfWhichCash + */ +PayoutReport3DetailsSummary.prototype['RevenueOfWhichCash'] = undefined; + +/** + * @member {Number} RevenueForFeeCalculations + */ +PayoutReport3DetailsSummary.prototype['RevenueForFeeCalculations'] = undefined; + +/** + * @member {Number} FlipdishFees + */ +PayoutReport3DetailsSummary.prototype['FlipdishFees'] = undefined; + +/** + * @member {Number} Adjustments + */ +PayoutReport3DetailsSummary.prototype['Adjustments'] = undefined; + +/** + * @member {Number} ThirdPartyIntegrationFeesAndTips + */ +PayoutReport3DetailsSummary.prototype['ThirdPartyIntegrationFeesAndTips'] = undefined; + +/** + * @member {Number} Total + */ +PayoutReport3DetailsSummary.prototype['Total'] = undefined; + + + + + + +export default PayoutReport3DetailsSummary; + diff --git a/src/model/PayoutReport3Overview.js b/src/model/PayoutReport3Overview.js new file mode 100644 index 00000000..7a0fbef0 --- /dev/null +++ b/src/model/PayoutReport3Overview.js @@ -0,0 +1,81 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutReport3OverviewHeader from './PayoutReport3OverviewHeader'; +import PayoutReport3Store from './PayoutReport3Store'; + +/** + * The PayoutReport3Overview model module. + * @module model/PayoutReport3Overview + * @version 1.0.0 + */ +class PayoutReport3Overview { + /** + * Constructs a new PayoutReport3Overview. + * @alias module:model/PayoutReport3Overview + */ + constructor() { + + PayoutReport3Overview.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3Overview from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3Overview} obj Optional instance to populate. + * @return {module:model/PayoutReport3Overview} The populated PayoutReport3Overview instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3Overview(); + + if (data.hasOwnProperty('PayoutReport3OverviewHeader')) { + obj['PayoutReport3OverviewHeader'] = PayoutReport3OverviewHeader.constructFromObject(data['PayoutReport3OverviewHeader']); + } + if (data.hasOwnProperty('PayoutStores')) { + obj['PayoutStores'] = ApiClient.convertToType(data['PayoutStores'], [PayoutReport3Store]); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PayoutReport3OverviewHeader} PayoutReport3OverviewHeader + */ +PayoutReport3Overview.prototype['PayoutReport3OverviewHeader'] = undefined; + +/** + * @member {Array.} PayoutStores + */ +PayoutReport3Overview.prototype['PayoutStores'] = undefined; + + + + + + +export default PayoutReport3Overview; + diff --git a/src/model/PayoutReport3OverviewHeader.js b/src/model/PayoutReport3OverviewHeader.js new file mode 100644 index 00000000..df705506 --- /dev/null +++ b/src/model/PayoutReport3OverviewHeader.js @@ -0,0 +1,159 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutReport3OverviewHeader model module. + * @module model/PayoutReport3OverviewHeader + * @version 1.0.0 + */ +class PayoutReport3OverviewHeader { + /** + * Constructs a new PayoutReport3OverviewHeader. + * @alias module:model/PayoutReport3OverviewHeader + */ + constructor() { + + PayoutReport3OverviewHeader.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3OverviewHeader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3OverviewHeader} obj Optional instance to populate. + * @return {module:model/PayoutReport3OverviewHeader} The populated PayoutReport3OverviewHeader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3OverviewHeader(); + + if (data.hasOwnProperty('PayoutId')) { + obj['PayoutId'] = ApiClient.convertToType(data['PayoutId'], 'Number'); + } + if (data.hasOwnProperty('BankAccountId')) { + obj['BankAccountId'] = ApiClient.convertToType(data['BankAccountId'], 'Number'); + } + if (data.hasOwnProperty('IsManualPayout')) { + obj['IsManualPayout'] = ApiClient.convertToType(data['IsManualPayout'], 'Boolean'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('PayoutStatus')) { + obj['PayoutStatus'] = ApiClient.convertToType(data['PayoutStatus'], 'String'); + } + if (data.hasOwnProperty('CreatedDate')) { + obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'Date'); + } + if (data.hasOwnProperty('PeriodStartTime')) { + obj['PeriodStartTime'] = ApiClient.convertToType(data['PeriodStartTime'], 'Date'); + } + if (data.hasOwnProperty('PeriodEndTime')) { + obj['PeriodEndTime'] = ApiClient.convertToType(data['PeriodEndTime'], 'Date'); + } + if (data.hasOwnProperty('DestinationBank')) { + obj['DestinationBank'] = ApiClient.convertToType(data['DestinationBank'], 'String'); + } + if (data.hasOwnProperty('DestinationAccount')) { + obj['DestinationAccount'] = ApiClient.convertToType(data['DestinationAccount'], 'String'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} PayoutId + */ +PayoutReport3OverviewHeader.prototype['PayoutId'] = undefined; + +/** + * @member {Number} BankAccountId + */ +PayoutReport3OverviewHeader.prototype['BankAccountId'] = undefined; + +/** + * @member {Boolean} IsManualPayout + */ +PayoutReport3OverviewHeader.prototype['IsManualPayout'] = undefined; + +/** + * @member {String} AccountName + */ +PayoutReport3OverviewHeader.prototype['AccountName'] = undefined; + +/** + * @member {String} PayoutStatus + */ +PayoutReport3OverviewHeader.prototype['PayoutStatus'] = undefined; + +/** + * @member {Date} CreatedDate + */ +PayoutReport3OverviewHeader.prototype['CreatedDate'] = undefined; + +/** + * @member {Date} PeriodStartTime + */ +PayoutReport3OverviewHeader.prototype['PeriodStartTime'] = undefined; + +/** + * @member {Date} PeriodEndTime + */ +PayoutReport3OverviewHeader.prototype['PeriodEndTime'] = undefined; + +/** + * @member {String} DestinationBank + */ +PayoutReport3OverviewHeader.prototype['DestinationBank'] = undefined; + +/** + * @member {String} DestinationAccount + */ +PayoutReport3OverviewHeader.prototype['DestinationAccount'] = undefined; + +/** + * @member {Number} Amount + */ +PayoutReport3OverviewHeader.prototype['Amount'] = undefined; + +/** + * @member {String} Currency + */ +PayoutReport3OverviewHeader.prototype['Currency'] = undefined; + + + + + + +export default PayoutReport3OverviewHeader; + diff --git a/src/model/PayoutReport3RefundedOrder.js b/src/model/PayoutReport3RefundedOrder.js new file mode 100644 index 00000000..58f148db --- /dev/null +++ b/src/model/PayoutReport3RefundedOrder.js @@ -0,0 +1,156 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutReport3RefundedOrder model module. + * @module model/PayoutReport3RefundedOrder + * @version 1.0.0 + */ +class PayoutReport3RefundedOrder { + /** + * Constructs a new PayoutReport3RefundedOrder. + * @alias module:model/PayoutReport3RefundedOrder + */ + constructor() { + + PayoutReport3RefundedOrder.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3RefundedOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3RefundedOrder} obj Optional instance to populate. + * @return {module:model/PayoutReport3RefundedOrder} The populated PayoutReport3RefundedOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3RefundedOrder(); + + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('PlacedAtTime')) { + obj['PlacedAtTime'] = ApiClient.convertToType(data['PlacedAtTime'], 'Date'); + } + if (data.hasOwnProperty('ModifiedAtTime')) { + obj['ModifiedAtTime'] = ApiClient.convertToType(data['ModifiedAtTime'], 'Date'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('RefundedAmount')) { + obj['RefundedAmount'] = ApiClient.convertToType(data['RefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('RefundedFees')) { + obj['RefundedFees'] = ApiClient.convertToType(data['RefundedFees'], 'Number'); + } + if (data.hasOwnProperty('RefundType')) { + obj['RefundType'] = ApiClient.convertToType(data['RefundType'], 'String'); + } + if (data.hasOwnProperty('CashFeeRefundedToCustomer')) { + obj['CashFeeRefundedToCustomer'] = ApiClient.convertToType(data['CashFeeRefundedToCustomer'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} OrderId + */ +PayoutReport3RefundedOrder.prototype['OrderId'] = undefined; + +/** + * @member {Date} PlacedAtTime + */ +PayoutReport3RefundedOrder.prototype['PlacedAtTime'] = undefined; + +/** + * @member {Date} ModifiedAtTime + */ +PayoutReport3RefundedOrder.prototype['ModifiedAtTime'] = undefined; + +/** + * @member {String} StoreName + */ +PayoutReport3RefundedOrder.prototype['StoreName'] = undefined; + +/** + * @member {module:model/PayoutReport3RefundedOrder.TypeEnum} Type + */ +PayoutReport3RefundedOrder.prototype['Type'] = undefined; + +/** + * @member {Number} RefundedAmount + */ +PayoutReport3RefundedOrder.prototype['RefundedAmount'] = undefined; + +/** + * @member {Number} RefundedFees + */ +PayoutReport3RefundedOrder.prototype['RefundedFees'] = undefined; + +/** + * @member {String} RefundType + */ +PayoutReport3RefundedOrder.prototype['RefundType'] = undefined; + +/** + * @member {Number} CashFeeRefundedToCustomer + */ +PayoutReport3RefundedOrder.prototype['CashFeeRefundedToCustomer'] = undefined; + + + + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +PayoutReport3RefundedOrder['TypeEnum'] = { + + /** + * value: "Cash" + * @const + */ + "Cash": "Cash", + + /** + * value: "Card" + * @const + */ + "Card": "Card" +}; + + + +export default PayoutReport3RefundedOrder; + diff --git a/src/model/PayoutReport3Store.js b/src/model/PayoutReport3Store.js new file mode 100644 index 00000000..93b3ac1b --- /dev/null +++ b/src/model/PayoutReport3Store.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutReport3Store model module. + * @module model/PayoutReport3Store + * @version 1.0.0 + */ +class PayoutReport3Store { + /** + * Constructs a new PayoutReport3Store. + * @alias module:model/PayoutReport3Store + */ + constructor() { + + PayoutReport3Store.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutReport3Store from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutReport3Store} obj Optional instance to populate. + * @return {module:model/PayoutReport3Store} The populated PayoutReport3Store instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutReport3Store(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} StoreId + */ +PayoutReport3Store.prototype['StoreId'] = undefined; + +/** + * @member {String} StoreName + */ +PayoutReport3Store.prototype['StoreName'] = undefined; + + + + + + +export default PayoutReport3Store; + diff --git a/src/model/PayoutRequestIds.js b/src/model/PayoutRequestIds.js new file mode 100644 index 00000000..2c359e48 --- /dev/null +++ b/src/model/PayoutRequestIds.js @@ -0,0 +1,121 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutRequestIds model module. + * @module model/PayoutRequestIds + * @version 1.0.0 + */ +class PayoutRequestIds { + /** + * Constructs a new PayoutRequestIds. + * Payout Request ids for filtering on Payouts + * @alias module:model/PayoutRequestIds + */ + constructor() { + + PayoutRequestIds.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutRequestIds from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutRequestIds} obj Optional instance to populate. + * @return {module:model/PayoutRequestIds} The populated PayoutRequestIds instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutRequestIds(); + + if (data.hasOwnProperty('BankAccountIds')) { + obj['BankAccountIds'] = ApiClient.convertToType(data['BankAccountIds'], ['Number']); + } + if (data.hasOwnProperty('States')) { + obj['States'] = ApiClient.convertToType(data['States'], ['String']); + } + } + return obj; + } + + +} + +/** + * List of bank account ids to search for + * @member {Array.} BankAccountIds + */ +PayoutRequestIds.prototype['BankAccountIds'] = undefined; + +/** + * List of {Flipdish.PublicModels.V1.Payouts.PayoutStatus} so search for + * @member {Array.} States + */ +PayoutRequestIds.prototype['States'] = undefined; + + + + + +/** + * Allowed values for the States property. + * @enum {String} + * @readonly + */ +PayoutRequestIds['StatesEnum'] = { + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "InTransit" + * @const + */ + "InTransit": "InTransit", + + /** + * value: "Paid" + * @const + */ + "Paid": "Paid", + + /** + * value: "Failed" + * @const + */ + "Failed": "Failed", + + /** + * value: "Cancelled" + * @const + */ + "Cancelled": "Cancelled" +}; + + + +export default PayoutRequestIds; + diff --git a/src/model/PayoutStore.js b/src/model/PayoutStore.js new file mode 100644 index 00000000..4c7b10ac --- /dev/null +++ b/src/model/PayoutStore.js @@ -0,0 +1,171 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BalanceDetails from './BalanceDetails'; +import ChargebackDetails from './ChargebackDetails'; +import FlipdishFeesDetails from './FlipdishFeesDetails'; +import OtherChargesDetails from './OtherChargesDetails'; +import PosRevenueDetails from './PosRevenueDetails'; +import RevenueAdjustmentsDetails from './RevenueAdjustmentsDetails'; +import RevenueDetail from './RevenueDetail'; +import ThirdPartyFeesDetails from './ThirdPartyFeesDetails'; + +/** + * The PayoutStore model module. + * @module model/PayoutStore + * @version 1.0.0 + */ +class PayoutStore { + /** + * Constructs a new PayoutStore. + * Payout details for a single store + * @alias module:model/PayoutStore + */ + constructor() { + + PayoutStore.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutStore} obj Optional instance to populate. + * @return {module:model/PayoutStore} The populated PayoutStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutStore(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('OnlineRevenue')) { + obj['OnlineRevenue'] = RevenueDetail.constructFromObject(data['OnlineRevenue']); + } + if (data.hasOwnProperty('Revenue')) { + obj['Revenue'] = RevenueDetail.constructFromObject(data['Revenue']); + } + if (data.hasOwnProperty('RevenueAdjustments')) { + obj['RevenueAdjustments'] = RevenueAdjustmentsDetails.constructFromObject(data['RevenueAdjustments']); + } + if (data.hasOwnProperty('FlipdishFees')) { + obj['FlipdishFees'] = FlipdishFeesDetails.constructFromObject(data['FlipdishFees']); + } + if (data.hasOwnProperty('Chargebacks')) { + obj['Chargebacks'] = ChargebackDetails.constructFromObject(data['Chargebacks']); + } + if (data.hasOwnProperty('OtherCharges')) { + obj['OtherCharges'] = OtherChargesDetails.constructFromObject(data['OtherCharges']); + } + if (data.hasOwnProperty('Balance')) { + obj['Balance'] = BalanceDetails.constructFromObject(data['Balance']); + } + if (data.hasOwnProperty('PosRevenue')) { + obj['PosRevenue'] = PosRevenueDetails.constructFromObject(data['PosRevenue']); + } + if (data.hasOwnProperty('ThirdPartyFees')) { + obj['ThirdPartyFees'] = ThirdPartyFeesDetails.constructFromObject(data['ThirdPartyFees']); + } + } + return obj; + } + + +} + +/** + * The id of the Store. + * @member {Number} StoreId + */ +PayoutStore.prototype['StoreId'] = undefined; + +/** + * Name of the store + * @member {String} StoreName + */ +PayoutStore.prototype['StoreName'] = undefined; + +/** + * Amount of the payout for this Store + * @member {Number} Amount + */ +PayoutStore.prototype['Amount'] = undefined; + +/** + * @member {module:model/RevenueDetail} OnlineRevenue + */ +PayoutStore.prototype['OnlineRevenue'] = undefined; + +/** + * @member {module:model/RevenueDetail} Revenue + */ +PayoutStore.prototype['Revenue'] = undefined; + +/** + * @member {module:model/RevenueAdjustmentsDetails} RevenueAdjustments + */ +PayoutStore.prototype['RevenueAdjustments'] = undefined; + +/** + * @member {module:model/FlipdishFeesDetails} FlipdishFees + */ +PayoutStore.prototype['FlipdishFees'] = undefined; + +/** + * @member {module:model/ChargebackDetails} Chargebacks + */ +PayoutStore.prototype['Chargebacks'] = undefined; + +/** + * @member {module:model/OtherChargesDetails} OtherCharges + */ +PayoutStore.prototype['OtherCharges'] = undefined; + +/** + * @member {module:model/BalanceDetails} Balance + */ +PayoutStore.prototype['Balance'] = undefined; + +/** + * @member {module:model/PosRevenueDetails} PosRevenue + */ +PayoutStore.prototype['PosRevenue'] = undefined; + +/** + * @member {module:model/ThirdPartyFeesDetails} ThirdPartyFees + */ +PayoutStore.prototype['ThirdPartyFees'] = undefined; + + + + + + +export default PayoutStore; + diff --git a/src/model/PayoutSummary.js b/src/model/PayoutSummary.js new file mode 100644 index 00000000..1d9a566a --- /dev/null +++ b/src/model/PayoutSummary.js @@ -0,0 +1,826 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PayoutSummary model module. + * @module model/PayoutSummary + * @version 1.0.0 + */ +class PayoutSummary { + /** + * Constructs a new PayoutSummary. + * Holds the information for a whitelabel payouts summary. + * @alias module:model/PayoutSummary + */ + constructor() { + + PayoutSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PayoutSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PayoutSummary} obj Optional instance to populate. + * @return {module:model/PayoutSummary} The populated PayoutSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PayoutSummary(); + + if (data.hasOwnProperty('PayoutStatus')) { + obj['PayoutStatus'] = ApiClient.convertToType(data['PayoutStatus'], 'String'); + } + if (data.hasOwnProperty('TotalAmount')) { + obj['TotalAmount'] = ApiClient.convertToType(data['TotalAmount'], 'Number'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('TotalCount')) { + obj['TotalCount'] = ApiClient.convertToType(data['TotalCount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Status of the payout + * @member {module:model/PayoutSummary.PayoutStatusEnum} PayoutStatus + */ +PayoutSummary.prototype['PayoutStatus'] = undefined; + +/** + * Total payouts amount + * @member {Number} TotalAmount + */ +PayoutSummary.prototype['TotalAmount'] = undefined; + +/** + * Payout currency + * @member {module:model/PayoutSummary.CurrencyEnum} Currency + */ +PayoutSummary.prototype['Currency'] = undefined; + +/** + * Total payouts count + * @member {Number} TotalCount + */ +PayoutSummary.prototype['TotalCount'] = undefined; + + + + + +/** + * Allowed values for the PayoutStatus property. + * @enum {String} + * @readonly + */ +PayoutSummary['PayoutStatusEnum'] = { + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "InTransit" + * @const + */ + "InTransit": "InTransit", + + /** + * value: "Paid" + * @const + */ + "Paid": "Paid", + + /** + * value: "Failed" + * @const + */ + "Failed": "Failed", + + /** + * value: "Cancelled" + * @const + */ + "Cancelled": "Cancelled" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +PayoutSummary['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default PayoutSummary; + diff --git a/src/model/PendingInvitation.js b/src/model/PendingInvitation.js new file mode 100644 index 00000000..186777f2 --- /dev/null +++ b/src/model/PendingInvitation.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PendingInvitation model module. + * @module model/PendingInvitation + * @version 1.0.0 + */ +class PendingInvitation { + /** + * Constructs a new PendingInvitation. + * An invitation to join a team at Flipdish. + * @alias module:model/PendingInvitation + */ + constructor() { + + PendingInvitation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PendingInvitation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PendingInvitation} obj Optional instance to populate. + * @return {module:model/PendingInvitation} The populated PendingInvitation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PendingInvitation(); + + if (data.hasOwnProperty('AppName')) { + obj['AppName'] = ApiClient.convertToType(data['AppName'], 'String'); + } + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('Otc')) { + obj['Otc'] = ApiClient.convertToType(data['Otc'], 'String'); + } + if (data.hasOwnProperty('CreatedAt')) { + obj['CreatedAt'] = ApiClient.convertToType(data['CreatedAt'], 'Date'); + } + } + return obj; + } + + +} + +/** + * The name of the brand that you have been invited to join. + * @member {String} AppName + */ +PendingInvitation.prototype['AppName'] = undefined; + +/** + * The email address that the invitation was sent to. + * @member {String} Email + */ +PendingInvitation.prototype['Email'] = undefined; + +/** + * The one-time code that can be used to accept the invitation. + * @member {String} Otc + */ +PendingInvitation.prototype['Otc'] = undefined; + +/** + * The time that the invitation was created. + * @member {Date} CreatedAt + */ +PendingInvitation.prototype['CreatedAt'] = undefined; + + + + + + +export default PendingInvitation; + diff --git a/src/model/PendingMenuChanges.js b/src/model/PendingMenuChanges.js new file mode 100644 index 00000000..bb429c47 --- /dev/null +++ b/src/model/PendingMenuChanges.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PendingMenuChanges model module. + * @module model/PendingMenuChanges + * @version 1.0.0 + */ +class PendingMenuChanges { + /** + * Constructs a new PendingMenuChanges. + * Pending Menu Changes + * @alias module:model/PendingMenuChanges + */ + constructor() { + + PendingMenuChanges.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PendingMenuChanges from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PendingMenuChanges} obj Optional instance to populate. + * @return {module:model/PendingMenuChanges} The populated PendingMenuChanges instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PendingMenuChanges(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Unique catalog item id + * @member {String} CatalogItemId + */ +PendingMenuChanges.prototype['CatalogItemId'] = undefined; + +/** + * Unique menu id + * @member {Number} MenuId + */ +PendingMenuChanges.prototype['MenuId'] = undefined; + + + + + + +export default PendingMenuChanges; + diff --git a/src/model/PendingMenuChangesSummaries.js b/src/model/PendingMenuChangesSummaries.js new file mode 100644 index 00000000..787bb512 --- /dev/null +++ b/src/model/PendingMenuChangesSummaries.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PendingMenuChangesSummaries model module. + * @module model/PendingMenuChangesSummaries + * @version 1.0.0 + */ +class PendingMenuChangesSummaries { + /** + * Constructs a new PendingMenuChangesSummaries. + * Pending menu changes summaries + * @alias module:model/PendingMenuChangesSummaries + */ + constructor() { + + PendingMenuChangesSummaries.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PendingMenuChangesSummaries from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PendingMenuChangesSummaries} obj Optional instance to populate. + * @return {module:model/PendingMenuChangesSummaries} The populated PendingMenuChangesSummaries instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PendingMenuChangesSummaries(); + + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('TotalPendingChanges')) { + obj['TotalPendingChanges'] = ApiClient.convertToType(data['TotalPendingChanges'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Menu id + * @member {Number} MenuId + */ +PendingMenuChangesSummaries.prototype['MenuId'] = undefined; + +/** + * Sum of pending changes per menu id + * @member {Number} TotalPendingChanges + */ +PendingMenuChangesSummaries.prototype['TotalPendingChanges'] = undefined; + + + + + + +export default PendingMenuChangesSummaries; + diff --git a/src/model/PercentDiscountDetails.js b/src/model/PercentDiscountDetails.js new file mode 100644 index 00000000..10fe00a2 --- /dev/null +++ b/src/model/PercentDiscountDetails.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PercentDiscountDetails model module. + * @module model/PercentDiscountDetails + * @version 1.0.0 + */ +class PercentDiscountDetails { + /** + * Constructs a new PercentDiscountDetails. + * Percent discount details + * @alias module:model/PercentDiscountDetails + */ + constructor() { + + PercentDiscountDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PercentDiscountDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PercentDiscountDetails} obj Optional instance to populate. + * @return {module:model/PercentDiscountDetails} The populated PercentDiscountDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PercentDiscountDetails(); + + if (data.hasOwnProperty('PercentageDiscount')) { + obj['PercentageDiscount'] = ApiClient.convertToType(data['PercentageDiscount'], 'Number'); + } + if (data.hasOwnProperty('MaxDiscountAmount')) { + obj['MaxDiscountAmount'] = ApiClient.convertToType(data['MaxDiscountAmount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Percentage discount + * @member {Number} PercentageDiscount + */ +PercentDiscountDetails.prototype['PercentageDiscount'] = undefined; + +/** + * 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). + * @member {Number} MaxDiscountAmount + */ +PercentDiscountDetails.prototype['MaxDiscountAmount'] = undefined; + + + + + + +export default PercentDiscountDetails; + diff --git a/src/model/PhoneCall.js b/src/model/PhoneCall.js new file mode 100644 index 00000000..8b413bbb --- /dev/null +++ b/src/model/PhoneCall.js @@ -0,0 +1,217 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PhoneCall model module. + * @module model/PhoneCall + * @version 1.0.0 + */ +class PhoneCall { + /** + * Constructs a new PhoneCall. + * Phone call + * @alias module:model/PhoneCall + */ + constructor() { + + PhoneCall.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PhoneCall from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PhoneCall} obj Optional instance to populate. + * @return {module:model/PhoneCall} The populated PhoneCall instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PhoneCall(); + + if (data.hasOwnProperty('PhoneCallId')) { + obj['PhoneCallId'] = ApiClient.convertToType(data['PhoneCallId'], 'Number'); + } + if (data.hasOwnProperty('TimeOfCall')) { + obj['TimeOfCall'] = ApiClient.convertToType(data['TimeOfCall'], 'Date'); + } + if (data.hasOwnProperty('TimeOfCallLocal')) { + obj['TimeOfCallLocal'] = ApiClient.convertToType(data['TimeOfCallLocal'], 'Date'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('CallerName')) { + obj['CallerName'] = ApiClient.convertToType(data['CallerName'], 'String'); + } + if (data.hasOwnProperty('CallerUserId')) { + obj['CallerUserId'] = ApiClient.convertToType(data['CallerUserId'], 'Number'); + } + if (data.hasOwnProperty('CallerNumber')) { + obj['CallerNumber'] = ApiClient.convertToType(data['CallerNumber'], 'String'); + } + if (data.hasOwnProperty('CallLengthInSeconds')) { + obj['CallLengthInSeconds'] = ApiClient.convertToType(data['CallLengthInSeconds'], 'Number'); + } + if (data.hasOwnProperty('CallStatus')) { + obj['CallStatus'] = ApiClient.convertToType(data['CallStatus'], 'String'); + } + } + return obj; + } + + +} + +/** + * Phone call id + * @member {Number} PhoneCallId + */ +PhoneCall.prototype['PhoneCallId'] = undefined; + +/** + * Time of the call + * @member {Date} TimeOfCall + */ +PhoneCall.prototype['TimeOfCall'] = undefined; + +/** + * Time of the call, local to the store to which the call was made + * @member {Date} TimeOfCallLocal + */ +PhoneCall.prototype['TimeOfCallLocal'] = undefined; + +/** + * ID of the store that the call was TO + * @member {Number} StoreId + */ +PhoneCall.prototype['StoreId'] = undefined; + +/** + * Name of the store that the call was TO + * @member {String} StoreName + */ +PhoneCall.prototype['StoreName'] = undefined; + +/** + * Name of the caller + * @member {String} CallerName + */ +PhoneCall.prototype['CallerName'] = undefined; + +/** + * UserID of the caller + * @member {Number} CallerUserId + */ +PhoneCall.prototype['CallerUserId'] = undefined; + +/** + * Phone number of the caller + * @member {String} CallerNumber + */ +PhoneCall.prototype['CallerNumber'] = undefined; + +/** + * The amount of time the call took + * @member {Number} CallLengthInSeconds + */ +PhoneCall.prototype['CallLengthInSeconds'] = undefined; + +/** + * The status of the call + * @member {module:model/PhoneCall.CallStatusEnum} CallStatus + */ +PhoneCall.prototype['CallStatus'] = undefined; + + + + + +/** + * Allowed values for the CallStatus property. + * @enum {String} + * @readonly + */ +PhoneCall['CallStatusEnum'] = { + + /** + * value: "Queued" + * @const + */ + "Queued": "Queued", + + /** + * value: "Ringing" + * @const + */ + "Ringing": "Ringing", + + /** + * value: "InProgress" + * @const + */ + "InProgress": "InProgress", + + /** + * value: "Completed" + * @const + */ + "Completed": "Completed", + + /** + * value: "Failed" + * @const + */ + "Failed": "Failed", + + /** + * value: "Busy" + * @const + */ + "Busy": "Busy", + + /** + * value: "NoAnswer" + * @const + */ + "NoAnswer": "NoAnswer", + + /** + * value: "Unknown" + * @const + */ + "Unknown": "Unknown", + + /** + * value: "Canceled" + * @const + */ + "Canceled": "Canceled" +}; + + + +export default PhoneCall; + diff --git a/src/model/PhoneCallEndedEvent.js b/src/model/PhoneCallEndedEvent.js new file mode 100644 index 00000000..064b430b --- /dev/null +++ b/src/model/PhoneCallEndedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PhoneCall from './PhoneCall'; + +/** + * The PhoneCallEndedEvent model module. + * @module model/PhoneCallEndedEvent + * @version 1.0.0 + */ +class PhoneCallEndedEvent { + /** + * Constructs a new PhoneCallEndedEvent. + * Phone call ended event + * @alias module:model/PhoneCallEndedEvent + */ + constructor() { + + PhoneCallEndedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PhoneCallEndedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PhoneCallEndedEvent} obj Optional instance to populate. + * @return {module:model/PhoneCallEndedEvent} The populated PhoneCallEndedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PhoneCallEndedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('PhoneCall')) { + obj['PhoneCall'] = PhoneCall.constructFromObject(data['PhoneCall']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PhoneCallEndedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +PhoneCallEndedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +PhoneCallEndedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/PhoneCall} PhoneCall + */ +PhoneCallEndedEvent.prototype['PhoneCall'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PhoneCallEndedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PhoneCallEndedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PhoneCallEndedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PhoneCallEndedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PhoneCallEndedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PhoneCallEndedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PhoneCallEndedEvent; + diff --git a/src/model/PhoneCallStartedEvent.js b/src/model/PhoneCallStartedEvent.js new file mode 100644 index 00000000..ca5b4c24 --- /dev/null +++ b/src/model/PhoneCallStartedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PhoneCall from './PhoneCall'; + +/** + * The PhoneCallStartedEvent model module. + * @module model/PhoneCallStartedEvent + * @version 1.0.0 + */ +class PhoneCallStartedEvent { + /** + * Constructs a new PhoneCallStartedEvent. + * Phone call started event + * @alias module:model/PhoneCallStartedEvent + */ + constructor() { + + PhoneCallStartedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PhoneCallStartedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PhoneCallStartedEvent} obj Optional instance to populate. + * @return {module:model/PhoneCallStartedEvent} The populated PhoneCallStartedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PhoneCallStartedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('PhoneCall')) { + obj['PhoneCall'] = PhoneCall.constructFromObject(data['PhoneCall']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PhoneCallStartedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +PhoneCallStartedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +PhoneCallStartedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/PhoneCall} PhoneCall + */ +PhoneCallStartedEvent.prototype['PhoneCall'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PhoneCallStartedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PhoneCallStartedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PhoneCallStartedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PhoneCallStartedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PhoneCallStartedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PhoneCallStartedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PhoneCallStartedEvent; + diff --git a/src/model/PosRevenueDetails.js b/src/model/PosRevenueDetails.js new file mode 100644 index 00000000..60af821f --- /dev/null +++ b/src/model/PosRevenueDetails.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PosRevenueDetails model module. + * @module model/PosRevenueDetails + * @version 1.0.0 + */ +class PosRevenueDetails { + /** + * Constructs a new PosRevenueDetails. + * Breakdown of POS charges + * @alias module:model/PosRevenueDetails + */ + constructor() { + + PosRevenueDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PosRevenueDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PosRevenueDetails} obj Optional instance to populate. + * @return {module:model/PosRevenueDetails} The populated PosRevenueDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PosRevenueDetails(); + + if (data.hasOwnProperty('PosSalesAmount')) { + obj['PosSalesAmount'] = ApiClient.convertToType(data['PosSalesAmount'], 'Number'); + } + if (data.hasOwnProperty('PosSalesTax')) { + obj['PosSalesTax'] = ApiClient.convertToType(data['PosSalesTax'], 'Number'); + } + if (data.hasOwnProperty('PosSalesTips')) { + obj['PosSalesTips'] = ApiClient.convertToType(data['PosSalesTips'], 'Number'); + } + if (data.hasOwnProperty('TotalPosRevenue')) { + obj['TotalPosRevenue'] = ApiClient.convertToType(data['TotalPosRevenue'], 'Number'); + } + } + return obj; + } + + +} + +/** + * POS sale amount for the store + * @member {Number} PosSalesAmount + */ +PosRevenueDetails.prototype['PosSalesAmount'] = undefined; + +/** + * POS sale Tax for the store + * @member {Number} PosSalesTax + */ +PosRevenueDetails.prototype['PosSalesTax'] = undefined; + +/** + * POS sale tips for the store + * @member {Number} PosSalesTips + */ +PosRevenueDetails.prototype['PosSalesTips'] = undefined; + +/** + * POS Total Revenue for the store + * @member {Number} TotalPosRevenue + */ +PosRevenueDetails.prototype['TotalPosRevenue'] = undefined; + + + + + + +export default PosRevenueDetails; + diff --git a/src/model/PreOrderConfig.js b/src/model/PreOrderConfig.js new file mode 100644 index 00000000..f9b296e5 --- /dev/null +++ b/src/model/PreOrderConfig.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PreOrderConfig model module. + * @module model/PreOrderConfig + * @version 1.0.0 + */ +class PreOrderConfig { + /** + * Constructs a new PreOrderConfig. + * Pre Order Config + * @alias module:model/PreOrderConfig + */ + constructor() { + + PreOrderConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PreOrderConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PreOrderConfig} obj Optional instance to populate. + * @return {module:model/PreOrderConfig} The populated PreOrderConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PreOrderConfig(); + + if (data.hasOwnProperty('LeadTimeMinutes')) { + obj['LeadTimeMinutes'] = ApiClient.convertToType(data['LeadTimeMinutes'], 'Number'); + } + if (data.hasOwnProperty('IntervalMinutes')) { + obj['IntervalMinutes'] = ApiClient.convertToType(data['IntervalMinutes'], 'Number'); + } + if (data.hasOwnProperty('MaxOrderAheadDays')) { + obj['MaxOrderAheadDays'] = ApiClient.convertToType(data['MaxOrderAheadDays'], 'Number'); + } + if (data.hasOwnProperty('IncludeAsap')) { + obj['IncludeAsap'] = ApiClient.convertToType(data['IncludeAsap'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeMoreGranularInitialTime')) { + obj['IncludeMoreGranularInitialTime'] = ApiClient.convertToType(data['IncludeMoreGranularInitialTime'], 'Boolean'); + } + if (data.hasOwnProperty('CutOffTimePreviousDayBasic')) { + obj['CutOffTimePreviousDayBasic'] = ApiClient.convertToType(data['CutOffTimePreviousDayBasic'], 'String'); + } + if (data.hasOwnProperty('CutOffTimeCurrentDayBasic')) { + obj['CutOffTimeCurrentDayBasic'] = ApiClient.convertToType(data['CutOffTimeCurrentDayBasic'], 'String'); + } + if (data.hasOwnProperty('PreOrderTimeDisplayType')) { + obj['PreOrderTimeDisplayType'] = ApiClient.convertToType(data['PreOrderTimeDisplayType'], 'String'); + } + if (data.hasOwnProperty('AlwaysAppearOpen')) { + obj['AlwaysAppearOpen'] = ApiClient.convertToType(data['AlwaysAppearOpen'], 'Boolean'); + } + if (data.hasOwnProperty('RequireExplicitSelectAlways')) { + obj['RequireExplicitSelectAlways'] = ApiClient.convertToType(data['RequireExplicitSelectAlways'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Lead Time in Minutes + * @member {Number} LeadTimeMinutes + */ +PreOrderConfig.prototype['LeadTimeMinutes'] = undefined; + +/** + * Interval in minutes + * @member {Number} IntervalMinutes + */ +PreOrderConfig.prototype['IntervalMinutes'] = undefined; + +/** + * Max Days to order ahead + * @member {Number} MaxOrderAheadDays + */ +PreOrderConfig.prototype['MaxOrderAheadDays'] = undefined; + +/** + * Show ASAP as option + * @member {Boolean} IncludeAsap + */ +PreOrderConfig.prototype['IncludeAsap'] = undefined; + +/** + * Granual Init' Time + * @member {Boolean} IncludeMoreGranularInitialTime + */ +PreOrderConfig.prototype['IncludeMoreGranularInitialTime'] = undefined; + +/** + * Cut off time previous day + * @member {String} CutOffTimePreviousDayBasic + */ +PreOrderConfig.prototype['CutOffTimePreviousDayBasic'] = undefined; + +/** + * Cut off time current day + * @member {String} CutOffTimeCurrentDayBasic + */ +PreOrderConfig.prototype['CutOffTimeCurrentDayBasic'] = undefined; + +/** + * Type of time displayed. + * @member {module:model/PreOrderConfig.PreOrderTimeDisplayTypeEnum} PreOrderTimeDisplayType + */ +PreOrderConfig.prototype['PreOrderTimeDisplayType'] = undefined; + +/** + * Specifies whether a customer can pre-order outside the store opening hours or not. + * @member {Boolean} AlwaysAppearOpen + */ +PreOrderConfig.prototype['AlwaysAppearOpen'] = undefined; + +/** + * Force customer to select collection time. + * @member {Boolean} RequireExplicitSelectAlways + */ +PreOrderConfig.prototype['RequireExplicitSelectAlways'] = undefined; + + + + + +/** + * Allowed values for the PreOrderTimeDisplayType property. + * @enum {String} + * @readonly + */ +PreOrderConfig['PreOrderTimeDisplayTypeEnum'] = { + + /** + * value: "SingleTime" + * @const + */ + "SingleTime": "SingleTime", + + /** + * value: "StartAndEndTime" + * @const + */ + "StartAndEndTime": "StartAndEndTime", + + /** + * value: "DayOnly" + * @const + */ + "DayOnly": "DayOnly" +}; + + + +export default PreOrderConfig; + diff --git a/src/model/PreOrderTime.js b/src/model/PreOrderTime.js new file mode 100644 index 00000000..4e9e9a1c --- /dev/null +++ b/src/model/PreOrderTime.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PreOrderTime model module. + * @module model/PreOrderTime + * @version 1.0.0 + */ +class PreOrderTime { + /** + * Constructs a new PreOrderTime. + * Time order can be placed + * @alias module:model/PreOrderTime + */ + constructor() { + + PreOrderTime.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PreOrderTime from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PreOrderTime} obj Optional instance to populate. + * @return {module:model/PreOrderTime} The populated PreOrderTime instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PreOrderTime(); + + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'Date'); + } + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Start Time + * @member {Date} StartTime + */ +PreOrderTime.prototype['StartTime'] = undefined; + +/** + * End Time + * @member {Date} EndTime + */ +PreOrderTime.prototype['EndTime'] = undefined; + + + + + + +export default PreOrderTime; + diff --git a/src/model/PredefinedAnswer.js b/src/model/PredefinedAnswer.js new file mode 100644 index 00000000..7bd803ec --- /dev/null +++ b/src/model/PredefinedAnswer.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PredefinedAnswer model module. + * @module model/PredefinedAnswer + * @version 1.0.0 + */ +class PredefinedAnswer { + /** + * Constructs a new PredefinedAnswer. + * Predefined answer + * @alias module:model/PredefinedAnswer + */ + constructor() { + + PredefinedAnswer.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PredefinedAnswer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PredefinedAnswer} obj Optional instance to populate. + * @return {module:model/PredefinedAnswer} The populated PredefinedAnswer instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PredefinedAnswer(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('Text')) { + obj['Text'] = ApiClient.convertToType(data['Text'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier + * @member {Number} Id + */ +PredefinedAnswer.prototype['Id'] = undefined; + +/** + * Text + * @member {String} Text + */ +PredefinedAnswer.prototype['Text'] = undefined; + + + + + + +export default PredefinedAnswer; + diff --git a/src/model/PreviousOrder.js b/src/model/PreviousOrder.js new file mode 100644 index 00000000..dc565263 --- /dev/null +++ b/src/model/PreviousOrder.js @@ -0,0 +1,936 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PreviousOrderItem from './PreviousOrderItem'; +import TaxRate from './TaxRate'; + +/** + * The PreviousOrder model module. + * @module model/PreviousOrder + * @version 1.0.0 + */ +class PreviousOrder { + /** + * Constructs a new PreviousOrder. + * @alias module:model/PreviousOrder + */ + constructor() { + + PreviousOrder.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PreviousOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PreviousOrder} obj Optional instance to populate. + * @return {module:model/PreviousOrder} The populated PreviousOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PreviousOrder(); + + if (data.hasOwnProperty('DeliveryType')) { + obj['DeliveryType'] = ApiClient.convertToType(data['DeliveryType'], 'String'); + } + if (data.hasOwnProperty('DeliveryLocationAddressString')) { + obj['DeliveryLocationAddressString'] = ApiClient.convertToType(data['DeliveryLocationAddressString'], 'String'); + } + if (data.hasOwnProperty('PaymentAccountType')) { + obj['PaymentAccountType'] = ApiClient.convertToType(data['PaymentAccountType'], 'String'); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('RestaurantName')) { + obj['RestaurantName'] = ApiClient.convertToType(data['RestaurantName'], 'String'); + } + if (data.hasOwnProperty('LocalOrderId')) { + obj['LocalOrderId'] = ApiClient.convertToType(data['LocalOrderId'], 'String'); + } + if (data.hasOwnProperty('TableServiceCategory')) { + obj['TableServiceCategory'] = ApiClient.convertToType(data['TableServiceCategory'], 'String'); + } + if (data.hasOwnProperty('PickupLocationOptionValue')) { + obj['PickupLocationOptionValue'] = ApiClient.convertToType(data['PickupLocationOptionValue'], 'String'); + } + if (data.hasOwnProperty('CustomerName')) { + obj['CustomerName'] = ApiClient.convertToType(data['CustomerName'], 'String'); + } + if (data.hasOwnProperty('PhoneNumberInternationalFormatString')) { + obj['PhoneNumberInternationalFormatString'] = ApiClient.convertToType(data['PhoneNumberInternationalFormatString'], 'String'); + } + if (data.hasOwnProperty('DeliveryInstructions')) { + obj['DeliveryInstructions'] = ApiClient.convertToType(data['DeliveryInstructions'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('ProcessingFee')) { + obj['ProcessingFee'] = ApiClient.convertToType(data['ProcessingFee'], 'Number'); + } + if (data.hasOwnProperty('ServiceChargePercentage')) { + obj['ServiceChargePercentage'] = ApiClient.convertToType(data['ServiceChargePercentage'], 'Number'); + } + if (data.hasOwnProperty('ServiceChargeAmount')) { + obj['ServiceChargeAmount'] = ApiClient.convertToType(data['ServiceChargeAmount'], 'Number'); + } + if (data.hasOwnProperty('TipAmount')) { + obj['TipAmount'] = ApiClient.convertToType(data['TipAmount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryAmount')) { + obj['DeliveryAmount'] = ApiClient.convertToType(data['DeliveryAmount'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFeeAmount')) { + obj['DepositReturnFeeAmount'] = ApiClient.convertToType(data['DepositReturnFeeAmount'], 'Number'); + } + if (data.hasOwnProperty('TotalTax')) { + obj['TotalTax'] = ApiClient.convertToType(data['TotalTax'], 'Number'); + } + if (data.hasOwnProperty('TotalAmount')) { + obj['TotalAmount'] = ApiClient.convertToType(data['TotalAmount'], 'Number'); + } + if (data.hasOwnProperty('Items')) { + obj['Items'] = ApiClient.convertToType(data['Items'], [PreviousOrderItem]); + } + if (data.hasOwnProperty('TaxRates')) { + obj['TaxRates'] = ApiClient.convertToType(data['TaxRates'], [TaxRate]); + } + if (data.hasOwnProperty('WhiteLabelId')) { + obj['WhiteLabelId'] = ApiClient.convertToType(data['WhiteLabelId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} DeliveryType + */ +PreviousOrder.prototype['DeliveryType'] = undefined; + +/** + * @member {String} DeliveryLocationAddressString + */ +PreviousOrder.prototype['DeliveryLocationAddressString'] = undefined; + +/** + * @member {String} PaymentAccountType + */ +PreviousOrder.prototype['PaymentAccountType'] = undefined; + +/** + * @member {Number} OrderId + */ +PreviousOrder.prototype['OrderId'] = undefined; + +/** + * @member {String} RestaurantName + */ +PreviousOrder.prototype['RestaurantName'] = undefined; + +/** + * @member {String} LocalOrderId + */ +PreviousOrder.prototype['LocalOrderId'] = undefined; + +/** + * @member {String} TableServiceCategory + */ +PreviousOrder.prototype['TableServiceCategory'] = undefined; + +/** + * @member {String} PickupLocationOptionValue + */ +PreviousOrder.prototype['PickupLocationOptionValue'] = undefined; + +/** + * @member {String} CustomerName + */ +PreviousOrder.prototype['CustomerName'] = undefined; + +/** + * @member {String} PhoneNumberInternationalFormatString + */ +PreviousOrder.prototype['PhoneNumberInternationalFormatString'] = undefined; + +/** + * @member {String} DeliveryInstructions + */ +PreviousOrder.prototype['DeliveryInstructions'] = undefined; + +/** + * @member {module:model/PreviousOrder.CurrencyEnum} Currency + */ +PreviousOrder.prototype['Currency'] = undefined; + +/** + * @member {Number} ProcessingFee + */ +PreviousOrder.prototype['ProcessingFee'] = undefined; + +/** + * @member {Number} ServiceChargePercentage + */ +PreviousOrder.prototype['ServiceChargePercentage'] = undefined; + +/** + * @member {Number} ServiceChargeAmount + */ +PreviousOrder.prototype['ServiceChargeAmount'] = undefined; + +/** + * @member {Number} TipAmount + */ +PreviousOrder.prototype['TipAmount'] = undefined; + +/** + * @member {Number} DeliveryAmount + */ +PreviousOrder.prototype['DeliveryAmount'] = undefined; + +/** + * @member {Number} DepositReturnFeeAmount + */ +PreviousOrder.prototype['DepositReturnFeeAmount'] = undefined; + +/** + * @member {Number} TotalTax + */ +PreviousOrder.prototype['TotalTax'] = undefined; + +/** + * @member {Number} TotalAmount + */ +PreviousOrder.prototype['TotalAmount'] = undefined; + +/** + * @member {Array.} Items + */ +PreviousOrder.prototype['Items'] = undefined; + +/** + * @member {Array.} TaxRates + */ +PreviousOrder.prototype['TaxRates'] = undefined; + +/** + * @member {Number} WhiteLabelId + */ +PreviousOrder.prototype['WhiteLabelId'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +PreviousOrder['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default PreviousOrder; + diff --git a/src/model/PreviousOrderItem.js b/src/model/PreviousOrderItem.js new file mode 100644 index 00000000..246dac5a --- /dev/null +++ b/src/model/PreviousOrderItem.js @@ -0,0 +1,120 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PreviousOrderItemOption from './PreviousOrderItemOption'; + +/** + * The PreviousOrderItem model module. + * @module model/PreviousOrderItem + * @version 1.0.0 + */ +class PreviousOrderItem { + /** + * Constructs a new PreviousOrderItem. + * @alias module:model/PreviousOrderItem + */ + constructor() { + + PreviousOrderItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PreviousOrderItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PreviousOrderItem} obj Optional instance to populate. + * @return {module:model/PreviousOrderItem} The populated PreviousOrderItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PreviousOrderItem(); + + if (data.hasOwnProperty('MenuSectionDisplayOrder')) { + obj['MenuSectionDisplayOrder'] = ApiClient.convertToType(data['MenuSectionDisplayOrder'], 'Number'); + } + if (data.hasOwnProperty('MenuSectionName')) { + obj['MenuSectionName'] = ApiClient.convertToType(data['MenuSectionName'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('PriceIncludingOptionSetItems')) { + obj['PriceIncludingOptionSetItems'] = ApiClient.convertToType(data['PriceIncludingOptionSetItems'], 'Number'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + if (data.hasOwnProperty('TaxAmount')) { + obj['TaxAmount'] = ApiClient.convertToType(data['TaxAmount'], 'Number'); + } + if (data.hasOwnProperty('PreviousOrderItemOptions')) { + obj['PreviousOrderItemOptions'] = ApiClient.convertToType(data['PreviousOrderItemOptions'], [PreviousOrderItemOption]); + } + } + return obj; + } + + +} + +/** + * @member {Number} MenuSectionDisplayOrder + */ +PreviousOrderItem.prototype['MenuSectionDisplayOrder'] = undefined; + +/** + * @member {String} MenuSectionName + */ +PreviousOrderItem.prototype['MenuSectionName'] = undefined; + +/** + * @member {String} Name + */ +PreviousOrderItem.prototype['Name'] = undefined; + +/** + * @member {Number} PriceIncludingOptionSetItems + */ +PreviousOrderItem.prototype['PriceIncludingOptionSetItems'] = undefined; + +/** + * @member {Number} DepositReturnFee + */ +PreviousOrderItem.prototype['DepositReturnFee'] = undefined; + +/** + * @member {Number} TaxAmount + */ +PreviousOrderItem.prototype['TaxAmount'] = undefined; + +/** + * @member {Array.} PreviousOrderItemOptions + */ +PreviousOrderItem.prototype['PreviousOrderItemOptions'] = undefined; + + + + + + +export default PreviousOrderItem; + diff --git a/src/model/PreviousOrderItemOption.js b/src/model/PreviousOrderItemOption.js new file mode 100644 index 00000000..4f84fb34 --- /dev/null +++ b/src/model/PreviousOrderItemOption.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PreviousOrderItemOption model module. + * @module model/PreviousOrderItemOption + * @version 1.0.0 + */ +class PreviousOrderItemOption { + /** + * Constructs a new PreviousOrderItemOption. + * @alias module:model/PreviousOrderItemOption + */ + constructor() { + + PreviousOrderItemOption.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PreviousOrderItemOption from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PreviousOrderItemOption} obj Optional instance to populate. + * @return {module:model/PreviousOrderItemOption} The populated PreviousOrderItemOption instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PreviousOrderItemOption(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('DepositReturnFee')) { + obj['DepositReturnFee'] = ApiClient.convertToType(data['DepositReturnFee'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +PreviousOrderItemOption.prototype['Name'] = undefined; + +/** + * @member {Number} DepositReturnFee + */ +PreviousOrderItemOption.prototype['DepositReturnFee'] = undefined; + + + + + + +export default PreviousOrderItemOption; + diff --git a/src/model/Printer.js b/src/model/Printer.js new file mode 100644 index 00000000..c67a436b --- /dev/null +++ b/src/model/Printer.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Printer model module. + * @module model/Printer + * @version 1.0.0 + */ +class Printer { + /** + * Constructs a new Printer. + * Printer + * @alias module:model/Printer + */ + constructor() { + + Printer.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Printer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Printer} obj Optional instance to populate. + * @return {module:model/Printer} The populated Printer instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Printer(); + + if (data.hasOwnProperty('SerialNumber')) { + obj['SerialNumber'] = ApiClient.convertToType(data['SerialNumber'], 'String'); + } + if (data.hasOwnProperty('LastPollTime')) { + obj['LastPollTime'] = ApiClient.convertToType(data['LastPollTime'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Unique serial number of the printer + * @member {String} SerialNumber + */ +Printer.prototype['SerialNumber'] = undefined; + +/** + * Date and time when the printer last polled Flipdish for new orders. + * @member {Date} LastPollTime + */ +Printer.prototype['LastPollTime'] = undefined; + + + + + + +export default Printer; + diff --git a/src/model/PrinterAssignedToStoreEvent.js b/src/model/PrinterAssignedToStoreEvent.js new file mode 100644 index 00000000..75c62da3 --- /dev/null +++ b/src/model/PrinterAssignedToStoreEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Printer from './Printer'; +import UserEventInfo from './UserEventInfo'; + +/** + * The PrinterAssignedToStoreEvent model module. + * @module model/PrinterAssignedToStoreEvent + * @version 1.0.0 + */ +class PrinterAssignedToStoreEvent { + /** + * Constructs a new PrinterAssignedToStoreEvent. + * Printer assigned to store event + * @alias module:model/PrinterAssignedToStoreEvent + */ + constructor() { + + PrinterAssignedToStoreEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PrinterAssignedToStoreEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PrinterAssignedToStoreEvent} obj Optional instance to populate. + * @return {module:model/PrinterAssignedToStoreEvent} The populated PrinterAssignedToStoreEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PrinterAssignedToStoreEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Printer')) { + obj['Printer'] = Printer.constructFromObject(data['Printer']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PrinterAssignedToStoreEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +PrinterAssignedToStoreEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +PrinterAssignedToStoreEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +PrinterAssignedToStoreEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +PrinterAssignedToStoreEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Printer} Printer + */ +PrinterAssignedToStoreEvent.prototype['Printer'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PrinterAssignedToStoreEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PrinterAssignedToStoreEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PrinterAssignedToStoreEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PrinterAssignedToStoreEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PrinterAssignedToStoreEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PrinterAssignedToStoreEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PrinterAssignedToStoreEvent; + diff --git a/src/model/PrinterTurnedOffEvent.js b/src/model/PrinterTurnedOffEvent.js new file mode 100644 index 00000000..92188a63 --- /dev/null +++ b/src/model/PrinterTurnedOffEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Printer from './Printer'; +import UserEventInfo from './UserEventInfo'; + +/** + * The PrinterTurnedOffEvent model module. + * @module model/PrinterTurnedOffEvent + * @version 1.0.0 + */ +class PrinterTurnedOffEvent { + /** + * Constructs a new PrinterTurnedOffEvent. + * Printer turned off event + * @alias module:model/PrinterTurnedOffEvent + */ + constructor() { + + PrinterTurnedOffEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PrinterTurnedOffEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PrinterTurnedOffEvent} obj Optional instance to populate. + * @return {module:model/PrinterTurnedOffEvent} The populated PrinterTurnedOffEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PrinterTurnedOffEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Printer')) { + obj['Printer'] = Printer.constructFromObject(data['Printer']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PrinterTurnedOffEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +PrinterTurnedOffEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +PrinterTurnedOffEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +PrinterTurnedOffEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +PrinterTurnedOffEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Printer} Printer + */ +PrinterTurnedOffEvent.prototype['Printer'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PrinterTurnedOffEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PrinterTurnedOffEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PrinterTurnedOffEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PrinterTurnedOffEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PrinterTurnedOffEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PrinterTurnedOffEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PrinterTurnedOffEvent; + diff --git a/src/model/PrinterTurnedOnEvent.js b/src/model/PrinterTurnedOnEvent.js new file mode 100644 index 00000000..68b3a9d9 --- /dev/null +++ b/src/model/PrinterTurnedOnEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Printer from './Printer'; +import UserEventInfo from './UserEventInfo'; + +/** + * The PrinterTurnedOnEvent model module. + * @module model/PrinterTurnedOnEvent + * @version 1.0.0 + */ +class PrinterTurnedOnEvent { + /** + * Constructs a new PrinterTurnedOnEvent. + * Printer turned on event + * @alias module:model/PrinterTurnedOnEvent + */ + constructor() { + + PrinterTurnedOnEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PrinterTurnedOnEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PrinterTurnedOnEvent} obj Optional instance to populate. + * @return {module:model/PrinterTurnedOnEvent} The populated PrinterTurnedOnEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PrinterTurnedOnEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Printer')) { + obj['Printer'] = Printer.constructFromObject(data['Printer']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PrinterTurnedOnEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +PrinterTurnedOnEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +PrinterTurnedOnEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +PrinterTurnedOnEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +PrinterTurnedOnEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Printer} Printer + */ +PrinterTurnedOnEvent.prototype['Printer'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PrinterTurnedOnEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PrinterTurnedOnEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PrinterTurnedOnEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PrinterTurnedOnEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PrinterTurnedOnEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PrinterTurnedOnEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PrinterTurnedOnEvent; + diff --git a/src/model/PrinterUnassignedFromStoreEvent.js b/src/model/PrinterUnassignedFromStoreEvent.js new file mode 100644 index 00000000..2721b7a5 --- /dev/null +++ b/src/model/PrinterUnassignedFromStoreEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Printer from './Printer'; +import UserEventInfo from './UserEventInfo'; + +/** + * The PrinterUnassignedFromStoreEvent model module. + * @module model/PrinterUnassignedFromStoreEvent + * @version 1.0.0 + */ +class PrinterUnassignedFromStoreEvent { + /** + * Constructs a new PrinterUnassignedFromStoreEvent. + * Printer assigned from store event + * @alias module:model/PrinterUnassignedFromStoreEvent + */ + constructor() { + + PrinterUnassignedFromStoreEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PrinterUnassignedFromStoreEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PrinterUnassignedFromStoreEvent} obj Optional instance to populate. + * @return {module:model/PrinterUnassignedFromStoreEvent} The populated PrinterUnassignedFromStoreEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PrinterUnassignedFromStoreEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Printer')) { + obj['Printer'] = Printer.constructFromObject(data['Printer']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PrinterUnassignedFromStoreEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +PrinterUnassignedFromStoreEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +PrinterUnassignedFromStoreEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +PrinterUnassignedFromStoreEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +PrinterUnassignedFromStoreEvent.prototype['User'] = undefined; + +/** + * @member {module:model/Printer} Printer + */ +PrinterUnassignedFromStoreEvent.prototype['Printer'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PrinterUnassignedFromStoreEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PrinterUnassignedFromStoreEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PrinterUnassignedFromStoreEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PrinterUnassignedFromStoreEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PrinterUnassignedFromStoreEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PrinterUnassignedFromStoreEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PrinterUnassignedFromStoreEvent; + diff --git a/src/model/ProcessPaymentIntentRequest.js b/src/model/ProcessPaymentIntentRequest.js new file mode 100644 index 00000000..f45183fd --- /dev/null +++ b/src/model/ProcessPaymentIntentRequest.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProcessPaymentIntentRequest model module. + * @module model/ProcessPaymentIntentRequest + * @version 1.0.0 + */ +class ProcessPaymentIntentRequest { + /** + * Constructs a new ProcessPaymentIntentRequest. + * Initiate card reader Payment process request + * @alias module:model/ProcessPaymentIntentRequest + * @param PaymentIntentId {String} Device card paymentIntentId + */ + constructor(PaymentIntentId) { + + ProcessPaymentIntentRequest.initialize(this, PaymentIntentId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, PaymentIntentId) { + obj['PaymentIntentId'] = PaymentIntentId; + } + + /** + * Constructs a ProcessPaymentIntentRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProcessPaymentIntentRequest} obj Optional instance to populate. + * @return {module:model/ProcessPaymentIntentRequest} The populated ProcessPaymentIntentRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProcessPaymentIntentRequest(); + + if (data.hasOwnProperty('PaymentIntentId')) { + obj['PaymentIntentId'] = ApiClient.convertToType(data['PaymentIntentId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device card paymentIntentId + * @member {String} PaymentIntentId + */ +ProcessPaymentIntentRequest.prototype['PaymentIntentId'] = undefined; + + + + + + +export default ProcessPaymentIntentRequest; + diff --git a/src/model/ProcessingFeeConfig.js b/src/model/ProcessingFeeConfig.js new file mode 100644 index 00000000..9c8736ac --- /dev/null +++ b/src/model/ProcessingFeeConfig.js @@ -0,0 +1,169 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProcessingFeeConfig model module. + * @module model/ProcessingFeeConfig + * @version 1.0.0 + */ +class ProcessingFeeConfig { + /** + * Constructs a new ProcessingFeeConfig. + * Processing fee config + * @alias module:model/ProcessingFeeConfig + */ + constructor() { + + ProcessingFeeConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProcessingFeeConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProcessingFeeConfig} obj Optional instance to populate. + * @return {module:model/ProcessingFeeConfig} The populated ProcessingFeeConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProcessingFeeConfig(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('PaymentAccountType')) { + obj['PaymentAccountType'] = ApiClient.convertToType(data['PaymentAccountType'], 'String'); + } + if (data.hasOwnProperty('PercentFee')) { + obj['PercentFee'] = ApiClient.convertToType(data['PercentFee'], 'Number'); + } + if (data.hasOwnProperty('FixedFee')) { + obj['FixedFee'] = ApiClient.convertToType(data['FixedFee'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Store Id + * @member {Number} StoreId + */ +ProcessingFeeConfig.prototype['StoreId'] = undefined; + +/** + * Payment account type + * @member {module:model/ProcessingFeeConfig.PaymentAccountTypeEnum} PaymentAccountType + */ +ProcessingFeeConfig.prototype['PaymentAccountType'] = undefined; + +/** + * Percent fee to customer, including VAT + * @member {Number} PercentFee + */ +ProcessingFeeConfig.prototype['PercentFee'] = undefined; + +/** + * Fixed fee to customer, including VAT + * @member {Number} FixedFee + */ +ProcessingFeeConfig.prototype['FixedFee'] = undefined; + + + + + +/** + * Allowed values for the PaymentAccountType property. + * @enum {String} + * @readonly + */ +ProcessingFeeConfig['PaymentAccountTypeEnum'] = { + + /** + * value: "Card" + * @const + */ + "Card": "Card", + + /** + * value: "Cash" + * @const + */ + "Cash": "Cash", + + /** + * value: "Ideal" + * @const + */ + "Ideal": "Ideal", + + /** + * value: "Bancontact" + * @const + */ + "Bancontact": "Bancontact", + + /** + * value: "Giropay" + * @const + */ + "Giropay": "Giropay", + + /** + * value: "Eps" + * @const + */ + "Eps": "Eps", + + /** + * value: "Emv" + * @const + */ + "Emv": "Emv", + + /** + * value: "PayPal" + * @const + */ + "PayPal": "PayPal", + + /** + * value: "PayGreen" + * @const + */ + "PayGreen": "PayGreen", + + /** + * value: "GoogleWalletToken" + * @const + */ + "GoogleWalletToken": "GoogleWalletToken" +}; + + + +export default ProcessingFeeConfig; + diff --git a/src/model/Product.js b/src/model/Product.js new file mode 100644 index 00000000..2b99aee8 --- /dev/null +++ b/src/model/Product.js @@ -0,0 +1,194 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import GroupReference from './GroupReference'; +import Metafield from './Metafield'; + +/** + * The Product model module. + * @module model/Product + * @version 1.0.0 + */ +class Product { + /** + * Constructs a new Product. + * Product + * @alias module:model/Product + * @param ProductType {module:model/Product.ProductTypeEnum} Type of item (Product, Modifier, etc) + * @param Sku {String} Stock Keeping Unit (SKU) + * @param Name {String} Product name + * @param Price {Number} Product price + */ + constructor(ProductType, Sku, Name, Price) { + + Product.initialize(this, ProductType, Sku, Name, Price); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, ProductType, Sku, Name, Price) { + obj['ProductType'] = ProductType; + obj['Sku'] = Sku; + obj['Name'] = Name; + obj['Price'] = Price; + } + + /** + * Constructs a Product from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Product} obj Optional instance to populate. + * @return {module:model/Product} The populated Product instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Product(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('IsArchived')) { + obj['IsArchived'] = ApiClient.convertToType(data['IsArchived'], 'Boolean'); + } + if (data.hasOwnProperty('Groups')) { + obj['Groups'] = ApiClient.convertToType(data['Groups'], [GroupReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + if (data.hasOwnProperty('ProductType')) { + obj['ProductType'] = ApiClient.convertToType(data['ProductType'], 'String'); + } + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Unique catalog Item id + * @member {String} CatalogItemId + */ +Product.prototype['CatalogItemId'] = undefined; + +/** + * Returns true if the item is archived + * @member {Boolean} IsArchived + */ +Product.prototype['IsArchived'] = undefined; + +/** + * Collection of groups associated with this item + * @member {Array.} Groups + */ +Product.prototype['Groups'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +Product.prototype['Metafields'] = undefined; + +/** + * Type of item (Product, Modifier, etc) + * @member {module:model/Product.ProductTypeEnum} ProductType + */ +Product.prototype['ProductType'] = undefined; + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +Product.prototype['Sku'] = undefined; + +/** + * Product name + * @member {String} Name + */ +Product.prototype['Name'] = undefined; + +/** + * Product description + * @member {String} Description + */ +Product.prototype['Description'] = undefined; + +/** + * Product price + * @member {Number} Price + */ +Product.prototype['Price'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +Product.prototype['ImageFileName'] = undefined; + +/** + * Product contains alcohol + * @member {Boolean} Alcohol + */ +Product.prototype['Alcohol'] = undefined; + + + + + +/** + * Allowed values for the ProductType property. + * @enum {String} + * @readonly + */ +Product['ProductTypeEnum'] = { + + /** + * value: "Product" + * @const + */ + "Product": "Product", + + /** + * value: "Modifier" + * @const + */ + "Modifier": "Modifier" +}; + + + +export default Product; + diff --git a/src/model/ProductReference.js b/src/model/ProductReference.js new file mode 100644 index 00000000..4259a65a --- /dev/null +++ b/src/model/ProductReference.js @@ -0,0 +1,133 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Product from './Product'; + +/** + * The ProductReference model module. + * @module model/ProductReference + * @version 1.0.0 + */ +class ProductReference { + /** + * Constructs a new ProductReference. + * Catalog Item associated + * @alias module:model/ProductReference + * @param CatalogItemId {String} Identifier of the CatalogItemId to use as SubProduct + * @param ProductType {module:model/ProductReference.ProductTypeEnum} Type of the SupProduct + */ + constructor(CatalogItemId, ProductType) { + + ProductReference.initialize(this, CatalogItemId, ProductType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogItemId, ProductType) { + obj['CatalogItemId'] = CatalogItemId; + obj['ProductType'] = ProductType; + } + + /** + * Constructs a ProductReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProductReference} obj Optional instance to populate. + * @return {module:model/ProductReference} The populated ProductReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProductReference(); + + if (data.hasOwnProperty('Item')) { + obj['Item'] = Product.constructFromObject(data['Item']); + } + if (data.hasOwnProperty('Product')) { + obj['Product'] = Product.constructFromObject(data['Product']); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('ProductType')) { + obj['ProductType'] = ApiClient.convertToType(data['ProductType'], 'String'); + } + if (data.hasOwnProperty('PreselectedQuantity')) { + obj['PreselectedQuantity'] = ApiClient.convertToType(data['PreselectedQuantity'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Product} Item + */ +ProductReference.prototype['Item'] = undefined; + +/** + * @member {module:model/Product} Product + */ +ProductReference.prototype['Product'] = undefined; + +/** + * Identifier of the CatalogItemId to use as SubProduct + * @member {String} CatalogItemId + */ +ProductReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/ProductReference.ProductTypeEnum} ProductType + */ +ProductReference.prototype['ProductType'] = undefined; + +/** + * Quantity of the modifier that will be set when the parent product is placed in the basket + * @member {Number} PreselectedQuantity + */ +ProductReference.prototype['PreselectedQuantity'] = undefined; + + + + + +/** + * Allowed values for the ProductType property. + * @enum {String} + * @readonly + */ +ProductReference['ProductTypeEnum'] = { + + /** + * value: "Product" + * @const + */ + "Product": "Product", + + /** + * value: "Modifier" + * @const + */ + "Modifier": "Modifier" +}; + + + +export default ProductReference; + diff --git a/src/model/PromotionAward.js b/src/model/PromotionAward.js new file mode 100644 index 00000000..17e17b87 --- /dev/null +++ b/src/model/PromotionAward.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PromotionAward model module. + * @module model/PromotionAward + * @version 1.0.0 + */ +class PromotionAward { + /** + * Constructs a new PromotionAward. + * Promotion + * @alias module:model/PromotionAward + */ + constructor() { + + PromotionAward.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PromotionAward from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PromotionAward} obj Optional instance to populate. + * @return {module:model/PromotionAward} The populated PromotionAward instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PromotionAward(); + + if (data.hasOwnProperty('PromotionAwardId')) { + obj['PromotionAwardId'] = ApiClient.convertToType(data['PromotionAwardId'], 'Number'); + } + if (data.hasOwnProperty('MenuItemPublicId')) { + obj['MenuItemPublicId'] = ApiClient.convertToType(data['MenuItemPublicId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Promotion Award Id + * @member {Number} PromotionAwardId + */ +PromotionAward.prototype['PromotionAwardId'] = undefined; + +/** + * The public id of the menu item that will be awarded + * @member {String} MenuItemPublicId + */ +PromotionAward.prototype['MenuItemPublicId'] = undefined; + + + + + + +export default PromotionAward; + diff --git a/src/model/PromotionDetails.js b/src/model/PromotionDetails.js new file mode 100644 index 00000000..27cf4c29 --- /dev/null +++ b/src/model/PromotionDetails.js @@ -0,0 +1,92 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PromotionAward from './PromotionAward'; + +/** + * The PromotionDetails model module. + * @module model/PromotionDetails + * @version 1.0.0 + */ +class PromotionDetails { + /** + * Constructs a new PromotionDetails. + * Promotion + * @alias module:model/PromotionDetails + */ + constructor() { + + PromotionDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PromotionDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PromotionDetails} obj Optional instance to populate. + * @return {module:model/PromotionDetails} The populated PromotionDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PromotionDetails(); + + if (data.hasOwnProperty('PromotionId')) { + obj['PromotionId'] = ApiClient.convertToType(data['PromotionId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('PromotionAwards')) { + obj['PromotionAwards'] = ApiClient.convertToType(data['PromotionAwards'], [PromotionAward]); + } + } + return obj; + } + + +} + +/** + * Promotion Id + * @member {Number} PromotionId + */ +PromotionDetails.prototype['PromotionId'] = undefined; + +/** + * The name of the promotion + * @member {String} Name + */ +PromotionDetails.prototype['Name'] = undefined; + +/** + * The items that this promotion will award + * @member {Array.} PromotionAwards + */ +PromotionDetails.prototype['PromotionAwards'] = undefined; + + + + + + +export default PromotionDetails; + diff --git a/src/model/PublishMenuChanges.js b/src/model/PublishMenuChanges.js new file mode 100644 index 00000000..e1f6f267 --- /dev/null +++ b/src/model/PublishMenuChanges.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PublishMenuChanges model module. + * @module model/PublishMenuChanges + * @version 1.0.0 + */ +class PublishMenuChanges { + /** + * Constructs a new PublishMenuChanges. + * Publish Menu Changes + * @alias module:model/PublishMenuChanges + */ + constructor() { + + PublishMenuChanges.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PublishMenuChanges from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PublishMenuChanges} obj Optional instance to populate. + * @return {module:model/PublishMenuChanges} The populated PublishMenuChanges instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PublishMenuChanges(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('MenuIds')) { + obj['MenuIds'] = ApiClient.convertToType(data['MenuIds'], ['Number']); + } + } + return obj; + } + + +} + +/** + * Optional Catalog item id + * @member {String} CatalogItemId + */ +PublishMenuChanges.prototype['CatalogItemId'] = undefined; + +/** + * Optional Collection of Menu id + * @member {Array.} MenuIds + */ +PublishMenuChanges.prototype['MenuIds'] = undefined; + + + + + + +export default PublishMenuChanges; + diff --git a/src/model/PushNotificationDeletedEvent.js b/src/model/PushNotificationDeletedEvent.js new file mode 100644 index 00000000..082a1dfc --- /dev/null +++ b/src/model/PushNotificationDeletedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PushNotificationRequest from './PushNotificationRequest'; + +/** + * The PushNotificationDeletedEvent model module. + * @module model/PushNotificationDeletedEvent + * @version 1.0.0 + */ +class PushNotificationDeletedEvent { + /** + * Constructs a new PushNotificationDeletedEvent. + * + * @alias module:model/PushNotificationDeletedEvent + */ + constructor() { + + PushNotificationDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PushNotificationDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PushNotificationDeletedEvent} obj Optional instance to populate. + * @return {module:model/PushNotificationDeletedEvent} The populated PushNotificationDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PushNotificationDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('PushNotification')) { + obj['PushNotification'] = PushNotificationRequest.constructFromObject(data['PushNotification']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PushNotificationDeletedEvent.prototype['EventName'] = undefined; + +/** + * + * @member {String} Description + */ +PushNotificationDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/PushNotificationRequest} PushNotification + */ +PushNotificationDeletedEvent.prototype['PushNotification'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PushNotificationDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PushNotificationDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PushNotificationDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PushNotificationDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PushNotificationDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PushNotificationDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PushNotificationDeletedEvent; + diff --git a/src/model/PushNotificationRequest.js b/src/model/PushNotificationRequest.js new file mode 100644 index 00000000..c64c5fa2 --- /dev/null +++ b/src/model/PushNotificationRequest.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PushNotificationRequest model module. + * @module model/PushNotificationRequest + * @version 1.0.0 + */ +class PushNotificationRequest { + /** + * Constructs a new PushNotificationRequest. + * Push Notification Details + * @alias module:model/PushNotificationRequest + * @param Message {String} Message of the notification + */ + constructor(Message) { + + PushNotificationRequest.initialize(this, Message); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Message) { + obj['Message'] = Message; + } + + /** + * Constructs a PushNotificationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PushNotificationRequest} obj Optional instance to populate. + * @return {module:model/PushNotificationRequest} The populated PushNotificationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PushNotificationRequest(); + + if (data.hasOwnProperty('ScheduledTime')) { + obj['ScheduledTime'] = ApiClient.convertToType(data['ScheduledTime'], 'Date'); + } + if (data.hasOwnProperty('Title')) { + obj['Title'] = ApiClient.convertToType(data['Title'], 'String'); + } + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + +} + +/** + * UTC Time at which to send the push notification + * @member {Date} ScheduledTime + */ +PushNotificationRequest.prototype['ScheduledTime'] = undefined; + +/** + * Title of the notification + * @member {String} Title + */ +PushNotificationRequest.prototype['Title'] = undefined; + +/** + * Message of the notification + * @member {String} Message + */ +PushNotificationRequest.prototype['Message'] = undefined; + + + + + + +export default PushNotificationRequest; + diff --git a/src/model/PushNotificationResponse.js b/src/model/PushNotificationResponse.js new file mode 100644 index 00000000..c7cc068d --- /dev/null +++ b/src/model/PushNotificationResponse.js @@ -0,0 +1,111 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PushNotificationResponse model module. + * @module model/PushNotificationResponse + * @version 1.0.0 + */ +class PushNotificationResponse { + /** + * Constructs a new PushNotificationResponse. + * Push Notification + * @alias module:model/PushNotificationResponse + * @param Message {String} Message of the notification + */ + constructor(Message) { + + PushNotificationResponse.initialize(this, Message); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Message) { + obj['Message'] = Message; + } + + /** + * Constructs a PushNotificationResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PushNotificationResponse} obj Optional instance to populate. + * @return {module:model/PushNotificationResponse} The populated PushNotificationResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PushNotificationResponse(); + + if (data.hasOwnProperty('Sent')) { + obj['Sent'] = ApiClient.convertToType(data['Sent'], 'Boolean'); + } + if (data.hasOwnProperty('ScheduledPushNotificationId')) { + obj['ScheduledPushNotificationId'] = ApiClient.convertToType(data['ScheduledPushNotificationId'], 'Number'); + } + if (data.hasOwnProperty('ScheduledTime')) { + obj['ScheduledTime'] = ApiClient.convertToType(data['ScheduledTime'], 'Date'); + } + if (data.hasOwnProperty('Title')) { + obj['Title'] = ApiClient.convertToType(data['Title'], 'String'); + } + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + +} + +/** + * Sent + * @member {Boolean} Sent + */ +PushNotificationResponse.prototype['Sent'] = undefined; + +/** + * Push notification identifier + * @member {Number} ScheduledPushNotificationId + */ +PushNotificationResponse.prototype['ScheduledPushNotificationId'] = undefined; + +/** + * UTC Time at which to send the push notification + * @member {Date} ScheduledTime + */ +PushNotificationResponse.prototype['ScheduledTime'] = undefined; + +/** + * Title of the notification + * @member {String} Title + */ +PushNotificationResponse.prototype['Title'] = undefined; + +/** + * Message of the notification + * @member {String} Message + */ +PushNotificationResponse.prototype['Message'] = undefined; + + + + + + +export default PushNotificationResponse; + diff --git a/src/model/PushNotificationScheduledEvent.js b/src/model/PushNotificationScheduledEvent.js new file mode 100644 index 00000000..49e02744 --- /dev/null +++ b/src/model/PushNotificationScheduledEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PushNotificationRequest from './PushNotificationRequest'; +import UserEventInfo from './UserEventInfo'; + +/** + * The PushNotificationScheduledEvent model module. + * @module model/PushNotificationScheduledEvent + * @version 1.0.0 + */ +class PushNotificationScheduledEvent { + /** + * Constructs a new PushNotificationScheduledEvent. + * + * @alias module:model/PushNotificationScheduledEvent + */ + constructor() { + + PushNotificationScheduledEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PushNotificationScheduledEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PushNotificationScheduledEvent} obj Optional instance to populate. + * @return {module:model/PushNotificationScheduledEvent} The populated PushNotificationScheduledEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PushNotificationScheduledEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('PushNotification')) { + obj['PushNotification'] = PushNotificationRequest.constructFromObject(data['PushNotification']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PushNotificationScheduledEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +PushNotificationScheduledEvent.prototype['User'] = undefined; + +/** + * + * @member {String} Description + */ +PushNotificationScheduledEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/PushNotificationRequest} PushNotification + */ +PushNotificationScheduledEvent.prototype['PushNotification'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PushNotificationScheduledEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PushNotificationScheduledEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PushNotificationScheduledEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PushNotificationScheduledEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PushNotificationScheduledEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PushNotificationScheduledEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PushNotificationScheduledEvent; + diff --git a/src/model/PushNotificationSentEvent.js b/src/model/PushNotificationSentEvent.js new file mode 100644 index 00000000..33ba4517 --- /dev/null +++ b/src/model/PushNotificationSentEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PushNotificationRequest from './PushNotificationRequest'; + +/** + * The PushNotificationSentEvent model module. + * @module model/PushNotificationSentEvent + * @version 1.0.0 + */ +class PushNotificationSentEvent { + /** + * Constructs a new PushNotificationSentEvent. + * + * @alias module:model/PushNotificationSentEvent + */ + constructor() { + + PushNotificationSentEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PushNotificationSentEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PushNotificationSentEvent} obj Optional instance to populate. + * @return {module:model/PushNotificationSentEvent} The populated PushNotificationSentEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PushNotificationSentEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('PushNotification')) { + obj['PushNotification'] = PushNotificationRequest.constructFromObject(data['PushNotification']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +PushNotificationSentEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +PushNotificationSentEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/PushNotificationRequest} PushNotification + */ +PushNotificationSentEvent.prototype['PushNotification'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +PushNotificationSentEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +PushNotificationSentEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +PushNotificationSentEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +PushNotificationSentEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +PushNotificationSentEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +PushNotificationSentEvent.prototype['IpAddress'] = undefined; + + + + + + +export default PushNotificationSentEvent; + diff --git a/src/model/Range.js b/src/model/Range.js new file mode 100644 index 00000000..18caa59a --- /dev/null +++ b/src/model/Range.js @@ -0,0 +1,142 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Range model module. + * @module model/Range + * @version 1.0.0 + */ +class Range { + /** + * Constructs a new Range. + * A class that represents a single opening period in a day. This starts 'StartTime' after midnight and runs for a 'Period' after that, on the given DayOfWeek. + * @alias module:model/Range + */ + constructor() { + + Range.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Range from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Range} obj Optional instance to populate. + * @return {module:model/Range} The populated Range instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Range(); + + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'String'); + } + if (data.hasOwnProperty('Period')) { + obj['Period'] = ApiClient.convertToType(data['Period'], 'String'); + } + if (data.hasOwnProperty('DayOfWeek')) { + obj['DayOfWeek'] = ApiClient.convertToType(data['DayOfWeek'], 'String'); + } + } + return obj; + } + + +} + +/** + * Start time + * @member {String} StartTime + */ +Range.prototype['StartTime'] = undefined; + +/** + * Period + * @member {String} Period + */ +Range.prototype['Period'] = undefined; + +/** + * Day of week + * @member {module:model/Range.DayOfWeekEnum} DayOfWeek + */ +Range.prototype['DayOfWeek'] = undefined; + + + + + +/** + * Allowed values for the DayOfWeek property. + * @enum {String} + * @readonly + */ +Range['DayOfWeekEnum'] = { + + /** + * value: "Sunday" + * @const + */ + "Sunday": "Sunday", + + /** + * value: "Monday" + * @const + */ + "Monday": "Monday", + + /** + * value: "Tuesday" + * @const + */ + "Tuesday": "Tuesday", + + /** + * value: "Wednesday" + * @const + */ + "Wednesday": "Wednesday", + + /** + * value: "Thursday" + * @const + */ + "Thursday": "Thursday", + + /** + * value: "Friday" + * @const + */ + "Friday": "Friday", + + /** + * value: "Saturday" + * @const + */ + "Saturday": "Saturday" +}; + + + +export default Range; + diff --git a/src/model/ReaderActionStateInfo.js b/src/model/ReaderActionStateInfo.js new file mode 100644 index 00000000..0357d06d --- /dev/null +++ b/src/model/ReaderActionStateInfo.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ReaderActionStateInfo model module. + * @module model/ReaderActionStateInfo + * @version 1.0.0 + */ +class ReaderActionStateInfo { + /** + * Constructs a new ReaderActionStateInfo. + * Card reader state information + * @alias module:model/ReaderActionStateInfo + */ + constructor() { + + ReaderActionStateInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ReaderActionStateInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReaderActionStateInfo} obj Optional instance to populate. + * @return {module:model/ReaderActionStateInfo} The populated ReaderActionStateInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ReaderActionStateInfo(); + + if (data.hasOwnProperty('ActionState')) { + obj['ActionState'] = ApiClient.convertToType(data['ActionState'], 'String'); + } + if (data.hasOwnProperty('FailureCode')) { + obj['FailureCode'] = ApiClient.convertToType(data['FailureCode'], 'String'); + } + if (data.hasOwnProperty('FailureMessage')) { + obj['FailureMessage'] = ApiClient.convertToType(data['FailureMessage'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + } + return obj; + } + + +} + +/** + * Action state + * @member {String} ActionState + */ +ReaderActionStateInfo.prototype['ActionState'] = undefined; + +/** + * Failure code + * @member {String} FailureCode + */ +ReaderActionStateInfo.prototype['FailureCode'] = undefined; + +/** + * Failure Message + * @member {String} FailureMessage + */ +ReaderActionStateInfo.prototype['FailureMessage'] = undefined; + +/** + * Type + * @member {String} Type + */ +ReaderActionStateInfo.prototype['Type'] = undefined; + + + + + + +export default ReaderActionStateInfo; + diff --git a/src/model/RedeemInvitationResult.js b/src/model/RedeemInvitationResult.js new file mode 100644 index 00000000..bba28f53 --- /dev/null +++ b/src/model/RedeemInvitationResult.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RedeemInvitationResult model module. + * @module model/RedeemInvitationResult + * @version 1.0.0 + */ +class RedeemInvitationResult { + /** + * Constructs a new RedeemInvitationResult. + * + * @alias module:model/RedeemInvitationResult + */ + constructor() { + + RedeemInvitationResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RedeemInvitationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RedeemInvitationResult} obj Optional instance to populate. + * @return {module:model/RedeemInvitationResult} The populated RedeemInvitationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RedeemInvitationResult(); + + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('InvitationStatus')) { + obj['InvitationStatus'] = ApiClient.convertToType(data['InvitationStatus'], 'String'); + } + } + return obj; + } + + +} + +/** + * Access level is for this App + * @member {String} AppId + */ +RedeemInvitationResult.prototype['AppId'] = undefined; + +/** + * Invitation status + * @member {module:model/RedeemInvitationResult.InvitationStatusEnum} InvitationStatus + */ +RedeemInvitationResult.prototype['InvitationStatus'] = undefined; + + + + + +/** + * Allowed values for the InvitationStatus property. + * @enum {String} + * @readonly + */ +RedeemInvitationResult['InvitationStatusEnum'] = { + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "Accepted" + * @const + */ + "Accepted": "Accepted", + + /** + * value: "Expired" + * @const + */ + "Expired": "Expired" +}; + + + +export default RedeemInvitationResult; + diff --git a/src/model/Refund.js b/src/model/Refund.js new file mode 100644 index 00000000..28d5ec2b --- /dev/null +++ b/src/model/Refund.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Refund model module. + * @module model/Refund + * @version 1.0.0 + */ +class Refund { + /** + * Constructs a new Refund. + * Refund + * @alias module:model/Refund + * @param RefundAmount {Number} Refund amount + * @param NotifyCustomer {Boolean} If true, the system sends notification to the customer about the refund + */ + constructor(RefundAmount, NotifyCustomer) { + + Refund.initialize(this, RefundAmount, NotifyCustomer); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, RefundAmount, NotifyCustomer) { + obj['RefundAmount'] = RefundAmount; + obj['NotifyCustomer'] = NotifyCustomer; + } + + /** + * Constructs a Refund from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Refund} obj Optional instance to populate. + * @return {module:model/Refund} The populated Refund instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Refund(); + + if (data.hasOwnProperty('RefundReason')) { + obj['RefundReason'] = ApiClient.convertToType(data['RefundReason'], 'String'); + } + if (data.hasOwnProperty('RefundAmount')) { + obj['RefundAmount'] = ApiClient.convertToType(data['RefundAmount'], 'Number'); + } + if (data.hasOwnProperty('NotifyCustomer')) { + obj['NotifyCustomer'] = ApiClient.convertToType(data['NotifyCustomer'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Refund reason + * @member {String} RefundReason + */ +Refund.prototype['RefundReason'] = undefined; + +/** + * Refund amount + * @member {Number} RefundAmount + */ +Refund.prototype['RefundAmount'] = undefined; + +/** + * If true, the system sends notification to the customer about the refund + * @member {Boolean} NotifyCustomer + */ +Refund.prototype['NotifyCustomer'] = undefined; + + + + + + +export default Refund; + diff --git a/src/model/Reject.js b/src/model/Reject.js new file mode 100644 index 00000000..9b9b810b --- /dev/null +++ b/src/model/Reject.js @@ -0,0 +1,147 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Reject model module. + * @module model/Reject + * @version 1.0.0 + */ +class Reject { + /** + * Constructs a new Reject. + * Reject + * @alias module:model/Reject + * @param RejectReason {module:model/Reject.RejectReasonEnum} Reject reason. + */ + constructor(RejectReason) { + + Reject.initialize(this, RejectReason); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, RejectReason) { + obj['RejectReason'] = RejectReason; + } + + /** + * Constructs a Reject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Reject} obj Optional instance to populate. + * @return {module:model/Reject} The populated Reject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Reject(); + + if (data.hasOwnProperty('RejectReason')) { + obj['RejectReason'] = ApiClient.convertToType(data['RejectReason'], 'String'); + } + if (data.hasOwnProperty('DoNotNotifyCustomer')) { + obj['DoNotNotifyCustomer'] = ApiClient.convertToType(data['DoNotNotifyCustomer'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Reject reason. + * @member {module:model/Reject.RejectReasonEnum} RejectReason + */ +Reject.prototype['RejectReason'] = undefined; + +/** + * Notify customer. The server will not send and SMS to the customer if the value is true. + * @member {Boolean} DoNotNotifyCustomer + */ +Reject.prototype['DoNotNotifyCustomer'] = undefined; + + + + + +/** + * Allowed values for the RejectReason property. + * @enum {String} + * @readonly + */ +Reject['RejectReasonEnum'] = { + + /** + * value: "TooBusy" + * @const + */ + "TooBusy": "TooBusy", + + /** + * value: "FoodUnavailable" + * @const + */ + "FoodUnavailable": "FoodUnavailable", + + /** + * value: "UnableToDeliver" + * @const + */ + "UnableToDeliver": "UnableToDeliver", + + /** + * value: "UnknownAddress" + * @const + */ + "UnknownAddress": "UnknownAddress", + + /** + * value: "UnknownReason" + * @const + */ + "UnknownReason": "UnknownReason", + + /** + * value: "TooSoon" + * @const + */ + "TooSoon": "TooSoon", + + /** + * value: "TimeUnavailable" + * @const + */ + "TimeUnavailable": "TimeUnavailable", + + /** + * value: "DontDeliverToArea" + * @const + */ + "DontDeliverToArea": "DontDeliverToArea", + + /** + * value: "StoreUncontactable" + * @const + */ + "StoreUncontactable": "StoreUncontactable" +}; + + + +export default Reject; + diff --git a/src/model/RequestLoginPinModel.js b/src/model/RequestLoginPinModel.js new file mode 100644 index 00000000..0020e5ca --- /dev/null +++ b/src/model/RequestLoginPinModel.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RequestLoginPinModel model module. + * @module model/RequestLoginPinModel + * @version 1.0.0 + */ +class RequestLoginPinModel { + /** + * Constructs a new RequestLoginPinModel. + * Request login PIN response + * @alias module:model/RequestLoginPinModel + * @param Email {String} Email address + */ + constructor(Email) { + + RequestLoginPinModel.initialize(this, Email); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Email) { + obj['Email'] = Email; + } + + /** + * Constructs a RequestLoginPinModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequestLoginPinModel} obj Optional instance to populate. + * @return {module:model/RequestLoginPinModel} The populated RequestLoginPinModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestLoginPinModel(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + } + return obj; + } + + +} + +/** + * Email address + * @member {String} Email + */ +RequestLoginPinModel.prototype['Email'] = undefined; + + + + + + +export default RequestLoginPinModel; + diff --git a/src/model/RequestLoginPinResponse.js b/src/model/RequestLoginPinResponse.js new file mode 100644 index 00000000..e05a23fb --- /dev/null +++ b/src/model/RequestLoginPinResponse.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RequestLoginPinResponse model module. + * @module model/RequestLoginPinResponse + * @version 1.0.0 + */ +class RequestLoginPinResponse { + /** + * Constructs a new RequestLoginPinResponse. + * Request login PIN response + * @alias module:model/RequestLoginPinResponse + */ + constructor() { + + RequestLoginPinResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RequestLoginPinResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequestLoginPinResponse} obj Optional instance to populate. + * @return {module:model/RequestLoginPinResponse} The populated RequestLoginPinResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestLoginPinResponse(); + + if (data.hasOwnProperty('LoginPinSentViaEmail')) { + obj['LoginPinSentViaEmail'] = ApiClient.convertToType(data['LoginPinSentViaEmail'], 'Boolean'); + } + if (data.hasOwnProperty('ForceOktaLogin')) { + obj['ForceOktaLogin'] = ApiClient.convertToType(data['ForceOktaLogin'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Login PIN sent via email to user + * @member {Boolean} LoginPinSentViaEmail + */ +RequestLoginPinResponse.prototype['LoginPinSentViaEmail'] = undefined; + +/** + * All flipdishers must login via Okta + * @member {Boolean} ForceOktaLogin + */ +RequestLoginPinResponse.prototype['ForceOktaLogin'] = undefined; + + + + + + +export default RequestLoginPinResponse; + diff --git a/src/model/RequestPasswordResetModel.js b/src/model/RequestPasswordResetModel.js new file mode 100644 index 00000000..735e3136 --- /dev/null +++ b/src/model/RequestPasswordResetModel.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RequestPasswordResetModel model module. + * @module model/RequestPasswordResetModel + * @version 1.0.0 + */ +class RequestPasswordResetModel { + /** + * Constructs a new RequestPasswordResetModel. + * + * @alias module:model/RequestPasswordResetModel + */ + constructor() { + + RequestPasswordResetModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RequestPasswordResetModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequestPasswordResetModel} obj Optional instance to populate. + * @return {module:model/RequestPasswordResetModel} The populated RequestPasswordResetModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestPasswordResetModel(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('RecaptchaToken')) { + obj['RecaptchaToken'] = ApiClient.convertToType(data['RecaptchaToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * Email address + * @member {String} Email + */ +RequestPasswordResetModel.prototype['Email'] = undefined; + +/** + * Google Recaptcha Token + * @member {String} RecaptchaToken + */ +RequestPasswordResetModel.prototype['RecaptchaToken'] = undefined; + + + + + + +export default RequestPasswordResetModel; + diff --git a/src/model/RequestPasswordResetPinResponse.js b/src/model/RequestPasswordResetPinResponse.js new file mode 100644 index 00000000..25bb2c93 --- /dev/null +++ b/src/model/RequestPasswordResetPinResponse.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RequestPasswordResetPinResponse model module. + * @module model/RequestPasswordResetPinResponse + * @version 1.0.0 + */ +class RequestPasswordResetPinResponse { + /** + * Constructs a new RequestPasswordResetPinResponse. + * Request Password Reset PIN response + * @alias module:model/RequestPasswordResetPinResponse + */ + constructor() { + + RequestPasswordResetPinResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RequestPasswordResetPinResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequestPasswordResetPinResponse} obj Optional instance to populate. + * @return {module:model/RequestPasswordResetPinResponse} The populated RequestPasswordResetPinResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestPasswordResetPinResponse(); + + if (data.hasOwnProperty('PasswordResetPinSentViaEmail')) { + obj['PasswordResetPinSentViaEmail'] = ApiClient.convertToType(data['PasswordResetPinSentViaEmail'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Password Reset PIN sent via email to user + * @member {Boolean} PasswordResetPinSentViaEmail + */ +RequestPasswordResetPinResponse.prototype['PasswordResetPinSentViaEmail'] = undefined; + + + + + + +export default RequestPasswordResetPinResponse; + diff --git a/src/model/Response.js b/src/model/Response.js new file mode 100644 index 00000000..a22cd636 --- /dev/null +++ b/src/model/Response.js @@ -0,0 +1,72 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreItemHeader from './StoreItemHeader'; + +/** + * The Response model module. + * @module model/Response + * @version 1.0.0 + */ +class Response { + /** + * Constructs a new Response. + * @alias module:model/Response + */ + constructor() { + + Response.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Response from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Response} obj Optional instance to populate. + * @return {module:model/Response} The populated Response instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Response(); + + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], [StoreItemHeader]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} Stores + */ +Response.prototype['Stores'] = undefined; + + + + + + +export default Response; + diff --git a/src/model/RestApiArrayResultAllMetadataResult.js b/src/model/RestApiArrayResultAllMetadataResult.js new file mode 100644 index 00000000..e485e851 --- /dev/null +++ b/src/model/RestApiArrayResultAllMetadataResult.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AllMetadataResult from './AllMetadataResult'; + +/** + * The RestApiArrayResultAllMetadataResult model module. + * @module model/RestApiArrayResultAllMetadataResult + * @version 1.0.0 + */ +class RestApiArrayResultAllMetadataResult { + /** + * Constructs a new RestApiArrayResultAllMetadataResult. + * Rest api array result + * @alias module:model/RestApiArrayResultAllMetadataResult + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultAllMetadataResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultAllMetadataResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultAllMetadataResult} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultAllMetadataResult} The populated RestApiArrayResultAllMetadataResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultAllMetadataResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [AllMetadataResult]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultAllMetadataResult.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultAllMetadataResult; + diff --git a/src/model/RestApiArrayResultAllergen.js b/src/model/RestApiArrayResultAllergen.js new file mode 100644 index 00000000..e30f785e --- /dev/null +++ b/src/model/RestApiArrayResultAllergen.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Allergen from './Allergen'; + +/** + * The RestApiArrayResultAllergen model module. + * @module model/RestApiArrayResultAllergen + * @version 1.0.0 + */ +class RestApiArrayResultAllergen { + /** + * Constructs a new RestApiArrayResultAllergen. + * Rest api array result + * @alias module:model/RestApiArrayResultAllergen + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultAllergen.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultAllergen from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultAllergen} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultAllergen} The populated RestApiArrayResultAllergen instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultAllergen(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Allergen]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultAllergen.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultAllergen; + diff --git a/src/model/RestApiArrayResultApmCurrencyDataPoint.js b/src/model/RestApiArrayResultApmCurrencyDataPoint.js new file mode 100644 index 00000000..6f37948a --- /dev/null +++ b/src/model/RestApiArrayResultApmCurrencyDataPoint.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ApmCurrencyDataPoint from './ApmCurrencyDataPoint'; + +/** + * The RestApiArrayResultApmCurrencyDataPoint model module. + * @module model/RestApiArrayResultApmCurrencyDataPoint + * @version 1.0.0 + */ +class RestApiArrayResultApmCurrencyDataPoint { + /** + * Constructs a new RestApiArrayResultApmCurrencyDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultApmCurrencyDataPoint + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultApmCurrencyDataPoint.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultApmCurrencyDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultApmCurrencyDataPoint} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultApmCurrencyDataPoint} The populated RestApiArrayResultApmCurrencyDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultApmCurrencyDataPoint(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [ApmCurrencyDataPoint]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultApmCurrencyDataPoint.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultApmCurrencyDataPoint; + diff --git a/src/model/RestApiArrayResultApmDataPoint.js b/src/model/RestApiArrayResultApmDataPoint.js new file mode 100644 index 00000000..50fc340d --- /dev/null +++ b/src/model/RestApiArrayResultApmDataPoint.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ApmDataPoint from './ApmDataPoint'; + +/** + * The RestApiArrayResultApmDataPoint model module. + * @module model/RestApiArrayResultApmDataPoint + * @version 1.0.0 + */ +class RestApiArrayResultApmDataPoint { + /** + * Constructs a new RestApiArrayResultApmDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultApmDataPoint + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultApmDataPoint.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultApmDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultApmDataPoint} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultApmDataPoint} The populated RestApiArrayResultApmDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultApmDataPoint(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [ApmDataPoint]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultApmDataPoint.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultApmDataPoint; + diff --git a/src/model/RestApiArrayResultApmHourlyDataPoint.js b/src/model/RestApiArrayResultApmHourlyDataPoint.js new file mode 100644 index 00000000..a8bbec87 --- /dev/null +++ b/src/model/RestApiArrayResultApmHourlyDataPoint.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ApmHourlyDataPoint from './ApmHourlyDataPoint'; + +/** + * The RestApiArrayResultApmHourlyDataPoint model module. + * @module model/RestApiArrayResultApmHourlyDataPoint + * @version 1.0.0 + */ +class RestApiArrayResultApmHourlyDataPoint { + /** + * Constructs a new RestApiArrayResultApmHourlyDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultApmHourlyDataPoint + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultApmHourlyDataPoint.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultApmHourlyDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultApmHourlyDataPoint} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultApmHourlyDataPoint} The populated RestApiArrayResultApmHourlyDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultApmHourlyDataPoint(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [ApmHourlyDataPoint]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultApmHourlyDataPoint.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultApmHourlyDataPoint; + diff --git a/src/model/RestApiArrayResultAppStoreAppConfigurationSummary.js b/src/model/RestApiArrayResultAppStoreAppConfigurationSummary.js new file mode 100644 index 00000000..34f3c7ad --- /dev/null +++ b/src/model/RestApiArrayResultAppStoreAppConfigurationSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppConfigurationSummary from './AppStoreAppConfigurationSummary'; + +/** + * The RestApiArrayResultAppStoreAppConfigurationSummary model module. + * @module model/RestApiArrayResultAppStoreAppConfigurationSummary + * @version 1.0.0 + */ +class RestApiArrayResultAppStoreAppConfigurationSummary { + /** + * Constructs a new RestApiArrayResultAppStoreAppConfigurationSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultAppStoreAppConfigurationSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultAppStoreAppConfigurationSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultAppStoreAppConfigurationSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultAppStoreAppConfigurationSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultAppStoreAppConfigurationSummary} The populated RestApiArrayResultAppStoreAppConfigurationSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultAppStoreAppConfigurationSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [AppStoreAppConfigurationSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultAppStoreAppConfigurationSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultAppStoreAppConfigurationSummary; + diff --git a/src/model/RestApiArrayResultAppStoreAppSummary.js b/src/model/RestApiArrayResultAppStoreAppSummary.js new file mode 100644 index 00000000..409803e6 --- /dev/null +++ b/src/model/RestApiArrayResultAppStoreAppSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppSummary from './AppStoreAppSummary'; + +/** + * The RestApiArrayResultAppStoreAppSummary model module. + * @module model/RestApiArrayResultAppStoreAppSummary + * @version 1.0.0 + */ +class RestApiArrayResultAppStoreAppSummary { + /** + * Constructs a new RestApiArrayResultAppStoreAppSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultAppStoreAppSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultAppStoreAppSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultAppStoreAppSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultAppStoreAppSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultAppStoreAppSummary} The populated RestApiArrayResultAppStoreAppSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultAppStoreAppSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [AppStoreAppSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultAppStoreAppSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultAppStoreAppSummary; + diff --git a/src/model/RestApiArrayResultBankAccountSummary.js b/src/model/RestApiArrayResultBankAccountSummary.js new file mode 100644 index 00000000..3009ccc9 --- /dev/null +++ b/src/model/RestApiArrayResultBankAccountSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BankAccountSummary from './BankAccountSummary'; + +/** + * The RestApiArrayResultBankAccountSummary model module. + * @module model/RestApiArrayResultBankAccountSummary + * @version 1.0.0 + */ +class RestApiArrayResultBankAccountSummary { + /** + * Constructs a new RestApiArrayResultBankAccountSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultBankAccountSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultBankAccountSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultBankAccountSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultBankAccountSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultBankAccountSummary} The populated RestApiArrayResultBankAccountSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultBankAccountSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [BankAccountSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultBankAccountSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultBankAccountSummary; + diff --git a/src/model/RestApiArrayResultBusinessHoursPeriod.js b/src/model/RestApiArrayResultBusinessHoursPeriod.js new file mode 100644 index 00000000..68471119 --- /dev/null +++ b/src/model/RestApiArrayResultBusinessHoursPeriod.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursPeriod from './BusinessHoursPeriod'; + +/** + * The RestApiArrayResultBusinessHoursPeriod model module. + * @module model/RestApiArrayResultBusinessHoursPeriod + * @version 1.0.0 + */ +class RestApiArrayResultBusinessHoursPeriod { + /** + * Constructs a new RestApiArrayResultBusinessHoursPeriod. + * Rest api array result + * @alias module:model/RestApiArrayResultBusinessHoursPeriod + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultBusinessHoursPeriod.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultBusinessHoursPeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultBusinessHoursPeriod} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultBusinessHoursPeriod} The populated RestApiArrayResultBusinessHoursPeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultBusinessHoursPeriod(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [BusinessHoursPeriod]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultBusinessHoursPeriod.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultBusinessHoursPeriod; + diff --git a/src/model/RestApiArrayResultChannel.js b/src/model/RestApiArrayResultChannel.js new file mode 100644 index 00000000..4a4033aa --- /dev/null +++ b/src/model/RestApiArrayResultChannel.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Channel from './Channel'; + +/** + * The RestApiArrayResultChannel model module. + * @module model/RestApiArrayResultChannel + * @version 1.0.0 + */ +class RestApiArrayResultChannel { + /** + * Constructs a new RestApiArrayResultChannel. + * Rest api array result + * @alias module:model/RestApiArrayResultChannel + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultChannel.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultChannel} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultChannel} The populated RestApiArrayResultChannel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultChannel(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Channel]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultChannel.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultChannel; + diff --git a/src/model/RestApiArrayResultClientDeviceSummary.js b/src/model/RestApiArrayResultClientDeviceSummary.js new file mode 100644 index 00000000..6108683e --- /dev/null +++ b/src/model/RestApiArrayResultClientDeviceSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ClientDeviceSummary from './ClientDeviceSummary'; + +/** + * The RestApiArrayResultClientDeviceSummary model module. + * @module model/RestApiArrayResultClientDeviceSummary + * @version 1.0.0 + */ +class RestApiArrayResultClientDeviceSummary { + /** + * Constructs a new RestApiArrayResultClientDeviceSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultClientDeviceSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultClientDeviceSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultClientDeviceSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultClientDeviceSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultClientDeviceSummary} The populated RestApiArrayResultClientDeviceSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultClientDeviceSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [ClientDeviceSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultClientDeviceSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultClientDeviceSummary; + diff --git a/src/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.js b/src/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.js new file mode 100644 index 00000000..1f5c1d87 --- /dev/null +++ b/src/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CountryWithAccountFieldsDefinitions from './CountryWithAccountFieldsDefinitions'; + +/** + * The RestApiArrayResultCountryWithAccountFieldsDefinitions model module. + * @module model/RestApiArrayResultCountryWithAccountFieldsDefinitions + * @version 1.0.0 + */ +class RestApiArrayResultCountryWithAccountFieldsDefinitions { + /** + * Constructs a new RestApiArrayResultCountryWithAccountFieldsDefinitions. + * Rest api array result + * @alias module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultCountryWithAccountFieldsDefinitions.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultCountryWithAccountFieldsDefinitions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultCountryWithAccountFieldsDefinitions} The populated RestApiArrayResultCountryWithAccountFieldsDefinitions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultCountryWithAccountFieldsDefinitions(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [CountryWithAccountFieldsDefinitions]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultCountryWithAccountFieldsDefinitions.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultCountryWithAccountFieldsDefinitions; + diff --git a/src/model/RestApiArrayResultDeliveryZone.js b/src/model/RestApiArrayResultDeliveryZone.js new file mode 100644 index 00000000..2da97406 --- /dev/null +++ b/src/model/RestApiArrayResultDeliveryZone.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeliveryZone from './DeliveryZone'; + +/** + * The RestApiArrayResultDeliveryZone model module. + * @module model/RestApiArrayResultDeliveryZone + * @version 1.0.0 + */ +class RestApiArrayResultDeliveryZone { + /** + * Constructs a new RestApiArrayResultDeliveryZone. + * Rest api array result + * @alias module:model/RestApiArrayResultDeliveryZone + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultDeliveryZone.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultDeliveryZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultDeliveryZone} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultDeliveryZone} The populated RestApiArrayResultDeliveryZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultDeliveryZone(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [DeliveryZone]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultDeliveryZone.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultDeliveryZone; + diff --git a/src/model/RestApiArrayResultEmvTerminalWithAssignments.js b/src/model/RestApiArrayResultEmvTerminalWithAssignments.js new file mode 100644 index 00000000..4e15e37c --- /dev/null +++ b/src/model/RestApiArrayResultEmvTerminalWithAssignments.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import EmvTerminalWithAssignments from './EmvTerminalWithAssignments'; + +/** + * The RestApiArrayResultEmvTerminalWithAssignments model module. + * @module model/RestApiArrayResultEmvTerminalWithAssignments + * @version 1.0.0 + */ +class RestApiArrayResultEmvTerminalWithAssignments { + /** + * Constructs a new RestApiArrayResultEmvTerminalWithAssignments. + * Rest api array result + * @alias module:model/RestApiArrayResultEmvTerminalWithAssignments + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultEmvTerminalWithAssignments.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultEmvTerminalWithAssignments from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultEmvTerminalWithAssignments} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultEmvTerminalWithAssignments} The populated RestApiArrayResultEmvTerminalWithAssignments instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultEmvTerminalWithAssignments(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [EmvTerminalWithAssignments]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultEmvTerminalWithAssignments.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultEmvTerminalWithAssignments; + diff --git a/src/model/RestApiArrayResultFulfillmentStatesConfigurationSummary.js b/src/model/RestApiArrayResultFulfillmentStatesConfigurationSummary.js new file mode 100644 index 00000000..8147aac7 --- /dev/null +++ b/src/model/RestApiArrayResultFulfillmentStatesConfigurationSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FulfillmentStatesConfigurationSummary from './FulfillmentStatesConfigurationSummary'; + +/** + * The RestApiArrayResultFulfillmentStatesConfigurationSummary model module. + * @module model/RestApiArrayResultFulfillmentStatesConfigurationSummary + * @version 1.0.0 + */ +class RestApiArrayResultFulfillmentStatesConfigurationSummary { + /** + * Constructs a new RestApiArrayResultFulfillmentStatesConfigurationSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultFulfillmentStatesConfigurationSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultFulfillmentStatesConfigurationSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultFulfillmentStatesConfigurationSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultFulfillmentStatesConfigurationSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultFulfillmentStatesConfigurationSummary} The populated RestApiArrayResultFulfillmentStatesConfigurationSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultFulfillmentStatesConfigurationSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [FulfillmentStatesConfigurationSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultFulfillmentStatesConfigurationSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultFulfillmentStatesConfigurationSummary; + diff --git a/src/model/RestApiArrayResultHomeAction.js b/src/model/RestApiArrayResultHomeAction.js new file mode 100644 index 00000000..0e9bee32 --- /dev/null +++ b/src/model/RestApiArrayResultHomeAction.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HomeAction from './HomeAction'; + +/** + * The RestApiArrayResultHomeAction model module. + * @module model/RestApiArrayResultHomeAction + * @version 1.0.0 + */ +class RestApiArrayResultHomeAction { + /** + * Constructs a new RestApiArrayResultHomeAction. + * Rest api array result + * @alias module:model/RestApiArrayResultHomeAction + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultHomeAction.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultHomeAction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultHomeAction} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultHomeAction} The populated RestApiArrayResultHomeAction instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultHomeAction(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [HomeAction]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultHomeAction.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultHomeAction; + diff --git a/src/model/RestApiArrayResultKioskCashPaymentSettings.js b/src/model/RestApiArrayResultKioskCashPaymentSettings.js new file mode 100644 index 00000000..5246496a --- /dev/null +++ b/src/model/RestApiArrayResultKioskCashPaymentSettings.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import KioskCashPaymentSettings from './KioskCashPaymentSettings'; + +/** + * The RestApiArrayResultKioskCashPaymentSettings model module. + * @module model/RestApiArrayResultKioskCashPaymentSettings + * @version 1.0.0 + */ +class RestApiArrayResultKioskCashPaymentSettings { + /** + * Constructs a new RestApiArrayResultKioskCashPaymentSettings. + * Rest api array result + * @alias module:model/RestApiArrayResultKioskCashPaymentSettings + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultKioskCashPaymentSettings.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultKioskCashPaymentSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultKioskCashPaymentSettings} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultKioskCashPaymentSettings} The populated RestApiArrayResultKioskCashPaymentSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultKioskCashPaymentSettings(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [KioskCashPaymentSettings]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultKioskCashPaymentSettings.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultKioskCashPaymentSettings; + diff --git a/src/model/RestApiArrayResultLocalisedTimeZone.js b/src/model/RestApiArrayResultLocalisedTimeZone.js new file mode 100644 index 00000000..0b818909 --- /dev/null +++ b/src/model/RestApiArrayResultLocalisedTimeZone.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LocalisedTimeZone from './LocalisedTimeZone'; + +/** + * The RestApiArrayResultLocalisedTimeZone model module. + * @module model/RestApiArrayResultLocalisedTimeZone + * @version 1.0.0 + */ +class RestApiArrayResultLocalisedTimeZone { + /** + * Constructs a new RestApiArrayResultLocalisedTimeZone. + * Rest api array result + * @alias module:model/RestApiArrayResultLocalisedTimeZone + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultLocalisedTimeZone.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultLocalisedTimeZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultLocalisedTimeZone} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultLocalisedTimeZone} The populated RestApiArrayResultLocalisedTimeZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultLocalisedTimeZone(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [LocalisedTimeZone]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultLocalisedTimeZone.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultLocalisedTimeZone; + diff --git a/src/model/RestApiArrayResultLocationAreaLocation.js b/src/model/RestApiArrayResultLocationAreaLocation.js new file mode 100644 index 00000000..985868e6 --- /dev/null +++ b/src/model/RestApiArrayResultLocationAreaLocation.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LocationAreaLocation from './LocationAreaLocation'; + +/** + * The RestApiArrayResultLocationAreaLocation model module. + * @module model/RestApiArrayResultLocationAreaLocation + * @version 1.0.0 + */ +class RestApiArrayResultLocationAreaLocation { + /** + * Constructs a new RestApiArrayResultLocationAreaLocation. + * Rest api array result + * @alias module:model/RestApiArrayResultLocationAreaLocation + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultLocationAreaLocation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultLocationAreaLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultLocationAreaLocation} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultLocationAreaLocation} The populated RestApiArrayResultLocationAreaLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultLocationAreaLocation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [LocationAreaLocation]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultLocationAreaLocation.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultLocationAreaLocation; + diff --git a/src/model/RestApiArrayResultLocationAreaWithLocations.js b/src/model/RestApiArrayResultLocationAreaWithLocations.js new file mode 100644 index 00000000..bc5779df --- /dev/null +++ b/src/model/RestApiArrayResultLocationAreaWithLocations.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LocationAreaWithLocations from './LocationAreaWithLocations'; + +/** + * The RestApiArrayResultLocationAreaWithLocations model module. + * @module model/RestApiArrayResultLocationAreaWithLocations + * @version 1.0.0 + */ +class RestApiArrayResultLocationAreaWithLocations { + /** + * Constructs a new RestApiArrayResultLocationAreaWithLocations. + * Rest api array result + * @alias module:model/RestApiArrayResultLocationAreaWithLocations + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultLocationAreaWithLocations.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultLocationAreaWithLocations from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultLocationAreaWithLocations} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultLocationAreaWithLocations} The populated RestApiArrayResultLocationAreaWithLocations instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultLocationAreaWithLocations(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [LocationAreaWithLocations]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultLocationAreaWithLocations.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultLocationAreaWithLocations; + diff --git a/src/model/RestApiArrayResultLoyaltyCampaign.js b/src/model/RestApiArrayResultLoyaltyCampaign.js new file mode 100644 index 00000000..9e4ceb47 --- /dev/null +++ b/src/model/RestApiArrayResultLoyaltyCampaign.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LoyaltyCampaign from './LoyaltyCampaign'; + +/** + * The RestApiArrayResultLoyaltyCampaign model module. + * @module model/RestApiArrayResultLoyaltyCampaign + * @version 1.0.0 + */ +class RestApiArrayResultLoyaltyCampaign { + /** + * Constructs a new RestApiArrayResultLoyaltyCampaign. + * Rest api array result + * @alias module:model/RestApiArrayResultLoyaltyCampaign + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultLoyaltyCampaign.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultLoyaltyCampaign from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultLoyaltyCampaign} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultLoyaltyCampaign} The populated RestApiArrayResultLoyaltyCampaign instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultLoyaltyCampaign(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [LoyaltyCampaign]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultLoyaltyCampaign.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultLoyaltyCampaign; + diff --git a/src/model/RestApiArrayResultMenuCheckpoint.js b/src/model/RestApiArrayResultMenuCheckpoint.js new file mode 100644 index 00000000..e0e749dc --- /dev/null +++ b/src/model/RestApiArrayResultMenuCheckpoint.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuCheckpoint from './MenuCheckpoint'; + +/** + * The RestApiArrayResultMenuCheckpoint model module. + * @module model/RestApiArrayResultMenuCheckpoint + * @version 1.0.0 + */ +class RestApiArrayResultMenuCheckpoint { + /** + * Constructs a new RestApiArrayResultMenuCheckpoint. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuCheckpoint + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuCheckpoint.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuCheckpoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuCheckpoint} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuCheckpoint} The populated RestApiArrayResultMenuCheckpoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuCheckpoint(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuCheckpoint]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuCheckpoint.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuCheckpoint; + diff --git a/src/model/RestApiArrayResultMenuElementEditResponse.js b/src/model/RestApiArrayResultMenuElementEditResponse.js new file mode 100644 index 00000000..90946b47 --- /dev/null +++ b/src/model/RestApiArrayResultMenuElementEditResponse.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuElementEditResponse from './MenuElementEditResponse'; + +/** + * The RestApiArrayResultMenuElementEditResponse model module. + * @module model/RestApiArrayResultMenuElementEditResponse + * @version 1.0.0 + */ +class RestApiArrayResultMenuElementEditResponse { + /** + * Constructs a new RestApiArrayResultMenuElementEditResponse. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuElementEditResponse + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuElementEditResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuElementEditResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuElementEditResponse} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuElementEditResponse} The populated RestApiArrayResultMenuElementEditResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuElementEditResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuElementEditResponse]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuElementEditResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuElementEditResponse; + diff --git a/src/model/RestApiArrayResultMenuElementListResponse.js b/src/model/RestApiArrayResultMenuElementListResponse.js new file mode 100644 index 00000000..60108202 --- /dev/null +++ b/src/model/RestApiArrayResultMenuElementListResponse.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuElementListResponse from './MenuElementListResponse'; + +/** + * The RestApiArrayResultMenuElementListResponse model module. + * @module model/RestApiArrayResultMenuElementListResponse + * @version 1.0.0 + */ +class RestApiArrayResultMenuElementListResponse { + /** + * Constructs a new RestApiArrayResultMenuElementListResponse. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuElementListResponse + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuElementListResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuElementListResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuElementListResponse} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuElementListResponse} The populated RestApiArrayResultMenuElementListResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuElementListResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuElementListResponse]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuElementListResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuElementListResponse; + diff --git a/src/model/RestApiArrayResultMenuItemOptionSet.js b/src/model/RestApiArrayResultMenuItemOptionSet.js new file mode 100644 index 00000000..959ba4ae --- /dev/null +++ b/src/model/RestApiArrayResultMenuItemOptionSet.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSet from './MenuItemOptionSet'; + +/** + * The RestApiArrayResultMenuItemOptionSet model module. + * @module model/RestApiArrayResultMenuItemOptionSet + * @version 1.0.0 + */ +class RestApiArrayResultMenuItemOptionSet { + /** + * Constructs a new RestApiArrayResultMenuItemOptionSet. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuItemOptionSet + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuItemOptionSet.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuItemOptionSet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuItemOptionSet} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuItemOptionSet} The populated RestApiArrayResultMenuItemOptionSet instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuItemOptionSet(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuItemOptionSet]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuItemOptionSet.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuItemOptionSet; + diff --git a/src/model/RestApiArrayResultMenuItemOptionSetItem.js b/src/model/RestApiArrayResultMenuItemOptionSetItem.js new file mode 100644 index 00000000..5d71a1fb --- /dev/null +++ b/src/model/RestApiArrayResultMenuItemOptionSetItem.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSetItem from './MenuItemOptionSetItem'; + +/** + * The RestApiArrayResultMenuItemOptionSetItem model module. + * @module model/RestApiArrayResultMenuItemOptionSetItem + * @version 1.0.0 + */ +class RestApiArrayResultMenuItemOptionSetItem { + /** + * Constructs a new RestApiArrayResultMenuItemOptionSetItem. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuItemOptionSetItem + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuItemOptionSetItem.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuItemOptionSetItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuItemOptionSetItem} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuItemOptionSetItem} The populated RestApiArrayResultMenuItemOptionSetItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuItemOptionSetItem(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuItemOptionSetItem]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuItemOptionSetItem.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuItemOptionSetItem; + diff --git a/src/model/RestApiArrayResultMenuSection.js b/src/model/RestApiArrayResultMenuSection.js new file mode 100644 index 00000000..a2a1d176 --- /dev/null +++ b/src/model/RestApiArrayResultMenuSection.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSection from './MenuSection'; + +/** + * The RestApiArrayResultMenuSection model module. + * @module model/RestApiArrayResultMenuSection + * @version 1.0.0 + */ +class RestApiArrayResultMenuSection { + /** + * Constructs a new RestApiArrayResultMenuSection. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuSection + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuSection.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuSection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuSection} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuSection} The populated RestApiArrayResultMenuSection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuSection(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuSection]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuSection.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuSection; + diff --git a/src/model/RestApiArrayResultMenuSectionItem.js b/src/model/RestApiArrayResultMenuSectionItem.js new file mode 100644 index 00000000..09145ff6 --- /dev/null +++ b/src/model/RestApiArrayResultMenuSectionItem.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionItem from './MenuSectionItem'; + +/** + * The RestApiArrayResultMenuSectionItem model module. + * @module model/RestApiArrayResultMenuSectionItem + * @version 1.0.0 + */ +class RestApiArrayResultMenuSectionItem { + /** + * Constructs a new RestApiArrayResultMenuSectionItem. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuSectionItem + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuSectionItem.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuSectionItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuSectionItem} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuSectionItem} The populated RestApiArrayResultMenuSectionItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuSectionItem(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuSectionItem]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuSectionItem.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuSectionItem; + diff --git a/src/model/RestApiArrayResultMenuStoreNames.js b/src/model/RestApiArrayResultMenuStoreNames.js new file mode 100644 index 00000000..178cfaba --- /dev/null +++ b/src/model/RestApiArrayResultMenuStoreNames.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuStoreNames from './MenuStoreNames'; + +/** + * The RestApiArrayResultMenuStoreNames model module. + * @module model/RestApiArrayResultMenuStoreNames + * @version 1.0.0 + */ +class RestApiArrayResultMenuStoreNames { + /** + * Constructs a new RestApiArrayResultMenuStoreNames. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuStoreNames + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuStoreNames.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuStoreNames from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuStoreNames} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuStoreNames} The populated RestApiArrayResultMenuStoreNames instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuStoreNames(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuStoreNames]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuStoreNames.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuStoreNames; + diff --git a/src/model/RestApiArrayResultMenuSummary.js b/src/model/RestApiArrayResultMenuSummary.js new file mode 100644 index 00000000..7804ce39 --- /dev/null +++ b/src/model/RestApiArrayResultMenuSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSummary from './MenuSummary'; + +/** + * The RestApiArrayResultMenuSummary model module. + * @module model/RestApiArrayResultMenuSummary + * @version 1.0.0 + */ +class RestApiArrayResultMenuSummary { + /** + * Constructs a new RestApiArrayResultMenuSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuSummary} The populated RestApiArrayResultMenuSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuSummary; + diff --git a/src/model/RestApiArrayResultMenuTaxDetails.js b/src/model/RestApiArrayResultMenuTaxDetails.js new file mode 100644 index 00000000..bb939946 --- /dev/null +++ b/src/model/RestApiArrayResultMenuTaxDetails.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuTaxDetails from './MenuTaxDetails'; + +/** + * The RestApiArrayResultMenuTaxDetails model module. + * @module model/RestApiArrayResultMenuTaxDetails + * @version 1.0.0 + */ +class RestApiArrayResultMenuTaxDetails { + /** + * Constructs a new RestApiArrayResultMenuTaxDetails. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuTaxDetails + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuTaxDetails.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuTaxDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuTaxDetails} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuTaxDetails} The populated RestApiArrayResultMenuTaxDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuTaxDetails(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuTaxDetails]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuTaxDetails.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuTaxDetails; + diff --git a/src/model/RestApiArrayResultMenuZone.js b/src/model/RestApiArrayResultMenuZone.js new file mode 100644 index 00000000..932114f1 --- /dev/null +++ b/src/model/RestApiArrayResultMenuZone.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuZone from './MenuZone'; + +/** + * The RestApiArrayResultMenuZone model module. + * @module model/RestApiArrayResultMenuZone + * @version 1.0.0 + */ +class RestApiArrayResultMenuZone { + /** + * Constructs a new RestApiArrayResultMenuZone. + * Rest api array result + * @alias module:model/RestApiArrayResultMenuZone + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMenuZone.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMenuZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMenuZone} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMenuZone} The populated RestApiArrayResultMenuZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMenuZone(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MenuZone]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMenuZone.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMenuZone; + diff --git a/src/model/RestApiArrayResultMetadata.js b/src/model/RestApiArrayResultMetadata.js new file mode 100644 index 00000000..5e0d5d6e --- /dev/null +++ b/src/model/RestApiArrayResultMetadata.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Metadata from './Metadata'; + +/** + * The RestApiArrayResultMetadata model module. + * @module model/RestApiArrayResultMetadata + * @version 1.0.0 + */ +class RestApiArrayResultMetadata { + /** + * Constructs a new RestApiArrayResultMetadata. + * Rest api array result + * @alias module:model/RestApiArrayResultMetadata + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMetadata.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMetadata} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMetadata} The populated RestApiArrayResultMetadata instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMetadata(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Metadata]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMetadata.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMetadata; + diff --git a/src/model/RestApiArrayResultMobileAppsStatistics.js b/src/model/RestApiArrayResultMobileAppsStatistics.js new file mode 100644 index 00000000..ef6c56e5 --- /dev/null +++ b/src/model/RestApiArrayResultMobileAppsStatistics.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MobileAppsStatistics from './MobileAppsStatistics'; + +/** + * The RestApiArrayResultMobileAppsStatistics model module. + * @module model/RestApiArrayResultMobileAppsStatistics + * @version 1.0.0 + */ +class RestApiArrayResultMobileAppsStatistics { + /** + * Constructs a new RestApiArrayResultMobileAppsStatistics. + * Rest api array result + * @alias module:model/RestApiArrayResultMobileAppsStatistics + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultMobileAppsStatistics.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultMobileAppsStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultMobileAppsStatistics} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultMobileAppsStatistics} The populated RestApiArrayResultMobileAppsStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultMobileAppsStatistics(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MobileAppsStatistics]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultMobileAppsStatistics.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultMobileAppsStatistics; + diff --git a/src/model/RestApiArrayResultOAuthApp.js b/src/model/RestApiArrayResultOAuthApp.js new file mode 100644 index 00000000..b6065280 --- /dev/null +++ b/src/model/RestApiArrayResultOAuthApp.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OAuthApp from './OAuthApp'; + +/** + * The RestApiArrayResultOAuthApp model module. + * @module model/RestApiArrayResultOAuthApp + * @version 1.0.0 + */ +class RestApiArrayResultOAuthApp { + /** + * Constructs a new RestApiArrayResultOAuthApp. + * Rest api array result + * @alias module:model/RestApiArrayResultOAuthApp + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultOAuthApp.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultOAuthApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultOAuthApp} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultOAuthApp} The populated RestApiArrayResultOAuthApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultOAuthApp(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [OAuthApp]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultOAuthApp.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultOAuthApp; + diff --git a/src/model/RestApiArrayResultOauthClientRedirectUri.js b/src/model/RestApiArrayResultOauthClientRedirectUri.js new file mode 100644 index 00000000..a9e5f08d --- /dev/null +++ b/src/model/RestApiArrayResultOauthClientRedirectUri.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OauthClientRedirectUri from './OauthClientRedirectUri'; + +/** + * The RestApiArrayResultOauthClientRedirectUri model module. + * @module model/RestApiArrayResultOauthClientRedirectUri + * @version 1.0.0 + */ +class RestApiArrayResultOauthClientRedirectUri { + /** + * Constructs a new RestApiArrayResultOauthClientRedirectUri. + * Rest api array result + * @alias module:model/RestApiArrayResultOauthClientRedirectUri + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultOauthClientRedirectUri.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultOauthClientRedirectUri from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultOauthClientRedirectUri} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultOauthClientRedirectUri} The populated RestApiArrayResultOauthClientRedirectUri instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultOauthClientRedirectUri(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [OauthClientRedirectUri]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultOauthClientRedirectUri.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultOauthClientRedirectUri; + diff --git a/src/model/RestApiArrayResultOrderBatch.js b/src/model/RestApiArrayResultOrderBatch.js new file mode 100644 index 00000000..aeb81746 --- /dev/null +++ b/src/model/RestApiArrayResultOrderBatch.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderBatch from './OrderBatch'; + +/** + * The RestApiArrayResultOrderBatch model module. + * @module model/RestApiArrayResultOrderBatch + * @version 1.0.0 + */ +class RestApiArrayResultOrderBatch { + /** + * Constructs a new RestApiArrayResultOrderBatch. + * Rest api array result + * @alias module:model/RestApiArrayResultOrderBatch + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultOrderBatch.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultOrderBatch from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultOrderBatch} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultOrderBatch} The populated RestApiArrayResultOrderBatch instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultOrderBatch(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [OrderBatch]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultOrderBatch.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultOrderBatch; + diff --git a/src/model/RestApiArrayResultOrderFulfillmentStatus.js b/src/model/RestApiArrayResultOrderFulfillmentStatus.js new file mode 100644 index 00000000..4556bb33 --- /dev/null +++ b/src/model/RestApiArrayResultOrderFulfillmentStatus.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderFulfillmentStatus from './OrderFulfillmentStatus'; + +/** + * The RestApiArrayResultOrderFulfillmentStatus model module. + * @module model/RestApiArrayResultOrderFulfillmentStatus + * @version 1.0.0 + */ +class RestApiArrayResultOrderFulfillmentStatus { + /** + * Constructs a new RestApiArrayResultOrderFulfillmentStatus. + * Rest api array result + * @alias module:model/RestApiArrayResultOrderFulfillmentStatus + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultOrderFulfillmentStatus.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultOrderFulfillmentStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultOrderFulfillmentStatus} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultOrderFulfillmentStatus} The populated RestApiArrayResultOrderFulfillmentStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultOrderFulfillmentStatus(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [OrderFulfillmentStatus]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultOrderFulfillmentStatus.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultOrderFulfillmentStatus; + diff --git a/src/model/RestApiArrayResultPayoutSummary.js b/src/model/RestApiArrayResultPayoutSummary.js new file mode 100644 index 00000000..5c1bf592 --- /dev/null +++ b/src/model/RestApiArrayResultPayoutSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutSummary from './PayoutSummary'; + +/** + * The RestApiArrayResultPayoutSummary model module. + * @module model/RestApiArrayResultPayoutSummary + * @version 1.0.0 + */ +class RestApiArrayResultPayoutSummary { + /** + * Constructs a new RestApiArrayResultPayoutSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultPayoutSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultPayoutSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultPayoutSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultPayoutSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultPayoutSummary} The populated RestApiArrayResultPayoutSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultPayoutSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PayoutSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultPayoutSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultPayoutSummary; + diff --git a/src/model/RestApiArrayResultPendingInvitation.js b/src/model/RestApiArrayResultPendingInvitation.js new file mode 100644 index 00000000..8eef83d9 --- /dev/null +++ b/src/model/RestApiArrayResultPendingInvitation.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PendingInvitation from './PendingInvitation'; + +/** + * The RestApiArrayResultPendingInvitation model module. + * @module model/RestApiArrayResultPendingInvitation + * @version 1.0.0 + */ +class RestApiArrayResultPendingInvitation { + /** + * Constructs a new RestApiArrayResultPendingInvitation. + * Rest api array result + * @alias module:model/RestApiArrayResultPendingInvitation + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultPendingInvitation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultPendingInvitation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultPendingInvitation} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultPendingInvitation} The populated RestApiArrayResultPendingInvitation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultPendingInvitation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PendingInvitation]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultPendingInvitation.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultPendingInvitation; + diff --git a/src/model/RestApiArrayResultPendingMenuChangesSummaries.js b/src/model/RestApiArrayResultPendingMenuChangesSummaries.js new file mode 100644 index 00000000..8b1d6aea --- /dev/null +++ b/src/model/RestApiArrayResultPendingMenuChangesSummaries.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PendingMenuChangesSummaries from './PendingMenuChangesSummaries'; + +/** + * The RestApiArrayResultPendingMenuChangesSummaries model module. + * @module model/RestApiArrayResultPendingMenuChangesSummaries + * @version 1.0.0 + */ +class RestApiArrayResultPendingMenuChangesSummaries { + /** + * Constructs a new RestApiArrayResultPendingMenuChangesSummaries. + * Rest api array result + * @alias module:model/RestApiArrayResultPendingMenuChangesSummaries + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultPendingMenuChangesSummaries.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultPendingMenuChangesSummaries from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultPendingMenuChangesSummaries} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultPendingMenuChangesSummaries} The populated RestApiArrayResultPendingMenuChangesSummaries instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultPendingMenuChangesSummaries(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PendingMenuChangesSummaries]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultPendingMenuChangesSummaries.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultPendingMenuChangesSummaries; + diff --git a/src/model/RestApiArrayResultPreOrderTime.js b/src/model/RestApiArrayResultPreOrderTime.js new file mode 100644 index 00000000..a603840d --- /dev/null +++ b/src/model/RestApiArrayResultPreOrderTime.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PreOrderTime from './PreOrderTime'; + +/** + * The RestApiArrayResultPreOrderTime model module. + * @module model/RestApiArrayResultPreOrderTime + * @version 1.0.0 + */ +class RestApiArrayResultPreOrderTime { + /** + * Constructs a new RestApiArrayResultPreOrderTime. + * Rest api array result + * @alias module:model/RestApiArrayResultPreOrderTime + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultPreOrderTime.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultPreOrderTime from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultPreOrderTime} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultPreOrderTime} The populated RestApiArrayResultPreOrderTime instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultPreOrderTime(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PreOrderTime]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultPreOrderTime.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultPreOrderTime; + diff --git a/src/model/RestApiArrayResultProcessingFeeConfig.js b/src/model/RestApiArrayResultProcessingFeeConfig.js new file mode 100644 index 00000000..a075969b --- /dev/null +++ b/src/model/RestApiArrayResultProcessingFeeConfig.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProcessingFeeConfig from './ProcessingFeeConfig'; + +/** + * The RestApiArrayResultProcessingFeeConfig model module. + * @module model/RestApiArrayResultProcessingFeeConfig + * @version 1.0.0 + */ +class RestApiArrayResultProcessingFeeConfig { + /** + * Constructs a new RestApiArrayResultProcessingFeeConfig. + * Rest api array result + * @alias module:model/RestApiArrayResultProcessingFeeConfig + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultProcessingFeeConfig.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultProcessingFeeConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultProcessingFeeConfig} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultProcessingFeeConfig} The populated RestApiArrayResultProcessingFeeConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultProcessingFeeConfig(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [ProcessingFeeConfig]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultProcessingFeeConfig.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultProcessingFeeConfig; + diff --git a/src/model/RestApiArrayResultRedeemInvitationResult.js b/src/model/RestApiArrayResultRedeemInvitationResult.js new file mode 100644 index 00000000..e1f8627c --- /dev/null +++ b/src/model/RestApiArrayResultRedeemInvitationResult.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RedeemInvitationResult from './RedeemInvitationResult'; + +/** + * The RestApiArrayResultRedeemInvitationResult model module. + * @module model/RestApiArrayResultRedeemInvitationResult + * @version 1.0.0 + */ +class RestApiArrayResultRedeemInvitationResult { + /** + * Constructs a new RestApiArrayResultRedeemInvitationResult. + * Rest api array result + * @alias module:model/RestApiArrayResultRedeemInvitationResult + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultRedeemInvitationResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultRedeemInvitationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultRedeemInvitationResult} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultRedeemInvitationResult} The populated RestApiArrayResultRedeemInvitationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultRedeemInvitationResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [RedeemInvitationResult]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultRedeemInvitationResult.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultRedeemInvitationResult; + diff --git a/src/model/RestApiArrayResultRestApiDefaultResponse.js b/src/model/RestApiArrayResultRestApiDefaultResponse.js new file mode 100644 index 00000000..af462c9d --- /dev/null +++ b/src/model/RestApiArrayResultRestApiDefaultResponse.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestApiDefaultResponse from './RestApiDefaultResponse'; + +/** + * The RestApiArrayResultRestApiDefaultResponse model module. + * @module model/RestApiArrayResultRestApiDefaultResponse + * @version 1.0.0 + */ +class RestApiArrayResultRestApiDefaultResponse { + /** + * Constructs a new RestApiArrayResultRestApiDefaultResponse. + * Rest api array result + * @alias module:model/RestApiArrayResultRestApiDefaultResponse + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultRestApiDefaultResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultRestApiDefaultResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultRestApiDefaultResponse} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultRestApiDefaultResponse} The populated RestApiArrayResultRestApiDefaultResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultRestApiDefaultResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [RestApiDefaultResponse]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultRestApiDefaultResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultRestApiDefaultResponse; + diff --git a/src/model/RestApiArrayResultRestaurantVoucherEligibleStore.js b/src/model/RestApiArrayResultRestaurantVoucherEligibleStore.js new file mode 100644 index 00000000..47c4a2fc --- /dev/null +++ b/src/model/RestApiArrayResultRestaurantVoucherEligibleStore.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestaurantVoucherEligibleStore from './RestaurantVoucherEligibleStore'; + +/** + * The RestApiArrayResultRestaurantVoucherEligibleStore model module. + * @module model/RestApiArrayResultRestaurantVoucherEligibleStore + * @version 1.0.0 + */ +class RestApiArrayResultRestaurantVoucherEligibleStore { + /** + * Constructs a new RestApiArrayResultRestaurantVoucherEligibleStore. + * Rest api array result + * @alias module:model/RestApiArrayResultRestaurantVoucherEligibleStore + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultRestaurantVoucherEligibleStore.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultRestaurantVoucherEligibleStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultRestaurantVoucherEligibleStore} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultRestaurantVoucherEligibleStore} The populated RestApiArrayResultRestaurantVoucherEligibleStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultRestaurantVoucherEligibleStore(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [RestaurantVoucherEligibleStore]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultRestaurantVoucherEligibleStore.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultRestaurantVoucherEligibleStore; + diff --git a/src/model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.js b/src/model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.js new file mode 100644 index 00000000..a5935786 --- /dev/null +++ b/src/model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestaurantVoucherPayGreenConfiguration from './RestaurantVoucherPayGreenConfiguration'; + +/** + * The RestApiArrayResultRestaurantVoucherPayGreenConfiguration model module. + * @module model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration + * @version 1.0.0 + */ +class RestApiArrayResultRestaurantVoucherPayGreenConfiguration { + /** + * Constructs a new RestApiArrayResultRestaurantVoucherPayGreenConfiguration. + * Rest api array result + * @alias module:model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultRestaurantVoucherPayGreenConfiguration.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultRestaurantVoucherPayGreenConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration} The populated RestApiArrayResultRestaurantVoucherPayGreenConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultRestaurantVoucherPayGreenConfiguration(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [RestaurantVoucherPayGreenConfiguration]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultRestaurantVoucherPayGreenConfiguration.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultRestaurantVoucherPayGreenConfiguration; + diff --git a/src/model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.js b/src/model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.js new file mode 100644 index 00000000..e96d6deb --- /dev/null +++ b/src/model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestaurantVoucherPayGreenConfigurationSummary from './RestaurantVoucherPayGreenConfigurationSummary'; + +/** + * The RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary model module. + * @module model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + * @version 1.0.0 + */ +class RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary { + /** + * Constructs a new RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary} The populated RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [RestaurantVoucherPayGreenConfigurationSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary; + diff --git a/src/model/RestApiArrayResultRetentionCampaign.js b/src/model/RestApiArrayResultRetentionCampaign.js new file mode 100644 index 00000000..79909151 --- /dev/null +++ b/src/model/RestApiArrayResultRetentionCampaign.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RetentionCampaign from './RetentionCampaign'; + +/** + * The RestApiArrayResultRetentionCampaign model module. + * @module model/RestApiArrayResultRetentionCampaign + * @version 1.0.0 + */ +class RestApiArrayResultRetentionCampaign { + /** + * Constructs a new RestApiArrayResultRetentionCampaign. + * Rest api array result + * @alias module:model/RestApiArrayResultRetentionCampaign + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultRetentionCampaign.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultRetentionCampaign from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultRetentionCampaign} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultRetentionCampaign} The populated RestApiArrayResultRetentionCampaign instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultRetentionCampaign(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [RetentionCampaign]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultRetentionCampaign.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultRetentionCampaign; + diff --git a/src/model/RestApiArrayResultSmsProviderCredential.js b/src/model/RestApiArrayResultSmsProviderCredential.js new file mode 100644 index 00000000..d6d9ad16 --- /dev/null +++ b/src/model/RestApiArrayResultSmsProviderCredential.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SmsProviderCredential from './SmsProviderCredential'; + +/** + * The RestApiArrayResultSmsProviderCredential model module. + * @module model/RestApiArrayResultSmsProviderCredential + * @version 1.0.0 + */ +class RestApiArrayResultSmsProviderCredential { + /** + * Constructs a new RestApiArrayResultSmsProviderCredential. + * Rest api array result + * @alias module:model/RestApiArrayResultSmsProviderCredential + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultSmsProviderCredential.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultSmsProviderCredential from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultSmsProviderCredential} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultSmsProviderCredential} The populated RestApiArrayResultSmsProviderCredential instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultSmsProviderCredential(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [SmsProviderCredential]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultSmsProviderCredential.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultSmsProviderCredential; + diff --git a/src/model/RestApiArrayResultStoreChannelAssignment.js b/src/model/RestApiArrayResultStoreChannelAssignment.js new file mode 100644 index 00000000..336286de --- /dev/null +++ b/src/model/RestApiArrayResultStoreChannelAssignment.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreChannelAssignment from './StoreChannelAssignment'; + +/** + * The RestApiArrayResultStoreChannelAssignment model module. + * @module model/RestApiArrayResultStoreChannelAssignment + * @version 1.0.0 + */ +class RestApiArrayResultStoreChannelAssignment { + /** + * Constructs a new RestApiArrayResultStoreChannelAssignment. + * Rest api array result + * @alias module:model/RestApiArrayResultStoreChannelAssignment + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultStoreChannelAssignment.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultStoreChannelAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultStoreChannelAssignment} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultStoreChannelAssignment} The populated RestApiArrayResultStoreChannelAssignment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultStoreChannelAssignment(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreChannelAssignment]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultStoreChannelAssignment.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultStoreChannelAssignment; + diff --git a/src/model/RestApiArrayResultStoreDeliveryZoneFeeConfig.js b/src/model/RestApiArrayResultStoreDeliveryZoneFeeConfig.js new file mode 100644 index 00000000..bd44ccd8 --- /dev/null +++ b/src/model/RestApiArrayResultStoreDeliveryZoneFeeConfig.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreDeliveryZoneFeeConfig from './StoreDeliveryZoneFeeConfig'; + +/** + * The RestApiArrayResultStoreDeliveryZoneFeeConfig model module. + * @module model/RestApiArrayResultStoreDeliveryZoneFeeConfig + * @version 1.0.0 + */ +class RestApiArrayResultStoreDeliveryZoneFeeConfig { + /** + * Constructs a new RestApiArrayResultStoreDeliveryZoneFeeConfig. + * Rest api array result + * @alias module:model/RestApiArrayResultStoreDeliveryZoneFeeConfig + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultStoreDeliveryZoneFeeConfig.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultStoreDeliveryZoneFeeConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultStoreDeliveryZoneFeeConfig} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultStoreDeliveryZoneFeeConfig} The populated RestApiArrayResultStoreDeliveryZoneFeeConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultStoreDeliveryZoneFeeConfig(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreDeliveryZoneFeeConfig]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultStoreDeliveryZoneFeeConfig.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultStoreDeliveryZoneFeeConfig; + diff --git a/src/model/RestApiArrayResultStoreListItem.js b/src/model/RestApiArrayResultStoreListItem.js new file mode 100644 index 00000000..00ec38d6 --- /dev/null +++ b/src/model/RestApiArrayResultStoreListItem.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreListItem from './StoreListItem'; + +/** + * The RestApiArrayResultStoreListItem model module. + * @module model/RestApiArrayResultStoreListItem + * @version 1.0.0 + */ +class RestApiArrayResultStoreListItem { + /** + * Constructs a new RestApiArrayResultStoreListItem. + * Rest api array result + * @alias module:model/RestApiArrayResultStoreListItem + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultStoreListItem.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultStoreListItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultStoreListItem} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultStoreListItem} The populated RestApiArrayResultStoreListItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultStoreListItem(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreListItem]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultStoreListItem.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultStoreListItem; + diff --git a/src/model/RestApiArrayResultStoreStatistics.js b/src/model/RestApiArrayResultStoreStatistics.js new file mode 100644 index 00000000..69b9ad82 --- /dev/null +++ b/src/model/RestApiArrayResultStoreStatistics.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreStatistics from './StoreStatistics'; + +/** + * The RestApiArrayResultStoreStatistics model module. + * @module model/RestApiArrayResultStoreStatistics + * @version 1.0.0 + */ +class RestApiArrayResultStoreStatistics { + /** + * Constructs a new RestApiArrayResultStoreStatistics. + * Rest api array result + * @alias module:model/RestApiArrayResultStoreStatistics + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultStoreStatistics.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultStoreStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultStoreStatistics} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultStoreStatistics} The populated RestApiArrayResultStoreStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultStoreStatistics(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreStatistics]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultStoreStatistics.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultStoreStatistics; + diff --git a/src/model/RestApiArrayResultStripeCustomConnectedAccount.js b/src/model/RestApiArrayResultStripeCustomConnectedAccount.js new file mode 100644 index 00000000..c524ab00 --- /dev/null +++ b/src/model/RestApiArrayResultStripeCustomConnectedAccount.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StripeCustomConnectedAccount from './StripeCustomConnectedAccount'; + +/** + * The RestApiArrayResultStripeCustomConnectedAccount model module. + * @module model/RestApiArrayResultStripeCustomConnectedAccount + * @version 1.0.0 + */ +class RestApiArrayResultStripeCustomConnectedAccount { + /** + * Constructs a new RestApiArrayResultStripeCustomConnectedAccount. + * Rest api array result + * @alias module:model/RestApiArrayResultStripeCustomConnectedAccount + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultStripeCustomConnectedAccount.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultStripeCustomConnectedAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultStripeCustomConnectedAccount} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultStripeCustomConnectedAccount} The populated RestApiArrayResultStripeCustomConnectedAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultStripeCustomConnectedAccount(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StripeCustomConnectedAccount]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultStripeCustomConnectedAccount.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultStripeCustomConnectedAccount; + diff --git a/src/model/RestApiArrayResultSubscriptionSummary.js b/src/model/RestApiArrayResultSubscriptionSummary.js new file mode 100644 index 00000000..97a1d1ac --- /dev/null +++ b/src/model/RestApiArrayResultSubscriptionSummary.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SubscriptionSummary from './SubscriptionSummary'; + +/** + * The RestApiArrayResultSubscriptionSummary model module. + * @module model/RestApiArrayResultSubscriptionSummary + * @version 1.0.0 + */ +class RestApiArrayResultSubscriptionSummary { + /** + * Constructs a new RestApiArrayResultSubscriptionSummary. + * Rest api array result + * @alias module:model/RestApiArrayResultSubscriptionSummary + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultSubscriptionSummary.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultSubscriptionSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultSubscriptionSummary} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultSubscriptionSummary} The populated RestApiArrayResultSubscriptionSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultSubscriptionSummary(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [SubscriptionSummary]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultSubscriptionSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultSubscriptionSummary; + diff --git a/src/model/RestApiArrayResultSupportedCountry.js b/src/model/RestApiArrayResultSupportedCountry.js new file mode 100644 index 00000000..a89f16b4 --- /dev/null +++ b/src/model/RestApiArrayResultSupportedCountry.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SupportedCountry from './SupportedCountry'; + +/** + * The RestApiArrayResultSupportedCountry model module. + * @module model/RestApiArrayResultSupportedCountry + * @version 1.0.0 + */ +class RestApiArrayResultSupportedCountry { + /** + * Constructs a new RestApiArrayResultSupportedCountry. + * Rest api array result + * @alias module:model/RestApiArrayResultSupportedCountry + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultSupportedCountry.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultSupportedCountry from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultSupportedCountry} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultSupportedCountry} The populated RestApiArrayResultSupportedCountry instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultSupportedCountry(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [SupportedCountry]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultSupportedCountry.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultSupportedCountry; + diff --git a/src/model/RestApiArrayResultTeammate.js b/src/model/RestApiArrayResultTeammate.js new file mode 100644 index 00000000..9329cba0 --- /dev/null +++ b/src/model/RestApiArrayResultTeammate.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Teammate from './Teammate'; + +/** + * The RestApiArrayResultTeammate model module. + * @module model/RestApiArrayResultTeammate + * @version 1.0.0 + */ +class RestApiArrayResultTeammate { + /** + * Constructs a new RestApiArrayResultTeammate. + * Rest api array result + * @alias module:model/RestApiArrayResultTeammate + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultTeammate.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultTeammate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultTeammate} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultTeammate} The populated RestApiArrayResultTeammate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultTeammate(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Teammate]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultTeammate.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultTeammate; + diff --git a/src/model/RestApiArrayResultUserFlipdishAccount.js b/src/model/RestApiArrayResultUserFlipdishAccount.js new file mode 100644 index 00000000..c0875760 --- /dev/null +++ b/src/model/RestApiArrayResultUserFlipdishAccount.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserFlipdishAccount from './UserFlipdishAccount'; + +/** + * The RestApiArrayResultUserFlipdishAccount model module. + * @module model/RestApiArrayResultUserFlipdishAccount + * @version 1.0.0 + */ +class RestApiArrayResultUserFlipdishAccount { + /** + * Constructs a new RestApiArrayResultUserFlipdishAccount. + * Rest api array result + * @alias module:model/RestApiArrayResultUserFlipdishAccount + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultUserFlipdishAccount.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultUserFlipdishAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultUserFlipdishAccount} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultUserFlipdishAccount} The populated RestApiArrayResultUserFlipdishAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultUserFlipdishAccount(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [UserFlipdishAccount]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultUserFlipdishAccount.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultUserFlipdishAccount; + diff --git a/src/model/RestApiArrayResultUserNote.js b/src/model/RestApiArrayResultUserNote.js new file mode 100644 index 00000000..e3e1148d --- /dev/null +++ b/src/model/RestApiArrayResultUserNote.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserNote from './UserNote'; + +/** + * The RestApiArrayResultUserNote model module. + * @module model/RestApiArrayResultUserNote + * @version 1.0.0 + */ +class RestApiArrayResultUserNote { + /** + * Constructs a new RestApiArrayResultUserNote. + * Rest api array result + * @alias module:model/RestApiArrayResultUserNote + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultUserNote.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultUserNote from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultUserNote} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultUserNote} The populated RestApiArrayResultUserNote instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultUserNote(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [UserNote]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultUserNote.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultUserNote; + diff --git a/src/model/RestApiArrayResultUserStoreInfo.js b/src/model/RestApiArrayResultUserStoreInfo.js new file mode 100644 index 00000000..e9c7b244 --- /dev/null +++ b/src/model/RestApiArrayResultUserStoreInfo.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserStoreInfo from './UserStoreInfo'; + +/** + * The RestApiArrayResultUserStoreInfo model module. + * @module model/RestApiArrayResultUserStoreInfo + * @version 1.0.0 + */ +class RestApiArrayResultUserStoreInfo { + /** + * Constructs a new RestApiArrayResultUserStoreInfo. + * Rest api array result + * @alias module:model/RestApiArrayResultUserStoreInfo + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultUserStoreInfo.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultUserStoreInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultUserStoreInfo} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultUserStoreInfo} The populated RestApiArrayResultUserStoreInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultUserStoreInfo(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [UserStoreInfo]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultUserStoreInfo.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultUserStoreInfo; + diff --git a/src/model/RestApiArrayResultVoucherDataPoint.js b/src/model/RestApiArrayResultVoucherDataPoint.js new file mode 100644 index 00000000..f7f17c84 --- /dev/null +++ b/src/model/RestApiArrayResultVoucherDataPoint.js @@ -0,0 +1,76 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import VoucherDataPoint from './VoucherDataPoint'; + +/** + * The RestApiArrayResultVoucherDataPoint model module. + * @module model/RestApiArrayResultVoucherDataPoint + * @version 1.0.0 + */ +class RestApiArrayResultVoucherDataPoint { + /** + * Constructs a new RestApiArrayResultVoucherDataPoint. + * Rest api array result + * @alias module:model/RestApiArrayResultVoucherDataPoint + * @param Data {Array.} Generic data object. + */ + constructor(Data) { + + RestApiArrayResultVoucherDataPoint.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiArrayResultVoucherDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiArrayResultVoucherDataPoint} obj Optional instance to populate. + * @return {module:model/RestApiArrayResultVoucherDataPoint} The populated RestApiArrayResultVoucherDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiArrayResultVoucherDataPoint(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [VoucherDataPoint]); + } + } + return obj; + } + + +} + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiArrayResultVoucherDataPoint.prototype['Data'] = undefined; + + + + + + +export default RestApiArrayResultVoucherDataPoint; + diff --git a/src/model/RestApiDefaultResponse.js b/src/model/RestApiDefaultResponse.js new file mode 100644 index 00000000..537ba775 --- /dev/null +++ b/src/model/RestApiDefaultResponse.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestApiDefaultResponse model module. + * @module model/RestApiDefaultResponse + * @version 1.0.0 + */ +class RestApiDefaultResponse { + /** + * Constructs a new RestApiDefaultResponse. + * Rest api default response + * @alias module:model/RestApiDefaultResponse + */ + constructor() { + + RestApiDefaultResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RestApiDefaultResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiDefaultResponse} obj Optional instance to populate. + * @return {module:model/RestApiDefaultResponse} The populated RestApiDefaultResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiDefaultResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], 'String'); + } + } + return obj; + } + + +} + +/** + * Data string + * @member {String} Data + */ +RestApiDefaultResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiDefaultResponse; + diff --git a/src/model/RestApiErrorResult.js b/src/model/RestApiErrorResult.js new file mode 100644 index 00000000..59512057 --- /dev/null +++ b/src/model/RestApiErrorResult.js @@ -0,0 +1,103 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ValidationErrorResult from './ValidationErrorResult'; + +/** + * The RestApiErrorResult model module. + * @module model/RestApiErrorResult + * @version 1.0.0 + */ +class RestApiErrorResult { + /** + * Constructs a new RestApiErrorResult. + * Rest api error result + * @alias module:model/RestApiErrorResult + * @param Message {String} Error message + */ + constructor(Message) { + + RestApiErrorResult.initialize(this, Message); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Message) { + obj['Message'] = Message; + } + + /** + * Constructs a RestApiErrorResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiErrorResult} obj Optional instance to populate. + * @return {module:model/RestApiErrorResult} The populated RestApiErrorResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiErrorResult(); + + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + if (data.hasOwnProperty('ErrorCode')) { + obj['ErrorCode'] = ApiClient.convertToType(data['ErrorCode'], 'Number'); + } + if (data.hasOwnProperty('StackTrace')) { + obj['StackTrace'] = ApiClient.convertToType(data['StackTrace'], 'String'); + } + if (data.hasOwnProperty('Errors')) { + obj['Errors'] = ApiClient.convertToType(data['Errors'], [ValidationErrorResult]); + } + } + return obj; + } + + +} + +/** + * Error message + * @member {String} Message + */ +RestApiErrorResult.prototype['Message'] = undefined; + +/** + * Error code + * @member {Number} ErrorCode + */ +RestApiErrorResult.prototype['ErrorCode'] = undefined; + +/** + * Stack trace + * @member {String} StackTrace + */ +RestApiErrorResult.prototype['StackTrace'] = undefined; + +/** + * List of errors grouped by field name + * @member {Array.} Errors + */ +RestApiErrorResult.prototype['Errors'] = undefined; + + + + + + +export default RestApiErrorResult; + diff --git a/src/model/RestApiEventSearchPaginationResult.js b/src/model/RestApiEventSearchPaginationResult.js new file mode 100644 index 00000000..19bbd5c9 --- /dev/null +++ b/src/model/RestApiEventSearchPaginationResult.js @@ -0,0 +1,108 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import EventSearchResult from './EventSearchResult'; + +/** + * The RestApiEventSearchPaginationResult model module. + * @module model/RestApiEventSearchPaginationResult + * @version 1.0.0 + */ +class RestApiEventSearchPaginationResult { + /** + * Constructs a new RestApiEventSearchPaginationResult. + * + * @alias module:model/RestApiEventSearchPaginationResult + * @param Data {module:model/EventSearchResult} + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + */ + constructor(Data, Page, Limit, TotalRecordCount) { + + RestApiEventSearchPaginationResult.initialize(this, Data, Page, Limit, TotalRecordCount); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data, Page, Limit, TotalRecordCount) { + obj['Data'] = Data; + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + } + + /** + * Constructs a RestApiEventSearchPaginationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiEventSearchPaginationResult} obj Optional instance to populate. + * @return {module:model/RestApiEventSearchPaginationResult} The populated RestApiEventSearchPaginationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiEventSearchPaginationResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = EventSearchResult.constructFromObject(data['Data']); + } + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/EventSearchResult} Data + */ +RestApiEventSearchPaginationResult.prototype['Data'] = undefined; + +/** + * Current page index + * @member {Number} Page + */ +RestApiEventSearchPaginationResult.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiEventSearchPaginationResult.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiEventSearchPaginationResult.prototype['TotalRecordCount'] = undefined; + + + + + + +export default RestApiEventSearchPaginationResult; + diff --git a/src/model/RestApiFinanceSearchPaginationResultInvoice.js b/src/model/RestApiFinanceSearchPaginationResultInvoice.js new file mode 100644 index 00000000..c8713383 --- /dev/null +++ b/src/model/RestApiFinanceSearchPaginationResultInvoice.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Invoice from './Invoice'; + +/** + * The RestApiFinanceSearchPaginationResultInvoice model module. + * @module model/RestApiFinanceSearchPaginationResultInvoice + * @version 1.0.0 + */ +class RestApiFinanceSearchPaginationResultInvoice { + /** + * Constructs a new RestApiFinanceSearchPaginationResultInvoice. + * Rest api finance search pagination result + * @alias module:model/RestApiFinanceSearchPaginationResultInvoice + * @param NextPage {String} Next page + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(NextPage, Limit, TotalRecordCount, Data) { + + RestApiFinanceSearchPaginationResultInvoice.initialize(this, NextPage, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, NextPage, Limit, TotalRecordCount, Data) { + obj['NextPage'] = NextPage; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiFinanceSearchPaginationResultInvoice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiFinanceSearchPaginationResultInvoice} obj Optional instance to populate. + * @return {module:model/RestApiFinanceSearchPaginationResultInvoice} The populated RestApiFinanceSearchPaginationResultInvoice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiFinanceSearchPaginationResultInvoice(); + + if (data.hasOwnProperty('NextPage')) { + obj['NextPage'] = ApiClient.convertToType(data['NextPage'], 'String'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Invoice]); + } + } + return obj; + } + + +} + +/** + * Next page + * @member {String} NextPage + */ +RestApiFinanceSearchPaginationResultInvoice.prototype['NextPage'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiFinanceSearchPaginationResultInvoice.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiFinanceSearchPaginationResultInvoice.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiFinanceSearchPaginationResultInvoice.prototype['Data'] = undefined; + + + + + + +export default RestApiFinanceSearchPaginationResultInvoice; + diff --git a/src/model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.js b/src/model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.js new file mode 100644 index 00000000..68113faf --- /dev/null +++ b/src/model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SubscriptionInvoice from './SubscriptionInvoice'; + +/** + * The RestApiFinanceSearchPaginationResultSubscriptionInvoice model module. + * @module model/RestApiFinanceSearchPaginationResultSubscriptionInvoice + * @version 1.0.0 + */ +class RestApiFinanceSearchPaginationResultSubscriptionInvoice { + /** + * Constructs a new RestApiFinanceSearchPaginationResultSubscriptionInvoice. + * Rest api finance search pagination result + * @alias module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice + * @param NextPage {String} Next page + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(NextPage, Limit, TotalRecordCount, Data) { + + RestApiFinanceSearchPaginationResultSubscriptionInvoice.initialize(this, NextPage, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, NextPage, Limit, TotalRecordCount, Data) { + obj['NextPage'] = NextPage; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiFinanceSearchPaginationResultSubscriptionInvoice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice} obj Optional instance to populate. + * @return {module:model/RestApiFinanceSearchPaginationResultSubscriptionInvoice} The populated RestApiFinanceSearchPaginationResultSubscriptionInvoice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiFinanceSearchPaginationResultSubscriptionInvoice(); + + if (data.hasOwnProperty('NextPage')) { + obj['NextPage'] = ApiClient.convertToType(data['NextPage'], 'String'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [SubscriptionInvoice]); + } + } + return obj; + } + + +} + +/** + * Next page + * @member {String} NextPage + */ +RestApiFinanceSearchPaginationResultSubscriptionInvoice.prototype['NextPage'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiFinanceSearchPaginationResultSubscriptionInvoice.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiFinanceSearchPaginationResultSubscriptionInvoice.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiFinanceSearchPaginationResultSubscriptionInvoice.prototype['Data'] = undefined; + + + + + + +export default RestApiFinanceSearchPaginationResultSubscriptionInvoice; + diff --git a/src/model/RestApiForbiddenResult.js b/src/model/RestApiForbiddenResult.js new file mode 100644 index 00000000..22d2cb16 --- /dev/null +++ b/src/model/RestApiForbiddenResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestApiForbiddenResult model module. + * @module model/RestApiForbiddenResult + * @version 1.0.0 + */ +class RestApiForbiddenResult { + /** + * Constructs a new RestApiForbiddenResult. + * Rest Api Forbidden Result + * @alias module:model/RestApiForbiddenResult + * @param Message {String} Message + */ + constructor(Message) { + + RestApiForbiddenResult.initialize(this, Message); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Message) { + obj['Message'] = Message; + } + + /** + * Constructs a RestApiForbiddenResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiForbiddenResult} obj Optional instance to populate. + * @return {module:model/RestApiForbiddenResult} The populated RestApiForbiddenResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiForbiddenResult(); + + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + +} + +/** + * Message + * @member {String} Message + */ +RestApiForbiddenResult.prototype['Message'] = undefined; + + + + + + +export default RestApiForbiddenResult; + diff --git a/src/model/RestApiIntegerResult.js b/src/model/RestApiIntegerResult.js new file mode 100644 index 00000000..25d6d22a --- /dev/null +++ b/src/model/RestApiIntegerResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestApiIntegerResult model module. + * @module model/RestApiIntegerResult + * @version 1.0.0 + */ +class RestApiIntegerResult { + /** + * Constructs a new RestApiIntegerResult. + * Rest api integer result + * @alias module:model/RestApiIntegerResult + * @param Data {Number} Data integer + */ + constructor(Data) { + + RestApiIntegerResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiIntegerResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiIntegerResult} obj Optional instance to populate. + * @return {module:model/RestApiIntegerResult} The populated RestApiIntegerResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiIntegerResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Data integer + * @member {Number} Data + */ +RestApiIntegerResult.prototype['Data'] = undefined; + + + + + + +export default RestApiIntegerResult; + diff --git a/src/model/RestApiPaginationResultApp.js b/src/model/RestApiPaginationResultApp.js new file mode 100644 index 00000000..a0d7d72a --- /dev/null +++ b/src/model/RestApiPaginationResultApp.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import App from './App'; + +/** + * The RestApiPaginationResultApp model module. + * @module model/RestApiPaginationResultApp + * @version 1.0.0 + */ +class RestApiPaginationResultApp { + /** + * Constructs a new RestApiPaginationResultApp. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultApp + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultApp.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultApp} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultApp} The populated RestApiPaginationResultApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultApp(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [App]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultApp.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultApp.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultApp.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultApp.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultApp; + diff --git a/src/model/RestApiPaginationResultAppStoreAppSummary.js b/src/model/RestApiPaginationResultAppStoreAppSummary.js new file mode 100644 index 00000000..2f167393 --- /dev/null +++ b/src/model/RestApiPaginationResultAppStoreAppSummary.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppSummary from './AppStoreAppSummary'; + +/** + * The RestApiPaginationResultAppStoreAppSummary model module. + * @module model/RestApiPaginationResultAppStoreAppSummary + * @version 1.0.0 + */ +class RestApiPaginationResultAppStoreAppSummary { + /** + * Constructs a new RestApiPaginationResultAppStoreAppSummary. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultAppStoreAppSummary + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultAppStoreAppSummary.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultAppStoreAppSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultAppStoreAppSummary} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultAppStoreAppSummary} The populated RestApiPaginationResultAppStoreAppSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultAppStoreAppSummary(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [AppStoreAppSummary]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultAppStoreAppSummary.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultAppStoreAppSummary.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultAppStoreAppSummary.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultAppStoreAppSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultAppStoreAppSummary; + diff --git a/src/model/RestApiPaginationResultBusinessHoursOverride.js b/src/model/RestApiPaginationResultBusinessHoursOverride.js new file mode 100644 index 00000000..36f5838a --- /dev/null +++ b/src/model/RestApiPaginationResultBusinessHoursOverride.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursOverride from './BusinessHoursOverride'; + +/** + * The RestApiPaginationResultBusinessHoursOverride model module. + * @module model/RestApiPaginationResultBusinessHoursOverride + * @version 1.0.0 + */ +class RestApiPaginationResultBusinessHoursOverride { + /** + * Constructs a new RestApiPaginationResultBusinessHoursOverride. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultBusinessHoursOverride + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultBusinessHoursOverride.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultBusinessHoursOverride from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultBusinessHoursOverride} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultBusinessHoursOverride} The populated RestApiPaginationResultBusinessHoursOverride instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultBusinessHoursOverride(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [BusinessHoursOverride]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultBusinessHoursOverride.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultBusinessHoursOverride.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultBusinessHoursOverride.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultBusinessHoursOverride.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultBusinessHoursOverride; + diff --git a/src/model/RestApiPaginationResultCatalogItem.js b/src/model/RestApiPaginationResultCatalogItem.js new file mode 100644 index 00000000..272b084e --- /dev/null +++ b/src/model/RestApiPaginationResultCatalogItem.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CatalogItem from './CatalogItem'; + +/** + * The RestApiPaginationResultCatalogItem model module. + * @module model/RestApiPaginationResultCatalogItem + * @version 1.0.0 + */ +class RestApiPaginationResultCatalogItem { + /** + * Constructs a new RestApiPaginationResultCatalogItem. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultCatalogItem + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultCatalogItem.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultCatalogItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultCatalogItem} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultCatalogItem} The populated RestApiPaginationResultCatalogItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultCatalogItem(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [CatalogItem]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultCatalogItem.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultCatalogItem.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultCatalogItem.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultCatalogItem.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultCatalogItem; + diff --git a/src/model/RestApiPaginationResultGroup.js b/src/model/RestApiPaginationResultGroup.js new file mode 100644 index 00000000..856c06d2 --- /dev/null +++ b/src/model/RestApiPaginationResultGroup.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Group from './Group'; + +/** + * The RestApiPaginationResultGroup model module. + * @module model/RestApiPaginationResultGroup + * @version 1.0.0 + */ +class RestApiPaginationResultGroup { + /** + * Constructs a new RestApiPaginationResultGroup. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultGroup + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultGroup.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultGroup} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultGroup} The populated RestApiPaginationResultGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultGroup(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Group]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultGroup.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultGroup.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultGroup.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultGroup.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultGroup; + diff --git a/src/model/RestApiPaginationResultHydraDeviceDetails.js b/src/model/RestApiPaginationResultHydraDeviceDetails.js new file mode 100644 index 00000000..7fef300e --- /dev/null +++ b/src/model/RestApiPaginationResultHydraDeviceDetails.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraDeviceDetails from './HydraDeviceDetails'; + +/** + * The RestApiPaginationResultHydraDeviceDetails model module. + * @module model/RestApiPaginationResultHydraDeviceDetails + * @version 1.0.0 + */ +class RestApiPaginationResultHydraDeviceDetails { + /** + * Constructs a new RestApiPaginationResultHydraDeviceDetails. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultHydraDeviceDetails + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultHydraDeviceDetails.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultHydraDeviceDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultHydraDeviceDetails} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultHydraDeviceDetails} The populated RestApiPaginationResultHydraDeviceDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultHydraDeviceDetails(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [HydraDeviceDetails]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultHydraDeviceDetails.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultHydraDeviceDetails.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultHydraDeviceDetails.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultHydraDeviceDetails.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultHydraDeviceDetails; + diff --git a/src/model/RestApiPaginationResultMetafieldDefinition.js b/src/model/RestApiPaginationResultMetafieldDefinition.js new file mode 100644 index 00000000..b5b813c3 --- /dev/null +++ b/src/model/RestApiPaginationResultMetafieldDefinition.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MetafieldDefinition from './MetafieldDefinition'; + +/** + * The RestApiPaginationResultMetafieldDefinition model module. + * @module model/RestApiPaginationResultMetafieldDefinition + * @version 1.0.0 + */ +class RestApiPaginationResultMetafieldDefinition { + /** + * Constructs a new RestApiPaginationResultMetafieldDefinition. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultMetafieldDefinition + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultMetafieldDefinition.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultMetafieldDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultMetafieldDefinition} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultMetafieldDefinition} The populated RestApiPaginationResultMetafieldDefinition instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultMetafieldDefinition(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MetafieldDefinition]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultMetafieldDefinition.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultMetafieldDefinition.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultMetafieldDefinition.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultMetafieldDefinition.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultMetafieldDefinition; + diff --git a/src/model/RestApiPaginationResultMetafieldDefinitionRecommendation.js b/src/model/RestApiPaginationResultMetafieldDefinitionRecommendation.js new file mode 100644 index 00000000..528bc964 --- /dev/null +++ b/src/model/RestApiPaginationResultMetafieldDefinitionRecommendation.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MetafieldDefinitionRecommendation from './MetafieldDefinitionRecommendation'; + +/** + * The RestApiPaginationResultMetafieldDefinitionRecommendation model module. + * @module model/RestApiPaginationResultMetafieldDefinitionRecommendation + * @version 1.0.0 + */ +class RestApiPaginationResultMetafieldDefinitionRecommendation { + /** + * Constructs a new RestApiPaginationResultMetafieldDefinitionRecommendation. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultMetafieldDefinitionRecommendation + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultMetafieldDefinitionRecommendation.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultMetafieldDefinitionRecommendation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultMetafieldDefinitionRecommendation} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultMetafieldDefinitionRecommendation} The populated RestApiPaginationResultMetafieldDefinitionRecommendation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultMetafieldDefinitionRecommendation(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [MetafieldDefinitionRecommendation]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultMetafieldDefinitionRecommendation.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultMetafieldDefinitionRecommendation.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultMetafieldDefinitionRecommendation.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultMetafieldDefinitionRecommendation.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultMetafieldDefinitionRecommendation; + diff --git a/src/model/RestApiPaginationResultOAuthTokenModel.js b/src/model/RestApiPaginationResultOAuthTokenModel.js new file mode 100644 index 00000000..fa5f7c3a --- /dev/null +++ b/src/model/RestApiPaginationResultOAuthTokenModel.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OAuthTokenModel from './OAuthTokenModel'; + +/** + * The RestApiPaginationResultOAuthTokenModel model module. + * @module model/RestApiPaginationResultOAuthTokenModel + * @version 1.0.0 + */ +class RestApiPaginationResultOAuthTokenModel { + /** + * Constructs a new RestApiPaginationResultOAuthTokenModel. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultOAuthTokenModel + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultOAuthTokenModel.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultOAuthTokenModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultOAuthTokenModel} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultOAuthTokenModel} The populated RestApiPaginationResultOAuthTokenModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultOAuthTokenModel(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [OAuthTokenModel]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultOAuthTokenModel.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultOAuthTokenModel.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultOAuthTokenModel.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultOAuthTokenModel.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultOAuthTokenModel; + diff --git a/src/model/RestApiPaginationResultOrder.js b/src/model/RestApiPaginationResultOrder.js new file mode 100644 index 00000000..4f94c752 --- /dev/null +++ b/src/model/RestApiPaginationResultOrder.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The RestApiPaginationResultOrder model module. + * @module model/RestApiPaginationResultOrder + * @version 1.0.0 + */ +class RestApiPaginationResultOrder { + /** + * Constructs a new RestApiPaginationResultOrder. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultOrder + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultOrder.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultOrder} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultOrder} The populated RestApiPaginationResultOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultOrder(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Order]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultOrder.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultOrder.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultOrder.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultOrder.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultOrder; + diff --git a/src/model/RestApiPaginationResultOrderSummary.js b/src/model/RestApiPaginationResultOrderSummary.js new file mode 100644 index 00000000..329dd20b --- /dev/null +++ b/src/model/RestApiPaginationResultOrderSummary.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderSummary from './OrderSummary'; + +/** + * The RestApiPaginationResultOrderSummary model module. + * @module model/RestApiPaginationResultOrderSummary + * @version 1.0.0 + */ +class RestApiPaginationResultOrderSummary { + /** + * Constructs a new RestApiPaginationResultOrderSummary. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultOrderSummary + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultOrderSummary.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultOrderSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultOrderSummary} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultOrderSummary} The populated RestApiPaginationResultOrderSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultOrderSummary(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [OrderSummary]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultOrderSummary.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultOrderSummary.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultOrderSummary.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultOrderSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultOrderSummary; + diff --git a/src/model/RestApiPaginationResultPayout.js b/src/model/RestApiPaginationResultPayout.js new file mode 100644 index 00000000..7a41e331 --- /dev/null +++ b/src/model/RestApiPaginationResultPayout.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Payout from './Payout'; + +/** + * The RestApiPaginationResultPayout model module. + * @module model/RestApiPaginationResultPayout + * @version 1.0.0 + */ +class RestApiPaginationResultPayout { + /** + * Constructs a new RestApiPaginationResultPayout. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayout + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPayout.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPayout from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPayout} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPayout} The populated RestApiPaginationResultPayout instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPayout(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Payout]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPayout.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPayout.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPayout.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPayout.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPayout; + diff --git a/src/model/RestApiPaginationResultPayoutChargeback.js b/src/model/RestApiPaginationResultPayoutChargeback.js new file mode 100644 index 00000000..03fbaadf --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutChargeback.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutChargeback from './PayoutChargeback'; + +/** + * The RestApiPaginationResultPayoutChargeback model module. + * @module model/RestApiPaginationResultPayoutChargeback + * @version 1.0.0 + */ +class RestApiPaginationResultPayoutChargeback { + /** + * Constructs a new RestApiPaginationResultPayoutChargeback. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutChargeback + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPayoutChargeback.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPayoutChargeback from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPayoutChargeback} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPayoutChargeback} The populated RestApiPaginationResultPayoutChargeback instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPayoutChargeback(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PayoutChargeback]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPayoutChargeback.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPayoutChargeback.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPayoutChargeback.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPayoutChargeback.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPayoutChargeback; + diff --git a/src/model/RestApiPaginationResultPayoutOrder.js b/src/model/RestApiPaginationResultPayoutOrder.js new file mode 100644 index 00000000..05e85ec1 --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutOrder.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutOrder from './PayoutOrder'; + +/** + * The RestApiPaginationResultPayoutOrder model module. + * @module model/RestApiPaginationResultPayoutOrder + * @version 1.0.0 + */ +class RestApiPaginationResultPayoutOrder { + /** + * Constructs a new RestApiPaginationResultPayoutOrder. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutOrder + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPayoutOrder.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPayoutOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPayoutOrder} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPayoutOrder} The populated RestApiPaginationResultPayoutOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPayoutOrder(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PayoutOrder]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPayoutOrder.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPayoutOrder.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPayoutOrder.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPayoutOrder.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPayoutOrder; + diff --git a/src/model/RestApiPaginationResultPayoutOtherCharge.js b/src/model/RestApiPaginationResultPayoutOtherCharge.js new file mode 100644 index 00000000..f51aa4a9 --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutOtherCharge.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutOtherCharge from './PayoutOtherCharge'; + +/** + * The RestApiPaginationResultPayoutOtherCharge model module. + * @module model/RestApiPaginationResultPayoutOtherCharge + * @version 1.0.0 + */ +class RestApiPaginationResultPayoutOtherCharge { + /** + * Constructs a new RestApiPaginationResultPayoutOtherCharge. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutOtherCharge + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPayoutOtherCharge.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPayoutOtherCharge from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPayoutOtherCharge} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPayoutOtherCharge} The populated RestApiPaginationResultPayoutOtherCharge instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPayoutOtherCharge(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PayoutOtherCharge]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPayoutOtherCharge.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPayoutOtherCharge.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPayoutOtherCharge.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPayoutOtherCharge.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPayoutOtherCharge; + diff --git a/src/model/RestApiPaginationResultPayoutRefund.js b/src/model/RestApiPaginationResultPayoutRefund.js new file mode 100644 index 00000000..95c59fbb --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutRefund.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutRefund from './PayoutRefund'; + +/** + * The RestApiPaginationResultPayoutRefund model module. + * @module model/RestApiPaginationResultPayoutRefund + * @version 1.0.0 + */ +class RestApiPaginationResultPayoutRefund { + /** + * Constructs a new RestApiPaginationResultPayoutRefund. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutRefund + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPayoutRefund.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPayoutRefund from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPayoutRefund} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPayoutRefund} The populated RestApiPaginationResultPayoutRefund instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPayoutRefund(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PayoutRefund]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPayoutRefund.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPayoutRefund.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPayoutRefund.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPayoutRefund.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPayoutRefund; + diff --git a/src/model/RestApiPaginationResultPayoutReport3RefundedOrder.js b/src/model/RestApiPaginationResultPayoutReport3RefundedOrder.js new file mode 100644 index 00000000..deb0222f --- /dev/null +++ b/src/model/RestApiPaginationResultPayoutReport3RefundedOrder.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutReport3RefundedOrder from './PayoutReport3RefundedOrder'; + +/** + * The RestApiPaginationResultPayoutReport3RefundedOrder model module. + * @module model/RestApiPaginationResultPayoutReport3RefundedOrder + * @version 1.0.0 + */ +class RestApiPaginationResultPayoutReport3RefundedOrder { + /** + * Constructs a new RestApiPaginationResultPayoutReport3RefundedOrder. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPayoutReport3RefundedOrder + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPayoutReport3RefundedOrder.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPayoutReport3RefundedOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPayoutReport3RefundedOrder} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPayoutReport3RefundedOrder} The populated RestApiPaginationResultPayoutReport3RefundedOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPayoutReport3RefundedOrder(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PayoutReport3RefundedOrder]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPayoutReport3RefundedOrder.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPayoutReport3RefundedOrder.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPayoutReport3RefundedOrder.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPayoutReport3RefundedOrder.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPayoutReport3RefundedOrder; + diff --git a/src/model/RestApiPaginationResultPendingMenuChanges.js b/src/model/RestApiPaginationResultPendingMenuChanges.js new file mode 100644 index 00000000..d94f6bd2 --- /dev/null +++ b/src/model/RestApiPaginationResultPendingMenuChanges.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PendingMenuChanges from './PendingMenuChanges'; + +/** + * The RestApiPaginationResultPendingMenuChanges model module. + * @module model/RestApiPaginationResultPendingMenuChanges + * @version 1.0.0 + */ +class RestApiPaginationResultPendingMenuChanges { + /** + * Constructs a new RestApiPaginationResultPendingMenuChanges. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPendingMenuChanges + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPendingMenuChanges.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPendingMenuChanges from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPendingMenuChanges} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPendingMenuChanges} The populated RestApiPaginationResultPendingMenuChanges instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPendingMenuChanges(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PendingMenuChanges]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPendingMenuChanges.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPendingMenuChanges.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPendingMenuChanges.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPendingMenuChanges.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPendingMenuChanges; + diff --git a/src/model/RestApiPaginationResultPhoneCall.js b/src/model/RestApiPaginationResultPhoneCall.js new file mode 100644 index 00000000..d43fbc9f --- /dev/null +++ b/src/model/RestApiPaginationResultPhoneCall.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PhoneCall from './PhoneCall'; + +/** + * The RestApiPaginationResultPhoneCall model module. + * @module model/RestApiPaginationResultPhoneCall + * @version 1.0.0 + */ +class RestApiPaginationResultPhoneCall { + /** + * Constructs a new RestApiPaginationResultPhoneCall. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPhoneCall + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPhoneCall.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPhoneCall from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPhoneCall} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPhoneCall} The populated RestApiPaginationResultPhoneCall instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPhoneCall(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PhoneCall]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPhoneCall.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPhoneCall.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPhoneCall.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPhoneCall.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPhoneCall; + diff --git a/src/model/RestApiPaginationResultProduct.js b/src/model/RestApiPaginationResultProduct.js new file mode 100644 index 00000000..f42b11fc --- /dev/null +++ b/src/model/RestApiPaginationResultProduct.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Product from './Product'; + +/** + * The RestApiPaginationResultProduct model module. + * @module model/RestApiPaginationResultProduct + * @version 1.0.0 + */ +class RestApiPaginationResultProduct { + /** + * Constructs a new RestApiPaginationResultProduct. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultProduct + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultProduct.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultProduct from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultProduct} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultProduct} The populated RestApiPaginationResultProduct instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultProduct(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Product]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultProduct.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultProduct.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultProduct.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultProduct.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultProduct; + diff --git a/src/model/RestApiPaginationResultPushNotificationResponse.js b/src/model/RestApiPaginationResultPushNotificationResponse.js new file mode 100644 index 00000000..c2521c92 --- /dev/null +++ b/src/model/RestApiPaginationResultPushNotificationResponse.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PushNotificationResponse from './PushNotificationResponse'; + +/** + * The RestApiPaginationResultPushNotificationResponse model module. + * @module model/RestApiPaginationResultPushNotificationResponse + * @version 1.0.0 + */ +class RestApiPaginationResultPushNotificationResponse { + /** + * Constructs a new RestApiPaginationResultPushNotificationResponse. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultPushNotificationResponse + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultPushNotificationResponse.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultPushNotificationResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultPushNotificationResponse} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultPushNotificationResponse} The populated RestApiPaginationResultPushNotificationResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultPushNotificationResponse(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [PushNotificationResponse]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultPushNotificationResponse.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultPushNotificationResponse.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultPushNotificationResponse.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultPushNotificationResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultPushNotificationResponse; + diff --git a/src/model/RestApiPaginationResultRestaurant.js b/src/model/RestApiPaginationResultRestaurant.js new file mode 100644 index 00000000..d0511e2f --- /dev/null +++ b/src/model/RestApiPaginationResultRestaurant.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Restaurant from './Restaurant'; + +/** + * The RestApiPaginationResultRestaurant model module. + * @module model/RestApiPaginationResultRestaurant + * @version 1.0.0 + */ +class RestApiPaginationResultRestaurant { + /** + * Constructs a new RestApiPaginationResultRestaurant. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultRestaurant + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultRestaurant.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultRestaurant from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultRestaurant} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultRestaurant} The populated RestApiPaginationResultRestaurant instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultRestaurant(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Restaurant]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultRestaurant.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultRestaurant.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultRestaurant.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultRestaurant.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultRestaurant; + diff --git a/src/model/RestApiPaginationResultStore.js b/src/model/RestApiPaginationResultStore.js new file mode 100644 index 00000000..a7ec0cfc --- /dev/null +++ b/src/model/RestApiPaginationResultStore.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; + +/** + * The RestApiPaginationResultStore model module. + * @module model/RestApiPaginationResultStore + * @version 1.0.0 + */ +class RestApiPaginationResultStore { + /** + * Constructs a new RestApiPaginationResultStore. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStore + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultStore.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultStore} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultStore} The populated RestApiPaginationResultStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultStore(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [Store]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultStore.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultStore.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultStore.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultStore.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultStore; + diff --git a/src/model/RestApiPaginationResultStoreGroup.js b/src/model/RestApiPaginationResultStoreGroup.js new file mode 100644 index 00000000..f23cdfff --- /dev/null +++ b/src/model/RestApiPaginationResultStoreGroup.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreGroup from './StoreGroup'; + +/** + * The RestApiPaginationResultStoreGroup model module. + * @module model/RestApiPaginationResultStoreGroup + * @version 1.0.0 + */ +class RestApiPaginationResultStoreGroup { + /** + * Constructs a new RestApiPaginationResultStoreGroup. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStoreGroup + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultStoreGroup.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultStoreGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultStoreGroup} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultStoreGroup} The populated RestApiPaginationResultStoreGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultStoreGroup(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreGroup]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultStoreGroup.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultStoreGroup.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultStoreGroup.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultStoreGroup.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultStoreGroup; + diff --git a/src/model/RestApiPaginationResultStoreGroupExtended.js b/src/model/RestApiPaginationResultStoreGroupExtended.js new file mode 100644 index 00000000..88cb1a59 --- /dev/null +++ b/src/model/RestApiPaginationResultStoreGroupExtended.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreGroupExtended from './StoreGroupExtended'; + +/** + * The RestApiPaginationResultStoreGroupExtended model module. + * @module model/RestApiPaginationResultStoreGroupExtended + * @version 1.0.0 + */ +class RestApiPaginationResultStoreGroupExtended { + /** + * Constructs a new RestApiPaginationResultStoreGroupExtended. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStoreGroupExtended + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultStoreGroupExtended.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultStoreGroupExtended from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultStoreGroupExtended} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultStoreGroupExtended} The populated RestApiPaginationResultStoreGroupExtended instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultStoreGroupExtended(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreGroupExtended]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultStoreGroupExtended.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultStoreGroupExtended.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultStoreGroupExtended.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultStoreGroupExtended.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultStoreGroupExtended; + diff --git a/src/model/RestApiPaginationResultStoreHeader.js b/src/model/RestApiPaginationResultStoreHeader.js new file mode 100644 index 00000000..4ae61fbe --- /dev/null +++ b/src/model/RestApiPaginationResultStoreHeader.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreHeader from './StoreHeader'; + +/** + * The RestApiPaginationResultStoreHeader model module. + * @module model/RestApiPaginationResultStoreHeader + * @version 1.0.0 + */ +class RestApiPaginationResultStoreHeader { + /** + * Constructs a new RestApiPaginationResultStoreHeader. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStoreHeader + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultStoreHeader.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultStoreHeader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultStoreHeader} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultStoreHeader} The populated RestApiPaginationResultStoreHeader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultStoreHeader(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreHeader]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultStoreHeader.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultStoreHeader.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultStoreHeader.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultStoreHeader.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultStoreHeader; + diff --git a/src/model/RestApiPaginationResultStoreValidationConfig.js b/src/model/RestApiPaginationResultStoreValidationConfig.js new file mode 100644 index 00000000..691242fa --- /dev/null +++ b/src/model/RestApiPaginationResultStoreValidationConfig.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreValidationConfig from './StoreValidationConfig'; + +/** + * The RestApiPaginationResultStoreValidationConfig model module. + * @module model/RestApiPaginationResultStoreValidationConfig + * @version 1.0.0 + */ +class RestApiPaginationResultStoreValidationConfig { + /** + * Constructs a new RestApiPaginationResultStoreValidationConfig. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultStoreValidationConfig + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultStoreValidationConfig.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultStoreValidationConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultStoreValidationConfig} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultStoreValidationConfig} The populated RestApiPaginationResultStoreValidationConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultStoreValidationConfig(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreValidationConfig]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultStoreValidationConfig.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultStoreValidationConfig.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultStoreValidationConfig.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultStoreValidationConfig.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultStoreValidationConfig; + diff --git a/src/model/RestApiPaginationResultUserSearch.js b/src/model/RestApiPaginationResultUserSearch.js new file mode 100644 index 00000000..0feea4dc --- /dev/null +++ b/src/model/RestApiPaginationResultUserSearch.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserSearch from './UserSearch'; + +/** + * The RestApiPaginationResultUserSearch model module. + * @module model/RestApiPaginationResultUserSearch + * @version 1.0.0 + */ +class RestApiPaginationResultUserSearch { + /** + * Constructs a new RestApiPaginationResultUserSearch. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultUserSearch + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultUserSearch.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultUserSearch from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultUserSearch} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultUserSearch} The populated RestApiPaginationResultUserSearch instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultUserSearch(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [UserSearch]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultUserSearch.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultUserSearch.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultUserSearch.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultUserSearch.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultUserSearch; + diff --git a/src/model/RestApiPaginationResultVoucherSummary.js b/src/model/RestApiPaginationResultVoucherSummary.js new file mode 100644 index 00000000..8d1ef7f7 --- /dev/null +++ b/src/model/RestApiPaginationResultVoucherSummary.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import VoucherSummary from './VoucherSummary'; + +/** + * The RestApiPaginationResultVoucherSummary model module. + * @module model/RestApiPaginationResultVoucherSummary + * @version 1.0.0 + */ +class RestApiPaginationResultVoucherSummary { + /** + * Constructs a new RestApiPaginationResultVoucherSummary. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultVoucherSummary + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultVoucherSummary.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultVoucherSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultVoucherSummary} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultVoucherSummary} The populated RestApiPaginationResultVoucherSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultVoucherSummary(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [VoucherSummary]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultVoucherSummary.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultVoucherSummary.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultVoucherSummary.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultVoucherSummary.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultVoucherSummary; + diff --git a/src/model/RestApiPaginationResultWebhookLog.js b/src/model/RestApiPaginationResultWebhookLog.js new file mode 100644 index 00000000..eebc9422 --- /dev/null +++ b/src/model/RestApiPaginationResultWebhookLog.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebhookLog from './WebhookLog'; + +/** + * The RestApiPaginationResultWebhookLog model module. + * @module model/RestApiPaginationResultWebhookLog + * @version 1.0.0 + */ +class RestApiPaginationResultWebhookLog { + /** + * Constructs a new RestApiPaginationResultWebhookLog. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultWebhookLog + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultWebhookLog.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultWebhookLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultWebhookLog} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultWebhookLog} The populated RestApiPaginationResultWebhookLog instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultWebhookLog(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [WebhookLog]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultWebhookLog.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultWebhookLog.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultWebhookLog.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultWebhookLog.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultWebhookLog; + diff --git a/src/model/RestApiPaginationResultWebhookSubscription.js b/src/model/RestApiPaginationResultWebhookSubscription.js new file mode 100644 index 00000000..52dd5199 --- /dev/null +++ b/src/model/RestApiPaginationResultWebhookSubscription.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebhookSubscription from './WebhookSubscription'; + +/** + * The RestApiPaginationResultWebhookSubscription model module. + * @module model/RestApiPaginationResultWebhookSubscription + * @version 1.0.0 + */ +class RestApiPaginationResultWebhookSubscription { + /** + * Constructs a new RestApiPaginationResultWebhookSubscription. + * Rest api pagination result + * @alias module:model/RestApiPaginationResultWebhookSubscription + * @param Page {Number} Current page index + * @param Limit {Number} Current page size + * @param TotalRecordCount {Number} Total record count + * @param Data {Array.} Generic data object. + */ + constructor(Page, Limit, TotalRecordCount, Data) { + + RestApiPaginationResultWebhookSubscription.initialize(this, Page, Limit, TotalRecordCount, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Page, Limit, TotalRecordCount, Data) { + obj['Page'] = Page; + obj['Limit'] = Limit; + obj['TotalRecordCount'] = TotalRecordCount; + obj['Data'] = Data; + } + + /** + * Constructs a RestApiPaginationResultWebhookSubscription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiPaginationResultWebhookSubscription} obj Optional instance to populate. + * @return {module:model/RestApiPaginationResultWebhookSubscription} The populated RestApiPaginationResultWebhookSubscription instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiPaginationResultWebhookSubscription(); + + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('TotalRecordCount')) { + obj['TotalRecordCount'] = ApiClient.convertToType(data['TotalRecordCount'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [WebhookSubscription]); + } + } + return obj; + } + + +} + +/** + * Current page index + * @member {Number} Page + */ +RestApiPaginationResultWebhookSubscription.prototype['Page'] = undefined; + +/** + * Current page size + * @member {Number} Limit + */ +RestApiPaginationResultWebhookSubscription.prototype['Limit'] = undefined; + +/** + * Total record count + * @member {Number} TotalRecordCount + */ +RestApiPaginationResultWebhookSubscription.prototype['TotalRecordCount'] = undefined; + +/** + * Generic data object. + * @member {Array.} Data + */ +RestApiPaginationResultWebhookSubscription.prototype['Data'] = undefined; + + + + + + +export default RestApiPaginationResultWebhookSubscription; + diff --git a/src/model/RestApiResultAcceptInvitationResult.js b/src/model/RestApiResultAcceptInvitationResult.js new file mode 100644 index 00000000..ab061358 --- /dev/null +++ b/src/model/RestApiResultAcceptInvitationResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AcceptInvitationResult from './AcceptInvitationResult'; + +/** + * The RestApiResultAcceptInvitationResult model module. + * @module model/RestApiResultAcceptInvitationResult + * @version 1.0.0 + */ +class RestApiResultAcceptInvitationResult { + /** + * Constructs a new RestApiResultAcceptInvitationResult. + * Rest api result + * @alias module:model/RestApiResultAcceptInvitationResult + * @param Data {module:model/AcceptInvitationResult} + */ + constructor(Data) { + + RestApiResultAcceptInvitationResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAcceptInvitationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAcceptInvitationResult} obj Optional instance to populate. + * @return {module:model/RestApiResultAcceptInvitationResult} The populated RestApiResultAcceptInvitationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAcceptInvitationResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AcceptInvitationResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AcceptInvitationResult} Data + */ +RestApiResultAcceptInvitationResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAcceptInvitationResult; + diff --git a/src/model/RestApiResultAccountDetail.js b/src/model/RestApiResultAccountDetail.js new file mode 100644 index 00000000..07ae21dc --- /dev/null +++ b/src/model/RestApiResultAccountDetail.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountDetail from './AccountDetail'; + +/** + * The RestApiResultAccountDetail model module. + * @module model/RestApiResultAccountDetail + * @version 1.0.0 + */ +class RestApiResultAccountDetail { + /** + * Constructs a new RestApiResultAccountDetail. + * Rest api result + * @alias module:model/RestApiResultAccountDetail + * @param Data {module:model/AccountDetail} + */ + constructor(Data) { + + RestApiResultAccountDetail.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAccountDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAccountDetail} obj Optional instance to populate. + * @return {module:model/RestApiResultAccountDetail} The populated RestApiResultAccountDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAccountDetail(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AccountDetail.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AccountDetail} Data + */ +RestApiResultAccountDetail.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAccountDetail; + diff --git a/src/model/RestApiResultAccountFieldsDefinitions.js b/src/model/RestApiResultAccountFieldsDefinitions.js new file mode 100644 index 00000000..b949af5f --- /dev/null +++ b/src/model/RestApiResultAccountFieldsDefinitions.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AccountFieldsDefinitions from './AccountFieldsDefinitions'; + +/** + * The RestApiResultAccountFieldsDefinitions model module. + * @module model/RestApiResultAccountFieldsDefinitions + * @version 1.0.0 + */ +class RestApiResultAccountFieldsDefinitions { + /** + * Constructs a new RestApiResultAccountFieldsDefinitions. + * Rest api result + * @alias module:model/RestApiResultAccountFieldsDefinitions + * @param Data {module:model/AccountFieldsDefinitions} + */ + constructor(Data) { + + RestApiResultAccountFieldsDefinitions.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAccountFieldsDefinitions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAccountFieldsDefinitions} obj Optional instance to populate. + * @return {module:model/RestApiResultAccountFieldsDefinitions} The populated RestApiResultAccountFieldsDefinitions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAccountFieldsDefinitions(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AccountFieldsDefinitions.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AccountFieldsDefinitions} Data + */ +RestApiResultAccountFieldsDefinitions.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAccountFieldsDefinitions; + diff --git a/src/model/RestApiResultAddressFormResponse.js b/src/model/RestApiResultAddressFormResponse.js new file mode 100644 index 00000000..ee98dfea --- /dev/null +++ b/src/model/RestApiResultAddressFormResponse.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AddressFormResponse from './AddressFormResponse'; + +/** + * The RestApiResultAddressFormResponse model module. + * @module model/RestApiResultAddressFormResponse + * @version 1.0.0 + */ +class RestApiResultAddressFormResponse { + /** + * Constructs a new RestApiResultAddressFormResponse. + * Rest api result + * @alias module:model/RestApiResultAddressFormResponse + * @param Data {module:model/AddressFormResponse} + */ + constructor(Data) { + + RestApiResultAddressFormResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAddressFormResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAddressFormResponse} obj Optional instance to populate. + * @return {module:model/RestApiResultAddressFormResponse} The populated RestApiResultAddressFormResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAddressFormResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AddressFormResponse.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AddressFormResponse} Data + */ +RestApiResultAddressFormResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAddressFormResponse; + diff --git a/src/model/RestApiResultApmStatistics.js b/src/model/RestApiResultApmStatistics.js new file mode 100644 index 00000000..11992c77 --- /dev/null +++ b/src/model/RestApiResultApmStatistics.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ApmStatistics from './ApmStatistics'; + +/** + * The RestApiResultApmStatistics model module. + * @module model/RestApiResultApmStatistics + * @version 1.0.0 + */ +class RestApiResultApmStatistics { + /** + * Constructs a new RestApiResultApmStatistics. + * Rest api result + * @alias module:model/RestApiResultApmStatistics + * @param Data {module:model/ApmStatistics} + */ + constructor(Data) { + + RestApiResultApmStatistics.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultApmStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultApmStatistics} obj Optional instance to populate. + * @return {module:model/RestApiResultApmStatistics} The populated RestApiResultApmStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultApmStatistics(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApmStatistics.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ApmStatistics} Data + */ +RestApiResultApmStatistics.prototype['Data'] = undefined; + + + + + + +export default RestApiResultApmStatistics; + diff --git a/src/model/RestApiResultApmStatus.js b/src/model/RestApiResultApmStatus.js new file mode 100644 index 00000000..f4a35a9c --- /dev/null +++ b/src/model/RestApiResultApmStatus.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ApmStatus from './ApmStatus'; + +/** + * The RestApiResultApmStatus model module. + * @module model/RestApiResultApmStatus + * @version 1.0.0 + */ +class RestApiResultApmStatus { + /** + * Constructs a new RestApiResultApmStatus. + * Rest api result + * @alias module:model/RestApiResultApmStatus + * @param Data {module:model/ApmStatus} + */ + constructor(Data) { + + RestApiResultApmStatus.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultApmStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultApmStatus} obj Optional instance to populate. + * @return {module:model/RestApiResultApmStatus} The populated RestApiResultApmStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultApmStatus(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApmStatus.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ApmStatus} Data + */ +RestApiResultApmStatus.prototype['Data'] = undefined; + + + + + + +export default RestApiResultApmStatus; + diff --git a/src/model/RestApiResultApp.js b/src/model/RestApiResultApp.js new file mode 100644 index 00000000..46f8c965 --- /dev/null +++ b/src/model/RestApiResultApp.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import App from './App'; + +/** + * The RestApiResultApp model module. + * @module model/RestApiResultApp + * @version 1.0.0 + */ +class RestApiResultApp { + /** + * Constructs a new RestApiResultApp. + * Rest api result + * @alias module:model/RestApiResultApp + * @param Data {module:model/App} + */ + constructor(Data) { + + RestApiResultApp.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultApp} obj Optional instance to populate. + * @return {module:model/RestApiResultApp} The populated RestApiResultApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultApp(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = App.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/App} Data + */ +RestApiResultApp.prototype['Data'] = undefined; + + + + + + +export default RestApiResultApp; + diff --git a/src/model/RestApiResultAppChannelAssignment.js b/src/model/RestApiResultAppChannelAssignment.js new file mode 100644 index 00000000..2f0b2145 --- /dev/null +++ b/src/model/RestApiResultAppChannelAssignment.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppChannelAssignment from './AppChannelAssignment'; + +/** + * The RestApiResultAppChannelAssignment model module. + * @module model/RestApiResultAppChannelAssignment + * @version 1.0.0 + */ +class RestApiResultAppChannelAssignment { + /** + * Constructs a new RestApiResultAppChannelAssignment. + * Rest api result + * @alias module:model/RestApiResultAppChannelAssignment + * @param Data {module:model/AppChannelAssignment} + */ + constructor(Data) { + + RestApiResultAppChannelAssignment.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAppChannelAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAppChannelAssignment} obj Optional instance to populate. + * @return {module:model/RestApiResultAppChannelAssignment} The populated RestApiResultAppChannelAssignment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAppChannelAssignment(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AppChannelAssignment.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AppChannelAssignment} Data + */ +RestApiResultAppChannelAssignment.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAppChannelAssignment; + diff --git a/src/model/RestApiResultAppCompliance.js b/src/model/RestApiResultAppCompliance.js new file mode 100644 index 00000000..37ebd732 --- /dev/null +++ b/src/model/RestApiResultAppCompliance.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppCompliance from './AppCompliance'; + +/** + * The RestApiResultAppCompliance model module. + * @module model/RestApiResultAppCompliance + * @version 1.0.0 + */ +class RestApiResultAppCompliance { + /** + * Constructs a new RestApiResultAppCompliance. + * Rest api result + * @alias module:model/RestApiResultAppCompliance + * @param Data {module:model/AppCompliance} + */ + constructor(Data) { + + RestApiResultAppCompliance.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAppCompliance from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAppCompliance} obj Optional instance to populate. + * @return {module:model/RestApiResultAppCompliance} The populated RestApiResultAppCompliance instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAppCompliance(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AppCompliance.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AppCompliance} Data + */ +RestApiResultAppCompliance.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAppCompliance; + diff --git a/src/model/RestApiResultAppConfigSalesChannel.js b/src/model/RestApiResultAppConfigSalesChannel.js new file mode 100644 index 00000000..f2f0a363 --- /dev/null +++ b/src/model/RestApiResultAppConfigSalesChannel.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppConfigSalesChannel from './AppConfigSalesChannel'; + +/** + * The RestApiResultAppConfigSalesChannel model module. + * @module model/RestApiResultAppConfigSalesChannel + * @version 1.0.0 + */ +class RestApiResultAppConfigSalesChannel { + /** + * Constructs a new RestApiResultAppConfigSalesChannel. + * Rest api result + * @alias module:model/RestApiResultAppConfigSalesChannel + * @param Data {module:model/AppConfigSalesChannel} + */ + constructor(Data) { + + RestApiResultAppConfigSalesChannel.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAppConfigSalesChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAppConfigSalesChannel} obj Optional instance to populate. + * @return {module:model/RestApiResultAppConfigSalesChannel} The populated RestApiResultAppConfigSalesChannel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAppConfigSalesChannel(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AppConfigSalesChannel.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AppConfigSalesChannel} Data + */ +RestApiResultAppConfigSalesChannel.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAppConfigSalesChannel; + diff --git a/src/model/RestApiResultAppStoreApp.js b/src/model/RestApiResultAppStoreApp.js new file mode 100644 index 00000000..ca908441 --- /dev/null +++ b/src/model/RestApiResultAppStoreApp.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreApp from './AppStoreApp'; + +/** + * The RestApiResultAppStoreApp model module. + * @module model/RestApiResultAppStoreApp + * @version 1.0.0 + */ +class RestApiResultAppStoreApp { + /** + * Constructs a new RestApiResultAppStoreApp. + * Rest api result + * @alias module:model/RestApiResultAppStoreApp + * @param Data {module:model/AppStoreApp} + */ + constructor(Data) { + + RestApiResultAppStoreApp.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAppStoreApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAppStoreApp} obj Optional instance to populate. + * @return {module:model/RestApiResultAppStoreApp} The populated RestApiResultAppStoreApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAppStoreApp(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AppStoreApp.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AppStoreApp} Data + */ +RestApiResultAppStoreApp.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAppStoreApp; + diff --git a/src/model/RestApiResultAppStoreAppConfiguration.js b/src/model/RestApiResultAppStoreAppConfiguration.js new file mode 100644 index 00000000..0ac358f9 --- /dev/null +++ b/src/model/RestApiResultAppStoreAppConfiguration.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppConfiguration from './AppStoreAppConfiguration'; + +/** + * The RestApiResultAppStoreAppConfiguration model module. + * @module model/RestApiResultAppStoreAppConfiguration + * @version 1.0.0 + */ +class RestApiResultAppStoreAppConfiguration { + /** + * Constructs a new RestApiResultAppStoreAppConfiguration. + * Rest api result + * @alias module:model/RestApiResultAppStoreAppConfiguration + * @param Data {module:model/AppStoreAppConfiguration} + */ + constructor(Data) { + + RestApiResultAppStoreAppConfiguration.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAppStoreAppConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAppStoreAppConfiguration} obj Optional instance to populate. + * @return {module:model/RestApiResultAppStoreAppConfiguration} The populated RestApiResultAppStoreAppConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAppStoreAppConfiguration(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AppStoreAppConfiguration.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AppStoreAppConfiguration} Data + */ +RestApiResultAppStoreAppConfiguration.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAppStoreAppConfiguration; + diff --git a/src/model/RestApiResultAppStoreAppEntitlements.js b/src/model/RestApiResultAppStoreAppEntitlements.js new file mode 100644 index 00000000..e932b8ea --- /dev/null +++ b/src/model/RestApiResultAppStoreAppEntitlements.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppEntitlements from './AppStoreAppEntitlements'; + +/** + * The RestApiResultAppStoreAppEntitlements model module. + * @module model/RestApiResultAppStoreAppEntitlements + * @version 1.0.0 + */ +class RestApiResultAppStoreAppEntitlements { + /** + * Constructs a new RestApiResultAppStoreAppEntitlements. + * Rest api result + * @alias module:model/RestApiResultAppStoreAppEntitlements + * @param Data {module:model/AppStoreAppEntitlements} + */ + constructor(Data) { + + RestApiResultAppStoreAppEntitlements.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAppStoreAppEntitlements from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAppStoreAppEntitlements} obj Optional instance to populate. + * @return {module:model/RestApiResultAppStoreAppEntitlements} The populated RestApiResultAppStoreAppEntitlements instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAppStoreAppEntitlements(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AppStoreAppEntitlements.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AppStoreAppEntitlements} Data + */ +RestApiResultAppStoreAppEntitlements.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAppStoreAppEntitlements; + diff --git a/src/model/RestApiResultAssignedBankAccount.js b/src/model/RestApiResultAssignedBankAccount.js new file mode 100644 index 00000000..69e7d9b8 --- /dev/null +++ b/src/model/RestApiResultAssignedBankAccount.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AssignedBankAccount from './AssignedBankAccount'; + +/** + * The RestApiResultAssignedBankAccount model module. + * @module model/RestApiResultAssignedBankAccount + * @version 1.0.0 + */ +class RestApiResultAssignedBankAccount { + /** + * Constructs a new RestApiResultAssignedBankAccount. + * Rest api result + * @alias module:model/RestApiResultAssignedBankAccount + * @param Data {module:model/AssignedBankAccount} + */ + constructor(Data) { + + RestApiResultAssignedBankAccount.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultAssignedBankAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultAssignedBankAccount} obj Optional instance to populate. + * @return {module:model/RestApiResultAssignedBankAccount} The populated RestApiResultAssignedBankAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultAssignedBankAccount(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = AssignedBankAccount.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/AssignedBankAccount} Data + */ +RestApiResultAssignedBankAccount.prototype['Data'] = undefined; + + + + + + +export default RestApiResultAssignedBankAccount; + diff --git a/src/model/RestApiResultBankAccountDetail.js b/src/model/RestApiResultBankAccountDetail.js new file mode 100644 index 00000000..b3f995ab --- /dev/null +++ b/src/model/RestApiResultBankAccountDetail.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BankAccountDetail from './BankAccountDetail'; + +/** + * The RestApiResultBankAccountDetail model module. + * @module model/RestApiResultBankAccountDetail + * @version 1.0.0 + */ +class RestApiResultBankAccountDetail { + /** + * Constructs a new RestApiResultBankAccountDetail. + * Rest api result + * @alias module:model/RestApiResultBankAccountDetail + * @param Data {module:model/BankAccountDetail} + */ + constructor(Data) { + + RestApiResultBankAccountDetail.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultBankAccountDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultBankAccountDetail} obj Optional instance to populate. + * @return {module:model/RestApiResultBankAccountDetail} The populated RestApiResultBankAccountDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultBankAccountDetail(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = BankAccountDetail.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/BankAccountDetail} Data + */ +RestApiResultBankAccountDetail.prototype['Data'] = undefined; + + + + + + +export default RestApiResultBankAccountDetail; + diff --git a/src/model/RestApiResultBluetoothTerminalStatus.js b/src/model/RestApiResultBluetoothTerminalStatus.js new file mode 100644 index 00000000..60632b61 --- /dev/null +++ b/src/model/RestApiResultBluetoothTerminalStatus.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BluetoothTerminalStatus from './BluetoothTerminalStatus'; + +/** + * The RestApiResultBluetoothTerminalStatus model module. + * @module model/RestApiResultBluetoothTerminalStatus + * @version 1.0.0 + */ +class RestApiResultBluetoothTerminalStatus { + /** + * Constructs a new RestApiResultBluetoothTerminalStatus. + * Rest api result + * @alias module:model/RestApiResultBluetoothTerminalStatus + * @param Data {module:model/BluetoothTerminalStatus} + */ + constructor(Data) { + + RestApiResultBluetoothTerminalStatus.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultBluetoothTerminalStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultBluetoothTerminalStatus} obj Optional instance to populate. + * @return {module:model/RestApiResultBluetoothTerminalStatus} The populated RestApiResultBluetoothTerminalStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultBluetoothTerminalStatus(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = BluetoothTerminalStatus.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/BluetoothTerminalStatus} Data + */ +RestApiResultBluetoothTerminalStatus.prototype['Data'] = undefined; + + + + + + +export default RestApiResultBluetoothTerminalStatus; + diff --git a/src/model/RestApiResultBusinessHoursOverride.js b/src/model/RestApiResultBusinessHoursOverride.js new file mode 100644 index 00000000..b818262a --- /dev/null +++ b/src/model/RestApiResultBusinessHoursOverride.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursOverride from './BusinessHoursOverride'; + +/** + * The RestApiResultBusinessHoursOverride model module. + * @module model/RestApiResultBusinessHoursOverride + * @version 1.0.0 + */ +class RestApiResultBusinessHoursOverride { + /** + * Constructs a new RestApiResultBusinessHoursOverride. + * Rest api result + * @alias module:model/RestApiResultBusinessHoursOverride + * @param Data {module:model/BusinessHoursOverride} + */ + constructor(Data) { + + RestApiResultBusinessHoursOverride.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultBusinessHoursOverride from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultBusinessHoursOverride} obj Optional instance to populate. + * @return {module:model/RestApiResultBusinessHoursOverride} The populated RestApiResultBusinessHoursOverride instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultBusinessHoursOverride(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = BusinessHoursOverride.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/BusinessHoursOverride} Data + */ +RestApiResultBusinessHoursOverride.prototype['Data'] = undefined; + + + + + + +export default RestApiResultBusinessHoursOverride; + diff --git a/src/model/RestApiResultBusinessHoursPeriod.js b/src/model/RestApiResultBusinessHoursPeriod.js new file mode 100644 index 00000000..1e468f74 --- /dev/null +++ b/src/model/RestApiResultBusinessHoursPeriod.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursPeriod from './BusinessHoursPeriod'; + +/** + * The RestApiResultBusinessHoursPeriod model module. + * @module model/RestApiResultBusinessHoursPeriod + * @version 1.0.0 + */ +class RestApiResultBusinessHoursPeriod { + /** + * Constructs a new RestApiResultBusinessHoursPeriod. + * Rest api result + * @alias module:model/RestApiResultBusinessHoursPeriod + * @param Data {module:model/BusinessHoursPeriod} + */ + constructor(Data) { + + RestApiResultBusinessHoursPeriod.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultBusinessHoursPeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultBusinessHoursPeriod} obj Optional instance to populate. + * @return {module:model/RestApiResultBusinessHoursPeriod} The populated RestApiResultBusinessHoursPeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultBusinessHoursPeriod(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = BusinessHoursPeriod.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/BusinessHoursPeriod} Data + */ +RestApiResultBusinessHoursPeriod.prototype['Data'] = undefined; + + + + + + +export default RestApiResultBusinessHoursPeriod; + diff --git a/src/model/RestApiResultCardReader.js b/src/model/RestApiResultCardReader.js new file mode 100644 index 00000000..573ba5d1 --- /dev/null +++ b/src/model/RestApiResultCardReader.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CardReader from './CardReader'; + +/** + * The RestApiResultCardReader model module. + * @module model/RestApiResultCardReader + * @version 1.0.0 + */ +class RestApiResultCardReader { + /** + * Constructs a new RestApiResultCardReader. + * Rest api result + * @alias module:model/RestApiResultCardReader + * @param Data {module:model/CardReader} + */ + constructor(Data) { + + RestApiResultCardReader.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCardReader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCardReader} obj Optional instance to populate. + * @return {module:model/RestApiResultCardReader} The populated RestApiResultCardReader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCardReader(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = CardReader.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CardReader} Data + */ +RestApiResultCardReader.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCardReader; + diff --git a/src/model/RestApiResultCatalogItem.js b/src/model/RestApiResultCatalogItem.js new file mode 100644 index 00000000..8702bf1c --- /dev/null +++ b/src/model/RestApiResultCatalogItem.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CatalogItem from './CatalogItem'; + +/** + * The RestApiResultCatalogItem model module. + * @module model/RestApiResultCatalogItem + * @version 1.0.0 + */ +class RestApiResultCatalogItem { + /** + * Constructs a new RestApiResultCatalogItem. + * Rest api result + * @alias module:model/RestApiResultCatalogItem + * @param Data {module:model/CatalogItem} + */ + constructor(Data) { + + RestApiResultCatalogItem.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCatalogItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCatalogItem} obj Optional instance to populate. + * @return {module:model/RestApiResultCatalogItem} The populated RestApiResultCatalogItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCatalogItem(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = CatalogItem.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CatalogItem} Data + */ +RestApiResultCatalogItem.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCatalogItem; + diff --git a/src/model/RestApiResultChannel.js b/src/model/RestApiResultChannel.js new file mode 100644 index 00000000..3d8bf00c --- /dev/null +++ b/src/model/RestApiResultChannel.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Channel from './Channel'; + +/** + * The RestApiResultChannel model module. + * @module model/RestApiResultChannel + * @version 1.0.0 + */ +class RestApiResultChannel { + /** + * Constructs a new RestApiResultChannel. + * Rest api result + * @alias module:model/RestApiResultChannel + * @param Data {module:model/Channel} + */ + constructor(Data) { + + RestApiResultChannel.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultChannel} obj Optional instance to populate. + * @return {module:model/RestApiResultChannel} The populated RestApiResultChannel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultChannel(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Channel.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Channel} Data + */ +RestApiResultChannel.prototype['Data'] = undefined; + + + + + + +export default RestApiResultChannel; + diff --git a/src/model/RestApiResultClientDevice.js b/src/model/RestApiResultClientDevice.js new file mode 100644 index 00000000..9e891d18 --- /dev/null +++ b/src/model/RestApiResultClientDevice.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ClientDevice from './ClientDevice'; + +/** + * The RestApiResultClientDevice model module. + * @module model/RestApiResultClientDevice + * @version 1.0.0 + */ +class RestApiResultClientDevice { + /** + * Constructs a new RestApiResultClientDevice. + * Rest api result + * @alias module:model/RestApiResultClientDevice + * @param Data {module:model/ClientDevice} + */ + constructor(Data) { + + RestApiResultClientDevice.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultClientDevice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultClientDevice} obj Optional instance to populate. + * @return {module:model/RestApiResultClientDevice} The populated RestApiResultClientDevice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultClientDevice(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ClientDevice.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ClientDevice} Data + */ +RestApiResultClientDevice.prototype['Data'] = undefined; + + + + + + +export default RestApiResultClientDevice; + diff --git a/src/model/RestApiResultClientDeviceEnrollmentResult.js b/src/model/RestApiResultClientDeviceEnrollmentResult.js new file mode 100644 index 00000000..46a68d5f --- /dev/null +++ b/src/model/RestApiResultClientDeviceEnrollmentResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ClientDeviceEnrollmentResult from './ClientDeviceEnrollmentResult'; + +/** + * The RestApiResultClientDeviceEnrollmentResult model module. + * @module model/RestApiResultClientDeviceEnrollmentResult + * @version 1.0.0 + */ +class RestApiResultClientDeviceEnrollmentResult { + /** + * Constructs a new RestApiResultClientDeviceEnrollmentResult. + * Rest api result + * @alias module:model/RestApiResultClientDeviceEnrollmentResult + * @param Data {module:model/ClientDeviceEnrollmentResult} + */ + constructor(Data) { + + RestApiResultClientDeviceEnrollmentResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultClientDeviceEnrollmentResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultClientDeviceEnrollmentResult} obj Optional instance to populate. + * @return {module:model/RestApiResultClientDeviceEnrollmentResult} The populated RestApiResultClientDeviceEnrollmentResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultClientDeviceEnrollmentResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ClientDeviceEnrollmentResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ClientDeviceEnrollmentResult} Data + */ +RestApiResultClientDeviceEnrollmentResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultClientDeviceEnrollmentResult; + diff --git a/src/model/RestApiResultCoordinates.js b/src/model/RestApiResultCoordinates.js new file mode 100644 index 00000000..108ea55c --- /dev/null +++ b/src/model/RestApiResultCoordinates.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Coordinates from './Coordinates'; + +/** + * The RestApiResultCoordinates model module. + * @module model/RestApiResultCoordinates + * @version 1.0.0 + */ +class RestApiResultCoordinates { + /** + * Constructs a new RestApiResultCoordinates. + * Rest api result + * @alias module:model/RestApiResultCoordinates + * @param Data {module:model/Coordinates} + */ + constructor(Data) { + + RestApiResultCoordinates.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCoordinates from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCoordinates} obj Optional instance to populate. + * @return {module:model/RestApiResultCoordinates} The populated RestApiResultCoordinates instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCoordinates(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Coordinates.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Coordinates} Data + */ +RestApiResultCoordinates.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCoordinates; + diff --git a/src/model/RestApiResultCountryFormResponse.js b/src/model/RestApiResultCountryFormResponse.js new file mode 100644 index 00000000..f787796b --- /dev/null +++ b/src/model/RestApiResultCountryFormResponse.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CountryFormResponse from './CountryFormResponse'; + +/** + * The RestApiResultCountryFormResponse model module. + * @module model/RestApiResultCountryFormResponse + * @version 1.0.0 + */ +class RestApiResultCountryFormResponse { + /** + * Constructs a new RestApiResultCountryFormResponse. + * Rest api result + * @alias module:model/RestApiResultCountryFormResponse + * @param Data {module:model/CountryFormResponse} + */ + constructor(Data) { + + RestApiResultCountryFormResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCountryFormResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCountryFormResponse} obj Optional instance to populate. + * @return {module:model/RestApiResultCountryFormResponse} The populated RestApiResultCountryFormResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCountryFormResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = CountryFormResponse.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CountryFormResponse} Data + */ +RestApiResultCountryFormResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCountryFormResponse; + diff --git a/src/model/RestApiResultCreatedMenuSectionItems.js b/src/model/RestApiResultCreatedMenuSectionItems.js new file mode 100644 index 00000000..d1edd6ac --- /dev/null +++ b/src/model/RestApiResultCreatedMenuSectionItems.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreatedMenuSectionItems from './CreatedMenuSectionItems'; + +/** + * The RestApiResultCreatedMenuSectionItems model module. + * @module model/RestApiResultCreatedMenuSectionItems + * @version 1.0.0 + */ +class RestApiResultCreatedMenuSectionItems { + /** + * Constructs a new RestApiResultCreatedMenuSectionItems. + * Rest api result + * @alias module:model/RestApiResultCreatedMenuSectionItems + * @param Data {module:model/CreatedMenuSectionItems} + */ + constructor(Data) { + + RestApiResultCreatedMenuSectionItems.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCreatedMenuSectionItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCreatedMenuSectionItems} obj Optional instance to populate. + * @return {module:model/RestApiResultCreatedMenuSectionItems} The populated RestApiResultCreatedMenuSectionItems instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCreatedMenuSectionItems(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = CreatedMenuSectionItems.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CreatedMenuSectionItems} Data + */ +RestApiResultCreatedMenuSectionItems.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCreatedMenuSectionItems; + diff --git a/src/model/RestApiResultCrossSellMenuItems.js b/src/model/RestApiResultCrossSellMenuItems.js new file mode 100644 index 00000000..81cd10c0 --- /dev/null +++ b/src/model/RestApiResultCrossSellMenuItems.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CrossSellMenuItems from './CrossSellMenuItems'; + +/** + * The RestApiResultCrossSellMenuItems model module. + * @module model/RestApiResultCrossSellMenuItems + * @version 1.0.0 + */ +class RestApiResultCrossSellMenuItems { + /** + * Constructs a new RestApiResultCrossSellMenuItems. + * Rest api result + * @alias module:model/RestApiResultCrossSellMenuItems + * @param Data {module:model/CrossSellMenuItems} + */ + constructor(Data) { + + RestApiResultCrossSellMenuItems.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCrossSellMenuItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCrossSellMenuItems} obj Optional instance to populate. + * @return {module:model/RestApiResultCrossSellMenuItems} The populated RestApiResultCrossSellMenuItems instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCrossSellMenuItems(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = CrossSellMenuItems.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CrossSellMenuItems} Data + */ +RestApiResultCrossSellMenuItems.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCrossSellMenuItems; + diff --git a/src/model/RestApiResultCustomer.js b/src/model/RestApiResultCustomer.js new file mode 100644 index 00000000..9186d0d9 --- /dev/null +++ b/src/model/RestApiResultCustomer.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Customer from './Customer'; + +/** + * The RestApiResultCustomer model module. + * @module model/RestApiResultCustomer + * @version 1.0.0 + */ +class RestApiResultCustomer { + /** + * Constructs a new RestApiResultCustomer. + * Rest api result + * @alias module:model/RestApiResultCustomer + * @param Data {module:model/Customer} + */ + constructor(Data) { + + RestApiResultCustomer.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCustomer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCustomer} obj Optional instance to populate. + * @return {module:model/RestApiResultCustomer} The populated RestApiResultCustomer instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCustomer(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Customer.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Customer} Data + */ +RestApiResultCustomer.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCustomer; + diff --git a/src/model/RestApiResultCustomers.js b/src/model/RestApiResultCustomers.js new file mode 100644 index 00000000..1516c731 --- /dev/null +++ b/src/model/RestApiResultCustomers.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Customers from './Customers'; + +/** + * The RestApiResultCustomers model module. + * @module model/RestApiResultCustomers + * @version 1.0.0 + */ +class RestApiResultCustomers { + /** + * Constructs a new RestApiResultCustomers. + * Rest api result + * @alias module:model/RestApiResultCustomers + * @param Data {module:model/Customers} + */ + constructor(Data) { + + RestApiResultCustomers.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultCustomers from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultCustomers} obj Optional instance to populate. + * @return {module:model/RestApiResultCustomers} The populated RestApiResultCustomers instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultCustomers(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Customers.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Customers} Data + */ +RestApiResultCustomers.prototype['Data'] = undefined; + + + + + + +export default RestApiResultCustomers; + diff --git a/src/model/RestApiResultDeliveryZone.js b/src/model/RestApiResultDeliveryZone.js new file mode 100644 index 00000000..961b572a --- /dev/null +++ b/src/model/RestApiResultDeliveryZone.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeliveryZone from './DeliveryZone'; + +/** + * The RestApiResultDeliveryZone model module. + * @module model/RestApiResultDeliveryZone + * @version 1.0.0 + */ +class RestApiResultDeliveryZone { + /** + * Constructs a new RestApiResultDeliveryZone. + * Rest api result + * @alias module:model/RestApiResultDeliveryZone + * @param Data {module:model/DeliveryZone} + */ + constructor(Data) { + + RestApiResultDeliveryZone.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultDeliveryZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultDeliveryZone} obj Optional instance to populate. + * @return {module:model/RestApiResultDeliveryZone} The populated RestApiResultDeliveryZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultDeliveryZone(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = DeliveryZone.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/DeliveryZone} Data + */ +RestApiResultDeliveryZone.prototype['Data'] = undefined; + + + + + + +export default RestApiResultDeliveryZone; + diff --git a/src/model/RestApiResultDnsRecordInformation.js b/src/model/RestApiResultDnsRecordInformation.js new file mode 100644 index 00000000..e743f8ad --- /dev/null +++ b/src/model/RestApiResultDnsRecordInformation.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DnsRecordInformation from './DnsRecordInformation'; + +/** + * The RestApiResultDnsRecordInformation model module. + * @module model/RestApiResultDnsRecordInformation + * @version 1.0.0 + */ +class RestApiResultDnsRecordInformation { + /** + * Constructs a new RestApiResultDnsRecordInformation. + * Rest api result + * @alias module:model/RestApiResultDnsRecordInformation + * @param Data {module:model/DnsRecordInformation} + */ + constructor(Data) { + + RestApiResultDnsRecordInformation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultDnsRecordInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultDnsRecordInformation} obj Optional instance to populate. + * @return {module:model/RestApiResultDnsRecordInformation} The populated RestApiResultDnsRecordInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultDnsRecordInformation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = DnsRecordInformation.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/DnsRecordInformation} Data + */ +RestApiResultDnsRecordInformation.prototype['Data'] = undefined; + + + + + + +export default RestApiResultDnsRecordInformation; + diff --git a/src/model/RestApiResultExecuteConfigurationActionResult.js b/src/model/RestApiResultExecuteConfigurationActionResult.js new file mode 100644 index 00000000..ed928f2e --- /dev/null +++ b/src/model/RestApiResultExecuteConfigurationActionResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ExecuteConfigurationActionResult from './ExecuteConfigurationActionResult'; + +/** + * The RestApiResultExecuteConfigurationActionResult model module. + * @module model/RestApiResultExecuteConfigurationActionResult + * @version 1.0.0 + */ +class RestApiResultExecuteConfigurationActionResult { + /** + * Constructs a new RestApiResultExecuteConfigurationActionResult. + * Rest api result + * @alias module:model/RestApiResultExecuteConfigurationActionResult + * @param Data {module:model/ExecuteConfigurationActionResult} + */ + constructor(Data) { + + RestApiResultExecuteConfigurationActionResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultExecuteConfigurationActionResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultExecuteConfigurationActionResult} obj Optional instance to populate. + * @return {module:model/RestApiResultExecuteConfigurationActionResult} The populated RestApiResultExecuteConfigurationActionResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultExecuteConfigurationActionResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ExecuteConfigurationActionResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ExecuteConfigurationActionResult} Data + */ +RestApiResultExecuteConfigurationActionResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultExecuteConfigurationActionResult; + diff --git a/src/model/RestApiResultFileCreationResult.js b/src/model/RestApiResultFileCreationResult.js new file mode 100644 index 00000000..ffdf890a --- /dev/null +++ b/src/model/RestApiResultFileCreationResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FileCreationResult from './FileCreationResult'; + +/** + * The RestApiResultFileCreationResult model module. + * @module model/RestApiResultFileCreationResult + * @version 1.0.0 + */ +class RestApiResultFileCreationResult { + /** + * Constructs a new RestApiResultFileCreationResult. + * Rest api result + * @alias module:model/RestApiResultFileCreationResult + * @param Data {module:model/FileCreationResult} + */ + constructor(Data) { + + RestApiResultFileCreationResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultFileCreationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultFileCreationResult} obj Optional instance to populate. + * @return {module:model/RestApiResultFileCreationResult} The populated RestApiResultFileCreationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultFileCreationResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = FileCreationResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/FileCreationResult} Data + */ +RestApiResultFileCreationResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultFileCreationResult; + diff --git a/src/model/RestApiResultFileDownloadResult.js b/src/model/RestApiResultFileDownloadResult.js new file mode 100644 index 00000000..ef07c85a --- /dev/null +++ b/src/model/RestApiResultFileDownloadResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FileDownloadResult from './FileDownloadResult'; + +/** + * The RestApiResultFileDownloadResult model module. + * @module model/RestApiResultFileDownloadResult + * @version 1.0.0 + */ +class RestApiResultFileDownloadResult { + /** + * Constructs a new RestApiResultFileDownloadResult. + * Rest api result + * @alias module:model/RestApiResultFileDownloadResult + * @param Data {module:model/FileDownloadResult} + */ + constructor(Data) { + + RestApiResultFileDownloadResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultFileDownloadResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultFileDownloadResult} obj Optional instance to populate. + * @return {module:model/RestApiResultFileDownloadResult} The populated RestApiResultFileDownloadResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultFileDownloadResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = FileDownloadResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/FileDownloadResult} Data + */ +RestApiResultFileDownloadResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultFileDownloadResult; + diff --git a/src/model/RestApiResultFulfillmentStatesConfiguration.js b/src/model/RestApiResultFulfillmentStatesConfiguration.js new file mode 100644 index 00000000..c2c10ebe --- /dev/null +++ b/src/model/RestApiResultFulfillmentStatesConfiguration.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FulfillmentStatesConfiguration from './FulfillmentStatesConfiguration'; + +/** + * The RestApiResultFulfillmentStatesConfiguration model module. + * @module model/RestApiResultFulfillmentStatesConfiguration + * @version 1.0.0 + */ +class RestApiResultFulfillmentStatesConfiguration { + /** + * Constructs a new RestApiResultFulfillmentStatesConfiguration. + * Rest api result + * @alias module:model/RestApiResultFulfillmentStatesConfiguration + * @param Data {module:model/FulfillmentStatesConfiguration} + */ + constructor(Data) { + + RestApiResultFulfillmentStatesConfiguration.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultFulfillmentStatesConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultFulfillmentStatesConfiguration} obj Optional instance to populate. + * @return {module:model/RestApiResultFulfillmentStatesConfiguration} The populated RestApiResultFulfillmentStatesConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultFulfillmentStatesConfiguration(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = FulfillmentStatesConfiguration.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/FulfillmentStatesConfiguration} Data + */ +RestApiResultFulfillmentStatesConfiguration.prototype['Data'] = undefined; + + + + + + +export default RestApiResultFulfillmentStatesConfiguration; + diff --git a/src/model/RestApiResultGroup.js b/src/model/RestApiResultGroup.js new file mode 100644 index 00000000..18260cf5 --- /dev/null +++ b/src/model/RestApiResultGroup.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Group from './Group'; + +/** + * The RestApiResultGroup model module. + * @module model/RestApiResultGroup + * @version 1.0.0 + */ +class RestApiResultGroup { + /** + * Constructs a new RestApiResultGroup. + * Rest api result + * @alias module:model/RestApiResultGroup + * @param Data {module:model/Group} + */ + constructor(Data) { + + RestApiResultGroup.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultGroup} obj Optional instance to populate. + * @return {module:model/RestApiResultGroup} The populated RestApiResultGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultGroup(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Group.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Group} Data + */ +RestApiResultGroup.prototype['Data'] = undefined; + + + + + + +export default RestApiResultGroup; + diff --git a/src/model/RestApiResultHasPaymentMethodResponse.js b/src/model/RestApiResultHasPaymentMethodResponse.js new file mode 100644 index 00000000..6a316986 --- /dev/null +++ b/src/model/RestApiResultHasPaymentMethodResponse.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HasPaymentMethodResponse from './HasPaymentMethodResponse'; + +/** + * The RestApiResultHasPaymentMethodResponse model module. + * @module model/RestApiResultHasPaymentMethodResponse + * @version 1.0.0 + */ +class RestApiResultHasPaymentMethodResponse { + /** + * Constructs a new RestApiResultHasPaymentMethodResponse. + * Rest api result + * @alias module:model/RestApiResultHasPaymentMethodResponse + * @param Data {module:model/HasPaymentMethodResponse} + */ + constructor(Data) { + + RestApiResultHasPaymentMethodResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultHasPaymentMethodResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultHasPaymentMethodResponse} obj Optional instance to populate. + * @return {module:model/RestApiResultHasPaymentMethodResponse} The populated RestApiResultHasPaymentMethodResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultHasPaymentMethodResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = HasPaymentMethodResponse.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/HasPaymentMethodResponse} Data + */ +RestApiResultHasPaymentMethodResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiResultHasPaymentMethodResponse; + diff --git a/src/model/RestApiResultHomeStatistics.js b/src/model/RestApiResultHomeStatistics.js new file mode 100644 index 00000000..5d067db7 --- /dev/null +++ b/src/model/RestApiResultHomeStatistics.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HomeStatistics from './HomeStatistics'; + +/** + * The RestApiResultHomeStatistics model module. + * @module model/RestApiResultHomeStatistics + * @version 1.0.0 + */ +class RestApiResultHomeStatistics { + /** + * Constructs a new RestApiResultHomeStatistics. + * Rest api result + * @alias module:model/RestApiResultHomeStatistics + * @param Data {module:model/HomeStatistics} + */ + constructor(Data) { + + RestApiResultHomeStatistics.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultHomeStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultHomeStatistics} obj Optional instance to populate. + * @return {module:model/RestApiResultHomeStatistics} The populated RestApiResultHomeStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultHomeStatistics(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = HomeStatistics.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/HomeStatistics} Data + */ +RestApiResultHomeStatistics.prototype['Data'] = undefined; + + + + + + +export default RestApiResultHomeStatistics; + diff --git a/src/model/RestApiResultHydraConfig.js b/src/model/RestApiResultHydraConfig.js new file mode 100644 index 00000000..d2090709 --- /dev/null +++ b/src/model/RestApiResultHydraConfig.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraConfig from './HydraConfig'; + +/** + * The RestApiResultHydraConfig model module. + * @module model/RestApiResultHydraConfig + * @version 1.0.0 + */ +class RestApiResultHydraConfig { + /** + * Constructs a new RestApiResultHydraConfig. + * Rest api result + * @alias module:model/RestApiResultHydraConfig + * @param Data {module:model/HydraConfig} + */ + constructor(Data) { + + RestApiResultHydraConfig.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultHydraConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultHydraConfig} obj Optional instance to populate. + * @return {module:model/RestApiResultHydraConfig} The populated RestApiResultHydraConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultHydraConfig(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = HydraConfig.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/HydraConfig} Data + */ +RestApiResultHydraConfig.prototype['Data'] = undefined; + + + + + + +export default RestApiResultHydraConfig; + diff --git a/src/model/RestApiResultHydraDeviceDetails.js b/src/model/RestApiResultHydraDeviceDetails.js new file mode 100644 index 00000000..f25a9546 --- /dev/null +++ b/src/model/RestApiResultHydraDeviceDetails.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraDeviceDetails from './HydraDeviceDetails'; + +/** + * The RestApiResultHydraDeviceDetails model module. + * @module model/RestApiResultHydraDeviceDetails + * @version 1.0.0 + */ +class RestApiResultHydraDeviceDetails { + /** + * Constructs a new RestApiResultHydraDeviceDetails. + * Rest api result + * @alias module:model/RestApiResultHydraDeviceDetails + * @param Data {module:model/HydraDeviceDetails} + */ + constructor(Data) { + + RestApiResultHydraDeviceDetails.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultHydraDeviceDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultHydraDeviceDetails} obj Optional instance to populate. + * @return {module:model/RestApiResultHydraDeviceDetails} The populated RestApiResultHydraDeviceDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultHydraDeviceDetails(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = HydraDeviceDetails.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/HydraDeviceDetails} Data + */ +RestApiResultHydraDeviceDetails.prototype['Data'] = undefined; + + + + + + +export default RestApiResultHydraDeviceDetails; + diff --git a/src/model/RestApiResultHydraStatus.js b/src/model/RestApiResultHydraStatus.js new file mode 100644 index 00000000..e28c834e --- /dev/null +++ b/src/model/RestApiResultHydraStatus.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import HydraStatus from './HydraStatus'; + +/** + * The RestApiResultHydraStatus model module. + * @module model/RestApiResultHydraStatus + * @version 1.0.0 + */ +class RestApiResultHydraStatus { + /** + * Constructs a new RestApiResultHydraStatus. + * Rest api result + * @alias module:model/RestApiResultHydraStatus + * @param Data {module:model/HydraStatus} + */ + constructor(Data) { + + RestApiResultHydraStatus.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultHydraStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultHydraStatus} obj Optional instance to populate. + * @return {module:model/RestApiResultHydraStatus} The populated RestApiResultHydraStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultHydraStatus(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = HydraStatus.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/HydraStatus} Data + */ +RestApiResultHydraStatus.prototype['Data'] = undefined; + + + + + + +export default RestApiResultHydraStatus; + diff --git a/src/model/RestApiResultIndexPage.js b/src/model/RestApiResultIndexPage.js new file mode 100644 index 00000000..d429e5d5 --- /dev/null +++ b/src/model/RestApiResultIndexPage.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import IndexPage from './IndexPage'; + +/** + * The RestApiResultIndexPage model module. + * @module model/RestApiResultIndexPage + * @version 1.0.0 + */ +class RestApiResultIndexPage { + /** + * Constructs a new RestApiResultIndexPage. + * Rest api result + * @alias module:model/RestApiResultIndexPage + * @param Data {module:model/IndexPage} + */ + constructor(Data) { + + RestApiResultIndexPage.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultIndexPage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultIndexPage} obj Optional instance to populate. + * @return {module:model/RestApiResultIndexPage} The populated RestApiResultIndexPage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultIndexPage(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = IndexPage.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/IndexPage} Data + */ +RestApiResultIndexPage.prototype['Data'] = undefined; + + + + + + +export default RestApiResultIndexPage; + diff --git a/src/model/RestApiResultIndexPageBase.js b/src/model/RestApiResultIndexPageBase.js new file mode 100644 index 00000000..47b1a851 --- /dev/null +++ b/src/model/RestApiResultIndexPageBase.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import IndexPageBase from './IndexPageBase'; + +/** + * The RestApiResultIndexPageBase model module. + * @module model/RestApiResultIndexPageBase + * @version 1.0.0 + */ +class RestApiResultIndexPageBase { + /** + * Constructs a new RestApiResultIndexPageBase. + * Rest api result + * @alias module:model/RestApiResultIndexPageBase + * @param Data {module:model/IndexPageBase} + */ + constructor(Data) { + + RestApiResultIndexPageBase.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultIndexPageBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultIndexPageBase} obj Optional instance to populate. + * @return {module:model/RestApiResultIndexPageBase} The populated RestApiResultIndexPageBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultIndexPageBase(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = IndexPageBase.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/IndexPageBase} Data + */ +RestApiResultIndexPageBase.prototype['Data'] = undefined; + + + + + + +export default RestApiResultIndexPageBase; + diff --git a/src/model/RestApiResultIntercomUserHash.js b/src/model/RestApiResultIntercomUserHash.js new file mode 100644 index 00000000..6442a024 --- /dev/null +++ b/src/model/RestApiResultIntercomUserHash.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import IntercomUserHash from './IntercomUserHash'; + +/** + * The RestApiResultIntercomUserHash model module. + * @module model/RestApiResultIntercomUserHash + * @version 1.0.0 + */ +class RestApiResultIntercomUserHash { + /** + * Constructs a new RestApiResultIntercomUserHash. + * Rest api result + * @alias module:model/RestApiResultIntercomUserHash + * @param Data {module:model/IntercomUserHash} + */ + constructor(Data) { + + RestApiResultIntercomUserHash.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultIntercomUserHash from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultIntercomUserHash} obj Optional instance to populate. + * @return {module:model/RestApiResultIntercomUserHash} The populated RestApiResultIntercomUserHash instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultIntercomUserHash(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = IntercomUserHash.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/IntercomUserHash} Data + */ +RestApiResultIntercomUserHash.prototype['Data'] = undefined; + + + + + + +export default RestApiResultIntercomUserHash; + diff --git a/src/model/RestApiResultJobResponse.js b/src/model/RestApiResultJobResponse.js new file mode 100644 index 00000000..15077df3 --- /dev/null +++ b/src/model/RestApiResultJobResponse.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import JobResponse from './JobResponse'; + +/** + * The RestApiResultJobResponse model module. + * @module model/RestApiResultJobResponse + * @version 1.0.0 + */ +class RestApiResultJobResponse { + /** + * Constructs a new RestApiResultJobResponse. + * Rest api result + * @alias module:model/RestApiResultJobResponse + * @param Data {module:model/JobResponse} + */ + constructor(Data) { + + RestApiResultJobResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultJobResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultJobResponse} obj Optional instance to populate. + * @return {module:model/RestApiResultJobResponse} The populated RestApiResultJobResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultJobResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = JobResponse.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/JobResponse} Data + */ +RestApiResultJobResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiResultJobResponse; + diff --git a/src/model/RestApiResultKioskEntitlementsResult.js b/src/model/RestApiResultKioskEntitlementsResult.js new file mode 100644 index 00000000..fb8ef258 --- /dev/null +++ b/src/model/RestApiResultKioskEntitlementsResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import KioskEntitlementsResult from './KioskEntitlementsResult'; + +/** + * The RestApiResultKioskEntitlementsResult model module. + * @module model/RestApiResultKioskEntitlementsResult + * @version 1.0.0 + */ +class RestApiResultKioskEntitlementsResult { + /** + * Constructs a new RestApiResultKioskEntitlementsResult. + * Rest api result + * @alias module:model/RestApiResultKioskEntitlementsResult + * @param Data {module:model/KioskEntitlementsResult} + */ + constructor(Data) { + + RestApiResultKioskEntitlementsResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultKioskEntitlementsResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultKioskEntitlementsResult} obj Optional instance to populate. + * @return {module:model/RestApiResultKioskEntitlementsResult} The populated RestApiResultKioskEntitlementsResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultKioskEntitlementsResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = KioskEntitlementsResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/KioskEntitlementsResult} Data + */ +RestApiResultKioskEntitlementsResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultKioskEntitlementsResult; + diff --git a/src/model/RestApiResultKioskIotConnectionParameters.js b/src/model/RestApiResultKioskIotConnectionParameters.js new file mode 100644 index 00000000..843d3ab6 --- /dev/null +++ b/src/model/RestApiResultKioskIotConnectionParameters.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import KioskIotConnectionParameters from './KioskIotConnectionParameters'; + +/** + * The RestApiResultKioskIotConnectionParameters model module. + * @module model/RestApiResultKioskIotConnectionParameters + * @version 1.0.0 + */ +class RestApiResultKioskIotConnectionParameters { + /** + * Constructs a new RestApiResultKioskIotConnectionParameters. + * Rest api result + * @alias module:model/RestApiResultKioskIotConnectionParameters + * @param Data {module:model/KioskIotConnectionParameters} + */ + constructor(Data) { + + RestApiResultKioskIotConnectionParameters.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultKioskIotConnectionParameters from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultKioskIotConnectionParameters} obj Optional instance to populate. + * @return {module:model/RestApiResultKioskIotConnectionParameters} The populated RestApiResultKioskIotConnectionParameters instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultKioskIotConnectionParameters(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = KioskIotConnectionParameters.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/KioskIotConnectionParameters} Data + */ +RestApiResultKioskIotConnectionParameters.prototype['Data'] = undefined; + + + + + + +export default RestApiResultKioskIotConnectionParameters; + diff --git a/src/model/RestApiResultKioskSettings.js b/src/model/RestApiResultKioskSettings.js new file mode 100644 index 00000000..7437be98 --- /dev/null +++ b/src/model/RestApiResultKioskSettings.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import KioskSettings from './KioskSettings'; + +/** + * The RestApiResultKioskSettings model module. + * @module model/RestApiResultKioskSettings + * @version 1.0.0 + */ +class RestApiResultKioskSettings { + /** + * Constructs a new RestApiResultKioskSettings. + * Rest api result + * @alias module:model/RestApiResultKioskSettings + * @param Data {module:model/KioskSettings} + */ + constructor(Data) { + + RestApiResultKioskSettings.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultKioskSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultKioskSettings} obj Optional instance to populate. + * @return {module:model/RestApiResultKioskSettings} The populated RestApiResultKioskSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultKioskSettings(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = KioskSettings.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/KioskSettings} Data + */ +RestApiResultKioskSettings.prototype['Data'] = undefined; + + + + + + +export default RestApiResultKioskSettings; + diff --git a/src/model/RestApiResultLightspeedSettings.js b/src/model/RestApiResultLightspeedSettings.js new file mode 100644 index 00000000..0532e664 --- /dev/null +++ b/src/model/RestApiResultLightspeedSettings.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LightspeedSettings from './LightspeedSettings'; + +/** + * The RestApiResultLightspeedSettings model module. + * @module model/RestApiResultLightspeedSettings + * @version 1.0.0 + */ +class RestApiResultLightspeedSettings { + /** + * Constructs a new RestApiResultLightspeedSettings. + * Rest api result + * @alias module:model/RestApiResultLightspeedSettings + * @param Data {module:model/LightspeedSettings} + */ + constructor(Data) { + + RestApiResultLightspeedSettings.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultLightspeedSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultLightspeedSettings} obj Optional instance to populate. + * @return {module:model/RestApiResultLightspeedSettings} The populated RestApiResultLightspeedSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultLightspeedSettings(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = LightspeedSettings.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/LightspeedSettings} Data + */ +RestApiResultLightspeedSettings.prototype['Data'] = undefined; + + + + + + +export default RestApiResultLightspeedSettings; + diff --git a/src/model/RestApiResultLocationArea.js b/src/model/RestApiResultLocationArea.js new file mode 100644 index 00000000..47ecfa43 --- /dev/null +++ b/src/model/RestApiResultLocationArea.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LocationArea from './LocationArea'; + +/** + * The RestApiResultLocationArea model module. + * @module model/RestApiResultLocationArea + * @version 1.0.0 + */ +class RestApiResultLocationArea { + /** + * Constructs a new RestApiResultLocationArea. + * Rest api result + * @alias module:model/RestApiResultLocationArea + * @param Data {module:model/LocationArea} + */ + constructor(Data) { + + RestApiResultLocationArea.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultLocationArea from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultLocationArea} obj Optional instance to populate. + * @return {module:model/RestApiResultLocationArea} The populated RestApiResultLocationArea instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultLocationArea(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = LocationArea.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/LocationArea} Data + */ +RestApiResultLocationArea.prototype['Data'] = undefined; + + + + + + +export default RestApiResultLocationArea; + diff --git a/src/model/RestApiResultLocationAreaLocation.js b/src/model/RestApiResultLocationAreaLocation.js new file mode 100644 index 00000000..bb21c82a --- /dev/null +++ b/src/model/RestApiResultLocationAreaLocation.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LocationAreaLocation from './LocationAreaLocation'; + +/** + * The RestApiResultLocationAreaLocation model module. + * @module model/RestApiResultLocationAreaLocation + * @version 1.0.0 + */ +class RestApiResultLocationAreaLocation { + /** + * Constructs a new RestApiResultLocationAreaLocation. + * Rest api result + * @alias module:model/RestApiResultLocationAreaLocation + * @param Data {module:model/LocationAreaLocation} + */ + constructor(Data) { + + RestApiResultLocationAreaLocation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultLocationAreaLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultLocationAreaLocation} obj Optional instance to populate. + * @return {module:model/RestApiResultLocationAreaLocation} The populated RestApiResultLocationAreaLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultLocationAreaLocation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = LocationAreaLocation.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/LocationAreaLocation} Data + */ +RestApiResultLocationAreaLocation.prototype['Data'] = undefined; + + + + + + +export default RestApiResultLocationAreaLocation; + diff --git a/src/model/RestApiResultLocationAreaWithLocations.js b/src/model/RestApiResultLocationAreaWithLocations.js new file mode 100644 index 00000000..4f208831 --- /dev/null +++ b/src/model/RestApiResultLocationAreaWithLocations.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LocationAreaWithLocations from './LocationAreaWithLocations'; + +/** + * The RestApiResultLocationAreaWithLocations model module. + * @module model/RestApiResultLocationAreaWithLocations + * @version 1.0.0 + */ +class RestApiResultLocationAreaWithLocations { + /** + * Constructs a new RestApiResultLocationAreaWithLocations. + * Rest api result + * @alias module:model/RestApiResultLocationAreaWithLocations + * @param Data {module:model/LocationAreaWithLocations} + */ + constructor(Data) { + + RestApiResultLocationAreaWithLocations.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultLocationAreaWithLocations from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultLocationAreaWithLocations} obj Optional instance to populate. + * @return {module:model/RestApiResultLocationAreaWithLocations} The populated RestApiResultLocationAreaWithLocations instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultLocationAreaWithLocations(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = LocationAreaWithLocations.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/LocationAreaWithLocations} Data + */ +RestApiResultLocationAreaWithLocations.prototype['Data'] = undefined; + + + + + + +export default RestApiResultLocationAreaWithLocations; + diff --git a/src/model/RestApiResultLoyaltyCampaign.js b/src/model/RestApiResultLoyaltyCampaign.js new file mode 100644 index 00000000..567a5cbf --- /dev/null +++ b/src/model/RestApiResultLoyaltyCampaign.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LoyaltyCampaign from './LoyaltyCampaign'; + +/** + * The RestApiResultLoyaltyCampaign model module. + * @module model/RestApiResultLoyaltyCampaign + * @version 1.0.0 + */ +class RestApiResultLoyaltyCampaign { + /** + * Constructs a new RestApiResultLoyaltyCampaign. + * Rest api result + * @alias module:model/RestApiResultLoyaltyCampaign + * @param Data {module:model/LoyaltyCampaign} + */ + constructor(Data) { + + RestApiResultLoyaltyCampaign.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultLoyaltyCampaign from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultLoyaltyCampaign} obj Optional instance to populate. + * @return {module:model/RestApiResultLoyaltyCampaign} The populated RestApiResultLoyaltyCampaign instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultLoyaltyCampaign(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = LoyaltyCampaign.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/LoyaltyCampaign} Data + */ +RestApiResultLoyaltyCampaign.prototype['Data'] = undefined; + + + + + + +export default RestApiResultLoyaltyCampaign; + diff --git a/src/model/RestApiResultMappedLocation.js b/src/model/RestApiResultMappedLocation.js new file mode 100644 index 00000000..e8461a4f --- /dev/null +++ b/src/model/RestApiResultMappedLocation.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MappedLocation from './MappedLocation'; + +/** + * The RestApiResultMappedLocation model module. + * @module model/RestApiResultMappedLocation + * @version 1.0.0 + */ +class RestApiResultMappedLocation { + /** + * Constructs a new RestApiResultMappedLocation. + * Rest api result + * @alias module:model/RestApiResultMappedLocation + * @param Data {module:model/MappedLocation} + */ + constructor(Data) { + + RestApiResultMappedLocation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMappedLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMappedLocation} obj Optional instance to populate. + * @return {module:model/RestApiResultMappedLocation} The populated RestApiResultMappedLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMappedLocation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MappedLocation.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MappedLocation} Data + */ +RestApiResultMappedLocation.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMappedLocation; + diff --git a/src/model/RestApiResultMenu.js b/src/model/RestApiResultMenu.js new file mode 100644 index 00000000..c9e6e4ad --- /dev/null +++ b/src/model/RestApiResultMenu.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Menu from './Menu'; + +/** + * The RestApiResultMenu model module. + * @module model/RestApiResultMenu + * @version 1.0.0 + */ +class RestApiResultMenu { + /** + * Constructs a new RestApiResultMenu. + * Rest api result + * @alias module:model/RestApiResultMenu + * @param Data {module:model/Menu} + */ + constructor(Data) { + + RestApiResultMenu.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenu from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenu} obj Optional instance to populate. + * @return {module:model/RestApiResultMenu} The populated RestApiResultMenu instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenu(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Menu.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Menu} Data + */ +RestApiResultMenu.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenu; + diff --git a/src/model/RestApiResultMenuItemOptionSet.js b/src/model/RestApiResultMenuItemOptionSet.js new file mode 100644 index 00000000..291ecff0 --- /dev/null +++ b/src/model/RestApiResultMenuItemOptionSet.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSet from './MenuItemOptionSet'; + +/** + * The RestApiResultMenuItemOptionSet model module. + * @module model/RestApiResultMenuItemOptionSet + * @version 1.0.0 + */ +class RestApiResultMenuItemOptionSet { + /** + * Constructs a new RestApiResultMenuItemOptionSet. + * Rest api result + * @alias module:model/RestApiResultMenuItemOptionSet + * @param Data {module:model/MenuItemOptionSet} + */ + constructor(Data) { + + RestApiResultMenuItemOptionSet.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenuItemOptionSet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenuItemOptionSet} obj Optional instance to populate. + * @return {module:model/RestApiResultMenuItemOptionSet} The populated RestApiResultMenuItemOptionSet instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenuItemOptionSet(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MenuItemOptionSet.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuItemOptionSet} Data + */ +RestApiResultMenuItemOptionSet.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenuItemOptionSet; + diff --git a/src/model/RestApiResultMenuItemOptionSetItem.js b/src/model/RestApiResultMenuItemOptionSetItem.js new file mode 100644 index 00000000..7b53d966 --- /dev/null +++ b/src/model/RestApiResultMenuItemOptionSetItem.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuItemOptionSetItem from './MenuItemOptionSetItem'; + +/** + * The RestApiResultMenuItemOptionSetItem model module. + * @module model/RestApiResultMenuItemOptionSetItem + * @version 1.0.0 + */ +class RestApiResultMenuItemOptionSetItem { + /** + * Constructs a new RestApiResultMenuItemOptionSetItem. + * Rest api result + * @alias module:model/RestApiResultMenuItemOptionSetItem + * @param Data {module:model/MenuItemOptionSetItem} + */ + constructor(Data) { + + RestApiResultMenuItemOptionSetItem.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenuItemOptionSetItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenuItemOptionSetItem} obj Optional instance to populate. + * @return {module:model/RestApiResultMenuItemOptionSetItem} The populated RestApiResultMenuItemOptionSetItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenuItemOptionSetItem(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MenuItemOptionSetItem.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuItemOptionSetItem} Data + */ +RestApiResultMenuItemOptionSetItem.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenuItemOptionSetItem; + diff --git a/src/model/RestApiResultMenuNutritionInfoHeader.js b/src/model/RestApiResultMenuNutritionInfoHeader.js new file mode 100644 index 00000000..fd646185 --- /dev/null +++ b/src/model/RestApiResultMenuNutritionInfoHeader.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuNutritionInfoHeader from './MenuNutritionInfoHeader'; + +/** + * The RestApiResultMenuNutritionInfoHeader model module. + * @module model/RestApiResultMenuNutritionInfoHeader + * @version 1.0.0 + */ +class RestApiResultMenuNutritionInfoHeader { + /** + * Constructs a new RestApiResultMenuNutritionInfoHeader. + * Rest api result + * @alias module:model/RestApiResultMenuNutritionInfoHeader + * @param Data {module:model/MenuNutritionInfoHeader} + */ + constructor(Data) { + + RestApiResultMenuNutritionInfoHeader.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenuNutritionInfoHeader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenuNutritionInfoHeader} obj Optional instance to populate. + * @return {module:model/RestApiResultMenuNutritionInfoHeader} The populated RestApiResultMenuNutritionInfoHeader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenuNutritionInfoHeader(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MenuNutritionInfoHeader.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuNutritionInfoHeader} Data + */ +RestApiResultMenuNutritionInfoHeader.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenuNutritionInfoHeader; + diff --git a/src/model/RestApiResultMenuSection.js b/src/model/RestApiResultMenuSection.js new file mode 100644 index 00000000..15e14950 --- /dev/null +++ b/src/model/RestApiResultMenuSection.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSection from './MenuSection'; + +/** + * The RestApiResultMenuSection model module. + * @module model/RestApiResultMenuSection + * @version 1.0.0 + */ +class RestApiResultMenuSection { + /** + * Constructs a new RestApiResultMenuSection. + * Rest api result + * @alias module:model/RestApiResultMenuSection + * @param Data {module:model/MenuSection} + */ + constructor(Data) { + + RestApiResultMenuSection.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenuSection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenuSection} obj Optional instance to populate. + * @return {module:model/RestApiResultMenuSection} The populated RestApiResultMenuSection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenuSection(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MenuSection.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuSection} Data + */ +RestApiResultMenuSection.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenuSection; + diff --git a/src/model/RestApiResultMenuSectionAvailability.js b/src/model/RestApiResultMenuSectionAvailability.js new file mode 100644 index 00000000..4760e956 --- /dev/null +++ b/src/model/RestApiResultMenuSectionAvailability.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionAvailability from './MenuSectionAvailability'; + +/** + * The RestApiResultMenuSectionAvailability model module. + * @module model/RestApiResultMenuSectionAvailability + * @version 1.0.0 + */ +class RestApiResultMenuSectionAvailability { + /** + * Constructs a new RestApiResultMenuSectionAvailability. + * Rest api result + * @alias module:model/RestApiResultMenuSectionAvailability + * @param Data {module:model/MenuSectionAvailability} + */ + constructor(Data) { + + RestApiResultMenuSectionAvailability.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenuSectionAvailability from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenuSectionAvailability} obj Optional instance to populate. + * @return {module:model/RestApiResultMenuSectionAvailability} The populated RestApiResultMenuSectionAvailability instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenuSectionAvailability(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MenuSectionAvailability.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuSectionAvailability} Data + */ +RestApiResultMenuSectionAvailability.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenuSectionAvailability; + diff --git a/src/model/RestApiResultMenuSectionItem.js b/src/model/RestApiResultMenuSectionItem.js new file mode 100644 index 00000000..6ac3398a --- /dev/null +++ b/src/model/RestApiResultMenuSectionItem.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuSectionItem from './MenuSectionItem'; + +/** + * The RestApiResultMenuSectionItem model module. + * @module model/RestApiResultMenuSectionItem + * @version 1.0.0 + */ +class RestApiResultMenuSectionItem { + /** + * Constructs a new RestApiResultMenuSectionItem. + * Rest api result + * @alias module:model/RestApiResultMenuSectionItem + * @param Data {module:model/MenuSectionItem} + */ + constructor(Data) { + + RestApiResultMenuSectionItem.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenuSectionItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenuSectionItem} obj Optional instance to populate. + * @return {module:model/RestApiResultMenuSectionItem} The populated RestApiResultMenuSectionItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenuSectionItem(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MenuSectionItem.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuSectionItem} Data + */ +RestApiResultMenuSectionItem.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenuSectionItem; + diff --git a/src/model/RestApiResultMenuZone.js b/src/model/RestApiResultMenuZone.js new file mode 100644 index 00000000..454d4e88 --- /dev/null +++ b/src/model/RestApiResultMenuZone.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MenuZone from './MenuZone'; + +/** + * The RestApiResultMenuZone model module. + * @module model/RestApiResultMenuZone + * @version 1.0.0 + */ +class RestApiResultMenuZone { + /** + * Constructs a new RestApiResultMenuZone. + * Rest api result + * @alias module:model/RestApiResultMenuZone + * @param Data {module:model/MenuZone} + */ + constructor(Data) { + + RestApiResultMenuZone.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMenuZone from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMenuZone} obj Optional instance to populate. + * @return {module:model/RestApiResultMenuZone} The populated RestApiResultMenuZone instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMenuZone(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MenuZone.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MenuZone} Data + */ +RestApiResultMenuZone.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMenuZone; + diff --git a/src/model/RestApiResultMetadata.js b/src/model/RestApiResultMetadata.js new file mode 100644 index 00000000..a8279ed3 --- /dev/null +++ b/src/model/RestApiResultMetadata.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Metadata from './Metadata'; + +/** + * The RestApiResultMetadata model module. + * @module model/RestApiResultMetadata + * @version 1.0.0 + */ +class RestApiResultMetadata { + /** + * Constructs a new RestApiResultMetadata. + * Rest api result + * @alias module:model/RestApiResultMetadata + * @param Data {module:model/Metadata} + */ + constructor(Data) { + + RestApiResultMetadata.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMetadata} obj Optional instance to populate. + * @return {module:model/RestApiResultMetadata} The populated RestApiResultMetadata instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMetadata(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Metadata.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Metadata} Data + */ +RestApiResultMetadata.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMetadata; + diff --git a/src/model/RestApiResultMetafieldDefinition.js b/src/model/RestApiResultMetafieldDefinition.js new file mode 100644 index 00000000..154262c8 --- /dev/null +++ b/src/model/RestApiResultMetafieldDefinition.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MetafieldDefinition from './MetafieldDefinition'; + +/** + * The RestApiResultMetafieldDefinition model module. + * @module model/RestApiResultMetafieldDefinition + * @version 1.0.0 + */ +class RestApiResultMetafieldDefinition { + /** + * Constructs a new RestApiResultMetafieldDefinition. + * Rest api result + * @alias module:model/RestApiResultMetafieldDefinition + * @param Data {module:model/MetafieldDefinition} + */ + constructor(Data) { + + RestApiResultMetafieldDefinition.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMetafieldDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMetafieldDefinition} obj Optional instance to populate. + * @return {module:model/RestApiResultMetafieldDefinition} The populated RestApiResultMetafieldDefinition instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMetafieldDefinition(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MetafieldDefinition.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MetafieldDefinition} Data + */ +RestApiResultMetafieldDefinition.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMetafieldDefinition; + diff --git a/src/model/RestApiResultMobileAppsImage.js b/src/model/RestApiResultMobileAppsImage.js new file mode 100644 index 00000000..8a432a7c --- /dev/null +++ b/src/model/RestApiResultMobileAppsImage.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MobileAppsImage from './MobileAppsImage'; + +/** + * The RestApiResultMobileAppsImage model module. + * @module model/RestApiResultMobileAppsImage + * @version 1.0.0 + */ +class RestApiResultMobileAppsImage { + /** + * Constructs a new RestApiResultMobileAppsImage. + * Rest api result + * @alias module:model/RestApiResultMobileAppsImage + * @param Data {module:model/MobileAppsImage} + */ + constructor(Data) { + + RestApiResultMobileAppsImage.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMobileAppsImage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMobileAppsImage} obj Optional instance to populate. + * @return {module:model/RestApiResultMobileAppsImage} The populated RestApiResultMobileAppsImage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMobileAppsImage(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MobileAppsImage.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MobileAppsImage} Data + */ +RestApiResultMobileAppsImage.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMobileAppsImage; + diff --git a/src/model/RestApiResultMobileAppsSubmission.js b/src/model/RestApiResultMobileAppsSubmission.js new file mode 100644 index 00000000..822e72db --- /dev/null +++ b/src/model/RestApiResultMobileAppsSubmission.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MobileAppsSubmission from './MobileAppsSubmission'; + +/** + * The RestApiResultMobileAppsSubmission model module. + * @module model/RestApiResultMobileAppsSubmission + * @version 1.0.0 + */ +class RestApiResultMobileAppsSubmission { + /** + * Constructs a new RestApiResultMobileAppsSubmission. + * Rest api result + * @alias module:model/RestApiResultMobileAppsSubmission + * @param Data {module:model/MobileAppsSubmission} + */ + constructor(Data) { + + RestApiResultMobileAppsSubmission.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMobileAppsSubmission from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMobileAppsSubmission} obj Optional instance to populate. + * @return {module:model/RestApiResultMobileAppsSubmission} The populated RestApiResultMobileAppsSubmission instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMobileAppsSubmission(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MobileAppsSubmission.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MobileAppsSubmission} Data + */ +RestApiResultMobileAppsSubmission.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMobileAppsSubmission; + diff --git a/src/model/RestApiResultMobileAppsSubmissionDetails.js b/src/model/RestApiResultMobileAppsSubmissionDetails.js new file mode 100644 index 00000000..9f15829a --- /dev/null +++ b/src/model/RestApiResultMobileAppsSubmissionDetails.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MobileAppsSubmissionDetails from './MobileAppsSubmissionDetails'; + +/** + * The RestApiResultMobileAppsSubmissionDetails model module. + * @module model/RestApiResultMobileAppsSubmissionDetails + * @version 1.0.0 + */ +class RestApiResultMobileAppsSubmissionDetails { + /** + * Constructs a new RestApiResultMobileAppsSubmissionDetails. + * Rest api result + * @alias module:model/RestApiResultMobileAppsSubmissionDetails + * @param Data {module:model/MobileAppsSubmissionDetails} + */ + constructor(Data) { + + RestApiResultMobileAppsSubmissionDetails.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMobileAppsSubmissionDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMobileAppsSubmissionDetails} obj Optional instance to populate. + * @return {module:model/RestApiResultMobileAppsSubmissionDetails} The populated RestApiResultMobileAppsSubmissionDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMobileAppsSubmissionDetails(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MobileAppsSubmissionDetails.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MobileAppsSubmissionDetails} Data + */ +RestApiResultMobileAppsSubmissionDetails.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMobileAppsSubmissionDetails; + diff --git a/src/model/RestApiResultMobileAppsSubmissionStatus.js b/src/model/RestApiResultMobileAppsSubmissionStatus.js new file mode 100644 index 00000000..bbcbf34e --- /dev/null +++ b/src/model/RestApiResultMobileAppsSubmissionStatus.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MobileAppsSubmissionStatus from './MobileAppsSubmissionStatus'; + +/** + * The RestApiResultMobileAppsSubmissionStatus model module. + * @module model/RestApiResultMobileAppsSubmissionStatus + * @version 1.0.0 + */ +class RestApiResultMobileAppsSubmissionStatus { + /** + * Constructs a new RestApiResultMobileAppsSubmissionStatus. + * Rest api result + * @alias module:model/RestApiResultMobileAppsSubmissionStatus + * @param Data {module:model/MobileAppsSubmissionStatus} + */ + constructor(Data) { + + RestApiResultMobileAppsSubmissionStatus.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultMobileAppsSubmissionStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultMobileAppsSubmissionStatus} obj Optional instance to populate. + * @return {module:model/RestApiResultMobileAppsSubmissionStatus} The populated RestApiResultMobileAppsSubmissionStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultMobileAppsSubmissionStatus(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = MobileAppsSubmissionStatus.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/MobileAppsSubmissionStatus} Data + */ +RestApiResultMobileAppsSubmissionStatus.prototype['Data'] = undefined; + + + + + + +export default RestApiResultMobileAppsSubmissionStatus; + diff --git a/src/model/RestApiResultModelBase.js b/src/model/RestApiResultModelBase.js new file mode 100644 index 00000000..66f15946 --- /dev/null +++ b/src/model/RestApiResultModelBase.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestApiResultModelBase model module. + * @module model/RestApiResultModelBase + * @version 1.0.0 + */ +class RestApiResultModelBase { + /** + * Constructs a new RestApiResultModelBase. + * Rest api result + * @alias module:model/RestApiResultModelBase + * @param Data {Object} Model base + */ + constructor(Data) { + + RestApiResultModelBase.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultModelBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultModelBase} obj Optional instance to populate. + * @return {module:model/RestApiResultModelBase} The populated RestApiResultModelBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultModelBase(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], Object); + } + } + return obj; + } + + +} + +/** + * Model base + * @member {Object} Data + */ +RestApiResultModelBase.prototype['Data'] = undefined; + + + + + + +export default RestApiResultModelBase; + diff --git a/src/model/RestApiResultNutritionInfo.js b/src/model/RestApiResultNutritionInfo.js new file mode 100644 index 00000000..4c2c646c --- /dev/null +++ b/src/model/RestApiResultNutritionInfo.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfo from './NutritionInfo'; + +/** + * The RestApiResultNutritionInfo model module. + * @module model/RestApiResultNutritionInfo + * @version 1.0.0 + */ +class RestApiResultNutritionInfo { + /** + * Constructs a new RestApiResultNutritionInfo. + * Rest api result + * @alias module:model/RestApiResultNutritionInfo + * @param Data {module:model/NutritionInfo} + */ + constructor(Data) { + + RestApiResultNutritionInfo.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultNutritionInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultNutritionInfo} obj Optional instance to populate. + * @return {module:model/RestApiResultNutritionInfo} The populated RestApiResultNutritionInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultNutritionInfo(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = NutritionInfo.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/NutritionInfo} Data + */ +RestApiResultNutritionInfo.prototype['Data'] = undefined; + + + + + + +export default RestApiResultNutritionInfo; + diff --git a/src/model/RestApiResultNutritionInfoV2.js b/src/model/RestApiResultNutritionInfoV2.js new file mode 100644 index 00000000..3c93e8e1 --- /dev/null +++ b/src/model/RestApiResultNutritionInfoV2.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NutritionInfoV2 from './NutritionInfoV2'; + +/** + * The RestApiResultNutritionInfoV2 model module. + * @module model/RestApiResultNutritionInfoV2 + * @version 1.0.0 + */ +class RestApiResultNutritionInfoV2 { + /** + * Constructs a new RestApiResultNutritionInfoV2. + * Rest api result + * @alias module:model/RestApiResultNutritionInfoV2 + * @param Data {module:model/NutritionInfoV2} + */ + constructor(Data) { + + RestApiResultNutritionInfoV2.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultNutritionInfoV2 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultNutritionInfoV2} obj Optional instance to populate. + * @return {module:model/RestApiResultNutritionInfoV2} The populated RestApiResultNutritionInfoV2 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultNutritionInfoV2(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = NutritionInfoV2.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/NutritionInfoV2} Data + */ +RestApiResultNutritionInfoV2.prototype['Data'] = undefined; + + + + + + +export default RestApiResultNutritionInfoV2; + diff --git a/src/model/RestApiResultOAuthApp.js b/src/model/RestApiResultOAuthApp.js new file mode 100644 index 00000000..55b71168 --- /dev/null +++ b/src/model/RestApiResultOAuthApp.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OAuthApp from './OAuthApp'; + +/** + * The RestApiResultOAuthApp model module. + * @module model/RestApiResultOAuthApp + * @version 1.0.0 + */ +class RestApiResultOAuthApp { + /** + * Constructs a new RestApiResultOAuthApp. + * Rest api result + * @alias module:model/RestApiResultOAuthApp + * @param Data {module:model/OAuthApp} + */ + constructor(Data) { + + RestApiResultOAuthApp.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOAuthApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOAuthApp} obj Optional instance to populate. + * @return {module:model/RestApiResultOAuthApp} The populated RestApiResultOAuthApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOAuthApp(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OAuthApp.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OAuthApp} Data + */ +RestApiResultOAuthApp.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOAuthApp; + diff --git a/src/model/RestApiResultOauthClientRedirectUri.js b/src/model/RestApiResultOauthClientRedirectUri.js new file mode 100644 index 00000000..d55055b9 --- /dev/null +++ b/src/model/RestApiResultOauthClientRedirectUri.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OauthClientRedirectUri from './OauthClientRedirectUri'; + +/** + * The RestApiResultOauthClientRedirectUri model module. + * @module model/RestApiResultOauthClientRedirectUri + * @version 1.0.0 + */ +class RestApiResultOauthClientRedirectUri { + /** + * Constructs a new RestApiResultOauthClientRedirectUri. + * Rest api result + * @alias module:model/RestApiResultOauthClientRedirectUri + * @param Data {module:model/OauthClientRedirectUri} + */ + constructor(Data) { + + RestApiResultOauthClientRedirectUri.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOauthClientRedirectUri from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOauthClientRedirectUri} obj Optional instance to populate. + * @return {module:model/RestApiResultOauthClientRedirectUri} The populated RestApiResultOauthClientRedirectUri instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOauthClientRedirectUri(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OauthClientRedirectUri.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OauthClientRedirectUri} Data + */ +RestApiResultOauthClientRedirectUri.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOauthClientRedirectUri; + diff --git a/src/model/RestApiResultOktaPortalFeatureFlag.js b/src/model/RestApiResultOktaPortalFeatureFlag.js new file mode 100644 index 00000000..33245a98 --- /dev/null +++ b/src/model/RestApiResultOktaPortalFeatureFlag.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OktaPortalFeatureFlag from './OktaPortalFeatureFlag'; + +/** + * The RestApiResultOktaPortalFeatureFlag model module. + * @module model/RestApiResultOktaPortalFeatureFlag + * @version 1.0.0 + */ +class RestApiResultOktaPortalFeatureFlag { + /** + * Constructs a new RestApiResultOktaPortalFeatureFlag. + * Rest api result + * @alias module:model/RestApiResultOktaPortalFeatureFlag + * @param Data {module:model/OktaPortalFeatureFlag} + */ + constructor(Data) { + + RestApiResultOktaPortalFeatureFlag.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOktaPortalFeatureFlag from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOktaPortalFeatureFlag} obj Optional instance to populate. + * @return {module:model/RestApiResultOktaPortalFeatureFlag} The populated RestApiResultOktaPortalFeatureFlag instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOktaPortalFeatureFlag(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OktaPortalFeatureFlag.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OktaPortalFeatureFlag} Data + */ +RestApiResultOktaPortalFeatureFlag.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOktaPortalFeatureFlag; + diff --git a/src/model/RestApiResultOrder.js b/src/model/RestApiResultOrder.js new file mode 100644 index 00000000..34c3f039 --- /dev/null +++ b/src/model/RestApiResultOrder.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Order from './Order'; + +/** + * The RestApiResultOrder model module. + * @module model/RestApiResultOrder + * @version 1.0.0 + */ +class RestApiResultOrder { + /** + * Constructs a new RestApiResultOrder. + * Rest api result + * @alias module:model/RestApiResultOrder + * @param Data {module:model/Order} + */ + constructor(Data) { + + RestApiResultOrder.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrder} obj Optional instance to populate. + * @return {module:model/RestApiResultOrder} The populated RestApiResultOrder instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrder(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Order.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Order} Data + */ +RestApiResultOrder.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrder; + diff --git a/src/model/RestApiResultOrderBatch.js b/src/model/RestApiResultOrderBatch.js new file mode 100644 index 00000000..c88499a4 --- /dev/null +++ b/src/model/RestApiResultOrderBatch.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderBatch from './OrderBatch'; + +/** + * The RestApiResultOrderBatch model module. + * @module model/RestApiResultOrderBatch + * @version 1.0.0 + */ +class RestApiResultOrderBatch { + /** + * Constructs a new RestApiResultOrderBatch. + * Rest api result + * @alias module:model/RestApiResultOrderBatch + * @param Data {module:model/OrderBatch} + */ + constructor(Data) { + + RestApiResultOrderBatch.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrderBatch from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrderBatch} obj Optional instance to populate. + * @return {module:model/RestApiResultOrderBatch} The populated RestApiResultOrderBatch instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrderBatch(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OrderBatch.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OrderBatch} Data + */ +RestApiResultOrderBatch.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrderBatch; + diff --git a/src/model/RestApiResultOrderBatchingConfiguration.js b/src/model/RestApiResultOrderBatchingConfiguration.js new file mode 100644 index 00000000..442b5a7c --- /dev/null +++ b/src/model/RestApiResultOrderBatchingConfiguration.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderBatchingConfiguration from './OrderBatchingConfiguration'; + +/** + * The RestApiResultOrderBatchingConfiguration model module. + * @module model/RestApiResultOrderBatchingConfiguration + * @version 1.0.0 + */ +class RestApiResultOrderBatchingConfiguration { + /** + * Constructs a new RestApiResultOrderBatchingConfiguration. + * Rest api result + * @alias module:model/RestApiResultOrderBatchingConfiguration + * @param Data {module:model/OrderBatchingConfiguration} + */ + constructor(Data) { + + RestApiResultOrderBatchingConfiguration.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrderBatchingConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrderBatchingConfiguration} obj Optional instance to populate. + * @return {module:model/RestApiResultOrderBatchingConfiguration} The populated RestApiResultOrderBatchingConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrderBatchingConfiguration(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OrderBatchingConfiguration.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OrderBatchingConfiguration} Data + */ +RestApiResultOrderBatchingConfiguration.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrderBatchingConfiguration; + diff --git a/src/model/RestApiResultOrderDeliveryInformation.js b/src/model/RestApiResultOrderDeliveryInformation.js new file mode 100644 index 00000000..589946f9 --- /dev/null +++ b/src/model/RestApiResultOrderDeliveryInformation.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderDeliveryInformation from './OrderDeliveryInformation'; + +/** + * The RestApiResultOrderDeliveryInformation model module. + * @module model/RestApiResultOrderDeliveryInformation + * @version 1.0.0 + */ +class RestApiResultOrderDeliveryInformation { + /** + * Constructs a new RestApiResultOrderDeliveryInformation. + * Rest api result + * @alias module:model/RestApiResultOrderDeliveryInformation + * @param Data {module:model/OrderDeliveryInformation} + */ + constructor(Data) { + + RestApiResultOrderDeliveryInformation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrderDeliveryInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrderDeliveryInformation} obj Optional instance to populate. + * @return {module:model/RestApiResultOrderDeliveryInformation} The populated RestApiResultOrderDeliveryInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrderDeliveryInformation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OrderDeliveryInformation.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OrderDeliveryInformation} Data + */ +RestApiResultOrderDeliveryInformation.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrderDeliveryInformation; + diff --git a/src/model/RestApiResultOrderFulfillmentStatus.js b/src/model/RestApiResultOrderFulfillmentStatus.js new file mode 100644 index 00000000..1b0667d3 --- /dev/null +++ b/src/model/RestApiResultOrderFulfillmentStatus.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderFulfillmentStatus from './OrderFulfillmentStatus'; + +/** + * The RestApiResultOrderFulfillmentStatus model module. + * @module model/RestApiResultOrderFulfillmentStatus + * @version 1.0.0 + */ +class RestApiResultOrderFulfillmentStatus { + /** + * Constructs a new RestApiResultOrderFulfillmentStatus. + * Rest api result + * @alias module:model/RestApiResultOrderFulfillmentStatus + * @param Data {module:model/OrderFulfillmentStatus} + */ + constructor(Data) { + + RestApiResultOrderFulfillmentStatus.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrderFulfillmentStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrderFulfillmentStatus} obj Optional instance to populate. + * @return {module:model/RestApiResultOrderFulfillmentStatus} The populated RestApiResultOrderFulfillmentStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrderFulfillmentStatus(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OrderFulfillmentStatus.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OrderFulfillmentStatus} Data + */ +RestApiResultOrderFulfillmentStatus.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrderFulfillmentStatus; + diff --git a/src/model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.js b/src/model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.js new file mode 100644 index 00000000..31cc6d6f --- /dev/null +++ b/src/model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderFulfillmentStatusWithConfigurationActions from './OrderFulfillmentStatusWithConfigurationActions'; + +/** + * The RestApiResultOrderFulfillmentStatusWithConfigurationActions model module. + * @module model/RestApiResultOrderFulfillmentStatusWithConfigurationActions + * @version 1.0.0 + */ +class RestApiResultOrderFulfillmentStatusWithConfigurationActions { + /** + * Constructs a new RestApiResultOrderFulfillmentStatusWithConfigurationActions. + * Rest api result + * @alias module:model/RestApiResultOrderFulfillmentStatusWithConfigurationActions + * @param Data {module:model/OrderFulfillmentStatusWithConfigurationActions} + */ + constructor(Data) { + + RestApiResultOrderFulfillmentStatusWithConfigurationActions.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrderFulfillmentStatusWithConfigurationActions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrderFulfillmentStatusWithConfigurationActions} obj Optional instance to populate. + * @return {module:model/RestApiResultOrderFulfillmentStatusWithConfigurationActions} The populated RestApiResultOrderFulfillmentStatusWithConfigurationActions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrderFulfillmentStatusWithConfigurationActions(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OrderFulfillmentStatusWithConfigurationActions.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OrderFulfillmentStatusWithConfigurationActions} Data + */ +RestApiResultOrderFulfillmentStatusWithConfigurationActions.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrderFulfillmentStatusWithConfigurationActions; + diff --git a/src/model/RestApiResultOrderLeadTimes.js b/src/model/RestApiResultOrderLeadTimes.js new file mode 100644 index 00000000..9dae7c87 --- /dev/null +++ b/src/model/RestApiResultOrderLeadTimes.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderLeadTimes from './OrderLeadTimes'; + +/** + * The RestApiResultOrderLeadTimes model module. + * @module model/RestApiResultOrderLeadTimes + * @version 1.0.0 + */ +class RestApiResultOrderLeadTimes { + /** + * Constructs a new RestApiResultOrderLeadTimes. + * Rest api result + * @alias module:model/RestApiResultOrderLeadTimes + * @param Data {module:model/OrderLeadTimes} + */ + constructor(Data) { + + RestApiResultOrderLeadTimes.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrderLeadTimes from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrderLeadTimes} obj Optional instance to populate. + * @return {module:model/RestApiResultOrderLeadTimes} The populated RestApiResultOrderLeadTimes instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrderLeadTimes(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OrderLeadTimes.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OrderLeadTimes} Data + */ +RestApiResultOrderLeadTimes.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrderLeadTimes; + diff --git a/src/model/RestApiResultOrderPaymentInformation.js b/src/model/RestApiResultOrderPaymentInformation.js new file mode 100644 index 00000000..e4777263 --- /dev/null +++ b/src/model/RestApiResultOrderPaymentInformation.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import OrderPaymentInformation from './OrderPaymentInformation'; + +/** + * The RestApiResultOrderPaymentInformation model module. + * @module model/RestApiResultOrderPaymentInformation + * @version 1.0.0 + */ +class RestApiResultOrderPaymentInformation { + /** + * Constructs a new RestApiResultOrderPaymentInformation. + * Rest api result + * @alias module:model/RestApiResultOrderPaymentInformation + * @param Data {module:model/OrderPaymentInformation} + */ + constructor(Data) { + + RestApiResultOrderPaymentInformation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultOrderPaymentInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultOrderPaymentInformation} obj Optional instance to populate. + * @return {module:model/RestApiResultOrderPaymentInformation} The populated RestApiResultOrderPaymentInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultOrderPaymentInformation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = OrderPaymentInformation.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/OrderPaymentInformation} Data + */ +RestApiResultOrderPaymentInformation.prototype['Data'] = undefined; + + + + + + +export default RestApiResultOrderPaymentInformation; + diff --git a/src/model/RestApiResultPaymentIntent.js b/src/model/RestApiResultPaymentIntent.js new file mode 100644 index 00000000..cab2743b --- /dev/null +++ b/src/model/RestApiResultPaymentIntent.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PaymentIntent from './PaymentIntent'; + +/** + * The RestApiResultPaymentIntent model module. + * @module model/RestApiResultPaymentIntent + * @version 1.0.0 + */ +class RestApiResultPaymentIntent { + /** + * Constructs a new RestApiResultPaymentIntent. + * Rest api result + * @alias module:model/RestApiResultPaymentIntent + * @param Data {module:model/PaymentIntent} + */ + constructor(Data) { + + RestApiResultPaymentIntent.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultPaymentIntent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultPaymentIntent} obj Optional instance to populate. + * @return {module:model/RestApiResultPaymentIntent} The populated RestApiResultPaymentIntent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultPaymentIntent(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = PaymentIntent.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PaymentIntent} Data + */ +RestApiResultPaymentIntent.prototype['Data'] = undefined; + + + + + + +export default RestApiResultPaymentIntent; + diff --git a/src/model/RestApiResultPaymentTerminalDetails.js b/src/model/RestApiResultPaymentTerminalDetails.js new file mode 100644 index 00000000..c6c008b9 --- /dev/null +++ b/src/model/RestApiResultPaymentTerminalDetails.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PaymentTerminalDetails from './PaymentTerminalDetails'; + +/** + * The RestApiResultPaymentTerminalDetails model module. + * @module model/RestApiResultPaymentTerminalDetails + * @version 1.0.0 + */ +class RestApiResultPaymentTerminalDetails { + /** + * Constructs a new RestApiResultPaymentTerminalDetails. + * Rest api result + * @alias module:model/RestApiResultPaymentTerminalDetails + * @param Data {module:model/PaymentTerminalDetails} + */ + constructor(Data) { + + RestApiResultPaymentTerminalDetails.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultPaymentTerminalDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultPaymentTerminalDetails} obj Optional instance to populate. + * @return {module:model/RestApiResultPaymentTerminalDetails} The populated RestApiResultPaymentTerminalDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultPaymentTerminalDetails(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = PaymentTerminalDetails.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PaymentTerminalDetails} Data + */ +RestApiResultPaymentTerminalDetails.prototype['Data'] = undefined; + + + + + + +export default RestApiResultPaymentTerminalDetails; + diff --git a/src/model/RestApiResultPaymentTerminalTransactionDetails.js b/src/model/RestApiResultPaymentTerminalTransactionDetails.js new file mode 100644 index 00000000..88ca12e8 --- /dev/null +++ b/src/model/RestApiResultPaymentTerminalTransactionDetails.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PaymentTerminalTransactionDetails from './PaymentTerminalTransactionDetails'; + +/** + * The RestApiResultPaymentTerminalTransactionDetails model module. + * @module model/RestApiResultPaymentTerminalTransactionDetails + * @version 1.0.0 + */ +class RestApiResultPaymentTerminalTransactionDetails { + /** + * Constructs a new RestApiResultPaymentTerminalTransactionDetails. + * Rest api result + * @alias module:model/RestApiResultPaymentTerminalTransactionDetails + * @param Data {module:model/PaymentTerminalTransactionDetails} + */ + constructor(Data) { + + RestApiResultPaymentTerminalTransactionDetails.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultPaymentTerminalTransactionDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultPaymentTerminalTransactionDetails} obj Optional instance to populate. + * @return {module:model/RestApiResultPaymentTerminalTransactionDetails} The populated RestApiResultPaymentTerminalTransactionDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultPaymentTerminalTransactionDetails(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = PaymentTerminalTransactionDetails.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PaymentTerminalTransactionDetails} Data + */ +RestApiResultPaymentTerminalTransactionDetails.prototype['Data'] = undefined; + + + + + + +export default RestApiResultPaymentTerminalTransactionDetails; + diff --git a/src/model/RestApiResultPayoutReport3Details.js b/src/model/RestApiResultPayoutReport3Details.js new file mode 100644 index 00000000..f44b897e --- /dev/null +++ b/src/model/RestApiResultPayoutReport3Details.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutReport3Details from './PayoutReport3Details'; + +/** + * The RestApiResultPayoutReport3Details model module. + * @module model/RestApiResultPayoutReport3Details + * @version 1.0.0 + */ +class RestApiResultPayoutReport3Details { + /** + * Constructs a new RestApiResultPayoutReport3Details. + * Rest api result + * @alias module:model/RestApiResultPayoutReport3Details + * @param Data {module:model/PayoutReport3Details} + */ + constructor(Data) { + + RestApiResultPayoutReport3Details.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultPayoutReport3Details from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultPayoutReport3Details} obj Optional instance to populate. + * @return {module:model/RestApiResultPayoutReport3Details} The populated RestApiResultPayoutReport3Details instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultPayoutReport3Details(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = PayoutReport3Details.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PayoutReport3Details} Data + */ +RestApiResultPayoutReport3Details.prototype['Data'] = undefined; + + + + + + +export default RestApiResultPayoutReport3Details; + diff --git a/src/model/RestApiResultPayoutReport3Overview.js b/src/model/RestApiResultPayoutReport3Overview.js new file mode 100644 index 00000000..e84ecaae --- /dev/null +++ b/src/model/RestApiResultPayoutReport3Overview.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PayoutReport3Overview from './PayoutReport3Overview'; + +/** + * The RestApiResultPayoutReport3Overview model module. + * @module model/RestApiResultPayoutReport3Overview + * @version 1.0.0 + */ +class RestApiResultPayoutReport3Overview { + /** + * Constructs a new RestApiResultPayoutReport3Overview. + * Rest api result + * @alias module:model/RestApiResultPayoutReport3Overview + * @param Data {module:model/PayoutReport3Overview} + */ + constructor(Data) { + + RestApiResultPayoutReport3Overview.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultPayoutReport3Overview from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultPayoutReport3Overview} obj Optional instance to populate. + * @return {module:model/RestApiResultPayoutReport3Overview} The populated RestApiResultPayoutReport3Overview instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultPayoutReport3Overview(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = PayoutReport3Overview.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PayoutReport3Overview} Data + */ +RestApiResultPayoutReport3Overview.prototype['Data'] = undefined; + + + + + + +export default RestApiResultPayoutReport3Overview; + diff --git a/src/model/RestApiResultPreOrderConfig.js b/src/model/RestApiResultPreOrderConfig.js new file mode 100644 index 00000000..2d206132 --- /dev/null +++ b/src/model/RestApiResultPreOrderConfig.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PreOrderConfig from './PreOrderConfig'; + +/** + * The RestApiResultPreOrderConfig model module. + * @module model/RestApiResultPreOrderConfig + * @version 1.0.0 + */ +class RestApiResultPreOrderConfig { + /** + * Constructs a new RestApiResultPreOrderConfig. + * Rest api result + * @alias module:model/RestApiResultPreOrderConfig + * @param Data {module:model/PreOrderConfig} + */ + constructor(Data) { + + RestApiResultPreOrderConfig.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultPreOrderConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultPreOrderConfig} obj Optional instance to populate. + * @return {module:model/RestApiResultPreOrderConfig} The populated RestApiResultPreOrderConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultPreOrderConfig(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = PreOrderConfig.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PreOrderConfig} Data + */ +RestApiResultPreOrderConfig.prototype['Data'] = undefined; + + + + + + +export default RestApiResultPreOrderConfig; + diff --git a/src/model/RestApiResultProcessingFeeConfig.js b/src/model/RestApiResultProcessingFeeConfig.js new file mode 100644 index 00000000..6008fbce --- /dev/null +++ b/src/model/RestApiResultProcessingFeeConfig.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProcessingFeeConfig from './ProcessingFeeConfig'; + +/** + * The RestApiResultProcessingFeeConfig model module. + * @module model/RestApiResultProcessingFeeConfig + * @version 1.0.0 + */ +class RestApiResultProcessingFeeConfig { + /** + * Constructs a new RestApiResultProcessingFeeConfig. + * Rest api result + * @alias module:model/RestApiResultProcessingFeeConfig + * @param Data {module:model/ProcessingFeeConfig} + */ + constructor(Data) { + + RestApiResultProcessingFeeConfig.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultProcessingFeeConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultProcessingFeeConfig} obj Optional instance to populate. + * @return {module:model/RestApiResultProcessingFeeConfig} The populated RestApiResultProcessingFeeConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultProcessingFeeConfig(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ProcessingFeeConfig.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ProcessingFeeConfig} Data + */ +RestApiResultProcessingFeeConfig.prototype['Data'] = undefined; + + + + + + +export default RestApiResultProcessingFeeConfig; + diff --git a/src/model/RestApiResultProduct.js b/src/model/RestApiResultProduct.js new file mode 100644 index 00000000..35aa8fc7 --- /dev/null +++ b/src/model/RestApiResultProduct.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Product from './Product'; + +/** + * The RestApiResultProduct model module. + * @module model/RestApiResultProduct + * @version 1.0.0 + */ +class RestApiResultProduct { + /** + * Constructs a new RestApiResultProduct. + * Rest api result + * @alias module:model/RestApiResultProduct + * @param Data {module:model/Product} + */ + constructor(Data) { + + RestApiResultProduct.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultProduct from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultProduct} obj Optional instance to populate. + * @return {module:model/RestApiResultProduct} The populated RestApiResultProduct instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultProduct(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Product.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Product} Data + */ +RestApiResultProduct.prototype['Data'] = undefined; + + + + + + +export default RestApiResultProduct; + diff --git a/src/model/RestApiResultPushNotificationResponse.js b/src/model/RestApiResultPushNotificationResponse.js new file mode 100644 index 00000000..a90a1f10 --- /dev/null +++ b/src/model/RestApiResultPushNotificationResponse.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PushNotificationResponse from './PushNotificationResponse'; + +/** + * The RestApiResultPushNotificationResponse model module. + * @module model/RestApiResultPushNotificationResponse + * @version 1.0.0 + */ +class RestApiResultPushNotificationResponse { + /** + * Constructs a new RestApiResultPushNotificationResponse. + * Rest api result + * @alias module:model/RestApiResultPushNotificationResponse + * @param Data {module:model/PushNotificationResponse} + */ + constructor(Data) { + + RestApiResultPushNotificationResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultPushNotificationResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultPushNotificationResponse} obj Optional instance to populate. + * @return {module:model/RestApiResultPushNotificationResponse} The populated RestApiResultPushNotificationResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultPushNotificationResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = PushNotificationResponse.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/PushNotificationResponse} Data + */ +RestApiResultPushNotificationResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiResultPushNotificationResponse; + diff --git a/src/model/RestApiResultRedeemInvitationResult.js b/src/model/RestApiResultRedeemInvitationResult.js new file mode 100644 index 00000000..c456dd3a --- /dev/null +++ b/src/model/RestApiResultRedeemInvitationResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RedeemInvitationResult from './RedeemInvitationResult'; + +/** + * The RestApiResultRedeemInvitationResult model module. + * @module model/RestApiResultRedeemInvitationResult + * @version 1.0.0 + */ +class RestApiResultRedeemInvitationResult { + /** + * Constructs a new RestApiResultRedeemInvitationResult. + * Rest api result + * @alias module:model/RestApiResultRedeemInvitationResult + * @param Data {module:model/RedeemInvitationResult} + */ + constructor(Data) { + + RestApiResultRedeemInvitationResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultRedeemInvitationResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultRedeemInvitationResult} obj Optional instance to populate. + * @return {module:model/RestApiResultRedeemInvitationResult} The populated RestApiResultRedeemInvitationResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultRedeemInvitationResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = RedeemInvitationResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/RedeemInvitationResult} Data + */ +RestApiResultRedeemInvitationResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultRedeemInvitationResult; + diff --git a/src/model/RestApiResultRestApiDefaultResponse.js b/src/model/RestApiResultRestApiDefaultResponse.js new file mode 100644 index 00000000..6071a1ef --- /dev/null +++ b/src/model/RestApiResultRestApiDefaultResponse.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestApiDefaultResponse from './RestApiDefaultResponse'; + +/** + * The RestApiResultRestApiDefaultResponse model module. + * @module model/RestApiResultRestApiDefaultResponse + * @version 1.0.0 + */ +class RestApiResultRestApiDefaultResponse { + /** + * Constructs a new RestApiResultRestApiDefaultResponse. + * Rest api result + * @alias module:model/RestApiResultRestApiDefaultResponse + * @param Data {module:model/RestApiDefaultResponse} + */ + constructor(Data) { + + RestApiResultRestApiDefaultResponse.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultRestApiDefaultResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultRestApiDefaultResponse} obj Optional instance to populate. + * @return {module:model/RestApiResultRestApiDefaultResponse} The populated RestApiResultRestApiDefaultResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultRestApiDefaultResponse(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = RestApiDefaultResponse.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/RestApiDefaultResponse} Data + */ +RestApiResultRestApiDefaultResponse.prototype['Data'] = undefined; + + + + + + +export default RestApiResultRestApiDefaultResponse; + diff --git a/src/model/RestApiResultRestApiIntegerResult.js b/src/model/RestApiResultRestApiIntegerResult.js new file mode 100644 index 00000000..0d711de2 --- /dev/null +++ b/src/model/RestApiResultRestApiIntegerResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestApiIntegerResult from './RestApiIntegerResult'; + +/** + * The RestApiResultRestApiIntegerResult model module. + * @module model/RestApiResultRestApiIntegerResult + * @version 1.0.0 + */ +class RestApiResultRestApiIntegerResult { + /** + * Constructs a new RestApiResultRestApiIntegerResult. + * Rest api result + * @alias module:model/RestApiResultRestApiIntegerResult + * @param Data {module:model/RestApiIntegerResult} + */ + constructor(Data) { + + RestApiResultRestApiIntegerResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultRestApiIntegerResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultRestApiIntegerResult} obj Optional instance to populate. + * @return {module:model/RestApiResultRestApiIntegerResult} The populated RestApiResultRestApiIntegerResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultRestApiIntegerResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = RestApiIntegerResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/RestApiIntegerResult} Data + */ +RestApiResultRestApiIntegerResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultRestApiIntegerResult; + diff --git a/src/model/RestApiResultRestaurantVoucherPayGreenConfiguration.js b/src/model/RestApiResultRestaurantVoucherPayGreenConfiguration.js new file mode 100644 index 00000000..9d0cce5a --- /dev/null +++ b/src/model/RestApiResultRestaurantVoucherPayGreenConfiguration.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestaurantVoucherPayGreenConfiguration from './RestaurantVoucherPayGreenConfiguration'; + +/** + * The RestApiResultRestaurantVoucherPayGreenConfiguration model module. + * @module model/RestApiResultRestaurantVoucherPayGreenConfiguration + * @version 1.0.0 + */ +class RestApiResultRestaurantVoucherPayGreenConfiguration { + /** + * Constructs a new RestApiResultRestaurantVoucherPayGreenConfiguration. + * Rest api result + * @alias module:model/RestApiResultRestaurantVoucherPayGreenConfiguration + * @param Data {module:model/RestaurantVoucherPayGreenConfiguration} + */ + constructor(Data) { + + RestApiResultRestaurantVoucherPayGreenConfiguration.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultRestaurantVoucherPayGreenConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} obj Optional instance to populate. + * @return {module:model/RestApiResultRestaurantVoucherPayGreenConfiguration} The populated RestApiResultRestaurantVoucherPayGreenConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultRestaurantVoucherPayGreenConfiguration(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = RestaurantVoucherPayGreenConfiguration.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/RestaurantVoucherPayGreenConfiguration} Data + */ +RestApiResultRestaurantVoucherPayGreenConfiguration.prototype['Data'] = undefined; + + + + + + +export default RestApiResultRestaurantVoucherPayGreenConfiguration; + diff --git a/src/model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.js b/src/model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.js new file mode 100644 index 00000000..6cf4cc31 --- /dev/null +++ b/src/model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestaurantVoucherPayGreenStoreConfiguration from './RestaurantVoucherPayGreenStoreConfiguration'; + +/** + * The RestApiResultRestaurantVoucherPayGreenStoreConfiguration model module. + * @module model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration + * @version 1.0.0 + */ +class RestApiResultRestaurantVoucherPayGreenStoreConfiguration { + /** + * Constructs a new RestApiResultRestaurantVoucherPayGreenStoreConfiguration. + * Rest api result + * @alias module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration + * @param Data {module:model/RestaurantVoucherPayGreenStoreConfiguration} + */ + constructor(Data) { + + RestApiResultRestaurantVoucherPayGreenStoreConfiguration.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultRestaurantVoucherPayGreenStoreConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration} obj Optional instance to populate. + * @return {module:model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration} The populated RestApiResultRestaurantVoucherPayGreenStoreConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultRestaurantVoucherPayGreenStoreConfiguration(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = RestaurantVoucherPayGreenStoreConfiguration.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/RestaurantVoucherPayGreenStoreConfiguration} Data + */ +RestApiResultRestaurantVoucherPayGreenStoreConfiguration.prototype['Data'] = undefined; + + + + + + +export default RestApiResultRestaurantVoucherPayGreenStoreConfiguration; + diff --git a/src/model/RestApiResultRetentionCampaign.js b/src/model/RestApiResultRetentionCampaign.js new file mode 100644 index 00000000..2fed906c --- /dev/null +++ b/src/model/RestApiResultRetentionCampaign.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RetentionCampaign from './RetentionCampaign'; + +/** + * The RestApiResultRetentionCampaign model module. + * @module model/RestApiResultRetentionCampaign + * @version 1.0.0 + */ +class RestApiResultRetentionCampaign { + /** + * Constructs a new RestApiResultRetentionCampaign. + * Rest api result + * @alias module:model/RestApiResultRetentionCampaign + * @param Data {module:model/RetentionCampaign} + */ + constructor(Data) { + + RestApiResultRetentionCampaign.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultRetentionCampaign from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultRetentionCampaign} obj Optional instance to populate. + * @return {module:model/RestApiResultRetentionCampaign} The populated RestApiResultRetentionCampaign instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultRetentionCampaign(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = RetentionCampaign.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/RetentionCampaign} Data + */ +RestApiResultRetentionCampaign.prototype['Data'] = undefined; + + + + + + +export default RestApiResultRetentionCampaign; + diff --git a/src/model/RestApiResultServiceCharge.js b/src/model/RestApiResultServiceCharge.js new file mode 100644 index 00000000..4666c1b3 --- /dev/null +++ b/src/model/RestApiResultServiceCharge.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ServiceCharge from './ServiceCharge'; + +/** + * The RestApiResultServiceCharge model module. + * @module model/RestApiResultServiceCharge + * @version 1.0.0 + */ +class RestApiResultServiceCharge { + /** + * Constructs a new RestApiResultServiceCharge. + * Rest api result + * @alias module:model/RestApiResultServiceCharge + * @param Data {module:model/ServiceCharge} + */ + constructor(Data) { + + RestApiResultServiceCharge.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultServiceCharge from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultServiceCharge} obj Optional instance to populate. + * @return {module:model/RestApiResultServiceCharge} The populated RestApiResultServiceCharge instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultServiceCharge(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ServiceCharge.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ServiceCharge} Data + */ +RestApiResultServiceCharge.prototype['Data'] = undefined; + + + + + + +export default RestApiResultServiceCharge; + diff --git a/src/model/RestApiResultSmsProviderCredential.js b/src/model/RestApiResultSmsProviderCredential.js new file mode 100644 index 00000000..de65ad6c --- /dev/null +++ b/src/model/RestApiResultSmsProviderCredential.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SmsProviderCredential from './SmsProviderCredential'; + +/** + * The RestApiResultSmsProviderCredential model module. + * @module model/RestApiResultSmsProviderCredential + * @version 1.0.0 + */ +class RestApiResultSmsProviderCredential { + /** + * Constructs a new RestApiResultSmsProviderCredential. + * Rest api result + * @alias module:model/RestApiResultSmsProviderCredential + * @param Data {module:model/SmsProviderCredential} + */ + constructor(Data) { + + RestApiResultSmsProviderCredential.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultSmsProviderCredential from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultSmsProviderCredential} obj Optional instance to populate. + * @return {module:model/RestApiResultSmsProviderCredential} The populated RestApiResultSmsProviderCredential instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultSmsProviderCredential(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = SmsProviderCredential.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/SmsProviderCredential} Data + */ +RestApiResultSmsProviderCredential.prototype['Data'] = undefined; + + + + + + +export default RestApiResultSmsProviderCredential; + diff --git a/src/model/RestApiResultStore.js b/src/model/RestApiResultStore.js new file mode 100644 index 00000000..0933cd4e --- /dev/null +++ b/src/model/RestApiResultStore.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; + +/** + * The RestApiResultStore model module. + * @module model/RestApiResultStore + * @version 1.0.0 + */ +class RestApiResultStore { + /** + * Constructs a new RestApiResultStore. + * Rest api result + * @alias module:model/RestApiResultStore + * @param Data {module:model/Store} + */ + constructor(Data) { + + RestApiResultStore.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStore} obj Optional instance to populate. + * @return {module:model/RestApiResultStore} The populated RestApiResultStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStore(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Store.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Store} Data + */ +RestApiResultStore.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStore; + diff --git a/src/model/RestApiResultStoreAddress.js b/src/model/RestApiResultStoreAddress.js new file mode 100644 index 00000000..71f4a4db --- /dev/null +++ b/src/model/RestApiResultStoreAddress.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreAddress from './StoreAddress'; + +/** + * The RestApiResultStoreAddress model module. + * @module model/RestApiResultStoreAddress + * @version 1.0.0 + */ +class RestApiResultStoreAddress { + /** + * Constructs a new RestApiResultStoreAddress. + * Rest api result + * @alias module:model/RestApiResultStoreAddress + * @param Data {module:model/StoreAddress} + */ + constructor(Data) { + + RestApiResultStoreAddress.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStoreAddress from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStoreAddress} obj Optional instance to populate. + * @return {module:model/RestApiResultStoreAddress} The populated RestApiResultStoreAddress instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStoreAddress(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StoreAddress.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StoreAddress} Data + */ +RestApiResultStoreAddress.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStoreAddress; + diff --git a/src/model/RestApiResultStoreChannelAssignment.js b/src/model/RestApiResultStoreChannelAssignment.js new file mode 100644 index 00000000..56433d65 --- /dev/null +++ b/src/model/RestApiResultStoreChannelAssignment.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreChannelAssignment from './StoreChannelAssignment'; + +/** + * The RestApiResultStoreChannelAssignment model module. + * @module model/RestApiResultStoreChannelAssignment + * @version 1.0.0 + */ +class RestApiResultStoreChannelAssignment { + /** + * Constructs a new RestApiResultStoreChannelAssignment. + * Rest api result + * @alias module:model/RestApiResultStoreChannelAssignment + * @param Data {module:model/StoreChannelAssignment} + */ + constructor(Data) { + + RestApiResultStoreChannelAssignment.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStoreChannelAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStoreChannelAssignment} obj Optional instance to populate. + * @return {module:model/RestApiResultStoreChannelAssignment} The populated RestApiResultStoreChannelAssignment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStoreChannelAssignment(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StoreChannelAssignment.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StoreChannelAssignment} Data + */ +RestApiResultStoreChannelAssignment.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStoreChannelAssignment; + diff --git a/src/model/RestApiResultStoreEndOfDayReport.js b/src/model/RestApiResultStoreEndOfDayReport.js new file mode 100644 index 00000000..d58798a7 --- /dev/null +++ b/src/model/RestApiResultStoreEndOfDayReport.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreEndOfDayReport from './StoreEndOfDayReport'; + +/** + * The RestApiResultStoreEndOfDayReport model module. + * @module model/RestApiResultStoreEndOfDayReport + * @version 1.0.0 + */ +class RestApiResultStoreEndOfDayReport { + /** + * Constructs a new RestApiResultStoreEndOfDayReport. + * Rest api result + * @alias module:model/RestApiResultStoreEndOfDayReport + * @param Data {module:model/StoreEndOfDayReport} + */ + constructor(Data) { + + RestApiResultStoreEndOfDayReport.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStoreEndOfDayReport from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStoreEndOfDayReport} obj Optional instance to populate. + * @return {module:model/RestApiResultStoreEndOfDayReport} The populated RestApiResultStoreEndOfDayReport instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStoreEndOfDayReport(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StoreEndOfDayReport.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StoreEndOfDayReport} Data + */ +RestApiResultStoreEndOfDayReport.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStoreEndOfDayReport; + diff --git a/src/model/RestApiResultStoreGroup.js b/src/model/RestApiResultStoreGroup.js new file mode 100644 index 00000000..f5b32043 --- /dev/null +++ b/src/model/RestApiResultStoreGroup.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreGroup from './StoreGroup'; + +/** + * The RestApiResultStoreGroup model module. + * @module model/RestApiResultStoreGroup + * @version 1.0.0 + */ +class RestApiResultStoreGroup { + /** + * Constructs a new RestApiResultStoreGroup. + * Rest api result + * @alias module:model/RestApiResultStoreGroup + * @param Data {module:model/StoreGroup} + */ + constructor(Data) { + + RestApiResultStoreGroup.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStoreGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStoreGroup} obj Optional instance to populate. + * @return {module:model/RestApiResultStoreGroup} The populated RestApiResultStoreGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStoreGroup(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StoreGroup.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StoreGroup} Data + */ +RestApiResultStoreGroup.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStoreGroup; + diff --git a/src/model/RestApiResultStoreGroupBase.js b/src/model/RestApiResultStoreGroupBase.js new file mode 100644 index 00000000..3db2720e --- /dev/null +++ b/src/model/RestApiResultStoreGroupBase.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreGroupBase from './StoreGroupBase'; + +/** + * The RestApiResultStoreGroupBase model module. + * @module model/RestApiResultStoreGroupBase + * @version 1.0.0 + */ +class RestApiResultStoreGroupBase { + /** + * Constructs a new RestApiResultStoreGroupBase. + * Rest api result + * @alias module:model/RestApiResultStoreGroupBase + * @param Data {module:model/StoreGroupBase} + */ + constructor(Data) { + + RestApiResultStoreGroupBase.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStoreGroupBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStoreGroupBase} obj Optional instance to populate. + * @return {module:model/RestApiResultStoreGroupBase} The populated RestApiResultStoreGroupBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStoreGroupBase(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StoreGroupBase.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StoreGroupBase} Data + */ +RestApiResultStoreGroupBase.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStoreGroupBase; + diff --git a/src/model/RestApiResultStoreOrderCapacityConfig.js b/src/model/RestApiResultStoreOrderCapacityConfig.js new file mode 100644 index 00000000..f81f11a5 --- /dev/null +++ b/src/model/RestApiResultStoreOrderCapacityConfig.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreOrderCapacityConfig from './StoreOrderCapacityConfig'; + +/** + * The RestApiResultStoreOrderCapacityConfig model module. + * @module model/RestApiResultStoreOrderCapacityConfig + * @version 1.0.0 + */ +class RestApiResultStoreOrderCapacityConfig { + /** + * Constructs a new RestApiResultStoreOrderCapacityConfig. + * Rest api result + * @alias module:model/RestApiResultStoreOrderCapacityConfig + * @param Data {module:model/StoreOrderCapacityConfig} + */ + constructor(Data) { + + RestApiResultStoreOrderCapacityConfig.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStoreOrderCapacityConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStoreOrderCapacityConfig} obj Optional instance to populate. + * @return {module:model/RestApiResultStoreOrderCapacityConfig} The populated RestApiResultStoreOrderCapacityConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStoreOrderCapacityConfig(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StoreOrderCapacityConfig.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StoreOrderCapacityConfig} Data + */ +RestApiResultStoreOrderCapacityConfig.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStoreOrderCapacityConfig; + diff --git a/src/model/RestApiResultStripeConnectedAccount.js b/src/model/RestApiResultStripeConnectedAccount.js new file mode 100644 index 00000000..922cb44e --- /dev/null +++ b/src/model/RestApiResultStripeConnectedAccount.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StripeConnectedAccount from './StripeConnectedAccount'; + +/** + * The RestApiResultStripeConnectedAccount model module. + * @module model/RestApiResultStripeConnectedAccount + * @version 1.0.0 + */ +class RestApiResultStripeConnectedAccount { + /** + * Constructs a new RestApiResultStripeConnectedAccount. + * Rest api result + * @alias module:model/RestApiResultStripeConnectedAccount + * @param Data {module:model/StripeConnectedAccount} + */ + constructor(Data) { + + RestApiResultStripeConnectedAccount.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStripeConnectedAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStripeConnectedAccount} obj Optional instance to populate. + * @return {module:model/RestApiResultStripeConnectedAccount} The populated RestApiResultStripeConnectedAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStripeConnectedAccount(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StripeConnectedAccount.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StripeConnectedAccount} Data + */ +RestApiResultStripeConnectedAccount.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStripeConnectedAccount; + diff --git a/src/model/RestApiResultStripeTerminalConnectionToken.js b/src/model/RestApiResultStripeTerminalConnectionToken.js new file mode 100644 index 00000000..bdb252fc --- /dev/null +++ b/src/model/RestApiResultStripeTerminalConnectionToken.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StripeTerminalConnectionToken from './StripeTerminalConnectionToken'; + +/** + * The RestApiResultStripeTerminalConnectionToken model module. + * @module model/RestApiResultStripeTerminalConnectionToken + * @version 1.0.0 + */ +class RestApiResultStripeTerminalConnectionToken { + /** + * Constructs a new RestApiResultStripeTerminalConnectionToken. + * Rest api result + * @alias module:model/RestApiResultStripeTerminalConnectionToken + * @param Data {module:model/StripeTerminalConnectionToken} + */ + constructor(Data) { + + RestApiResultStripeTerminalConnectionToken.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStripeTerminalConnectionToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStripeTerminalConnectionToken} obj Optional instance to populate. + * @return {module:model/RestApiResultStripeTerminalConnectionToken} The populated RestApiResultStripeTerminalConnectionToken instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStripeTerminalConnectionToken(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StripeTerminalConnectionToken.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StripeTerminalConnectionToken} Data + */ +RestApiResultStripeTerminalConnectionToken.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStripeTerminalConnectionToken; + diff --git a/src/model/RestApiResultStripeTerminalLocation.js b/src/model/RestApiResultStripeTerminalLocation.js new file mode 100644 index 00000000..53e533d1 --- /dev/null +++ b/src/model/RestApiResultStripeTerminalLocation.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StripeTerminalLocation from './StripeTerminalLocation'; + +/** + * The RestApiResultStripeTerminalLocation model module. + * @module model/RestApiResultStripeTerminalLocation + * @version 1.0.0 + */ +class RestApiResultStripeTerminalLocation { + /** + * Constructs a new RestApiResultStripeTerminalLocation. + * Rest api result + * @alias module:model/RestApiResultStripeTerminalLocation + * @param Data {module:model/StripeTerminalLocation} + */ + constructor(Data) { + + RestApiResultStripeTerminalLocation.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStripeTerminalLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStripeTerminalLocation} obj Optional instance to populate. + * @return {module:model/RestApiResultStripeTerminalLocation} The populated RestApiResultStripeTerminalLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStripeTerminalLocation(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StripeTerminalLocation.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StripeTerminalLocation} Data + */ +RestApiResultStripeTerminalLocation.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStripeTerminalLocation; + diff --git a/src/model/RestApiResultStuartSettings.js b/src/model/RestApiResultStuartSettings.js new file mode 100644 index 00000000..03faffa1 --- /dev/null +++ b/src/model/RestApiResultStuartSettings.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StuartSettings from './StuartSettings'; + +/** + * The RestApiResultStuartSettings model module. + * @module model/RestApiResultStuartSettings + * @version 1.0.0 + */ +class RestApiResultStuartSettings { + /** + * Constructs a new RestApiResultStuartSettings. + * Rest api result + * @alias module:model/RestApiResultStuartSettings + * @param Data {module:model/StuartSettings} + */ + constructor(Data) { + + RestApiResultStuartSettings.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultStuartSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultStuartSettings} obj Optional instance to populate. + * @return {module:model/RestApiResultStuartSettings} The populated RestApiResultStuartSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultStuartSettings(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = StuartSettings.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/StuartSettings} Data + */ +RestApiResultStuartSettings.prototype['Data'] = undefined; + + + + + + +export default RestApiResultStuartSettings; + diff --git a/src/model/RestApiResultSubscription.js b/src/model/RestApiResultSubscription.js new file mode 100644 index 00000000..f9d28886 --- /dev/null +++ b/src/model/RestApiResultSubscription.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Subscription from './Subscription'; + +/** + * The RestApiResultSubscription model module. + * @module model/RestApiResultSubscription + * @version 1.0.0 + */ +class RestApiResultSubscription { + /** + * Constructs a new RestApiResultSubscription. + * Rest api result + * @alias module:model/RestApiResultSubscription + * @param Data {module:model/Subscription} + */ + constructor(Data) { + + RestApiResultSubscription.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultSubscription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultSubscription} obj Optional instance to populate. + * @return {module:model/RestApiResultSubscription} The populated RestApiResultSubscription instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultSubscription(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Subscription.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Subscription} Data + */ +RestApiResultSubscription.prototype['Data'] = undefined; + + + + + + +export default RestApiResultSubscription; + diff --git a/src/model/RestApiResultTeammate.js b/src/model/RestApiResultTeammate.js new file mode 100644 index 00000000..d8e5e713 --- /dev/null +++ b/src/model/RestApiResultTeammate.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Teammate from './Teammate'; + +/** + * The RestApiResultTeammate model module. + * @module model/RestApiResultTeammate + * @version 1.0.0 + */ +class RestApiResultTeammate { + /** + * Constructs a new RestApiResultTeammate. + * Rest api result + * @alias module:model/RestApiResultTeammate + * @param Data {module:model/Teammate} + */ + constructor(Data) { + + RestApiResultTeammate.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultTeammate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultTeammate} obj Optional instance to populate. + * @return {module:model/RestApiResultTeammate} The populated RestApiResultTeammate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultTeammate(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Teammate.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Teammate} Data + */ +RestApiResultTeammate.prototype['Data'] = undefined; + + + + + + +export default RestApiResultTeammate; + diff --git a/src/model/RestApiResultTelemetrySeriesResult.js b/src/model/RestApiResultTelemetrySeriesResult.js new file mode 100644 index 00000000..7f7fbc01 --- /dev/null +++ b/src/model/RestApiResultTelemetrySeriesResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TelemetrySeriesResult from './TelemetrySeriesResult'; + +/** + * The RestApiResultTelemetrySeriesResult model module. + * @module model/RestApiResultTelemetrySeriesResult + * @version 1.0.0 + */ +class RestApiResultTelemetrySeriesResult { + /** + * Constructs a new RestApiResultTelemetrySeriesResult. + * Rest api result + * @alias module:model/RestApiResultTelemetrySeriesResult + * @param Data {module:model/TelemetrySeriesResult} + */ + constructor(Data) { + + RestApiResultTelemetrySeriesResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultTelemetrySeriesResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultTelemetrySeriesResult} obj Optional instance to populate. + * @return {module:model/RestApiResultTelemetrySeriesResult} The populated RestApiResultTelemetrySeriesResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultTelemetrySeriesResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = TelemetrySeriesResult.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/TelemetrySeriesResult} Data + */ +RestApiResultTelemetrySeriesResult.prototype['Data'] = undefined; + + + + + + +export default RestApiResultTelemetrySeriesResult; + diff --git a/src/model/RestApiResultTipConfiguration.js b/src/model/RestApiResultTipConfiguration.js new file mode 100644 index 00000000..1d04e326 --- /dev/null +++ b/src/model/RestApiResultTipConfiguration.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TipConfiguration from './TipConfiguration'; + +/** + * The RestApiResultTipConfiguration model module. + * @module model/RestApiResultTipConfiguration + * @version 1.0.0 + */ +class RestApiResultTipConfiguration { + /** + * Constructs a new RestApiResultTipConfiguration. + * Rest api result + * @alias module:model/RestApiResultTipConfiguration + * @param Data {module:model/TipConfiguration} + */ + constructor(Data) { + + RestApiResultTipConfiguration.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultTipConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultTipConfiguration} obj Optional instance to populate. + * @return {module:model/RestApiResultTipConfiguration} The populated RestApiResultTipConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultTipConfiguration(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = TipConfiguration.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/TipConfiguration} Data + */ +RestApiResultTipConfiguration.prototype['Data'] = undefined; + + + + + + +export default RestApiResultTipConfiguration; + diff --git a/src/model/RestApiResultUpdateMobileAppsSubmissionStatus.js b/src/model/RestApiResultUpdateMobileAppsSubmissionStatus.js new file mode 100644 index 00000000..69ab250a --- /dev/null +++ b/src/model/RestApiResultUpdateMobileAppsSubmissionStatus.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UpdateMobileAppsSubmissionStatus from './UpdateMobileAppsSubmissionStatus'; + +/** + * The RestApiResultUpdateMobileAppsSubmissionStatus model module. + * @module model/RestApiResultUpdateMobileAppsSubmissionStatus + * @version 1.0.0 + */ +class RestApiResultUpdateMobileAppsSubmissionStatus { + /** + * Constructs a new RestApiResultUpdateMobileAppsSubmissionStatus. + * Rest api result + * @alias module:model/RestApiResultUpdateMobileAppsSubmissionStatus + * @param Data {module:model/UpdateMobileAppsSubmissionStatus} + */ + constructor(Data) { + + RestApiResultUpdateMobileAppsSubmissionStatus.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultUpdateMobileAppsSubmissionStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultUpdateMobileAppsSubmissionStatus} obj Optional instance to populate. + * @return {module:model/RestApiResultUpdateMobileAppsSubmissionStatus} The populated RestApiResultUpdateMobileAppsSubmissionStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultUpdateMobileAppsSubmissionStatus(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = UpdateMobileAppsSubmissionStatus.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UpdateMobileAppsSubmissionStatus} Data + */ +RestApiResultUpdateMobileAppsSubmissionStatus.prototype['Data'] = undefined; + + + + + + +export default RestApiResultUpdateMobileAppsSubmissionStatus; + diff --git a/src/model/RestApiResultUserInfo.js b/src/model/RestApiResultUserInfo.js new file mode 100644 index 00000000..8ce15df5 --- /dev/null +++ b/src/model/RestApiResultUserInfo.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserInfo from './UserInfo'; + +/** + * The RestApiResultUserInfo model module. + * @module model/RestApiResultUserInfo + * @version 1.0.0 + */ +class RestApiResultUserInfo { + /** + * Constructs a new RestApiResultUserInfo. + * Rest api result + * @alias module:model/RestApiResultUserInfo + * @param Data {module:model/UserInfo} + */ + constructor(Data) { + + RestApiResultUserInfo.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultUserInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultUserInfo} obj Optional instance to populate. + * @return {module:model/RestApiResultUserInfo} The populated RestApiResultUserInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultUserInfo(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = UserInfo.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserInfo} Data + */ +RestApiResultUserInfo.prototype['Data'] = undefined; + + + + + + +export default RestApiResultUserInfo; + diff --git a/src/model/RestApiResultUserRole.js b/src/model/RestApiResultUserRole.js new file mode 100644 index 00000000..c9e1714a --- /dev/null +++ b/src/model/RestApiResultUserRole.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserRole from './UserRole'; + +/** + * The RestApiResultUserRole model module. + * @module model/RestApiResultUserRole + * @version 1.0.0 + */ +class RestApiResultUserRole { + /** + * Constructs a new RestApiResultUserRole. + * Rest api result + * @alias module:model/RestApiResultUserRole + * @param Data {module:model/UserRole} + */ + constructor(Data) { + + RestApiResultUserRole.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultUserRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultUserRole} obj Optional instance to populate. + * @return {module:model/RestApiResultUserRole} The populated RestApiResultUserRole instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultUserRole(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = UserRole.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UserRole} Data + */ +RestApiResultUserRole.prototype['Data'] = undefined; + + + + + + +export default RestApiResultUserRole; + diff --git a/src/model/RestApiResultVoucher.js b/src/model/RestApiResultVoucher.js new file mode 100644 index 00000000..8644dd67 --- /dev/null +++ b/src/model/RestApiResultVoucher.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Voucher from './Voucher'; + +/** + * The RestApiResultVoucher model module. + * @module model/RestApiResultVoucher + * @version 1.0.0 + */ +class RestApiResultVoucher { + /** + * Constructs a new RestApiResultVoucher. + * Rest api result + * @alias module:model/RestApiResultVoucher + * @param Data {module:model/Voucher} + */ + constructor(Data) { + + RestApiResultVoucher.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultVoucher from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultVoucher} obj Optional instance to populate. + * @return {module:model/RestApiResultVoucher} The populated RestApiResultVoucher instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultVoucher(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = Voucher.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Voucher} Data + */ +RestApiResultVoucher.prototype['Data'] = undefined; + + + + + + +export default RestApiResultVoucher; + diff --git a/src/model/RestApiResultVoucherWithStats.js b/src/model/RestApiResultVoucherWithStats.js new file mode 100644 index 00000000..5ef8bf1f --- /dev/null +++ b/src/model/RestApiResultVoucherWithStats.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import VoucherWithStats from './VoucherWithStats'; + +/** + * The RestApiResultVoucherWithStats model module. + * @module model/RestApiResultVoucherWithStats + * @version 1.0.0 + */ +class RestApiResultVoucherWithStats { + /** + * Constructs a new RestApiResultVoucherWithStats. + * Rest api result + * @alias module:model/RestApiResultVoucherWithStats + * @param Data {module:model/VoucherWithStats} + */ + constructor(Data) { + + RestApiResultVoucherWithStats.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultVoucherWithStats from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultVoucherWithStats} obj Optional instance to populate. + * @return {module:model/RestApiResultVoucherWithStats} The populated RestApiResultVoucherWithStats instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultVoucherWithStats(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = VoucherWithStats.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/VoucherWithStats} Data + */ +RestApiResultVoucherWithStats.prototype['Data'] = undefined; + + + + + + +export default RestApiResultVoucherWithStats; + diff --git a/src/model/RestApiResultWebsiteImage.js b/src/model/RestApiResultWebsiteImage.js new file mode 100644 index 00000000..5e5bd690 --- /dev/null +++ b/src/model/RestApiResultWebsiteImage.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebsiteImage from './WebsiteImage'; + +/** + * The RestApiResultWebsiteImage model module. + * @module model/RestApiResultWebsiteImage + * @version 1.0.0 + */ +class RestApiResultWebsiteImage { + /** + * Constructs a new RestApiResultWebsiteImage. + * Rest api result + * @alias module:model/RestApiResultWebsiteImage + * @param Data {module:model/WebsiteImage} + */ + constructor(Data) { + + RestApiResultWebsiteImage.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultWebsiteImage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultWebsiteImage} obj Optional instance to populate. + * @return {module:model/RestApiResultWebsiteImage} The populated RestApiResultWebsiteImage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultWebsiteImage(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = WebsiteImage.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/WebsiteImage} Data + */ +RestApiResultWebsiteImage.prototype['Data'] = undefined; + + + + + + +export default RestApiResultWebsiteImage; + diff --git a/src/model/RestApiResultWebsiteTestimonial.js b/src/model/RestApiResultWebsiteTestimonial.js new file mode 100644 index 00000000..c1cc3a2c --- /dev/null +++ b/src/model/RestApiResultWebsiteTestimonial.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebsiteTestimonial from './WebsiteTestimonial'; + +/** + * The RestApiResultWebsiteTestimonial model module. + * @module model/RestApiResultWebsiteTestimonial + * @version 1.0.0 + */ +class RestApiResultWebsiteTestimonial { + /** + * Constructs a new RestApiResultWebsiteTestimonial. + * Rest api result + * @alias module:model/RestApiResultWebsiteTestimonial + * @param Data {module:model/WebsiteTestimonial} + */ + constructor(Data) { + + RestApiResultWebsiteTestimonial.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiResultWebsiteTestimonial from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiResultWebsiteTestimonial} obj Optional instance to populate. + * @return {module:model/RestApiResultWebsiteTestimonial} The populated RestApiResultWebsiteTestimonial instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiResultWebsiteTestimonial(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = WebsiteTestimonial.constructFromObject(data['Data']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/WebsiteTestimonial} Data + */ +RestApiResultWebsiteTestimonial.prototype['Data'] = undefined; + + + + + + +export default RestApiResultWebsiteTestimonial; + diff --git a/src/model/RestApiStringArrayResult.js b/src/model/RestApiStringArrayResult.js new file mode 100644 index 00000000..1eb521df --- /dev/null +++ b/src/model/RestApiStringArrayResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestApiStringArrayResult model module. + * @module model/RestApiStringArrayResult + * @version 1.0.0 + */ +class RestApiStringArrayResult { + /** + * Constructs a new RestApiStringArrayResult. + * Rest api string array result + * @alias module:model/RestApiStringArrayResult + * @param Data {Array.} Data string array + */ + constructor(Data) { + + RestApiStringArrayResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiStringArrayResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiStringArrayResult} obj Optional instance to populate. + * @return {module:model/RestApiStringArrayResult} The populated RestApiStringArrayResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiStringArrayResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], ['String']); + } + } + return obj; + } + + +} + +/** + * Data string array + * @member {Array.} Data + */ +RestApiStringArrayResult.prototype['Data'] = undefined; + + + + + + +export default RestApiStringArrayResult; + diff --git a/src/model/RestApiStringResult.js b/src/model/RestApiStringResult.js new file mode 100644 index 00000000..b50a8b2f --- /dev/null +++ b/src/model/RestApiStringResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestApiStringResult model module. + * @module model/RestApiStringResult + * @version 1.0.0 + */ +class RestApiStringResult { + /** + * Constructs a new RestApiStringResult. + * Rest api string result + * @alias module:model/RestApiStringResult + * @param Data {String} Data string + */ + constructor(Data) { + + RestApiStringResult.initialize(this, Data); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Data) { + obj['Data'] = Data; + } + + /** + * Constructs a RestApiStringResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiStringResult} obj Optional instance to populate. + * @return {module:model/RestApiStringResult} The populated RestApiStringResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiStringResult(); + + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], 'String'); + } + } + return obj; + } + + +} + +/** + * Data string + * @member {String} Data + */ +RestApiStringResult.prototype['Data'] = undefined; + + + + + + +export default RestApiStringResult; + diff --git a/src/model/RestApiUnauthorizedResult.js b/src/model/RestApiUnauthorizedResult.js new file mode 100644 index 00000000..84ca52fc --- /dev/null +++ b/src/model/RestApiUnauthorizedResult.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestApiUnauthorizedResult model module. + * @module model/RestApiUnauthorizedResult + * @version 1.0.0 + */ +class RestApiUnauthorizedResult { + /** + * Constructs a new RestApiUnauthorizedResult. + * Rest api unauthorized result + * @alias module:model/RestApiUnauthorizedResult + * @param Message {String} Message + */ + constructor(Message) { + + RestApiUnauthorizedResult.initialize(this, Message); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Message) { + obj['Message'] = Message; + } + + /** + * Constructs a RestApiUnauthorizedResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestApiUnauthorizedResult} obj Optional instance to populate. + * @return {module:model/RestApiUnauthorizedResult} The populated RestApiUnauthorizedResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestApiUnauthorizedResult(); + + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + +} + +/** + * Message + * @member {String} Message + */ +RestApiUnauthorizedResult.prototype['Message'] = undefined; + + + + + + +export default RestApiUnauthorizedResult; + diff --git a/src/model/Restaurant.js b/src/model/Restaurant.js new file mode 100644 index 00000000..bd5e719e --- /dev/null +++ b/src/model/Restaurant.js @@ -0,0 +1,164 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WhiteLabelConfig from './WhiteLabelConfig'; + +/** + * The Restaurant model module. + * @module model/Restaurant + * @version 1.0.0 + */ +class Restaurant { + /** + * Constructs a new Restaurant. + * Restaurant search result + * @alias module:model/Restaurant + */ + constructor() { + + Restaurant.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Restaurant from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Restaurant} obj Optional instance to populate. + * @return {module:model/Restaurant} The populated Restaurant instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Restaurant(); + + if (data.hasOwnProperty('WhiteLabelConfigs')) { + obj['WhiteLabelConfigs'] = ApiClient.convertToType(data['WhiteLabelConfigs'], [WhiteLabelConfig]); + } + if (data.hasOwnProperty('VirtualRestaurantId')) { + obj['VirtualRestaurantId'] = ApiClient.convertToType(data['VirtualRestaurantId'], 'Number'); + } + if (data.hasOwnProperty('VirtualRestaurantName')) { + obj['VirtualRestaurantName'] = ApiClient.convertToType(data['VirtualRestaurantName'], 'String'); + } + if (data.hasOwnProperty('VirtualRestaurantUrl')) { + obj['VirtualRestaurantUrl'] = ApiClient.convertToType(data['VirtualRestaurantUrl'], 'String'); + } + if (data.hasOwnProperty('PhysicalRestaurantId')) { + obj['PhysicalRestaurantId'] = ApiClient.convertToType(data['PhysicalRestaurantId'], 'Number'); + } + if (data.hasOwnProperty('PhysicalRestaurantName')) { + obj['PhysicalRestaurantName'] = ApiClient.convertToType(data['PhysicalRestaurantName'], 'String'); + } + if (data.hasOwnProperty('PhysicalRestaurantAddress')) { + obj['PhysicalRestaurantAddress'] = ApiClient.convertToType(data['PhysicalRestaurantAddress'], 'String'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('IsArchived')) { + obj['IsArchived'] = ApiClient.convertToType(data['IsArchived'], 'Boolean'); + } + if (data.hasOwnProperty('IsPublished')) { + obj['IsPublished'] = ApiClient.convertToType(data['IsPublished'], 'Boolean'); + } + if (data.hasOwnProperty('FlipdishStripeCustomConnectedAccounts')) { + obj['FlipdishStripeCustomConnectedAccounts'] = ApiClient.convertToType(data['FlipdishStripeCustomConnectedAccounts'], ['Number']); + } + } + return obj; + } + + +} + +/** + * Collection of white label configurations + * @member {Array.} WhiteLabelConfigs + */ +Restaurant.prototype['WhiteLabelConfigs'] = undefined; + +/** + * Virtual restaurant identifier + * @member {Number} VirtualRestaurantId + */ +Restaurant.prototype['VirtualRestaurantId'] = undefined; + +/** + * Virtual restaurant name + * @member {String} VirtualRestaurantName + */ +Restaurant.prototype['VirtualRestaurantName'] = undefined; + +/** + * Virtual restaurant URL + * @member {String} VirtualRestaurantUrl + */ +Restaurant.prototype['VirtualRestaurantUrl'] = undefined; + +/** + * Physical restaurant identifier + * @member {Number} PhysicalRestaurantId + */ +Restaurant.prototype['PhysicalRestaurantId'] = undefined; + +/** + * Physical restaurant name + * @member {String} PhysicalRestaurantName + */ +Restaurant.prototype['PhysicalRestaurantName'] = undefined; + +/** + * Physical restaurant address + * @member {String} PhysicalRestaurantAddress + */ +Restaurant.prototype['PhysicalRestaurantAddress'] = undefined; + +/** + * Menu identifier + * @member {Number} MenuId + */ +Restaurant.prototype['MenuId'] = undefined; + +/** + * Indicates if the restaurant is archived + * @member {Boolean} IsArchived + */ +Restaurant.prototype['IsArchived'] = undefined; + +/** + * Indicates if the restaurant is published + * @member {Boolean} IsPublished + */ +Restaurant.prototype['IsPublished'] = undefined; + +/** + * List of Flipdish Stripe custom connected account identifiers + * @member {Array.} FlipdishStripeCustomConnectedAccounts + */ +Restaurant.prototype['FlipdishStripeCustomConnectedAccounts'] = undefined; + + + + + + +export default Restaurant; + diff --git a/src/model/RestaurantVoucherAssignedStore.js b/src/model/RestaurantVoucherAssignedStore.js new file mode 100644 index 00000000..ce71899e --- /dev/null +++ b/src/model/RestaurantVoucherAssignedStore.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestaurantVoucherAssignedStore model module. + * @module model/RestaurantVoucherAssignedStore + * @version 1.0.0 + */ +class RestaurantVoucherAssignedStore { + /** + * Constructs a new RestaurantVoucherAssignedStore. + * @alias module:model/RestaurantVoucherAssignedStore + */ + constructor() { + + RestaurantVoucherAssignedStore.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RestaurantVoucherAssignedStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestaurantVoucherAssignedStore} obj Optional instance to populate. + * @return {module:model/RestaurantVoucherAssignedStore} The populated RestaurantVoucherAssignedStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestaurantVoucherAssignedStore(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Active')) { + obj['Active'] = ApiClient.convertToType(data['Active'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Number} StoreId + */ +RestaurantVoucherAssignedStore.prototype['StoreId'] = undefined; + +/** + * @member {String} Name + */ +RestaurantVoucherAssignedStore.prototype['Name'] = undefined; + +/** + * @member {Boolean} Active + */ +RestaurantVoucherAssignedStore.prototype['Active'] = undefined; + + + + + + +export default RestaurantVoucherAssignedStore; + diff --git a/src/model/RestaurantVoucherEligibleStore.js b/src/model/RestaurantVoucherEligibleStore.js new file mode 100644 index 00000000..b4a5229e --- /dev/null +++ b/src/model/RestaurantVoucherEligibleStore.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestaurantVoucherEligibleStore model module. + * @module model/RestaurantVoucherEligibleStore + * @version 1.0.0 + */ +class RestaurantVoucherEligibleStore { + /** + * Constructs a new RestaurantVoucherEligibleStore. + * @alias module:model/RestaurantVoucherEligibleStore + */ + constructor() { + + RestaurantVoucherEligibleStore.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RestaurantVoucherEligibleStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestaurantVoucherEligibleStore} obj Optional instance to populate. + * @return {module:model/RestaurantVoucherEligibleStore} The populated RestaurantVoucherEligibleStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestaurantVoucherEligibleStore(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} StoreId + */ +RestaurantVoucherEligibleStore.prototype['StoreId'] = undefined; + +/** + * @member {String} Name + */ +RestaurantVoucherEligibleStore.prototype['Name'] = undefined; + + + + + + +export default RestaurantVoucherEligibleStore; + diff --git a/src/model/RestaurantVoucherPayGreenConfiguration.js b/src/model/RestaurantVoucherPayGreenConfiguration.js new file mode 100644 index 00000000..670ae3d2 --- /dev/null +++ b/src/model/RestaurantVoucherPayGreenConfiguration.js @@ -0,0 +1,96 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RestaurantVoucherAssignedStore from './RestaurantVoucherAssignedStore'; + +/** + * The RestaurantVoucherPayGreenConfiguration model module. + * @module model/RestaurantVoucherPayGreenConfiguration + * @version 1.0.0 + */ +class RestaurantVoucherPayGreenConfiguration { + /** + * Constructs a new RestaurantVoucherPayGreenConfiguration. + * @alias module:model/RestaurantVoucherPayGreenConfiguration + */ + constructor() { + + RestaurantVoucherPayGreenConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RestaurantVoucherPayGreenConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestaurantVoucherPayGreenConfiguration} obj Optional instance to populate. + * @return {module:model/RestaurantVoucherPayGreenConfiguration} The populated RestaurantVoucherPayGreenConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestaurantVoucherPayGreenConfiguration(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('PayGreenId')) { + obj['PayGreenId'] = ApiClient.convertToType(data['PayGreenId'], 'String'); + } + if (data.hasOwnProperty('PayGreenConfigurationId')) { + obj['PayGreenConfigurationId'] = ApiClient.convertToType(data['PayGreenConfigurationId'], 'Number'); + } + if (data.hasOwnProperty('AssignedStores')) { + obj['AssignedStores'] = ApiClient.convertToType(data['AssignedStores'], [RestaurantVoucherAssignedStore]); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +RestaurantVoucherPayGreenConfiguration.prototype['Name'] = undefined; + +/** + * @member {String} PayGreenId + */ +RestaurantVoucherPayGreenConfiguration.prototype['PayGreenId'] = undefined; + +/** + * @member {Number} PayGreenConfigurationId + */ +RestaurantVoucherPayGreenConfiguration.prototype['PayGreenConfigurationId'] = undefined; + +/** + * @member {Array.} AssignedStores + */ +RestaurantVoucherPayGreenConfiguration.prototype['AssignedStores'] = undefined; + + + + + + +export default RestaurantVoucherPayGreenConfiguration; + diff --git a/src/model/RestaurantVoucherPayGreenConfigurationSummary.js b/src/model/RestaurantVoucherPayGreenConfigurationSummary.js new file mode 100644 index 00000000..d8696ada --- /dev/null +++ b/src/model/RestaurantVoucherPayGreenConfigurationSummary.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestaurantVoucherPayGreenConfigurationSummary model module. + * @module model/RestaurantVoucherPayGreenConfigurationSummary + * @version 1.0.0 + */ +class RestaurantVoucherPayGreenConfigurationSummary { + /** + * Constructs a new RestaurantVoucherPayGreenConfigurationSummary. + * @alias module:model/RestaurantVoucherPayGreenConfigurationSummary + */ + constructor() { + + RestaurantVoucherPayGreenConfigurationSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RestaurantVoucherPayGreenConfigurationSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestaurantVoucherPayGreenConfigurationSummary} obj Optional instance to populate. + * @return {module:model/RestaurantVoucherPayGreenConfigurationSummary} The populated RestaurantVoucherPayGreenConfigurationSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestaurantVoucherPayGreenConfigurationSummary(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('PayGreenConfigurationId')) { + obj['PayGreenConfigurationId'] = ApiClient.convertToType(data['PayGreenConfigurationId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +RestaurantVoucherPayGreenConfigurationSummary.prototype['Name'] = undefined; + +/** + * @member {Number} PayGreenConfigurationId + */ +RestaurantVoucherPayGreenConfigurationSummary.prototype['PayGreenConfigurationId'] = undefined; + + + + + + +export default RestaurantVoucherPayGreenConfigurationSummary; + diff --git a/src/model/RestaurantVoucherPayGreenStoreConfiguration.js b/src/model/RestaurantVoucherPayGreenStoreConfiguration.js new file mode 100644 index 00000000..b3b8fcdd --- /dev/null +++ b/src/model/RestaurantVoucherPayGreenStoreConfiguration.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestaurantVoucherPayGreenStoreConfiguration model module. + * @module model/RestaurantVoucherPayGreenStoreConfiguration + * @version 1.0.0 + */ +class RestaurantVoucherPayGreenStoreConfiguration { + /** + * Constructs a new RestaurantVoucherPayGreenStoreConfiguration. + * @alias module:model/RestaurantVoucherPayGreenStoreConfiguration + */ + constructor() { + + RestaurantVoucherPayGreenStoreConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RestaurantVoucherPayGreenStoreConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestaurantVoucherPayGreenStoreConfiguration} obj Optional instance to populate. + * @return {module:model/RestaurantVoucherPayGreenStoreConfiguration} The populated RestaurantVoucherPayGreenStoreConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestaurantVoucherPayGreenStoreConfiguration(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Active')) { + obj['Active'] = ApiClient.convertToType(data['Active'], 'Boolean'); + } + if (data.hasOwnProperty('PayGreenId')) { + obj['PayGreenId'] = ApiClient.convertToType(data['PayGreenId'], 'String'); + } + if (data.hasOwnProperty('PayGreenConfigurationId')) { + obj['PayGreenConfigurationId'] = ApiClient.convertToType(data['PayGreenConfigurationId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +RestaurantVoucherPayGreenStoreConfiguration.prototype['Name'] = undefined; + +/** + * @member {Boolean} Active + */ +RestaurantVoucherPayGreenStoreConfiguration.prototype['Active'] = undefined; + +/** + * @member {String} PayGreenId + */ +RestaurantVoucherPayGreenStoreConfiguration.prototype['PayGreenId'] = undefined; + +/** + * @member {Number} PayGreenConfigurationId + */ +RestaurantVoucherPayGreenStoreConfiguration.prototype['PayGreenConfigurationId'] = undefined; + + + + + + +export default RestaurantVoucherPayGreenStoreConfiguration; + diff --git a/src/model/RetentionCampaign.js b/src/model/RetentionCampaign.js new file mode 100644 index 00000000..e132a53f --- /dev/null +++ b/src/model/RetentionCampaign.js @@ -0,0 +1,209 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CampaignStatistics from './CampaignStatistics'; +import StoreCampaignStartTime from './StoreCampaignStartTime'; + +/** + * The RetentionCampaign model module. + * @module model/RetentionCampaign + * @version 1.0.0 + */ +class RetentionCampaign { + /** + * Constructs a new RetentionCampaign. + * Retention campaign + * @alias module:model/RetentionCampaign + */ + constructor() { + + RetentionCampaign.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RetentionCampaign from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RetentionCampaign} obj Optional instance to populate. + * @return {module:model/RetentionCampaign} The populated RetentionCampaign instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RetentionCampaign(); + + if (data.hasOwnProperty('CampaignId')) { + obj['CampaignId'] = ApiClient.convertToType(data['CampaignId'], 'Number'); + } + if (data.hasOwnProperty('Statistics')) { + obj['Statistics'] = CampaignStatistics.constructFromObject(data['Statistics']); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], [StoreCampaignStartTime]); + } + if (data.hasOwnProperty('PublicId')) { + obj['PublicId'] = ApiClient.convertToType(data['PublicId'], 'String'); + } + if (data.hasOwnProperty('NotifyCustomerAfterMinutes')) { + obj['NotifyCustomerAfterMinutes'] = ApiClient.convertToType(data['NotifyCustomerAfterMinutes'], 'Number'); + } + if (data.hasOwnProperty('PercentDiscountAmount')) { + obj['PercentDiscountAmount'] = ApiClient.convertToType(data['PercentDiscountAmount'], 'Number'); + } + if (data.hasOwnProperty('MaxDiscount')) { + obj['MaxDiscount'] = ApiClient.convertToType(data['MaxDiscount'], 'Number'); + } + if (data.hasOwnProperty('LumpDiscountAmount')) { + obj['LumpDiscountAmount'] = ApiClient.convertToType(data['LumpDiscountAmount'], 'Number'); + } + if (data.hasOwnProperty('VoucherValidPeriodDays')) { + obj['VoucherValidPeriodDays'] = ApiClient.convertToType(data['VoucherValidPeriodDays'], 'Number'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('AutoApplyResultingVouchers')) { + obj['AutoApplyResultingVouchers'] = ApiClient.convertToType(data['AutoApplyResultingVouchers'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeExistingOrders')) { + obj['IncludeExistingOrders'] = ApiClient.convertToType(data['IncludeExistingOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Id of campaign + * @member {Number} CampaignId + */ +RetentionCampaign.prototype['CampaignId'] = undefined; + +/** + * @member {module:model/CampaignStatistics} Statistics + */ +RetentionCampaign.prototype['Statistics'] = undefined; + +/** + * Stores this campaign applies to with campaign start time in Utc + * @member {Array.} Stores + */ +RetentionCampaign.prototype['Stores'] = undefined; + +/** + * Permanent reference to the item. + * @member {String} PublicId + */ +RetentionCampaign.prototype['PublicId'] = undefined; + +/** + * Time in minutes, after which customer will receive retention voucher if he/she does not order + * @member {Number} NotifyCustomerAfterMinutes + */ +RetentionCampaign.prototype['NotifyCustomerAfterMinutes'] = undefined; + +/** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ +RetentionCampaign.prototype['PercentDiscountAmount'] = undefined; + +/** + * Maximum discount for percentage discounts + * @member {Number} MaxDiscount + */ +RetentionCampaign.prototype['MaxDiscount'] = undefined; + +/** + * Discount amount in sum of money + * @member {Number} LumpDiscountAmount + */ +RetentionCampaign.prototype['LumpDiscountAmount'] = undefined; + +/** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ +RetentionCampaign.prototype['VoucherValidPeriodDays'] = undefined; + +/** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ +RetentionCampaign.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ +RetentionCampaign.prototype['AutoApplyResultingVouchers'] = undefined; + +/** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ +RetentionCampaign.prototype['IncludeExistingOrders'] = undefined; + +/** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ +RetentionCampaign.prototype['IsEnabled'] = undefined; + +/** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ +RetentionCampaign.prototype['StoreIds'] = undefined; + +/** + * The app that this campaign belongs to. + * @member {String} AppId + */ +RetentionCampaign.prototype['AppId'] = undefined; + +/** + * Controls whether the voucher generated from this campaign will override discount exclusions + * @member {Boolean} ForceDiscount + */ +RetentionCampaign.prototype['ForceDiscount'] = undefined; + + + + + + +export default RetentionCampaign; + diff --git a/src/model/RetentionCampaignBase.js b/src/model/RetentionCampaignBase.js new file mode 100644 index 00000000..b31b20a7 --- /dev/null +++ b/src/model/RetentionCampaignBase.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RetentionCampaignBase model module. + * @module model/RetentionCampaignBase + * @version 1.0.0 + */ +class RetentionCampaignBase { + /** + * Constructs a new RetentionCampaignBase. + * Retention campaign base + * @alias module:model/RetentionCampaignBase + */ + constructor() { + + RetentionCampaignBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RetentionCampaignBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RetentionCampaignBase} obj Optional instance to populate. + * @return {module:model/RetentionCampaignBase} The populated RetentionCampaignBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RetentionCampaignBase(); + + if (data.hasOwnProperty('NotifyCustomerAfterMinutes')) { + obj['NotifyCustomerAfterMinutes'] = ApiClient.convertToType(data['NotifyCustomerAfterMinutes'], 'Number'); + } + if (data.hasOwnProperty('PercentDiscountAmount')) { + obj['PercentDiscountAmount'] = ApiClient.convertToType(data['PercentDiscountAmount'], 'Number'); + } + if (data.hasOwnProperty('MaxDiscount')) { + obj['MaxDiscount'] = ApiClient.convertToType(data['MaxDiscount'], 'Number'); + } + if (data.hasOwnProperty('LumpDiscountAmount')) { + obj['LumpDiscountAmount'] = ApiClient.convertToType(data['LumpDiscountAmount'], 'Number'); + } + if (data.hasOwnProperty('VoucherValidPeriodDays')) { + obj['VoucherValidPeriodDays'] = ApiClient.convertToType(data['VoucherValidPeriodDays'], 'Number'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('AutoApplyResultingVouchers')) { + obj['AutoApplyResultingVouchers'] = ApiClient.convertToType(data['AutoApplyResultingVouchers'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeExistingOrders')) { + obj['IncludeExistingOrders'] = ApiClient.convertToType(data['IncludeExistingOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Time in minutes, after which customer will receive retention voucher if he/she does not order + * @member {Number} NotifyCustomerAfterMinutes + */ +RetentionCampaignBase.prototype['NotifyCustomerAfterMinutes'] = undefined; + +/** + * Discount amount in percents + * @member {Number} PercentDiscountAmount + */ +RetentionCampaignBase.prototype['PercentDiscountAmount'] = undefined; + +/** + * Maximum discount for percentage discounts + * @member {Number} MaxDiscount + */ +RetentionCampaignBase.prototype['MaxDiscount'] = undefined; + +/** + * Discount amount in sum of money + * @member {Number} LumpDiscountAmount + */ +RetentionCampaignBase.prototype['LumpDiscountAmount'] = undefined; + +/** + * Number of days for which the voucher will be valid. + * @member {Number} VoucherValidPeriodDays + */ +RetentionCampaignBase.prototype['VoucherValidPeriodDays'] = undefined; + +/** + * Discount will include delivery fee + * @member {Boolean} IncludeDeliveryFee + */ +RetentionCampaignBase.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Automatically apply resulting vouchers + * @member {Boolean} AutoApplyResultingVouchers + */ +RetentionCampaignBase.prototype['AutoApplyResultingVouchers'] = undefined; + +/** + * Campaign will apply to existing orders + * @member {Boolean} IncludeExistingOrders + */ +RetentionCampaignBase.prototype['IncludeExistingOrders'] = undefined; + +/** + * Is campaign enabled + * @member {Boolean} IsEnabled + */ +RetentionCampaignBase.prototype['IsEnabled'] = undefined; + +/** + * Ids of stores this campaign applies to + * @member {Array.} StoreIds + */ +RetentionCampaignBase.prototype['StoreIds'] = undefined; + +/** + * The app that this campaign belongs to. + * @member {String} AppId + */ +RetentionCampaignBase.prototype['AppId'] = undefined; + +/** + * Controls whether the voucher generated from this campaign will override discount exclusions + * @member {Boolean} ForceDiscount + */ +RetentionCampaignBase.prototype['ForceDiscount'] = undefined; + + + + + + +export default RetentionCampaignBase; + diff --git a/src/model/RetentionCampaignCreatedEvent.js b/src/model/RetentionCampaignCreatedEvent.js new file mode 100644 index 00000000..b4910575 --- /dev/null +++ b/src/model/RetentionCampaignCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RetentionCampaign from './RetentionCampaign'; +import UserEventInfo from './UserEventInfo'; + +/** + * The RetentionCampaignCreatedEvent model module. + * @module model/RetentionCampaignCreatedEvent + * @version 1.0.0 + */ +class RetentionCampaignCreatedEvent { + /** + * Constructs a new RetentionCampaignCreatedEvent. + * Retention campaign created event + * @alias module:model/RetentionCampaignCreatedEvent + */ + constructor() { + + RetentionCampaignCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RetentionCampaignCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RetentionCampaignCreatedEvent} obj Optional instance to populate. + * @return {module:model/RetentionCampaignCreatedEvent} The populated RetentionCampaignCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RetentionCampaignCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('RetentionCampaign')) { + obj['RetentionCampaign'] = RetentionCampaign.constructFromObject(data['RetentionCampaign']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +RetentionCampaignCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +RetentionCampaignCreatedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +RetentionCampaignCreatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +RetentionCampaignCreatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/RetentionCampaign} RetentionCampaign + */ +RetentionCampaignCreatedEvent.prototype['RetentionCampaign'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +RetentionCampaignCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +RetentionCampaignCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +RetentionCampaignCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +RetentionCampaignCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +RetentionCampaignCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +RetentionCampaignCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default RetentionCampaignCreatedEvent; + diff --git a/src/model/RetentionCampaignDeletedEvent.js b/src/model/RetentionCampaignDeletedEvent.js new file mode 100644 index 00000000..a1a20d7e --- /dev/null +++ b/src/model/RetentionCampaignDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RetentionCampaign from './RetentionCampaign'; +import UserEventInfo from './UserEventInfo'; + +/** + * The RetentionCampaignDeletedEvent model module. + * @module model/RetentionCampaignDeletedEvent + * @version 1.0.0 + */ +class RetentionCampaignDeletedEvent { + /** + * Constructs a new RetentionCampaignDeletedEvent. + * Retention campaign deleted event + * @alias module:model/RetentionCampaignDeletedEvent + */ + constructor() { + + RetentionCampaignDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RetentionCampaignDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RetentionCampaignDeletedEvent} obj Optional instance to populate. + * @return {module:model/RetentionCampaignDeletedEvent} The populated RetentionCampaignDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RetentionCampaignDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('RetentionCampaign')) { + obj['RetentionCampaign'] = RetentionCampaign.constructFromObject(data['RetentionCampaign']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +RetentionCampaignDeletedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +RetentionCampaignDeletedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +RetentionCampaignDeletedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +RetentionCampaignDeletedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/RetentionCampaign} RetentionCampaign + */ +RetentionCampaignDeletedEvent.prototype['RetentionCampaign'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +RetentionCampaignDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +RetentionCampaignDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +RetentionCampaignDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +RetentionCampaignDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +RetentionCampaignDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +RetentionCampaignDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default RetentionCampaignDeletedEvent; + diff --git a/src/model/RetentionCampaignUpdatedEvent.js b/src/model/RetentionCampaignUpdatedEvent.js new file mode 100644 index 00000000..b4bf7d91 --- /dev/null +++ b/src/model/RetentionCampaignUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import RetentionCampaign from './RetentionCampaign'; +import UserEventInfo from './UserEventInfo'; + +/** + * The RetentionCampaignUpdatedEvent model module. + * @module model/RetentionCampaignUpdatedEvent + * @version 1.0.0 + */ +class RetentionCampaignUpdatedEvent { + /** + * Constructs a new RetentionCampaignUpdatedEvent. + * Retention campaign updated event + * @alias module:model/RetentionCampaignUpdatedEvent + */ + constructor() { + + RetentionCampaignUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RetentionCampaignUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RetentionCampaignUpdatedEvent} obj Optional instance to populate. + * @return {module:model/RetentionCampaignUpdatedEvent} The populated RetentionCampaignUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RetentionCampaignUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('RetentionCampaign')) { + obj['RetentionCampaign'] = RetentionCampaign.constructFromObject(data['RetentionCampaign']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +RetentionCampaignUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +RetentionCampaignUpdatedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +RetentionCampaignUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +RetentionCampaignUpdatedEvent.prototype['User'] = undefined; + +/** + * @member {module:model/RetentionCampaign} RetentionCampaign + */ +RetentionCampaignUpdatedEvent.prototype['RetentionCampaign'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +RetentionCampaignUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +RetentionCampaignUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +RetentionCampaignUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +RetentionCampaignUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +RetentionCampaignUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +RetentionCampaignUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default RetentionCampaignUpdatedEvent; + diff --git a/src/model/RevenueAdjustmentsDetails.js b/src/model/RevenueAdjustmentsDetails.js new file mode 100644 index 00000000..baeaf695 --- /dev/null +++ b/src/model/RevenueAdjustmentsDetails.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RevenueAdjustmentsDetails model module. + * @module model/RevenueAdjustmentsDetails + * @version 1.0.0 + */ +class RevenueAdjustmentsDetails { + /** + * Constructs a new RevenueAdjustmentsDetails. + * Revenue Adjustments breakdown + * @alias module:model/RevenueAdjustmentsDetails + */ + constructor() { + + RevenueAdjustmentsDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RevenueAdjustmentsDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RevenueAdjustmentsDetails} obj Optional instance to populate. + * @return {module:model/RevenueAdjustmentsDetails} The populated RevenueAdjustmentsDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RevenueAdjustmentsDetails(); + + if (data.hasOwnProperty('OnlineSalesRefundedAmount')) { + obj['OnlineSalesRefundedAmount'] = ApiClient.convertToType(data['OnlineSalesRefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('PosSalesRefundedAmount')) { + obj['PosSalesRefundedAmount'] = ApiClient.convertToType(data['PosSalesRefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('CashSalesRefundedAmount')) { + obj['CashSalesRefundedAmount'] = ApiClient.convertToType(data['CashSalesRefundedAmount'], 'Number'); + } + if (data.hasOwnProperty('CustomerCashFees')) { + obj['CustomerCashFees'] = ApiClient.convertToType(data['CustomerCashFees'], 'Number'); + } + if (data.hasOwnProperty('RefundsCount')) { + obj['RefundsCount'] = ApiClient.convertToType(data['RefundsCount'], 'Number'); + } + if (data.hasOwnProperty('PayGreenSalesAmount')) { + obj['PayGreenSalesAmount'] = ApiClient.convertToType(data['PayGreenSalesAmount'], 'Number'); + } + if (data.hasOwnProperty('PayGreenProcessingFees')) { + obj['PayGreenProcessingFees'] = ApiClient.convertToType(data['PayGreenProcessingFees'], 'Number'); + } + if (data.hasOwnProperty('TotalOnlineRevenueAdjustments')) { + obj['TotalOnlineRevenueAdjustments'] = ApiClient.convertToType(data['TotalOnlineRevenueAdjustments'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Online sales refunds + * @member {Number} OnlineSalesRefundedAmount + */ +RevenueAdjustmentsDetails.prototype['OnlineSalesRefundedAmount'] = undefined; + +/** + * POS Online sales refunds + * @member {Number} PosSalesRefundedAmount + */ +RevenueAdjustmentsDetails.prototype['PosSalesRefundedAmount'] = undefined; + +/** + * Cash sales refunds + * @member {Number} CashSalesRefundedAmount + */ +RevenueAdjustmentsDetails.prototype['CashSalesRefundedAmount'] = undefined; + +/** + * Customer cash fees + * @member {Number} CustomerCashFees + */ +RevenueAdjustmentsDetails.prototype['CustomerCashFees'] = undefined; + +/** + * Number of refunds + * @member {Number} RefundsCount + */ +RevenueAdjustmentsDetails.prototype['RefundsCount'] = undefined; + +/** + * PayGreen sales + * @member {Number} PayGreenSalesAmount + */ +RevenueAdjustmentsDetails.prototype['PayGreenSalesAmount'] = undefined; + +/** + * PayGreen processing fees charged to end-user + * @member {Number} PayGreenProcessingFees + */ +RevenueAdjustmentsDetails.prototype['PayGreenProcessingFees'] = undefined; + +/** + * Total revenue adjustments + * @member {Number} TotalOnlineRevenueAdjustments + */ +RevenueAdjustmentsDetails.prototype['TotalOnlineRevenueAdjustments'] = undefined; + + + + + + +export default RevenueAdjustmentsDetails; + diff --git a/src/model/RevenueDetail.js b/src/model/RevenueDetail.js new file mode 100644 index 00000000..b5e48f89 --- /dev/null +++ b/src/model/RevenueDetail.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RevenueDetail model module. + * @module model/RevenueDetail + * @version 1.0.0 + */ +class RevenueDetail { + /** + * Constructs a new RevenueDetail. + * Sales information + * @alias module:model/RevenueDetail + */ + constructor() { + + RevenueDetail.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RevenueDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RevenueDetail} obj Optional instance to populate. + * @return {module:model/RevenueDetail} The populated RevenueDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RevenueDetail(); + + if (data.hasOwnProperty('OnlineSalesAmount')) { + obj['OnlineSalesAmount'] = ApiClient.convertToType(data['OnlineSalesAmount'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesTax')) { + obj['OnlineSalesTax'] = ApiClient.convertToType(data['OnlineSalesTax'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesIncludingTax')) { + obj['OnlineSalesIncludingTax'] = ApiClient.convertToType(data['OnlineSalesIncludingTax'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesFeesBaseAmount')) { + obj['OnlineSalesFeesBaseAmount'] = ApiClient.convertToType(data['OnlineSalesFeesBaseAmount'], 'Number'); + } + if (data.hasOwnProperty('CashSalesAmount')) { + obj['CashSalesAmount'] = ApiClient.convertToType(data['CashSalesAmount'], 'Number'); + } + if (data.hasOwnProperty('CashSalesTax')) { + obj['CashSalesTax'] = ApiClient.convertToType(data['CashSalesTax'], 'Number'); + } + if (data.hasOwnProperty('CashSalesIncludingTax')) { + obj['CashSalesIncludingTax'] = ApiClient.convertToType(data['CashSalesIncludingTax'], 'Number'); + } + if (data.hasOwnProperty('CashSalesFeesBaseAmount')) { + obj['CashSalesFeesBaseAmount'] = ApiClient.convertToType(data['CashSalesFeesBaseAmount'], 'Number'); + } + if (data.hasOwnProperty('TotalSalesIncludingTax')) { + obj['TotalSalesIncludingTax'] = ApiClient.convertToType(data['TotalSalesIncludingTax'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesDeliveryCharges')) { + obj['OnlineSalesDeliveryCharges'] = ApiClient.convertToType(data['OnlineSalesDeliveryCharges'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesTips')) { + obj['OnlineSalesTips'] = ApiClient.convertToType(data['OnlineSalesTips'], 'Number'); + } + if (data.hasOwnProperty('TotalOnlineRevenue')) { + obj['TotalOnlineRevenue'] = ApiClient.convertToType(data['TotalOnlineRevenue'], 'Number'); + } + if (data.hasOwnProperty('OnlineSalesServiceCharges')) { + obj['OnlineSalesServiceCharges'] = ApiClient.convertToType(data['OnlineSalesServiceCharges'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Online sales amount + * @member {Number} OnlineSalesAmount + */ +RevenueDetail.prototype['OnlineSalesAmount'] = undefined; + +/** + * Online sales tax + * @member {Number} OnlineSalesTax + */ +RevenueDetail.prototype['OnlineSalesTax'] = undefined; + +/** + * Online sales amount plus online sales tax + * @member {Number} OnlineSalesIncludingTax + */ +RevenueDetail.prototype['OnlineSalesIncludingTax'] = undefined; + +/** + * Online sales base amount to calculate fees + * @member {Number} OnlineSalesFeesBaseAmount + */ +RevenueDetail.prototype['OnlineSalesFeesBaseAmount'] = undefined; + +/** + * Cash sales amount + * @member {Number} CashSalesAmount + */ +RevenueDetail.prototype['CashSalesAmount'] = undefined; + +/** + * Cash sales tax + * @member {Number} CashSalesTax + */ +RevenueDetail.prototype['CashSalesTax'] = undefined; + +/** + * Cash sales amount plus online sales tax + * @member {Number} CashSalesIncludingTax + */ +RevenueDetail.prototype['CashSalesIncludingTax'] = undefined; + +/** + * Online sales base amount to calculate fees + * @member {Number} CashSalesFeesBaseAmount + */ +RevenueDetail.prototype['CashSalesFeesBaseAmount'] = undefined; + +/** + * Total Sales (online and cash) including tax + * @member {Number} TotalSalesIncludingTax + */ +RevenueDetail.prototype['TotalSalesIncludingTax'] = undefined; + +/** + * Delivery charges on online sales + * @member {Number} OnlineSalesDeliveryCharges + */ +RevenueDetail.prototype['OnlineSalesDeliveryCharges'] = undefined; + +/** + * Tips for online sales + * @member {Number} OnlineSalesTips + */ +RevenueDetail.prototype['OnlineSalesTips'] = undefined; + +/** + * Online sales plus online delivery charges and tips + * @member {Number} TotalOnlineRevenue + */ +RevenueDetail.prototype['TotalOnlineRevenue'] = undefined; + +/** + * Service charge on online sales + * @member {Number} OnlineSalesServiceCharges + */ +RevenueDetail.prototype['OnlineSalesServiceCharges'] = undefined; + + + + + + +export default RevenueDetail; + diff --git a/src/model/SafeWaitHandle.js b/src/model/SafeWaitHandle.js new file mode 100644 index 00000000..0ed5d9f5 --- /dev/null +++ b/src/model/SafeWaitHandle.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SafeWaitHandle model module. + * @module model/SafeWaitHandle + * @version 1.0.0 + */ +class SafeWaitHandle { + /** + * Constructs a new SafeWaitHandle. + * @alias module:model/SafeWaitHandle + */ + constructor() { + + SafeWaitHandle.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SafeWaitHandle from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SafeWaitHandle} obj Optional instance to populate. + * @return {module:model/SafeWaitHandle} The populated SafeWaitHandle instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SafeWaitHandle(); + + if (data.hasOwnProperty('IsInvalid')) { + obj['IsInvalid'] = ApiClient.convertToType(data['IsInvalid'], 'Boolean'); + } + if (data.hasOwnProperty('IsClosed')) { + obj['IsClosed'] = ApiClient.convertToType(data['IsClosed'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} IsInvalid + */ +SafeWaitHandle.prototype['IsInvalid'] = undefined; + +/** + * @member {Boolean} IsClosed + */ +SafeWaitHandle.prototype['IsClosed'] = undefined; + + + + + + +export default SafeWaitHandle; + diff --git a/src/model/SearchCriteria.js b/src/model/SearchCriteria.js new file mode 100644 index 00000000..03db56e4 --- /dev/null +++ b/src/model/SearchCriteria.js @@ -0,0 +1,208 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SearchCriteria model module. + * @module model/SearchCriteria + * @version 1.0.0 + */ +class SearchCriteria { + /** + * Constructs a new SearchCriteria. + * Search Criteria for Audit Logs + * @alias module:model/SearchCriteria + */ + constructor() { + + SearchCriteria.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SearchCriteria from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SearchCriteria} obj Optional instance to populate. + * @return {module:model/SearchCriteria} The populated SearchCriteria instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SearchCriteria(); + + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Start')) { + obj['Start'] = ApiClient.convertToType(data['Start'], 'Date'); + } + if (data.hasOwnProperty('End')) { + obj['End'] = ApiClient.convertToType(data['End'], 'Date'); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreIdList')) { + obj['StoreIdList'] = ApiClient.convertToType(data['StoreIdList'], ['Number']); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('CampaignId')) { + obj['CampaignId'] = ApiClient.convertToType(data['CampaignId'], 'Number'); + } + if (data.hasOwnProperty('UserEmail')) { + obj['UserEmail'] = ApiClient.convertToType(data['UserEmail'], 'String'); + } + if (data.hasOwnProperty('UserName')) { + obj['UserName'] = ApiClient.convertToType(data['UserName'], 'String'); + } + if (data.hasOwnProperty('VoucherCode')) { + obj['VoucherCode'] = ApiClient.convertToType(data['VoucherCode'], 'String'); + } + if (data.hasOwnProperty('EventType')) { + obj['EventType'] = ApiClient.convertToType(data['EventType'], ['String']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + } + return obj; + } + + +} + +/** + * The maximum elements to return + * @member {Number} Limit + */ +SearchCriteria.prototype['Limit'] = undefined; + +/** + * The index of the page to return, starting by 1 + * @member {Number} Page + */ +SearchCriteria.prototype['Page'] = undefined; + +/** + * Start date + * @member {Date} Start + */ +SearchCriteria.prototype['Start'] = undefined; + +/** + * End date + * @member {Date} End + */ +SearchCriteria.prototype['End'] = undefined; + +/** + * Events that have Order Id + * @member {Number} OrderId + */ +SearchCriteria.prototype['OrderId'] = undefined; + +/** + * Events that have Store Id + * @member {Number} StoreId + */ +SearchCriteria.prototype['StoreId'] = undefined; + +/** + * Events that have Store Id List + * @member {Array.} StoreIdList + */ +SearchCriteria.prototype['StoreIdList'] = undefined; + +/** + * Events that have Store Group Id + * @member {Number} StoreGroupId + */ +SearchCriteria.prototype['StoreGroupId'] = undefined; + +/** + * Events that have User Id + * @member {Number} UserId + */ +SearchCriteria.prototype['UserId'] = undefined; + +/** + * Events that have Menu Id + * @member {Number} MenuId + */ +SearchCriteria.prototype['MenuId'] = undefined; + +/** + * Events that have Campaign Id + * @member {Number} CampaignId + */ +SearchCriteria.prototype['CampaignId'] = undefined; + +/** + * Events that have User Email + * @member {String} UserEmail + */ +SearchCriteria.prototype['UserEmail'] = undefined; + +/** + * Events that have User Name + * @member {String} UserName + */ +SearchCriteria.prototype['UserName'] = undefined; + +/** + * Events that have voucher code + * @member {String} VoucherCode + */ +SearchCriteria.prototype['VoucherCode'] = undefined; + +/** + * Events that have event type\\s + * @member {Array.} EventType + */ +SearchCriteria.prototype['EventType'] = undefined; + +/** + * Unique Identifier of Event, if this is specified, all other criteria are ignored. + * @member {String} FlipdishEventId + */ +SearchCriteria.prototype['FlipdishEventId'] = undefined; + + + + + + +export default SearchCriteria; + diff --git a/src/model/ServiceCharge.js b/src/model/ServiceCharge.js new file mode 100644 index 00000000..f6fac007 --- /dev/null +++ b/src/model/ServiceCharge.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ServiceCharge model module. + * @module model/ServiceCharge + * @version 1.0.0 + */ +class ServiceCharge { + /** + * Constructs a new ServiceCharge. + * Store Service Charge + * @alias module:model/ServiceCharge + */ + constructor() { + + ServiceCharge.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ServiceCharge from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServiceCharge} obj Optional instance to populate. + * @return {module:model/ServiceCharge} The populated ServiceCharge instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ServiceCharge(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('PercentageValue')) { + obj['PercentageValue'] = ApiClient.convertToType(data['PercentageValue'], 'Number'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsOptional')) { + obj['IsOptional'] = ApiClient.convertToType(data['IsOptional'], 'Boolean'); + } + if (data.hasOwnProperty('DisplayWithProcessingFee')) { + obj['DisplayWithProcessingFee'] = ApiClient.convertToType(data['DisplayWithProcessingFee'], 'Boolean'); + } + if (data.hasOwnProperty('IncludesVouchers')) { + obj['IncludesVouchers'] = ApiClient.convertToType(data['IncludesVouchers'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Store identifier + * @member {Number} StoreId + */ +ServiceCharge.prototype['StoreId'] = undefined; + +/** + * The Default Service Charge Value + * @member {Number} PercentageValue + */ +ServiceCharge.prototype['PercentageValue'] = undefined; + +/** + * Enable Service Charge for store true(on) / false(off) + * @member {Boolean} Enabled + */ +ServiceCharge.prototype['Enabled'] = undefined; + +/** + * Sets the service charge to be optional + * @member {Boolean} IsOptional + */ +ServiceCharge.prototype['IsOptional'] = undefined; + +/** + * Display service charge together with processing fee + * @member {Boolean} DisplayWithProcessingFee + */ +ServiceCharge.prototype['DisplayWithProcessingFee'] = undefined; + +/** + * If true, will include voucher value in calculation i.e 10E order with 1E service charge and 5E voucher would have service charge at 0.5E + * @member {Boolean} IncludesVouchers + */ +ServiceCharge.prototype['IncludesVouchers'] = undefined; + + + + + + +export default ServiceCharge; + diff --git a/src/model/SetOrderBatchingConfiguration.js b/src/model/SetOrderBatchingConfiguration.js new file mode 100644 index 00000000..a51892ae --- /dev/null +++ b/src/model/SetOrderBatchingConfiguration.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SetOrderBatchingConfiguration model module. + * @module model/SetOrderBatchingConfiguration + * @version 1.0.0 + */ +class SetOrderBatchingConfiguration { + /** + * Constructs a new SetOrderBatchingConfiguration. + * Describes the configuration of OrderBatching + * @alias module:model/SetOrderBatchingConfiguration + */ + constructor() { + + SetOrderBatchingConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SetOrderBatchingConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SetOrderBatchingConfiguration} obj Optional instance to populate. + * @return {module:model/SetOrderBatchingConfiguration} The populated SetOrderBatchingConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SetOrderBatchingConfiguration(); + + if (data.hasOwnProperty('BatchIntervalInSeconds')) { + obj['BatchIntervalInSeconds'] = ApiClient.convertToType(data['BatchIntervalInSeconds'], 'Number'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Batch sending interval in seconds + * @member {Number} BatchIntervalInSeconds + */ +SetOrderBatchingConfiguration.prototype['BatchIntervalInSeconds'] = undefined; + +/** + * OrderBatching is enabled or not + * @member {Boolean} Enabled + */ +SetOrderBatchingConfiguration.prototype['Enabled'] = undefined; + + + + + + +export default SetOrderBatchingConfiguration; + diff --git a/src/model/SetPasswordWithPinModel.js b/src/model/SetPasswordWithPinModel.js new file mode 100644 index 00000000..09650f0e --- /dev/null +++ b/src/model/SetPasswordWithPinModel.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SetPasswordWithPinModel model module. + * @module model/SetPasswordWithPinModel + * @version 1.0.0 + */ +class SetPasswordWithPinModel { + /** + * Constructs a new SetPasswordWithPinModel. + * Set password with PIN model + * @alias module:model/SetPasswordWithPinModel + * @param Pin {Number} PIN code (received via email) + * @param NewPassword {String} New Password + */ + constructor(Pin, NewPassword) { + + SetPasswordWithPinModel.initialize(this, Pin, NewPassword); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Pin, NewPassword) { + obj['Pin'] = Pin; + obj['NewPassword'] = NewPassword; + } + + /** + * Constructs a SetPasswordWithPinModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SetPasswordWithPinModel} obj Optional instance to populate. + * @return {module:model/SetPasswordWithPinModel} The populated SetPasswordWithPinModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SetPasswordWithPinModel(); + + if (data.hasOwnProperty('Pin')) { + obj['Pin'] = ApiClient.convertToType(data['Pin'], 'Number'); + } + if (data.hasOwnProperty('NewPassword')) { + obj['NewPassword'] = ApiClient.convertToType(data['NewPassword'], 'String'); + } + if (data.hasOwnProperty('RecaptchaToken')) { + obj['RecaptchaToken'] = ApiClient.convertToType(data['RecaptchaToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * PIN code (received via email) + * @member {Number} Pin + */ +SetPasswordWithPinModel.prototype['Pin'] = undefined; + +/** + * New Password + * @member {String} NewPassword + */ +SetPasswordWithPinModel.prototype['NewPassword'] = undefined; + +/** + * Google Recaptcha Token + * @member {String} RecaptchaToken + */ +SetPasswordWithPinModel.prototype['RecaptchaToken'] = undefined; + + + + + + +export default SetPasswordWithPinModel; + diff --git a/src/model/SetVoucherValidityPeriodsSimplifiedRequest.js b/src/model/SetVoucherValidityPeriodsSimplifiedRequest.js new file mode 100644 index 00000000..cafa4c51 --- /dev/null +++ b/src/model/SetVoucherValidityPeriodsSimplifiedRequest.js @@ -0,0 +1,142 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SetVoucherValidityPeriodsSimplifiedRequest model module. + * @module model/SetVoucherValidityPeriodsSimplifiedRequest + * @version 1.0.0 + */ +class SetVoucherValidityPeriodsSimplifiedRequest { + /** + * Constructs a new SetVoucherValidityPeriodsSimplifiedRequest. + * Set the validity periods of a voucher. + * @alias module:model/SetVoucherValidityPeriodsSimplifiedRequest + */ + constructor() { + + SetVoucherValidityPeriodsSimplifiedRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SetVoucherValidityPeriodsSimplifiedRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SetVoucherValidityPeriodsSimplifiedRequest} obj Optional instance to populate. + * @return {module:model/SetVoucherValidityPeriodsSimplifiedRequest} The populated SetVoucherValidityPeriodsSimplifiedRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SetVoucherValidityPeriodsSimplifiedRequest(); + + if (data.hasOwnProperty('DaysOfWeek')) { + obj['DaysOfWeek'] = ApiClient.convertToType(data['DaysOfWeek'], ['String']); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'String'); + } + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'String'); + } + } + return obj; + } + + +} + +/** + * Days of week when the voucher is valid + * @member {Array.} DaysOfWeek + */ +SetVoucherValidityPeriodsSimplifiedRequest.prototype['DaysOfWeek'] = undefined; + +/** + * Start time of the day when the voucher is valid + * @member {String} StartTime + */ +SetVoucherValidityPeriodsSimplifiedRequest.prototype['StartTime'] = undefined; + +/** + * 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. + * @member {String} EndTime + */ +SetVoucherValidityPeriodsSimplifiedRequest.prototype['EndTime'] = undefined; + + + + + +/** + * Allowed values for the DaysOfWeek property. + * @enum {String} + * @readonly + */ +SetVoucherValidityPeriodsSimplifiedRequest['DaysOfWeekEnum'] = { + + /** + * value: "Sunday" + * @const + */ + "Sunday": "Sunday", + + /** + * value: "Monday" + * @const + */ + "Monday": "Monday", + + /** + * value: "Tuesday" + * @const + */ + "Tuesday": "Tuesday", + + /** + * value: "Wednesday" + * @const + */ + "Wednesday": "Wednesday", + + /** + * value: "Thursday" + * @const + */ + "Thursday": "Thursday", + + /** + * value: "Friday" + * @const + */ + "Friday": "Friday", + + /** + * value: "Saturday" + * @const + */ + "Saturday": "Saturday" +}; + + + +export default SetVoucherValidityPeriodsSimplifiedRequest; + diff --git a/src/model/Setting.js b/src/model/Setting.js new file mode 100644 index 00000000..ed3cfde8 --- /dev/null +++ b/src/model/Setting.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Setting model module. + * @module model/Setting + * @version 1.0.0 + */ +class Setting { + /** + * Constructs a new Setting. + * @alias module:model/Setting + */ + constructor() { + + Setting.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Setting from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Setting} obj Optional instance to populate. + * @return {module:model/Setting} The populated Setting instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Setting(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = ApiClient.convertToType(data['Key'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Key + */ +Setting.prototype['Key'] = undefined; + +/** + * @member {String} Value + */ +Setting.prototype['Value'] = undefined; + + + + + + +export default Setting; + diff --git a/src/model/SignupStep.js b/src/model/SignupStep.js new file mode 100644 index 00000000..af419258 --- /dev/null +++ b/src/model/SignupStep.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PredefinedAnswer from './PredefinedAnswer'; + +/** + * The SignupStep model module. + * @module model/SignupStep + * @version 1.0.0 + */ +class SignupStep { + /** + * Constructs a new SignupStep. + * + * @alias module:model/SignupStep + */ + constructor() { + + SignupStep.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SignupStep from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignupStep} obj Optional instance to populate. + * @return {module:model/SignupStep} The populated SignupStep instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SignupStep(); + + if (data.hasOwnProperty('Action')) { + obj['Action'] = ApiClient.convertToType(data['Action'], 'String'); + } + if (data.hasOwnProperty('Question')) { + obj['Question'] = ApiClient.convertToType(data['Question'], 'String'); + } + if (data.hasOwnProperty('PredefinedAnswers')) { + obj['PredefinedAnswers'] = ApiClient.convertToType(data['PredefinedAnswers'], [PredefinedAnswer]); + } + } + return obj; + } + + +} + +/** + * Action needs to take + * @member {module:model/SignupStep.ActionEnum} Action + */ +SignupStep.prototype['Action'] = undefined; + +/** + * Question in case Action == Question + * @member {String} Question + */ +SignupStep.prototype['Question'] = undefined; + +/** + * Predefined answer in case Action == Question + * @member {Array.} PredefinedAnswers + */ +SignupStep.prototype['PredefinedAnswers'] = undefined; + + + + + +/** + * Allowed values for the Action property. + * @enum {String} + * @readonly + */ +SignupStep['ActionEnum'] = { + + /** + * value: "Question" + * @const + */ + "Question": "Question", + + /** + * value: "StoreLocation" + * @const + */ + "StoreLocation": "StoreLocation", + + /** + * value: "PaymentSubscription" + * @const + */ + "PaymentSubscription": "PaymentSubscription", + + /** + * value: "StoreName" + * @const + */ + "StoreName": "StoreName" +}; + + + +export default SignupStep; + diff --git a/src/model/SmsInfo.js b/src/model/SmsInfo.js new file mode 100644 index 00000000..19d58857 --- /dev/null +++ b/src/model/SmsInfo.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SmsInfo model module. + * @module model/SmsInfo + * @version 1.0.0 + */ +class SmsInfo { + /** + * Constructs a new SmsInfo. + * Sms Info + * @alias module:model/SmsInfo + */ + constructor() { + + SmsInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SmsInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SmsInfo} obj Optional instance to populate. + * @return {module:model/SmsInfo} The populated SmsInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SmsInfo(); + + if (data.hasOwnProperty('From')) { + obj['From'] = ApiClient.convertToType(data['From'], 'String'); + } + if (data.hasOwnProperty('To')) { + obj['To'] = ApiClient.convertToType(data['To'], 'String'); + } + if (data.hasOwnProperty('Text')) { + obj['Text'] = ApiClient.convertToType(data['Text'], 'String'); + } + } + return obj; + } + + +} + +/** + * Origin phone number + * @member {String} From + */ +SmsInfo.prototype['From'] = undefined; + +/** + * Destination phone number + * @member {String} To + */ +SmsInfo.prototype['To'] = undefined; + +/** + * Text message + * @member {String} Text + */ +SmsInfo.prototype['Text'] = undefined; + + + + + + +export default SmsInfo; + diff --git a/src/model/SmsProviderCredential.js b/src/model/SmsProviderCredential.js new file mode 100644 index 00000000..90be9566 --- /dev/null +++ b/src/model/SmsProviderCredential.js @@ -0,0 +1,144 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SmsProviderCredential model module. + * @module model/SmsProviderCredential + * @version 1.0.0 + */ +class SmsProviderCredential { + /** + * Constructs a new SmsProviderCredential. + * @alias module:model/SmsProviderCredential + */ + constructor() { + + SmsProviderCredential.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SmsProviderCredential from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SmsProviderCredential} obj Optional instance to populate. + * @return {module:model/SmsProviderCredential} The populated SmsProviderCredential instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SmsProviderCredential(); + + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('BrandId')) { + obj['BrandId'] = ApiClient.convertToType(data['BrandId'], 'String'); + } + if (data.hasOwnProperty('SmsServiceType')) { + obj['SmsServiceType'] = ApiClient.convertToType(data['SmsServiceType'], 'String'); + } + if (data.hasOwnProperty('SenderId')) { + obj['SenderId'] = ApiClient.convertToType(data['SenderId'], 'String'); + } + if (data.hasOwnProperty('Username')) { + obj['Username'] = ApiClient.convertToType(data['Username'], 'String'); + } + if (data.hasOwnProperty('AuthToken')) { + obj['AuthToken'] = ApiClient.convertToType(data['AuthToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} OrgId + */ +SmsProviderCredential.prototype['OrgId'] = undefined; + +/** + * @member {String} BrandId + */ +SmsProviderCredential.prototype['BrandId'] = undefined; + +/** + * @member {module:model/SmsProviderCredential.SmsServiceTypeEnum} SmsServiceType + */ +SmsProviderCredential.prototype['SmsServiceType'] = undefined; + +/** + * @member {String} SenderId + */ +SmsProviderCredential.prototype['SenderId'] = undefined; + +/** + * @member {String} Username + */ +SmsProviderCredential.prototype['Username'] = undefined; + +/** + * @member {String} AuthToken + */ +SmsProviderCredential.prototype['AuthToken'] = undefined; + + + + + +/** + * Allowed values for the SmsServiceType property. + * @enum {String} + * @readonly + */ +SmsProviderCredential['SmsServiceTypeEnum'] = { + + /** + * value: "Nexmo" + * @const + */ + "Nexmo": "Nexmo", + + /** + * value: "Twilio" + * @const + */ + "Twilio": "Twilio", + + /** + * value: "Default" + * @const + */ + "Default": "Default", + + /** + * value: "MessageBird" + * @const + */ + "MessageBird": "MessageBird" +}; + + + +export default SmsProviderCredential; + diff --git a/src/model/SmsProviderCredentialUpdateRequest.js b/src/model/SmsProviderCredentialUpdateRequest.js new file mode 100644 index 00000000..faa00923 --- /dev/null +++ b/src/model/SmsProviderCredentialUpdateRequest.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SmsProviderCredentialUpdateRequest model module. + * @module model/SmsProviderCredentialUpdateRequest + * @version 1.0.0 + */ +class SmsProviderCredentialUpdateRequest { + /** + * Constructs a new SmsProviderCredentialUpdateRequest. + * @alias module:model/SmsProviderCredentialUpdateRequest + */ + constructor() { + + SmsProviderCredentialUpdateRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SmsProviderCredentialUpdateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SmsProviderCredentialUpdateRequest} obj Optional instance to populate. + * @return {module:model/SmsProviderCredentialUpdateRequest} The populated SmsProviderCredentialUpdateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SmsProviderCredentialUpdateRequest(); + + if (data.hasOwnProperty('SenderId')) { + obj['SenderId'] = ApiClient.convertToType(data['SenderId'], 'String'); + } + if (data.hasOwnProperty('Username')) { + obj['Username'] = ApiClient.convertToType(data['Username'], 'String'); + } + if (data.hasOwnProperty('AuthToken')) { + obj['AuthToken'] = ApiClient.convertToType(data['AuthToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} SenderId + */ +SmsProviderCredentialUpdateRequest.prototype['SenderId'] = undefined; + +/** + * @member {String} Username + */ +SmsProviderCredentialUpdateRequest.prototype['Username'] = undefined; + +/** + * @member {String} AuthToken + */ +SmsProviderCredentialUpdateRequest.prototype['AuthToken'] = undefined; + + + + + + +export default SmsProviderCredentialUpdateRequest; + diff --git a/src/model/SmsReceivedEvent.js b/src/model/SmsReceivedEvent.js new file mode 100644 index 00000000..7929b7de --- /dev/null +++ b/src/model/SmsReceivedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SmsInfo from './SmsInfo'; + +/** + * The SmsReceivedEvent model module. + * @module model/SmsReceivedEvent + * @version 1.0.0 + */ +class SmsReceivedEvent { + /** + * Constructs a new SmsReceivedEvent. + * Sms received event + * @alias module:model/SmsReceivedEvent + */ + constructor() { + + SmsReceivedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SmsReceivedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SmsReceivedEvent} obj Optional instance to populate. + * @return {module:model/SmsReceivedEvent} The populated SmsReceivedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SmsReceivedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('SmsInfo')) { + obj['SmsInfo'] = SmsInfo.constructFromObject(data['SmsInfo']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +SmsReceivedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +SmsReceivedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/SmsInfo} SmsInfo + */ +SmsReceivedEvent.prototype['SmsInfo'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +SmsReceivedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +SmsReceivedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +SmsReceivedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +SmsReceivedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +SmsReceivedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +SmsReceivedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default SmsReceivedEvent; + diff --git a/src/model/StatisticsCurrencyDataPoint.js b/src/model/StatisticsCurrencyDataPoint.js new file mode 100644 index 00000000..82eda76d --- /dev/null +++ b/src/model/StatisticsCurrencyDataPoint.js @@ -0,0 +1,787 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StatisticsCurrencyDataPoint model module. + * @module model/StatisticsCurrencyDataPoint + * @version 1.0.0 + */ +class StatisticsCurrencyDataPoint { + /** + * Constructs a new StatisticsCurrencyDataPoint. + * A single currency data point, with no date + * @alias module:model/StatisticsCurrencyDataPoint + */ + constructor() { + + StatisticsCurrencyDataPoint.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StatisticsCurrencyDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StatisticsCurrencyDataPoint} obj Optional instance to populate. + * @return {module:model/StatisticsCurrencyDataPoint} The populated StatisticsCurrencyDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StatisticsCurrencyDataPoint(); + + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('UserCount')) { + obj['UserCount'] = ApiClient.convertToType(data['UserCount'], 'Number'); + } + if (data.hasOwnProperty('OrderCount')) { + obj['OrderCount'] = ApiClient.convertToType(data['OrderCount'], 'Number'); + } + if (data.hasOwnProperty('OrderValue')) { + obj['OrderValue'] = ApiClient.convertToType(data['OrderValue'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Currency + * @member {module:model/StatisticsCurrencyDataPoint.CurrencyEnum} Currency + */ +StatisticsCurrencyDataPoint.prototype['Currency'] = undefined; + +/** + * Amount of users for this currency + * @member {Number} UserCount + */ +StatisticsCurrencyDataPoint.prototype['UserCount'] = undefined; + +/** + * Amount of orders for this currency + * @member {Number} OrderCount + */ +StatisticsCurrencyDataPoint.prototype['OrderCount'] = undefined; + +/** + * Value of orders for this currency + * @member {Number} OrderValue + */ +StatisticsCurrencyDataPoint.prototype['OrderValue'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +StatisticsCurrencyDataPoint['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default StatisticsCurrencyDataPoint; + diff --git a/src/model/Store.js b/src/model/Store.js new file mode 100644 index 00000000..e07f5e8e --- /dev/null +++ b/src/model/Store.js @@ -0,0 +1,1309 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursPeriod from './BusinessHoursPeriod'; +import DeliveryZone from './DeliveryZone'; +import StoreAddress from './StoreAddress'; +import StoreNote from './StoreNote'; + +/** + * The Store model module. + * @module model/Store + * @version 1.0.0 + */ +class Store { + /** + * Constructs a new Store. + * Store + * @alias module:model/Store + */ + constructor() { + + Store.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Store from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Store} obj Optional instance to populate. + * @return {module:model/Store} The populated Store instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Store(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('Address')) { + obj['Address'] = StoreAddress.constructFromObject(data['Address']); + } + if (data.hasOwnProperty('DeliveryZones')) { + obj['DeliveryZones'] = ApiClient.convertToType(data['DeliveryZones'], [DeliveryZone]); + } + if (data.hasOwnProperty('ApmPhoneNumber')) { + obj['ApmPhoneNumber'] = ApiClient.convertToType(data['ApmPhoneNumber'], 'String'); + } + if (data.hasOwnProperty('PickupHours')) { + obj['PickupHours'] = ApiClient.convertToType(data['PickupHours'], [BusinessHoursPeriod]); + } + if (data.hasOwnProperty('DeliveryHours')) { + obj['DeliveryHours'] = ApiClient.convertToType(data['DeliveryHours'], [BusinessHoursPeriod]); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('OrderConfirmationMessageOverrideDelivery')) { + obj['OrderConfirmationMessageOverrideDelivery'] = ApiClient.convertToType(data['OrderConfirmationMessageOverrideDelivery'], 'String'); + } + if (data.hasOwnProperty('OrderConfirmationMessageOverridePickup')) { + obj['OrderConfirmationMessageOverridePickup'] = ApiClient.convertToType(data['OrderConfirmationMessageOverridePickup'], 'String'); + } + if (data.hasOwnProperty('PrintoutLayoutType')) { + obj['PrintoutLayoutType'] = ApiClient.convertToType(data['PrintoutLayoutType'], 'String'); + } + if (data.hasOwnProperty('StoreNotes')) { + obj['StoreNotes'] = ApiClient.convertToType(data['StoreNotes'], [StoreNote]); + } + if (data.hasOwnProperty('MicrosoftTimeZone')) { + obj['MicrosoftTimeZone'] = ApiClient.convertToType(data['MicrosoftTimeZone'], 'String'); + } + if (data.hasOwnProperty('IanaTimeZone')) { + obj['IanaTimeZone'] = ApiClient.convertToType(data['IanaTimeZone'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('PreOrderDeliveryEnabled')) { + obj['PreOrderDeliveryEnabled'] = ApiClient.convertToType(data['PreOrderDeliveryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('PreOrderPickupEnabled')) { + obj['PreOrderPickupEnabled'] = ApiClient.convertToType(data['PreOrderPickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('LogoUrl')) { + obj['LogoUrl'] = ApiClient.convertToType(data['LogoUrl'], 'String'); + } + if (data.hasOwnProperty('FraudPreventionStrategy')) { + obj['FraudPreventionStrategy'] = ApiClient.convertToType(data['FraudPreventionStrategy'], 'String'); + } + if (data.hasOwnProperty('AppIds')) { + obj['AppIds'] = ApiClient.convertToType(data['AppIds'], ['String']); + } + if (data.hasOwnProperty('PropertyId')) { + obj['PropertyId'] = ApiClient.convertToType(data['PropertyId'], 'String'); + } + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('AlwaysAppearOpen')) { + obj['AlwaysAppearOpen'] = ApiClient.convertToType(data['AlwaysAppearOpen'], 'Boolean'); + } + if (data.hasOwnProperty('PreOrderEnabled')) { + obj['PreOrderEnabled'] = ApiClient.convertToType(data['PreOrderEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TakeOutEnabled')) { + obj['TakeOutEnabled'] = ApiClient.convertToType(data['TakeOutEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TableServiceEnabled')) { + obj['TableServiceEnabled'] = ApiClient.convertToType(data['TableServiceEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('DineInEnabled')) { + obj['DineInEnabled'] = ApiClient.convertToType(data['DineInEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AllowPreOrdersAndTableService')) { + obj['AllowPreOrdersAndTableService'] = ApiClient.convertToType(data['AllowPreOrdersAndTableService'], 'Boolean'); + } + if (data.hasOwnProperty('PickupEnabled')) { + obj['PickupEnabled'] = ApiClient.convertToType(data['PickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('DeliveryEnabled')) { + obj['DeliveryEnabled'] = ApiClient.convertToType(data['DeliveryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CardOrderDeliveryEnabled')) { + obj['CardOrderDeliveryEnabled'] = ApiClient.convertToType(data['CardOrderDeliveryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CashOrdersDeliveryEnabled')) { + obj['CashOrdersDeliveryEnabled'] = ApiClient.convertToType(data['CashOrdersDeliveryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CardOrdersPickupEnabled')) { + obj['CardOrdersPickupEnabled'] = ApiClient.convertToType(data['CardOrdersPickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CashOrdersPickupEnabled')) { + obj['CashOrdersPickupEnabled'] = ApiClient.convertToType(data['CashOrdersPickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TipsEnabled')) { + obj['TipsEnabled'] = ApiClient.convertToType(data['TipsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AutomaticallyAcceptOrders')) { + obj['AutomaticallyAcceptOrders'] = ApiClient.convertToType(data['AutomaticallyAcceptOrders'], 'Boolean'); + } + if (data.hasOwnProperty('OpenForDelivery')) { + obj['OpenForDelivery'] = ApiClient.convertToType(data['OpenForDelivery'], 'Boolean'); + } + if (data.hasOwnProperty('OpenForPickup')) { + obj['OpenForPickup'] = ApiClient.convertToType(data['OpenForPickup'], 'Boolean'); + } + if (data.hasOwnProperty('MinimumPickupOrderAmount')) { + obj['MinimumPickupOrderAmount'] = ApiClient.convertToType(data['MinimumPickupOrderAmount'], 'Number'); + } + if (data.hasOwnProperty('RequireCustomerNameForPickup')) { + obj['RequireCustomerNameForPickup'] = ApiClient.convertToType(data['RequireCustomerNameForPickup'], 'Boolean'); + } + if (data.hasOwnProperty('GdprCustomerPhoneNumbers')) { + obj['GdprCustomerPhoneNumbers'] = ApiClient.convertToType(data['GdprCustomerPhoneNumbers'], 'Boolean'); + } + if (data.hasOwnProperty('RequireCustomerNameForDelivery')) { + obj['RequireCustomerNameForDelivery'] = ApiClient.convertToType(data['RequireCustomerNameForDelivery'], 'Boolean'); + } + if (data.hasOwnProperty('AllowChefNotes')) { + obj['AllowChefNotes'] = ApiClient.convertToType(data['AllowChefNotes'], 'Boolean'); + } + if (data.hasOwnProperty('EtaInPickupConfirmationSmsEnabled')) { + obj['EtaInPickupConfirmationSmsEnabled'] = ApiClient.convertToType(data['EtaInPickupConfirmationSmsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('EtaInDeliveryConfirmationSmsEnabled')) { + obj['EtaInDeliveryConfirmationSmsEnabled'] = ApiClient.convertToType(data['EtaInDeliveryConfirmationSmsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsArchived')) { + obj['IsArchived'] = ApiClient.convertToType(data['IsArchived'], 'Boolean'); + } + if (data.hasOwnProperty('IsPublished')) { + obj['IsPublished'] = ApiClient.convertToType(data['IsPublished'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('EmailAddress')) { + obj['EmailAddress'] = ApiClient.convertToType(data['EmailAddress'], 'String'); + } + if (data.hasOwnProperty('StaffLanguage')) { + obj['StaffLanguage'] = ApiClient.convertToType(data['StaffLanguage'], 'String'); + } + if (data.hasOwnProperty('SalesChannelTypes')) { + obj['SalesChannelTypes'] = ApiClient.convertToType(data['SalesChannelTypes'], ['String']); + } + if (data.hasOwnProperty('InheritanceConfigTypes')) { + obj['InheritanceConfigTypes'] = ApiClient.convertToType(data['InheritanceConfigTypes'], ['String']); + } + } + return obj; + } + + +} + +/** + * Store identifier + * @member {Number} StoreId + */ +Store.prototype['StoreId'] = undefined; + +/** + * Store group id to which this store belongs + * @member {Number} StoreGroupId + */ +Store.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/StoreAddress} Address + */ +Store.prototype['Address'] = undefined; + +/** + * Delivery zones + * @member {Array.} DeliveryZones + */ +Store.prototype['DeliveryZones'] = undefined; + +/** + * Automated Phone Marketing number + * @member {String} ApmPhoneNumber + */ +Store.prototype['ApmPhoneNumber'] = undefined; + +/** + * Pickup hours + * @member {Array.} PickupHours + */ +Store.prototype['PickupHours'] = undefined; + +/** + * Delivery hours + * @member {Array.} DeliveryHours + */ +Store.prototype['DeliveryHours'] = undefined; + +/** + * Menu identifier + * @member {Number} MenuId + */ +Store.prototype['MenuId'] = undefined; + +/** + * Overridden confirmation message for delivery orders + * @member {String} OrderConfirmationMessageOverrideDelivery + */ +Store.prototype['OrderConfirmationMessageOverrideDelivery'] = undefined; + +/** + * Overridden confirmation message for pickup orders + * @member {String} OrderConfirmationMessageOverridePickup + */ +Store.prototype['OrderConfirmationMessageOverridePickup'] = undefined; + +/** + * Printout layout + * @member {module:model/Store.PrintoutLayoutTypeEnum} PrintoutLayoutType + */ +Store.prototype['PrintoutLayoutType'] = undefined; + +/** + * Store notes + * @member {Array.} StoreNotes + */ +Store.prototype['StoreNotes'] = undefined; + +/** + * Microsoft Time Zone Index Values (https://msdn.microsoft.com/en-us/library/ms912391) (Editable through store coordinate change) + * @member {String} MicrosoftTimeZone + */ +Store.prototype['MicrosoftTimeZone'] = undefined; + +/** + * IANA Time Zone (https://www.iana.org/time-zones) (Editable through store coordinate change) + * @member {String} IanaTimeZone + */ +Store.prototype['IanaTimeZone'] = undefined; + +/** + * Currency (derived from Store Group) + * @member {module:model/Store.CurrencyEnum} Currency + */ +Store.prototype['Currency'] = undefined; + +/** + * Is PerOrder Enabled for Delivery + * @member {Boolean} PreOrderDeliveryEnabled + */ +Store.prototype['PreOrderDeliveryEnabled'] = undefined; + +/** + * Is PerOrder Enabled for Pickup + * @member {Boolean} PreOrderPickupEnabled + */ +Store.prototype['PreOrderPickupEnabled'] = undefined; + +/** + * Url for logo image + * @member {String} LogoUrl + */ +Store.prototype['LogoUrl'] = undefined; + +/** + * Fraud Prevention Strategy + * @member {String} FraudPreventionStrategy + */ +Store.prototype['FraudPreventionStrategy'] = undefined; + +/** + * Store's app ids + * @member {Array.} AppIds + */ +Store.prototype['AppIds'] = undefined; + +/** + * Property Id + * @member {String} PropertyId + */ +Store.prototype['PropertyId'] = undefined; + +/** + * Phone number + * @member {String} PhoneNumber + */ +Store.prototype['PhoneNumber'] = undefined; + +/** + * True if the store always appears open + * @member {Boolean} AlwaysAppearOpen + */ +Store.prototype['AlwaysAppearOpen'] = undefined; + +/** + * True if the store accepts pre-orders + * @member {Boolean} PreOrderEnabled + */ +Store.prototype['PreOrderEnabled'] = undefined; + +/** + * True if the store accepts take-out orders + * @member {Boolean} TakeOutEnabled + */ +Store.prototype['TakeOutEnabled'] = undefined; + +/** + * True if the store has table service + * @member {Boolean} TableServiceEnabled + */ +Store.prototype['TableServiceEnabled'] = undefined; + +/** + * True if the store accepts dine-in orders + * @member {Boolean} DineInEnabled + */ +Store.prototype['DineInEnabled'] = undefined; + +/** + * True if both pre-orders and talbe service can be enabled + * @member {Boolean} AllowPreOrdersAndTableService + */ +Store.prototype['AllowPreOrdersAndTableService'] = undefined; + +/** + * True if the store accepts pickup orders + * @member {Boolean} PickupEnabled + */ +Store.prototype['PickupEnabled'] = undefined; + +/** + * True if the store accepts delivery orders + * @member {Boolean} DeliveryEnabled + */ +Store.prototype['DeliveryEnabled'] = undefined; + +/** + * True if the store accepts card payment for delivery orders + * @member {Boolean} CardOrderDeliveryEnabled + */ +Store.prototype['CardOrderDeliveryEnabled'] = undefined; + +/** + * True if the store accepts cash payment for delivery orders + * @member {Boolean} CashOrdersDeliveryEnabled + */ +Store.prototype['CashOrdersDeliveryEnabled'] = undefined; + +/** + * True if the store accepts card payment for pickup orders + * @member {Boolean} CardOrdersPickupEnabled + */ +Store.prototype['CardOrdersPickupEnabled'] = undefined; + +/** + * True if the store accepts cash payment for pickup orders + * @member {Boolean} CashOrdersPickupEnabled + */ +Store.prototype['CashOrdersPickupEnabled'] = undefined; + +/** + * True if the store accepts tips + * @member {Boolean} TipsEnabled + */ +Store.prototype['TipsEnabled'] = undefined; + +/** + * True if the stores orders are automatically accepted in Flipdish + * @member {Boolean} AutomaticallyAcceptOrders + */ +Store.prototype['AutomaticallyAcceptOrders'] = undefined; + +/** + * True if the store is open for delivery + * @member {Boolean} OpenForDelivery + */ +Store.prototype['OpenForDelivery'] = undefined; + +/** + * True if the store is open for pickup + * @member {Boolean} OpenForPickup + */ +Store.prototype['OpenForPickup'] = undefined; + +/** + * Minimum pickup order amount + * @member {Number} MinimumPickupOrderAmount + */ +Store.prototype['MinimumPickupOrderAmount'] = undefined; + +/** + * True if customer name required for pickup orders + * @member {Boolean} RequireCustomerNameForPickup + */ +Store.prototype['RequireCustomerNameForPickup'] = undefined; + +/** + * Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. + * @member {Boolean} GdprCustomerPhoneNumbers + */ +Store.prototype['GdprCustomerPhoneNumbers'] = undefined; + +/** + * True if customer name required for delivery orders + * @member {Boolean} RequireCustomerNameForDelivery + */ +Store.prototype['RequireCustomerNameForDelivery'] = undefined; + +/** + * True if the customer is allowed enter custom notes with their orders + * @member {Boolean} AllowChefNotes + */ +Store.prototype['AllowChefNotes'] = undefined; + +/** + * True if order confirmation sms includes estimated time when order will be ready for collection + * @member {Boolean} EtaInPickupConfirmationSmsEnabled + */ +Store.prototype['EtaInPickupConfirmationSmsEnabled'] = undefined; + +/** + * True if order confirmation sms includes estimated time when order will delivered + * @member {Boolean} EtaInDeliveryConfirmationSmsEnabled + */ +Store.prototype['EtaInDeliveryConfirmationSmsEnabled'] = undefined; + +/** + * Is the Store Archived + * @member {Boolean} IsArchived + */ +Store.prototype['IsArchived'] = undefined; + +/** + * Is the Store Published + * @member {Boolean} IsPublished + */ +Store.prototype['IsPublished'] = undefined; + +/** + * Name + * @member {String} Name + */ +Store.prototype['Name'] = undefined; + +/** + * Email address (visible to customers) + * @member {String} EmailAddress + */ +Store.prototype['EmailAddress'] = undefined; + +/** + * Staff Language (used for communication with the staff) Emails, Printouts etc + * @member {String} StaffLanguage + */ +Store.prototype['StaffLanguage'] = undefined; + +/** + * Sales Channel Types + * @member {Array.} SalesChannelTypes + */ +Store.prototype['SalesChannelTypes'] = undefined; + +/** + * Inheritance Config Types + * @member {Array.} InheritanceConfigTypes + */ +Store.prototype['InheritanceConfigTypes'] = undefined; + + + + + +/** + * Allowed values for the PrintoutLayoutType property. + * @enum {String} + * @readonly + */ +Store['PrintoutLayoutTypeEnum'] = { + + /** + * value: "Default" + * @const + */ + "Default": "Default", + + /** + * value: "Centra" + * @const + */ + "Centra": "Centra", + + /** + * value: "SmallChefNotes" + * @const + */ + "SmallChefNotes": "SmallChefNotes", + + /** + * value: "SmallChefNotesAndCentra" + * @const + */ + "SmallChefNotesAndCentra": "SmallChefNotesAndCentra" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +Store['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the SalesChannelTypes property. + * @enum {String} + * @readonly + */ +Store['SalesChannelTypesEnum'] = { + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "App" + * @const + */ + "App": "App", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "None" + * @const + */ + "None": "None" +}; + + +/** + * Allowed values for the InheritanceConfigTypes property. + * @enum {String} + * @readonly + */ +Store['InheritanceConfigTypesEnum'] = { + + /** + * value: "CollectionSettings" + * @const + */ + "CollectionSettings": "CollectionSettings" +}; + + + +export default Store; + diff --git a/src/model/StoreAddress.js b/src/model/StoreAddress.js new file mode 100644 index 00000000..d79166b0 --- /dev/null +++ b/src/model/StoreAddress.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Coordinates from './Coordinates'; + +/** + * The StoreAddress model module. + * @module model/StoreAddress + * @version 1.0.0 + */ +class StoreAddress { + /** + * Constructs a new StoreAddress. + * Store address + * @alias module:model/StoreAddress + */ + constructor() { + + StoreAddress.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreAddress from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreAddress} obj Optional instance to populate. + * @return {module:model/StoreAddress} The populated StoreAddress instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreAddress(); + + if (data.hasOwnProperty('AddressId')) { + obj['AddressId'] = ApiClient.convertToType(data['AddressId'], 'Number'); + } + if (data.hasOwnProperty('Coordinates')) { + obj['Coordinates'] = Coordinates.constructFromObject(data['Coordinates']); + } + if (data.hasOwnProperty('Line1')) { + obj['Line1'] = ApiClient.convertToType(data['Line1'], 'String'); + } + if (data.hasOwnProperty('Postcode')) { + obj['Postcode'] = ApiClient.convertToType(data['Postcode'], 'String'); + } + if (data.hasOwnProperty('City')) { + obj['City'] = ApiClient.convertToType(data['City'], 'String'); + } + if (data.hasOwnProperty('CountryCode')) { + obj['CountryCode'] = ApiClient.convertToType(data['CountryCode'], 'String'); + } + if (data.hasOwnProperty('DisplayForCustomer')) { + obj['DisplayForCustomer'] = ApiClient.convertToType(data['DisplayForCustomer'], 'String'); + } + if (data.hasOwnProperty('AddressFields')) { + obj['AddressFields'] = ApiClient.convertToType(data['AddressFields'], {'String': Object}); + } + if (data.hasOwnProperty('SingleLineDisplay')) { + obj['SingleLineDisplay'] = ApiClient.convertToType(data['SingleLineDisplay'], 'String'); + } + if (data.hasOwnProperty('TwoLinesDisplay')) { + obj['TwoLinesDisplay'] = ApiClient.convertToType(data['TwoLinesDisplay'], ['String']); + } + } + return obj; + } + + +} + +/** + * Address identifier + * @member {Number} AddressId + */ +StoreAddress.prototype['AddressId'] = undefined; + +/** + * @member {module:model/Coordinates} Coordinates + */ +StoreAddress.prototype['Coordinates'] = undefined; + +/** + * Address line 1 + * @member {String} Line1 + */ +StoreAddress.prototype['Line1'] = undefined; + +/** + * Postcode + * @member {String} Postcode + */ +StoreAddress.prototype['Postcode'] = undefined; + +/** + * City + * @member {String} City + */ +StoreAddress.prototype['City'] = undefined; + +/** + * Country code (ISO-alpha2) + * @member {String} CountryCode + */ +StoreAddress.prototype['CountryCode'] = undefined; + +/** + * Display for customer + * @member {String} DisplayForCustomer + */ +StoreAddress.prototype['DisplayForCustomer'] = undefined; + +/** + * Dyanmic field/value pairs, defined by the form assigned to the given country code. + * @member {Object.} AddressFields + */ +StoreAddress.prototype['AddressFields'] = undefined; + +/** + * Single line display i18n, may be empty for not supported countries + * @member {String} SingleLineDisplay + */ +StoreAddress.prototype['SingleLineDisplay'] = undefined; + +/** + * Two line display i18n, may be empty for not supported countries + * @member {Array.} TwoLinesDisplay + */ +StoreAddress.prototype['TwoLinesDisplay'] = undefined; + + + + + + +export default StoreAddress; + diff --git a/src/model/StoreAddressBase.js b/src/model/StoreAddressBase.js new file mode 100644 index 00000000..bacefb54 --- /dev/null +++ b/src/model/StoreAddressBase.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreAddressBase model module. + * @module model/StoreAddressBase + * @version 1.0.0 + */ +class StoreAddressBase { + /** + * Constructs a new StoreAddressBase. + * Store address base + * @alias module:model/StoreAddressBase + */ + constructor() { + + StoreAddressBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreAddressBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreAddressBase} obj Optional instance to populate. + * @return {module:model/StoreAddressBase} The populated StoreAddressBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreAddressBase(); + + if (data.hasOwnProperty('Line1')) { + obj['Line1'] = ApiClient.convertToType(data['Line1'], 'String'); + } + if (data.hasOwnProperty('Postcode')) { + obj['Postcode'] = ApiClient.convertToType(data['Postcode'], 'String'); + } + if (data.hasOwnProperty('City')) { + obj['City'] = ApiClient.convertToType(data['City'], 'String'); + } + if (data.hasOwnProperty('CountryCode')) { + obj['CountryCode'] = ApiClient.convertToType(data['CountryCode'], 'String'); + } + if (data.hasOwnProperty('DisplayForCustomer')) { + obj['DisplayForCustomer'] = ApiClient.convertToType(data['DisplayForCustomer'], 'String'); + } + if (data.hasOwnProperty('AddressFields')) { + obj['AddressFields'] = ApiClient.convertToType(data['AddressFields'], {'String': Object}); + } + if (data.hasOwnProperty('SingleLineDisplay')) { + obj['SingleLineDisplay'] = ApiClient.convertToType(data['SingleLineDisplay'], 'String'); + } + if (data.hasOwnProperty('TwoLinesDisplay')) { + obj['TwoLinesDisplay'] = ApiClient.convertToType(data['TwoLinesDisplay'], ['String']); + } + } + return obj; + } + + +} + +/** + * Address line 1 + * @member {String} Line1 + */ +StoreAddressBase.prototype['Line1'] = undefined; + +/** + * Postcode + * @member {String} Postcode + */ +StoreAddressBase.prototype['Postcode'] = undefined; + +/** + * City + * @member {String} City + */ +StoreAddressBase.prototype['City'] = undefined; + +/** + * Country code (ISO-alpha2) + * @member {String} CountryCode + */ +StoreAddressBase.prototype['CountryCode'] = undefined; + +/** + * Display for customer + * @member {String} DisplayForCustomer + */ +StoreAddressBase.prototype['DisplayForCustomer'] = undefined; + +/** + * Dyanmic field/value pairs, defined by the form assigned to the given country code. + * @member {Object.} AddressFields + */ +StoreAddressBase.prototype['AddressFields'] = undefined; + +/** + * Single line display i18n, may be empty for not supported countries + * @member {String} SingleLineDisplay + */ +StoreAddressBase.prototype['SingleLineDisplay'] = undefined; + +/** + * Two line display i18n, may be empty for not supported countries + * @member {Array.} TwoLinesDisplay + */ +StoreAddressBase.prototype['TwoLinesDisplay'] = undefined; + + + + + + +export default StoreAddressBase; + diff --git a/src/model/StoreAddressForm.js b/src/model/StoreAddressForm.js new file mode 100644 index 00000000..cbe48816 --- /dev/null +++ b/src/model/StoreAddressForm.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreAddressForm model module. + * @module model/StoreAddressForm + * @version 1.0.0 + */ +class StoreAddressForm { + /** + * Constructs a new StoreAddressForm. + * Address form payload. + * @alias module:model/StoreAddressForm + * @param AddressFields {Object.} The dynamic fields generated by the address form. + * @param CountryCode {String} ISO 2 letters code for the country, should be the same as the form that generates the fields. + */ + constructor(AddressFields, CountryCode) { + + StoreAddressForm.initialize(this, AddressFields, CountryCode); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, AddressFields, CountryCode) { + obj['AddressFields'] = AddressFields; + obj['CountryCode'] = CountryCode; + } + + /** + * Constructs a StoreAddressForm from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreAddressForm} obj Optional instance to populate. + * @return {module:model/StoreAddressForm} The populated StoreAddressForm instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreAddressForm(); + + if (data.hasOwnProperty('AddressFields')) { + obj['AddressFields'] = ApiClient.convertToType(data['AddressFields'], {'String': Object}); + } + if (data.hasOwnProperty('CountryCode')) { + obj['CountryCode'] = ApiClient.convertToType(data['CountryCode'], 'String'); + } + } + return obj; + } + + +} + +/** + * The dynamic fields generated by the address form. + * @member {Object.} AddressFields + */ +StoreAddressForm.prototype['AddressFields'] = undefined; + +/** + * ISO 2 letters code for the country, should be the same as the form that generates the fields. + * @member {String} CountryCode + */ +StoreAddressForm.prototype['CountryCode'] = undefined; + + + + + + +export default StoreAddressForm; + diff --git a/src/model/StoreAddressUpdatedEvent.js b/src/model/StoreAddressUpdatedEvent.js new file mode 100644 index 00000000..875c5095 --- /dev/null +++ b/src/model/StoreAddressUpdatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreAddress from './StoreAddress'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreAddressUpdatedEvent model module. + * @module model/StoreAddressUpdatedEvent + * @version 1.0.0 + */ +class StoreAddressUpdatedEvent { + /** + * Constructs a new StoreAddressUpdatedEvent. + * Store Address Updated Event + * @alias module:model/StoreAddressUpdatedEvent + */ + constructor() { + + StoreAddressUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreAddressUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreAddressUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreAddressUpdatedEvent} The populated StoreAddressUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreAddressUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreAddress')) { + obj['StoreAddress'] = StoreAddress.constructFromObject(data['StoreAddress']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreAddressUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +StoreAddressUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreAddressUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreAddressUpdatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreAddressUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreAddressUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/StoreAddress} StoreAddress + */ +StoreAddressUpdatedEvent.prototype['StoreAddress'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreAddressUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreAddressUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreAddressUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreAddressUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreAddressUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreAddressUpdatedEvent; + diff --git a/src/model/StoreArchivedEvent.js b/src/model/StoreArchivedEvent.js new file mode 100644 index 00000000..af44c846 --- /dev/null +++ b/src/model/StoreArchivedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreArchivedEvent model module. + * @module model/StoreArchivedEvent + * @version 1.0.0 + */ +class StoreArchivedEvent { + /** + * Constructs a new StoreArchivedEvent. + * Store Archived Event + * @alias module:model/StoreArchivedEvent + */ + constructor() { + + StoreArchivedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreArchivedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreArchivedEvent} obj Optional instance to populate. + * @return {module:model/StoreArchivedEvent} The populated StoreArchivedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreArchivedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Store')) { + obj['Store'] = Store.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreArchivedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreArchivedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreArchivedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreArchivedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreArchivedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Store} Store + */ +StoreArchivedEvent.prototype['Store'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreArchivedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreArchivedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreArchivedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreArchivedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreArchivedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreArchivedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreArchivedEvent; + diff --git a/src/model/StoreBase.js b/src/model/StoreBase.js new file mode 100644 index 00000000..1cc95ea5 --- /dev/null +++ b/src/model/StoreBase.js @@ -0,0 +1,397 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreBase model module. + * @module model/StoreBase + * @version 1.0.0 + */ +class StoreBase { + /** + * Constructs a new StoreBase. + * Store Base + * @alias module:model/StoreBase + */ + constructor() { + + StoreBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreBase} obj Optional instance to populate. + * @return {module:model/StoreBase} The populated StoreBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreBase(); + + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('AlwaysAppearOpen')) { + obj['AlwaysAppearOpen'] = ApiClient.convertToType(data['AlwaysAppearOpen'], 'Boolean'); + } + if (data.hasOwnProperty('PreOrderEnabled')) { + obj['PreOrderEnabled'] = ApiClient.convertToType(data['PreOrderEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TakeOutEnabled')) { + obj['TakeOutEnabled'] = ApiClient.convertToType(data['TakeOutEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TableServiceEnabled')) { + obj['TableServiceEnabled'] = ApiClient.convertToType(data['TableServiceEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('DineInEnabled')) { + obj['DineInEnabled'] = ApiClient.convertToType(data['DineInEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AllowPreOrdersAndTableService')) { + obj['AllowPreOrdersAndTableService'] = ApiClient.convertToType(data['AllowPreOrdersAndTableService'], 'Boolean'); + } + if (data.hasOwnProperty('PickupEnabled')) { + obj['PickupEnabled'] = ApiClient.convertToType(data['PickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('DeliveryEnabled')) { + obj['DeliveryEnabled'] = ApiClient.convertToType(data['DeliveryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CardOrderDeliveryEnabled')) { + obj['CardOrderDeliveryEnabled'] = ApiClient.convertToType(data['CardOrderDeliveryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CashOrdersDeliveryEnabled')) { + obj['CashOrdersDeliveryEnabled'] = ApiClient.convertToType(data['CashOrdersDeliveryEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CardOrdersPickupEnabled')) { + obj['CardOrdersPickupEnabled'] = ApiClient.convertToType(data['CardOrdersPickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('CashOrdersPickupEnabled')) { + obj['CashOrdersPickupEnabled'] = ApiClient.convertToType(data['CashOrdersPickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('TipsEnabled')) { + obj['TipsEnabled'] = ApiClient.convertToType(data['TipsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AutomaticallyAcceptOrders')) { + obj['AutomaticallyAcceptOrders'] = ApiClient.convertToType(data['AutomaticallyAcceptOrders'], 'Boolean'); + } + if (data.hasOwnProperty('OpenForDelivery')) { + obj['OpenForDelivery'] = ApiClient.convertToType(data['OpenForDelivery'], 'Boolean'); + } + if (data.hasOwnProperty('OpenForPickup')) { + obj['OpenForPickup'] = ApiClient.convertToType(data['OpenForPickup'], 'Boolean'); + } + if (data.hasOwnProperty('MinimumPickupOrderAmount')) { + obj['MinimumPickupOrderAmount'] = ApiClient.convertToType(data['MinimumPickupOrderAmount'], 'Number'); + } + if (data.hasOwnProperty('RequireCustomerNameForPickup')) { + obj['RequireCustomerNameForPickup'] = ApiClient.convertToType(data['RequireCustomerNameForPickup'], 'Boolean'); + } + if (data.hasOwnProperty('GdprCustomerPhoneNumbers')) { + obj['GdprCustomerPhoneNumbers'] = ApiClient.convertToType(data['GdprCustomerPhoneNumbers'], 'Boolean'); + } + if (data.hasOwnProperty('RequireCustomerNameForDelivery')) { + obj['RequireCustomerNameForDelivery'] = ApiClient.convertToType(data['RequireCustomerNameForDelivery'], 'Boolean'); + } + if (data.hasOwnProperty('AllowChefNotes')) { + obj['AllowChefNotes'] = ApiClient.convertToType(data['AllowChefNotes'], 'Boolean'); + } + if (data.hasOwnProperty('EtaInPickupConfirmationSmsEnabled')) { + obj['EtaInPickupConfirmationSmsEnabled'] = ApiClient.convertToType(data['EtaInPickupConfirmationSmsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('EtaInDeliveryConfirmationSmsEnabled')) { + obj['EtaInDeliveryConfirmationSmsEnabled'] = ApiClient.convertToType(data['EtaInDeliveryConfirmationSmsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsArchived')) { + obj['IsArchived'] = ApiClient.convertToType(data['IsArchived'], 'Boolean'); + } + if (data.hasOwnProperty('IsPublished')) { + obj['IsPublished'] = ApiClient.convertToType(data['IsPublished'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('EmailAddress')) { + obj['EmailAddress'] = ApiClient.convertToType(data['EmailAddress'], 'String'); + } + if (data.hasOwnProperty('StaffLanguage')) { + obj['StaffLanguage'] = ApiClient.convertToType(data['StaffLanguage'], 'String'); + } + if (data.hasOwnProperty('SalesChannelTypes')) { + obj['SalesChannelTypes'] = ApiClient.convertToType(data['SalesChannelTypes'], ['String']); + } + if (data.hasOwnProperty('InheritanceConfigTypes')) { + obj['InheritanceConfigTypes'] = ApiClient.convertToType(data['InheritanceConfigTypes'], ['String']); + } + } + return obj; + } + + +} + +/** + * Phone number + * @member {String} PhoneNumber + */ +StoreBase.prototype['PhoneNumber'] = undefined; + +/** + * True if the store always appears open + * @member {Boolean} AlwaysAppearOpen + */ +StoreBase.prototype['AlwaysAppearOpen'] = undefined; + +/** + * True if the store accepts pre-orders + * @member {Boolean} PreOrderEnabled + */ +StoreBase.prototype['PreOrderEnabled'] = undefined; + +/** + * True if the store accepts take-out orders + * @member {Boolean} TakeOutEnabled + */ +StoreBase.prototype['TakeOutEnabled'] = undefined; + +/** + * True if the store has table service + * @member {Boolean} TableServiceEnabled + */ +StoreBase.prototype['TableServiceEnabled'] = undefined; + +/** + * True if the store accepts dine-in orders + * @member {Boolean} DineInEnabled + */ +StoreBase.prototype['DineInEnabled'] = undefined; + +/** + * True if both pre-orders and talbe service can be enabled + * @member {Boolean} AllowPreOrdersAndTableService + */ +StoreBase.prototype['AllowPreOrdersAndTableService'] = undefined; + +/** + * True if the store accepts pickup orders + * @member {Boolean} PickupEnabled + */ +StoreBase.prototype['PickupEnabled'] = undefined; + +/** + * True if the store accepts delivery orders + * @member {Boolean} DeliveryEnabled + */ +StoreBase.prototype['DeliveryEnabled'] = undefined; + +/** + * True if the store accepts card payment for delivery orders + * @member {Boolean} CardOrderDeliveryEnabled + */ +StoreBase.prototype['CardOrderDeliveryEnabled'] = undefined; + +/** + * True if the store accepts cash payment for delivery orders + * @member {Boolean} CashOrdersDeliveryEnabled + */ +StoreBase.prototype['CashOrdersDeliveryEnabled'] = undefined; + +/** + * True if the store accepts card payment for pickup orders + * @member {Boolean} CardOrdersPickupEnabled + */ +StoreBase.prototype['CardOrdersPickupEnabled'] = undefined; + +/** + * True if the store accepts cash payment for pickup orders + * @member {Boolean} CashOrdersPickupEnabled + */ +StoreBase.prototype['CashOrdersPickupEnabled'] = undefined; + +/** + * True if the store accepts tips + * @member {Boolean} TipsEnabled + */ +StoreBase.prototype['TipsEnabled'] = undefined; + +/** + * True if the stores orders are automatically accepted in Flipdish + * @member {Boolean} AutomaticallyAcceptOrders + */ +StoreBase.prototype['AutomaticallyAcceptOrders'] = undefined; + +/** + * True if the store is open for delivery + * @member {Boolean} OpenForDelivery + */ +StoreBase.prototype['OpenForDelivery'] = undefined; + +/** + * True if the store is open for pickup + * @member {Boolean} OpenForPickup + */ +StoreBase.prototype['OpenForPickup'] = undefined; + +/** + * Minimum pickup order amount + * @member {Number} MinimumPickupOrderAmount + */ +StoreBase.prototype['MinimumPickupOrderAmount'] = undefined; + +/** + * True if customer name required for pickup orders + * @member {Boolean} RequireCustomerNameForPickup + */ +StoreBase.prototype['RequireCustomerNameForPickup'] = undefined; + +/** + * Mask your customers phone numbers printed on receipts and reduce the amout of personally identifiable customer information that is exposed. + * @member {Boolean} GdprCustomerPhoneNumbers + */ +StoreBase.prototype['GdprCustomerPhoneNumbers'] = undefined; + +/** + * True if customer name required for delivery orders + * @member {Boolean} RequireCustomerNameForDelivery + */ +StoreBase.prototype['RequireCustomerNameForDelivery'] = undefined; + +/** + * True if the customer is allowed enter custom notes with their orders + * @member {Boolean} AllowChefNotes + */ +StoreBase.prototype['AllowChefNotes'] = undefined; + +/** + * True if order confirmation sms includes estimated time when order will be ready for collection + * @member {Boolean} EtaInPickupConfirmationSmsEnabled + */ +StoreBase.prototype['EtaInPickupConfirmationSmsEnabled'] = undefined; + +/** + * True if order confirmation sms includes estimated time when order will delivered + * @member {Boolean} EtaInDeliveryConfirmationSmsEnabled + */ +StoreBase.prototype['EtaInDeliveryConfirmationSmsEnabled'] = undefined; + +/** + * Is the Store Archived + * @member {Boolean} IsArchived + */ +StoreBase.prototype['IsArchived'] = undefined; + +/** + * Is the Store Published + * @member {Boolean} IsPublished + */ +StoreBase.prototype['IsPublished'] = undefined; + +/** + * Name + * @member {String} Name + */ +StoreBase.prototype['Name'] = undefined; + +/** + * Email address (visible to customers) + * @member {String} EmailAddress + */ +StoreBase.prototype['EmailAddress'] = undefined; + +/** + * Staff Language (used for communication with the staff) Emails, Printouts etc + * @member {String} StaffLanguage + */ +StoreBase.prototype['StaffLanguage'] = undefined; + +/** + * Sales Channel Types + * @member {Array.} SalesChannelTypes + */ +StoreBase.prototype['SalesChannelTypes'] = undefined; + +/** + * Inheritance Config Types + * @member {Array.} InheritanceConfigTypes + */ +StoreBase.prototype['InheritanceConfigTypes'] = undefined; + + + + + +/** + * Allowed values for the SalesChannelTypes property. + * @enum {String} + * @readonly + */ +StoreBase['SalesChannelTypesEnum'] = { + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "App" + * @const + */ + "App": "App", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "None" + * @const + */ + "None": "None" +}; + + +/** + * Allowed values for the InheritanceConfigTypes property. + * @enum {String} + * @readonly + */ +StoreBase['InheritanceConfigTypesEnum'] = { + + /** + * value: "CollectionSettings" + * @const + */ + "CollectionSettings": "CollectionSettings" +}; + + + +export default StoreBase; + diff --git a/src/model/StoreBusinessHoursOverrideCreatedEvent.js b/src/model/StoreBusinessHoursOverrideCreatedEvent.js new file mode 100644 index 00000000..18dd0de6 --- /dev/null +++ b/src/model/StoreBusinessHoursOverrideCreatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursOverride from './BusinessHoursOverride'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreBusinessHoursOverrideCreatedEvent model module. + * @module model/StoreBusinessHoursOverrideCreatedEvent + * @version 1.0.0 + */ +class StoreBusinessHoursOverrideCreatedEvent { + /** + * Constructs a new StoreBusinessHoursOverrideCreatedEvent. + * Store Business Hours Override Created + * @alias module:model/StoreBusinessHoursOverrideCreatedEvent + */ + constructor() { + + StoreBusinessHoursOverrideCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreBusinessHoursOverrideCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreBusinessHoursOverrideCreatedEvent} obj Optional instance to populate. + * @return {module:model/StoreBusinessHoursOverrideCreatedEvent} The populated StoreBusinessHoursOverrideCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreBusinessHoursOverrideCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('BusinessHoursOverride')) { + obj['BusinessHoursOverride'] = BusinessHoursOverride.constructFromObject(data['BusinessHoursOverride']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/BusinessHoursOverride} BusinessHoursOverride + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['BusinessHoursOverride'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreBusinessHoursOverrideCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreBusinessHoursOverrideCreatedEvent; + diff --git a/src/model/StoreBusinessHoursOverrideDeletedEvent.js b/src/model/StoreBusinessHoursOverrideDeletedEvent.js new file mode 100644 index 00000000..5f6e5572 --- /dev/null +++ b/src/model/StoreBusinessHoursOverrideDeletedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursOverride from './BusinessHoursOverride'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreBusinessHoursOverrideDeletedEvent model module. + * @module model/StoreBusinessHoursOverrideDeletedEvent + * @version 1.0.0 + */ +class StoreBusinessHoursOverrideDeletedEvent { + /** + * Constructs a new StoreBusinessHoursOverrideDeletedEvent. + * Store Business Hours Override Deleted + * @alias module:model/StoreBusinessHoursOverrideDeletedEvent + */ + constructor() { + + StoreBusinessHoursOverrideDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreBusinessHoursOverrideDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreBusinessHoursOverrideDeletedEvent} obj Optional instance to populate. + * @return {module:model/StoreBusinessHoursOverrideDeletedEvent} The populated StoreBusinessHoursOverrideDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreBusinessHoursOverrideDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('BusinessHoursOverride')) { + obj['BusinessHoursOverride'] = BusinessHoursOverride.constructFromObject(data['BusinessHoursOverride']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/BusinessHoursOverride} BusinessHoursOverride + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['BusinessHoursOverride'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreBusinessHoursOverrideDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreBusinessHoursOverrideDeletedEvent; + diff --git a/src/model/StoreCampaignStartTime.js b/src/model/StoreCampaignStartTime.js new file mode 100644 index 00000000..86d70050 --- /dev/null +++ b/src/model/StoreCampaignStartTime.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreCampaignStartTime model module. + * @module model/StoreCampaignStartTime + * @version 1.0.0 + */ +class StoreCampaignStartTime { + /** + * Constructs a new StoreCampaignStartTime. + * Store campaign start time + * @alias module:model/StoreCampaignStartTime + */ + constructor() { + + StoreCampaignStartTime.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreCampaignStartTime from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreCampaignStartTime} obj Optional instance to populate. + * @return {module:model/StoreCampaignStartTime} The populated StoreCampaignStartTime instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreCampaignStartTime(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('TsStart')) { + obj['TsStart'] = ApiClient.convertToType(data['TsStart'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Store Id + * @member {Number} StoreId + */ +StoreCampaignStartTime.prototype['StoreId'] = undefined; + +/** + * Campaign start time in Utc + * @member {Date} TsStart + */ +StoreCampaignStartTime.prototype['TsStart'] = undefined; + + + + + + +export default StoreCampaignStartTime; + diff --git a/src/model/StoreChannelAssignment.js b/src/model/StoreChannelAssignment.js new file mode 100644 index 00000000..09f98015 --- /dev/null +++ b/src/model/StoreChannelAssignment.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreChannelAssignment model module. + * @module model/StoreChannelAssignment + * @version 1.0.0 + */ +class StoreChannelAssignment { + /** + * Constructs a new StoreChannelAssignment. + * Represents a store that is assigned to a Sales Channel + * @alias module:model/StoreChannelAssignment + */ + constructor() { + + StoreChannelAssignment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreChannelAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreChannelAssignment} obj Optional instance to populate. + * @return {module:model/StoreChannelAssignment} The populated StoreChannelAssignment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreChannelAssignment(); + + if (data.hasOwnProperty('ChannelId')) { + obj['ChannelId'] = ApiClient.convertToType(data['ChannelId'], 'Number'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Channel ID + * @member {Number} ChannelId + */ +StoreChannelAssignment.prototype['ChannelId'] = undefined; + +/** + * Store ID + * @member {Number} StoreId + */ +StoreChannelAssignment.prototype['StoreId'] = undefined; + +/** + * Store Name + * @member {String} StoreName + */ +StoreChannelAssignment.prototype['StoreName'] = undefined; + + + + + + +export default StoreChannelAssignment; + diff --git a/src/model/StoreCloneSettings.js b/src/model/StoreCloneSettings.js new file mode 100644 index 00000000..18c6add1 --- /dev/null +++ b/src/model/StoreCloneSettings.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreCloneSettings model module. + * @module model/StoreCloneSettings + * @version 1.0.0 + */ +class StoreCloneSettings { + /** + * Constructs a new StoreCloneSettings. + * Settings for cloning a store + * @alias module:model/StoreCloneSettings + */ + constructor() { + + StoreCloneSettings.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreCloneSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreCloneSettings} obj Optional instance to populate. + * @return {module:model/StoreCloneSettings} The populated StoreCloneSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreCloneSettings(); + + if (data.hasOwnProperty('TargetStoreGroupId')) { + obj['TargetStoreGroupId'] = ApiClient.convertToType(data['TargetStoreGroupId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * If specified will clone to a specific store group, otherwise will clone to the store group of the Store which is being cloned + * @member {Number} TargetStoreGroupId + */ +StoreCloneSettings.prototype['TargetStoreGroupId'] = undefined; + + + + + + +export default StoreCloneSettings; + diff --git a/src/model/StoreCollectionSettings.js b/src/model/StoreCollectionSettings.js new file mode 100644 index 00000000..a31132f0 --- /dev/null +++ b/src/model/StoreCollectionSettings.js @@ -0,0 +1,130 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreCollectionSettings model module. + * @module model/StoreCollectionSettings + * @version 1.0.0 + */ +class StoreCollectionSettings { + /** + * Constructs a new StoreCollectionSettings. + * Store Collection Settings + * @alias module:model/StoreCollectionSettings + * @param PickupEnabled {Boolean} True if the store accepts pickup orders + * @param MinimumPickupOrderAmount {Number} Minimum pickup order amount + * @param RequireCustomerNameForPickup {Boolean} True if customer name required for pickup orders + * @param CashOrdersPickupEnabled {Boolean} True if the store accepts cash payment for pickup orders + * @param LeadTimeMinutes {Number} Auto accept lead time for collection orders + * @param EtaInPickupConfirmationSmsEnabled {Boolean} True if order confirmation sms includes estimated time when order will be ready for collection + */ + constructor(PickupEnabled, MinimumPickupOrderAmount, RequireCustomerNameForPickup, CashOrdersPickupEnabled, LeadTimeMinutes, EtaInPickupConfirmationSmsEnabled) { + + StoreCollectionSettings.initialize(this, PickupEnabled, MinimumPickupOrderAmount, RequireCustomerNameForPickup, CashOrdersPickupEnabled, LeadTimeMinutes, EtaInPickupConfirmationSmsEnabled); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, PickupEnabled, MinimumPickupOrderAmount, RequireCustomerNameForPickup, CashOrdersPickupEnabled, LeadTimeMinutes, EtaInPickupConfirmationSmsEnabled) { + obj['PickupEnabled'] = PickupEnabled; + obj['MinimumPickupOrderAmount'] = MinimumPickupOrderAmount; + obj['RequireCustomerNameForPickup'] = RequireCustomerNameForPickup; + obj['CashOrdersPickupEnabled'] = CashOrdersPickupEnabled; + obj['LeadTimeMinutes'] = LeadTimeMinutes; + obj['EtaInPickupConfirmationSmsEnabled'] = EtaInPickupConfirmationSmsEnabled; + } + + /** + * Constructs a StoreCollectionSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreCollectionSettings} obj Optional instance to populate. + * @return {module:model/StoreCollectionSettings} The populated StoreCollectionSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreCollectionSettings(); + + if (data.hasOwnProperty('PickupEnabled')) { + obj['PickupEnabled'] = ApiClient.convertToType(data['PickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('MinimumPickupOrderAmount')) { + obj['MinimumPickupOrderAmount'] = ApiClient.convertToType(data['MinimumPickupOrderAmount'], 'Number'); + } + if (data.hasOwnProperty('RequireCustomerNameForPickup')) { + obj['RequireCustomerNameForPickup'] = ApiClient.convertToType(data['RequireCustomerNameForPickup'], 'Boolean'); + } + if (data.hasOwnProperty('CashOrdersPickupEnabled')) { + obj['CashOrdersPickupEnabled'] = ApiClient.convertToType(data['CashOrdersPickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('LeadTimeMinutes')) { + obj['LeadTimeMinutes'] = ApiClient.convertToType(data['LeadTimeMinutes'], 'Number'); + } + if (data.hasOwnProperty('EtaInPickupConfirmationSmsEnabled')) { + obj['EtaInPickupConfirmationSmsEnabled'] = ApiClient.convertToType(data['EtaInPickupConfirmationSmsEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * True if the store accepts pickup orders + * @member {Boolean} PickupEnabled + */ +StoreCollectionSettings.prototype['PickupEnabled'] = undefined; + +/** + * Minimum pickup order amount + * @member {Number} MinimumPickupOrderAmount + */ +StoreCollectionSettings.prototype['MinimumPickupOrderAmount'] = undefined; + +/** + * True if customer name required for pickup orders + * @member {Boolean} RequireCustomerNameForPickup + */ +StoreCollectionSettings.prototype['RequireCustomerNameForPickup'] = undefined; + +/** + * True if the store accepts cash payment for pickup orders + * @member {Boolean} CashOrdersPickupEnabled + */ +StoreCollectionSettings.prototype['CashOrdersPickupEnabled'] = undefined; + +/** + * Auto accept lead time for collection orders + * @member {Number} LeadTimeMinutes + */ +StoreCollectionSettings.prototype['LeadTimeMinutes'] = undefined; + +/** + * True if order confirmation sms includes estimated time when order will be ready for collection + * @member {Boolean} EtaInPickupConfirmationSmsEnabled + */ +StoreCollectionSettings.prototype['EtaInPickupConfirmationSmsEnabled'] = undefined; + + + + + + +export default StoreCollectionSettings; + diff --git a/src/model/StoreConfig.js b/src/model/StoreConfig.js new file mode 100644 index 00000000..8619604d --- /dev/null +++ b/src/model/StoreConfig.js @@ -0,0 +1,117 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreConfig model module. + * @module model/StoreConfig + * @version 1.0.0 + */ +class StoreConfig { + /** + * Constructs a new StoreConfig. + * @alias module:model/StoreConfig + */ + constructor() { + + StoreConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreConfig} obj Optional instance to populate. + * @return {module:model/StoreConfig} The populated StoreConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreConfig(); + + if (data.hasOwnProperty('PickupEnabled')) { + obj['PickupEnabled'] = ApiClient.convertToType(data['PickupEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('BankAccountAttached')) { + obj['BankAccountAttached'] = ApiClient.convertToType(data['BankAccountAttached'], 'Boolean'); + } + if (data.hasOwnProperty('MenuAssigned')) { + obj['MenuAssigned'] = ApiClient.convertToType(data['MenuAssigned'], 'Boolean'); + } + if (data.hasOwnProperty('HasFullAddress')) { + obj['HasFullAddress'] = ApiClient.convertToType(data['HasFullAddress'], 'Boolean'); + } + if (data.hasOwnProperty('PickupHours')) { + obj['PickupHours'] = ApiClient.convertToType(data['PickupHours'], 'Boolean'); + } + if (data.hasOwnProperty('IsPublished')) { + obj['IsPublished'] = ApiClient.convertToType(data['IsPublished'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * True if the store accepts pickup orders + * @member {Boolean} PickupEnabled + */ +StoreConfig.prototype['PickupEnabled'] = undefined; + +/** + * True if the store has a Bank Account attached + * @member {Boolean} BankAccountAttached + */ +StoreConfig.prototype['BankAccountAttached'] = undefined; + +/** + * True if the store is assigned to a Menu + * @member {Boolean} MenuAssigned + */ +StoreConfig.prototype['MenuAssigned'] = undefined; + +/** + * True if the store has a valid Address + * @member {Boolean} HasFullAddress + */ +StoreConfig.prototype['HasFullAddress'] = undefined; + +/** + * True if the store has Pickup hours + * @member {Boolean} PickupHours + */ +StoreConfig.prototype['PickupHours'] = undefined; + +/** + * Is the Store Published + * @member {Boolean} IsPublished + */ +StoreConfig.prototype['IsPublished'] = undefined; + + + + + + +export default StoreConfig; + diff --git a/src/model/StoreCreateBase.js b/src/model/StoreCreateBase.js new file mode 100644 index 00000000..c439b212 --- /dev/null +++ b/src/model/StoreCreateBase.js @@ -0,0 +1,148 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreCreateBase model module. + * @module model/StoreCreateBase + * @version 1.0.0 + */ +class StoreCreateBase { + /** + * Constructs a new StoreCreateBase. + * Store Create Base + * @alias module:model/StoreCreateBase + */ + constructor() { + + StoreCreateBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreCreateBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreCreateBase} obj Optional instance to populate. + * @return {module:model/StoreCreateBase} The populated StoreCreateBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreCreateBase(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('EmailAddress')) { + obj['EmailAddress'] = ApiClient.convertToType(data['EmailAddress'], 'String'); + } + if (data.hasOwnProperty('StaffLanguage')) { + obj['StaffLanguage'] = ApiClient.convertToType(data['StaffLanguage'], 'String'); + } + if (data.hasOwnProperty('SalesChannelType')) { + obj['SalesChannelType'] = ApiClient.convertToType(data['SalesChannelType'], 'String'); + } + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + } + return obj; + } + + +} + +/** + * Name + * @member {String} Name + */ +StoreCreateBase.prototype['Name'] = undefined; + +/** + * Email address (visible to customers) + * @member {String} EmailAddress + */ +StoreCreateBase.prototype['EmailAddress'] = undefined; + +/** + * Staff Language (used for communication with the staff) Emails, Printouts etc + * @member {String} StaffLanguage + */ +StoreCreateBase.prototype['StaffLanguage'] = undefined; + +/** + * Sales Channel Type + * @member {module:model/StoreCreateBase.SalesChannelTypeEnum} SalesChannelType + */ +StoreCreateBase.prototype['SalesChannelType'] = undefined; + +/** + * Phone Number + * @member {String} PhoneNumber + */ +StoreCreateBase.prototype['PhoneNumber'] = undefined; + + + + + +/** + * Allowed values for the SalesChannelType property. + * @enum {String} + * @readonly + */ +StoreCreateBase['SalesChannelTypeEnum'] = { + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "App" + * @const + */ + "App": "App", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "None" + * @const + */ + "None": "None" +}; + + + +export default StoreCreateBase; + diff --git a/src/model/StoreCreatedEvent.js b/src/model/StoreCreatedEvent.js new file mode 100644 index 00000000..4b1503a2 --- /dev/null +++ b/src/model/StoreCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreCreatedEvent model module. + * @module model/StoreCreatedEvent + * @version 1.0.0 + */ +class StoreCreatedEvent { + /** + * Constructs a new StoreCreatedEvent. + * Store Created Event + * @alias module:model/StoreCreatedEvent + */ + constructor() { + + StoreCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreCreatedEvent} obj Optional instance to populate. + * @return {module:model/StoreCreatedEvent} The populated StoreCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Store')) { + obj['Store'] = Store.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreCreatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +StoreCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreCreatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreCreatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Store} Store + */ +StoreCreatedEvent.prototype['Store'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreCreatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreCreatedEvent; + diff --git a/src/model/StoreDataPoint.js b/src/model/StoreDataPoint.js new file mode 100644 index 00000000..808cfa42 --- /dev/null +++ b/src/model/StoreDataPoint.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreDataPoint model module. + * @module model/StoreDataPoint + * @version 1.0.0 + */ +class StoreDataPoint { + /** + * Constructs a new StoreDataPoint. + * Store Data Point + * @alias module:model/StoreDataPoint + */ + constructor() { + + StoreDataPoint.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreDataPoint} obj Optional instance to populate. + * @return {module:model/StoreDataPoint} The populated StoreDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreDataPoint(); + + if (data.hasOwnProperty('Day')) { + obj['Day'] = ApiClient.convertToType(data['Day'], 'Date'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Day + * @member {Date} Day + */ +StoreDataPoint.prototype['Day'] = undefined; + +/** + * Value for the day + * @member {Number} Value + */ +StoreDataPoint.prototype['Value'] = undefined; + + + + + + +export default StoreDataPoint; + diff --git a/src/model/StoreDeletedEvent.js b/src/model/StoreDeletedEvent.js new file mode 100644 index 00000000..2ed52356 --- /dev/null +++ b/src/model/StoreDeletedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreDeletedEvent model module. + * @module model/StoreDeletedEvent + * @version 1.0.0 + */ +class StoreDeletedEvent { + /** + * Constructs a new StoreDeletedEvent. + * Store Deleted Event + * @alias module:model/StoreDeletedEvent + */ + constructor() { + + StoreDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreDeletedEvent} obj Optional instance to populate. + * @return {module:model/StoreDeletedEvent} The populated StoreDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Store')) { + obj['Store'] = Store.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreDeletedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreDeletedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreDeletedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreDeletedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Store} Store + */ +StoreDeletedEvent.prototype['Store'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreDeletedEvent; + diff --git a/src/model/StoreDeliveryZoneFeeConfig.js b/src/model/StoreDeliveryZoneFeeConfig.js new file mode 100644 index 00000000..a7587159 --- /dev/null +++ b/src/model/StoreDeliveryZoneFeeConfig.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreDeliveryZoneFeeConfig model module. + * @module model/StoreDeliveryZoneFeeConfig + * @version 1.0.0 + */ +class StoreDeliveryZoneFeeConfig { + /** + * Constructs a new StoreDeliveryZoneFeeConfig. + * Store delivery zone fee config + * @alias module:model/StoreDeliveryZoneFeeConfig + */ + constructor() { + + StoreDeliveryZoneFeeConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreDeliveryZoneFeeConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreDeliveryZoneFeeConfig} obj Optional instance to populate. + * @return {module:model/StoreDeliveryZoneFeeConfig} The populated StoreDeliveryZoneFeeConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreDeliveryZoneFeeConfig(); + + if (data.hasOwnProperty('DeliveryZoneId')) { + obj['DeliveryZoneId'] = ApiClient.convertToType(data['DeliveryZoneId'], 'Number'); + } + if (data.hasOwnProperty('Fee')) { + obj['Fee'] = ApiClient.convertToType(data['Fee'], 'Number'); + } + } + return obj; + } + + +} + +/** + * ID of the delivery zone this fee corresponds to + * @member {Number} DeliveryZoneId + */ +StoreDeliveryZoneFeeConfig.prototype['DeliveryZoneId'] = undefined; + +/** + * Fee for delivery within this zone + * @member {Number} Fee + */ +StoreDeliveryZoneFeeConfig.prototype['Fee'] = undefined; + + + + + + +export default StoreDeliveryZoneFeeConfig; + diff --git a/src/model/StoreDeliveryZoneFeeConfigUpdateRequest.js b/src/model/StoreDeliveryZoneFeeConfigUpdateRequest.js new file mode 100644 index 00000000..02494565 --- /dev/null +++ b/src/model/StoreDeliveryZoneFeeConfigUpdateRequest.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreDeliveryZoneFeeConfig from './StoreDeliveryZoneFeeConfig'; + +/** + * The StoreDeliveryZoneFeeConfigUpdateRequest model module. + * @module model/StoreDeliveryZoneFeeConfigUpdateRequest + * @version 1.0.0 + */ +class StoreDeliveryZoneFeeConfigUpdateRequest { + /** + * Constructs a new StoreDeliveryZoneFeeConfigUpdateRequest. + * Request to update store delivery zone fee config + * @alias module:model/StoreDeliveryZoneFeeConfigUpdateRequest + */ + constructor() { + + StoreDeliveryZoneFeeConfigUpdateRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreDeliveryZoneFeeConfigUpdateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreDeliveryZoneFeeConfigUpdateRequest} obj Optional instance to populate. + * @return {module:model/StoreDeliveryZoneFeeConfigUpdateRequest} The populated StoreDeliveryZoneFeeConfigUpdateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreDeliveryZoneFeeConfigUpdateRequest(); + + if (data.hasOwnProperty('DeliveryZoneFees')) { + obj['DeliveryZoneFees'] = ApiClient.convertToType(data['DeliveryZoneFees'], [StoreDeliveryZoneFeeConfig]); + } + } + return obj; + } + + +} + +/** + * Delivery zone fees to update + * @member {Array.} DeliveryZoneFees + */ +StoreDeliveryZoneFeeConfigUpdateRequest.prototype['DeliveryZoneFees'] = undefined; + + + + + + +export default StoreDeliveryZoneFeeConfigUpdateRequest; + diff --git a/src/model/StoreEndOfDayReport.js b/src/model/StoreEndOfDayReport.js new file mode 100644 index 00000000..df43c277 --- /dev/null +++ b/src/model/StoreEndOfDayReport.js @@ -0,0 +1,985 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreEndOfDayReport model module. + * @module model/StoreEndOfDayReport + * @version 1.0.0 + */ +class StoreEndOfDayReport { + /** + * Constructs a new StoreEndOfDayReport. + * Store end of day report + * @alias module:model/StoreEndOfDayReport + */ + constructor() { + + StoreEndOfDayReport.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreEndOfDayReport from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreEndOfDayReport} obj Optional instance to populate. + * @return {module:model/StoreEndOfDayReport} The populated StoreEndOfDayReport instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreEndOfDayReport(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('OrderCount')) { + obj['OrderCount'] = ApiClient.convertToType(data['OrderCount'], 'Number'); + } + if (data.hasOwnProperty('OrderValue')) { + obj['OrderValue'] = ApiClient.convertToType(data['OrderValue'], 'Number'); + } + if (data.hasOwnProperty('OrderValueExcludingDeliveryFees')) { + obj['OrderValueExcludingDeliveryFees'] = ApiClient.convertToType(data['OrderValueExcludingDeliveryFees'], 'Number'); + } + if (data.hasOwnProperty('CollectionOrderCount')) { + obj['CollectionOrderCount'] = ApiClient.convertToType(data['CollectionOrderCount'], 'Number'); + } + if (data.hasOwnProperty('CollectionCashOrderCount')) { + obj['CollectionCashOrderCount'] = ApiClient.convertToType(data['CollectionCashOrderCount'], 'Number'); + } + if (data.hasOwnProperty('CollectionPaidOnlineOrderCount')) { + obj['CollectionPaidOnlineOrderCount'] = ApiClient.convertToType(data['CollectionPaidOnlineOrderCount'], 'Number'); + } + if (data.hasOwnProperty('CollectionOrderValue')) { + obj['CollectionOrderValue'] = ApiClient.convertToType(data['CollectionOrderValue'], 'Number'); + } + if (data.hasOwnProperty('CollectionCashOrderValue')) { + obj['CollectionCashOrderValue'] = ApiClient.convertToType(data['CollectionCashOrderValue'], 'Number'); + } + if (data.hasOwnProperty('CollectionPaidOnlineOrderValue')) { + obj['CollectionPaidOnlineOrderValue'] = ApiClient.convertToType(data['CollectionPaidOnlineOrderValue'], 'Number'); + } + if (data.hasOwnProperty('DeliveryOrderCount')) { + obj['DeliveryOrderCount'] = ApiClient.convertToType(data['DeliveryOrderCount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryCashOrderCount')) { + obj['DeliveryCashOrderCount'] = ApiClient.convertToType(data['DeliveryCashOrderCount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryPaidOnlineOrderCount')) { + obj['DeliveryPaidOnlineOrderCount'] = ApiClient.convertToType(data['DeliveryPaidOnlineOrderCount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryOrderValue')) { + obj['DeliveryOrderValue'] = ApiClient.convertToType(data['DeliveryOrderValue'], 'Number'); + } + if (data.hasOwnProperty('DeliveryCashOrderValue')) { + obj['DeliveryCashOrderValue'] = ApiClient.convertToType(data['DeliveryCashOrderValue'], 'Number'); + } + if (data.hasOwnProperty('DeliveryPaidOnlineOrderValue')) { + obj['DeliveryPaidOnlineOrderValue'] = ApiClient.convertToType(data['DeliveryPaidOnlineOrderValue'], 'Number'); + } + if (data.hasOwnProperty('PaidOnlineOrderCount')) { + obj['PaidOnlineOrderCount'] = ApiClient.convertToType(data['PaidOnlineOrderCount'], 'Number'); + } + if (data.hasOwnProperty('CashOrderCount')) { + obj['CashOrderCount'] = ApiClient.convertToType(data['CashOrderCount'], 'Number'); + } + if (data.hasOwnProperty('PaidOnlineOrderValue')) { + obj['PaidOnlineOrderValue'] = ApiClient.convertToType(data['PaidOnlineOrderValue'], 'Number'); + } + if (data.hasOwnProperty('CashOrderValue')) { + obj['CashOrderValue'] = ApiClient.convertToType(data['CashOrderValue'], 'Number'); + } + if (data.hasOwnProperty('PaidOnlineOrderValueExcludingDeliveryFees')) { + obj['PaidOnlineOrderValueExcludingDeliveryFees'] = ApiClient.convertToType(data['PaidOnlineOrderValueExcludingDeliveryFees'], 'Number'); + } + if (data.hasOwnProperty('CashOrderValueExcludingDeliveryFees')) { + obj['CashOrderValueExcludingDeliveryFees'] = ApiClient.convertToType(data['CashOrderValueExcludingDeliveryFees'], 'Number'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'Date'); + } + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Store Id + * @member {Number} StoreId + */ +StoreEndOfDayReport.prototype['StoreId'] = undefined; + +/** + * Store name + * @member {String} StoreName + */ +StoreEndOfDayReport.prototype['StoreName'] = undefined; + +/** + * Currency + * @member {module:model/StoreEndOfDayReport.CurrencyEnum} Currency + */ +StoreEndOfDayReport.prototype['Currency'] = undefined; + +/** + * Order Count + * @member {Number} OrderCount + */ +StoreEndOfDayReport.prototype['OrderCount'] = undefined; + +/** + * Order Value + * @member {Number} OrderValue + */ +StoreEndOfDayReport.prototype['OrderValue'] = undefined; + +/** + * Order Value Excluding Delivery Fees + * @member {Number} OrderValueExcludingDeliveryFees + */ +StoreEndOfDayReport.prototype['OrderValueExcludingDeliveryFees'] = undefined; + +/** + * Collection Order Count + * @member {Number} CollectionOrderCount + */ +StoreEndOfDayReport.prototype['CollectionOrderCount'] = undefined; + +/** + * Collection Cash Order Count + * @member {Number} CollectionCashOrderCount + */ +StoreEndOfDayReport.prototype['CollectionCashOrderCount'] = undefined; + +/** + * Collection Paid Online Order Count + * @member {Number} CollectionPaidOnlineOrderCount + */ +StoreEndOfDayReport.prototype['CollectionPaidOnlineOrderCount'] = undefined; + +/** + * Collection Order Value + * @member {Number} CollectionOrderValue + */ +StoreEndOfDayReport.prototype['CollectionOrderValue'] = undefined; + +/** + * Collection Cash Order Value + * @member {Number} CollectionCashOrderValue + */ +StoreEndOfDayReport.prototype['CollectionCashOrderValue'] = undefined; + +/** + * Collection Paid Online Order Value + * @member {Number} CollectionPaidOnlineOrderValue + */ +StoreEndOfDayReport.prototype['CollectionPaidOnlineOrderValue'] = undefined; + +/** + * Delivery Order Count + * @member {Number} DeliveryOrderCount + */ +StoreEndOfDayReport.prototype['DeliveryOrderCount'] = undefined; + +/** + * Delivery Cash Order Count + * @member {Number} DeliveryCashOrderCount + */ +StoreEndOfDayReport.prototype['DeliveryCashOrderCount'] = undefined; + +/** + * Delivery Paid Online Order Count + * @member {Number} DeliveryPaidOnlineOrderCount + */ +StoreEndOfDayReport.prototype['DeliveryPaidOnlineOrderCount'] = undefined; + +/** + * Delivery Order Value + * @member {Number} DeliveryOrderValue + */ +StoreEndOfDayReport.prototype['DeliveryOrderValue'] = undefined; + +/** + * Delivery Cash Order Value + * @member {Number} DeliveryCashOrderValue + */ +StoreEndOfDayReport.prototype['DeliveryCashOrderValue'] = undefined; + +/** + * Delivery Paid Online Order Value + * @member {Number} DeliveryPaidOnlineOrderValue + */ +StoreEndOfDayReport.prototype['DeliveryPaidOnlineOrderValue'] = undefined; + +/** + * Paid Online Order Count + * @member {Number} PaidOnlineOrderCount + */ +StoreEndOfDayReport.prototype['PaidOnlineOrderCount'] = undefined; + +/** + * Cash Order Count + * @member {Number} CashOrderCount + */ +StoreEndOfDayReport.prototype['CashOrderCount'] = undefined; + +/** + * Paid Online Order Value + * @member {Number} PaidOnlineOrderValue + */ +StoreEndOfDayReport.prototype['PaidOnlineOrderValue'] = undefined; + +/** + * Cash Order Value + * @member {Number} CashOrderValue + */ +StoreEndOfDayReport.prototype['CashOrderValue'] = undefined; + +/** + * Paid Online Order Value Excluding Delivery Fees + * @member {Number} PaidOnlineOrderValueExcludingDeliveryFees + */ +StoreEndOfDayReport.prototype['PaidOnlineOrderValueExcludingDeliveryFees'] = undefined; + +/** + * Cash Order Value Excluding Delivery Fees + * @member {Number} CashOrderValueExcludingDeliveryFees + */ +StoreEndOfDayReport.prototype['CashOrderValueExcludingDeliveryFees'] = undefined; + +/** + * Start Time + * @member {Date} StartTime + */ +StoreEndOfDayReport.prototype['StartTime'] = undefined; + +/** + * End Time + * @member {Date} EndTime + */ +StoreEndOfDayReport.prototype['EndTime'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +StoreEndOfDayReport['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default StoreEndOfDayReport; + diff --git a/src/model/StoreFeeConfig.js b/src/model/StoreFeeConfig.js new file mode 100644 index 00000000..f8582da4 --- /dev/null +++ b/src/model/StoreFeeConfig.js @@ -0,0 +1,469 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreFeeConfig model module. + * @module model/StoreFeeConfig + * @version 1.0.0 + */ +class StoreFeeConfig { + /** + * Constructs a new StoreFeeConfig. + * + * @alias module:model/StoreFeeConfig + */ + constructor() { + + StoreFeeConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreFeeConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreFeeConfig} obj Optional instance to populate. + * @return {module:model/StoreFeeConfig} The populated StoreFeeConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreFeeConfig(); + + if (data.hasOwnProperty('FeeConfigId')) { + obj['FeeConfigId'] = ApiClient.convertToType(data['FeeConfigId'], 'Number'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'Date'); + } + if (data.hasOwnProperty('PercentFeeCardOrders')) { + obj['PercentFeeCardOrders'] = ApiClient.convertToType(data['PercentFeeCardOrders'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrders')) { + obj['PercentFeeCashOrders'] = ApiClient.convertToType(data['PercentFeeCashOrders'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardOrdersWeb')) { + obj['PercentFeeCardOrdersWeb'] = ApiClient.convertToType(data['PercentFeeCardOrdersWeb'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrdersWeb')) { + obj['PercentFeeCashOrdersWeb'] = ApiClient.convertToType(data['PercentFeeCashOrdersWeb'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardOrdersKiosk')) { + obj['PercentFeeCardOrdersKiosk'] = ApiClient.convertToType(data['PercentFeeCardOrdersKiosk'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrdersKiosk')) { + obj['PercentFeeCashOrdersKiosk'] = ApiClient.convertToType(data['PercentFeeCashOrdersKiosk'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardOrdersKiosk')) { + obj['FixedFeeCardOrdersKiosk'] = ApiClient.convertToType(data['FixedFeeCardOrdersKiosk'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCashOrdersKiosk')) { + obj['FixedFeeCashOrdersKiosk'] = ApiClient.convertToType(data['FixedFeeCashOrdersKiosk'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardOrdersKioskChargedToCustomerIncludingVat')) { + obj['PercentFeeCardOrdersKioskChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['PercentFeeCardOrdersKioskChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardOrdersKioskChargedToCustomerIncludingVat')) { + obj['FixedFeeCardOrdersKioskChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['FixedFeeCardOrdersKioskChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrdersKioskChargedToCustomerIncludingVat')) { + obj['PercentFeeCashOrdersKioskChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['PercentFeeCashOrdersKioskChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCashOrdersKioskChargedToCustomerIncludingVat')) { + obj['FixedFeeCashOrdersKioskChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['FixedFeeCashOrdersKioskChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardOrders')) { + obj['FixedFeeCardOrders'] = ApiClient.convertToType(data['FixedFeeCardOrders'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCashOrders')) { + obj['FixedFeeCashOrders'] = ApiClient.convertToType(data['FixedFeeCashOrders'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardOrdersChargedToCustomerIncludingVat')) { + obj['PercentFeeCardOrdersChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['PercentFeeCardOrdersChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardOrdersChargedToCustomerIncludingVat')) { + obj['FixedFeeCardOrdersChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['FixedFeeCardOrdersChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrdersChargedToCustomerIncludingVat')) { + obj['PercentFeeCashOrdersChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['PercentFeeCashOrdersChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCashOrdersChargedToCustomerIncludingVat')) { + obj['FixedFeeCashOrdersChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['FixedFeeCashOrdersChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeTips')) { + obj['PercentFeeTips'] = ApiClient.convertToType(data['PercentFeeTips'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeTipsCollection')) { + obj['PercentFeeTipsCollection'] = ApiClient.convertToType(data['PercentFeeTipsCollection'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeTipsDelivery')) { + obj['PercentFeeTipsDelivery'] = ApiClient.convertToType(data['PercentFeeTipsDelivery'], 'Number'); + } + if (data.hasOwnProperty('TaxRatePercent')) { + obj['TaxRatePercent'] = ApiClient.convertToType(data['TaxRatePercent'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardOrdersLocationService')) { + obj['PercentFeeCardOrdersLocationService'] = ApiClient.convertToType(data['PercentFeeCardOrdersLocationService'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrdersLocationService')) { + obj['PercentFeeCashOrdersLocationService'] = ApiClient.convertToType(data['PercentFeeCashOrdersLocationService'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardOrdersLocationService')) { + obj['FixedFeeCardOrdersLocationService'] = ApiClient.convertToType(data['FixedFeeCardOrdersLocationService'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCashOrdersLocationService')) { + obj['FixedFeeCashOrdersLocationService'] = ApiClient.convertToType(data['FixedFeeCashOrdersLocationService'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat')) { + obj['PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat')) { + obj['PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat')) { + obj['FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat')) { + obj['FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat'] = ApiClient.convertToType(data['FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardOrdersIngest')) { + obj['PercentFeeCardOrdersIngest'] = ApiClient.convertToType(data['PercentFeeCardOrdersIngest'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCashOrdersIngest')) { + obj['PercentFeeCashOrdersIngest'] = ApiClient.convertToType(data['PercentFeeCashOrdersIngest'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardOrdersIngest')) { + obj['FixedFeeCardOrdersIngest'] = ApiClient.convertToType(data['FixedFeeCardOrdersIngest'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCashOrdersIngest')) { + obj['FixedFeeCashOrdersIngest'] = ApiClient.convertToType(data['FixedFeeCashOrdersIngest'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeDelivery')) { + obj['PercentFeeDelivery'] = ApiClient.convertToType(data['PercentFeeDelivery'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeDelivery')) { + obj['FixedFeeDelivery'] = ApiClient.convertToType(data['FixedFeeDelivery'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeCardPosTransaction')) { + obj['PercentFeeCardPosTransaction'] = ApiClient.convertToType(data['PercentFeeCardPosTransaction'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeCardPosTransaction')) { + obj['FixedFeeCardPosTransaction'] = ApiClient.convertToType(data['FixedFeeCardPosTransaction'], 'Number'); + } + if (data.hasOwnProperty('PercentFeeOrderWithGoogle')) { + obj['PercentFeeOrderWithGoogle'] = ApiClient.convertToType(data['PercentFeeOrderWithGoogle'], 'Number'); + } + if (data.hasOwnProperty('FixedFeeOrderWithGoogle')) { + obj['FixedFeeOrderWithGoogle'] = ApiClient.convertToType(data['FixedFeeOrderWithGoogle'], 'Number'); + } + if (data.hasOwnProperty('ShouldNotAutoIncreaseBefore')) { + obj['ShouldNotAutoIncreaseBefore'] = ApiClient.convertToType(data['ShouldNotAutoIncreaseBefore'], 'Date'); + } + if (data.hasOwnProperty('Reason')) { + obj['Reason'] = ApiClient.convertToType(data['Reason'], 'String'); + } + } + return obj; + } + + +} + +/** + * + * @member {Number} FeeConfigId + */ +StoreFeeConfig.prototype['FeeConfigId'] = undefined; + +/** + * + * @member {Number} StoreId + */ +StoreFeeConfig.prototype['StoreId'] = undefined; + +/** + * + * @member {Date} StartTime + */ +StoreFeeConfig.prototype['StartTime'] = undefined; + +/** + * + * @member {Number} PercentFeeCardOrders + */ +StoreFeeConfig.prototype['PercentFeeCardOrders'] = undefined; + +/** + * + * @member {Number} PercentFeeCashOrders + */ +StoreFeeConfig.prototype['PercentFeeCashOrders'] = undefined; + +/** + * + * @member {Number} PercentFeeCardOrdersWeb + */ +StoreFeeConfig.prototype['PercentFeeCardOrdersWeb'] = undefined; + +/** + * + * @member {Number} PercentFeeCashOrdersWeb + */ +StoreFeeConfig.prototype['PercentFeeCashOrdersWeb'] = undefined; + +/** + * + * @member {Number} PercentFeeCardOrdersKiosk + */ +StoreFeeConfig.prototype['PercentFeeCardOrdersKiosk'] = undefined; + +/** + * + * @member {Number} PercentFeeCashOrdersKiosk + */ +StoreFeeConfig.prototype['PercentFeeCashOrdersKiosk'] = undefined; + +/** + * + * @member {Number} FixedFeeCardOrdersKiosk + */ +StoreFeeConfig.prototype['FixedFeeCardOrdersKiosk'] = undefined; + +/** + * + * @member {Number} FixedFeeCashOrdersKiosk + */ +StoreFeeConfig.prototype['FixedFeeCashOrdersKiosk'] = undefined; + +/** + * + * @member {Number} PercentFeeCardOrdersKioskChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['PercentFeeCardOrdersKioskChargedToCustomerIncludingVat'] = undefined; + +/** + * + * @member {Number} FixedFeeCardOrdersKioskChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['FixedFeeCardOrdersKioskChargedToCustomerIncludingVat'] = undefined; + +/** + * + * @member {Number} PercentFeeCashOrdersKioskChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['PercentFeeCashOrdersKioskChargedToCustomerIncludingVat'] = undefined; + +/** + * + * @member {Number} FixedFeeCashOrdersKioskChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['FixedFeeCashOrdersKioskChargedToCustomerIncludingVat'] = undefined; + +/** + * + * @member {Number} FixedFeeCardOrders + */ +StoreFeeConfig.prototype['FixedFeeCardOrders'] = undefined; + +/** + * + * @member {Number} FixedFeeCashOrders + */ +StoreFeeConfig.prototype['FixedFeeCashOrders'] = undefined; + +/** + * + * @member {Number} PercentFeeCardOrdersChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['PercentFeeCardOrdersChargedToCustomerIncludingVat'] = undefined; + +/** + * + * @member {Number} FixedFeeCardOrdersChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['FixedFeeCardOrdersChargedToCustomerIncludingVat'] = undefined; + +/** + * + * @member {Number} PercentFeeCashOrdersChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['PercentFeeCashOrdersChargedToCustomerIncludingVat'] = undefined; + +/** + * + * @member {Number} FixedFeeCashOrdersChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['FixedFeeCashOrdersChargedToCustomerIncludingVat'] = undefined; + +/** + * Gets or sets the percent fee tips. + * @member {Number} PercentFeeTips + */ +StoreFeeConfig.prototype['PercentFeeTips'] = undefined; + +/** + * Gets or sets the percent fee tips for collection. + * @member {Number} PercentFeeTipsCollection + */ +StoreFeeConfig.prototype['PercentFeeTipsCollection'] = undefined; + +/** + * Gets or sets the percent fee tips for delivery. + * @member {Number} PercentFeeTipsDelivery + */ +StoreFeeConfig.prototype['PercentFeeTipsDelivery'] = undefined; + +/** + * Gets or sets the tax rate percent. + * @member {Number} TaxRatePercent + */ +StoreFeeConfig.prototype['TaxRatePercent'] = undefined; + +/** + * Gets or sets the percent fee card orders location service. + * @member {Number} PercentFeeCardOrdersLocationService + */ +StoreFeeConfig.prototype['PercentFeeCardOrdersLocationService'] = undefined; + +/** + * Gets or sets the percent fee cash orders location service. + * @member {Number} PercentFeeCashOrdersLocationService + */ +StoreFeeConfig.prototype['PercentFeeCashOrdersLocationService'] = undefined; + +/** + * Gets or sets the fixed fee card orders location service. + * @member {Number} FixedFeeCardOrdersLocationService + */ +StoreFeeConfig.prototype['FixedFeeCardOrdersLocationService'] = undefined; + +/** + * Gets or sets the fixed fee cash orders location service. + * @member {Number} FixedFeeCashOrdersLocationService + */ +StoreFeeConfig.prototype['FixedFeeCashOrdersLocationService'] = undefined; + +/** + * Gets or sets the percent fee card orders location service charged to customer including vat. + * @member {Number} PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat'] = undefined; + +/** + * Gets or sets the percent fee cash orders location service charged to customer including vat. + * @member {Number} PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat'] = undefined; + +/** + * Gets or sets the fixed fee card orders location service charged to customer including vat. + * @member {Number} FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat'] = undefined; + +/** + * Gets or sets the fixed fee cash orders location service charged to customer including vat. + * @member {Number} FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat + */ +StoreFeeConfig.prototype['FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat'] = undefined; + +/** + * Gets or sets the percent fee card orders ingest. + * @member {Number} PercentFeeCardOrdersIngest + */ +StoreFeeConfig.prototype['PercentFeeCardOrdersIngest'] = undefined; + +/** + * Gets or sets the percent fee cash orders ingest. + * @member {Number} PercentFeeCashOrdersIngest + */ +StoreFeeConfig.prototype['PercentFeeCashOrdersIngest'] = undefined; + +/** + * Gets or sets the fixed fee card orders ingest. + * @member {Number} FixedFeeCardOrdersIngest + */ +StoreFeeConfig.prototype['FixedFeeCardOrdersIngest'] = undefined; + +/** + * Gets or sets the fixed fee cash orders ingest. + * @member {Number} FixedFeeCashOrdersIngest + */ +StoreFeeConfig.prototype['FixedFeeCashOrdersIngest'] = undefined; + +/** + * Gets or sets the percent fee for delivery orders. + * @member {Number} PercentFeeDelivery + */ +StoreFeeConfig.prototype['PercentFeeDelivery'] = undefined; + +/** + * Gets or sets the fixed fee for delivery orders. + * @member {Number} FixedFeeDelivery + */ +StoreFeeConfig.prototype['FixedFeeDelivery'] = undefined; + +/** + * Gets or sets the percent fee for POS transactions. + * @member {Number} PercentFeeCardPosTransaction + */ +StoreFeeConfig.prototype['PercentFeeCardPosTransaction'] = undefined; + +/** + * Gets or sets the fixed fee for POS transactions. + * @member {Number} FixedFeeCardPosTransaction + */ +StoreFeeConfig.prototype['FixedFeeCardPosTransaction'] = undefined; + +/** + * Additional percentage fee charged on orders submitted through Order With Google + * @member {Number} PercentFeeOrderWithGoogle + */ +StoreFeeConfig.prototype['PercentFeeOrderWithGoogle'] = undefined; + +/** + * Additional fixed fee charged on orders submitted through Order With Google + * @member {Number} FixedFeeOrderWithGoogle + */ +StoreFeeConfig.prototype['FixedFeeOrderWithGoogle'] = undefined; + +/** + * Should not auto increase fees before this date + * @member {Date} ShouldNotAutoIncreaseBefore + */ +StoreFeeConfig.prototype['ShouldNotAutoIncreaseBefore'] = undefined; + +/** + * Reason for the last fee change (optional) + * @member {String} Reason + */ +StoreFeeConfig.prototype['Reason'] = undefined; + + + + + + +export default StoreFeeConfig; + diff --git a/src/model/StoreFeeConfigUpdatedEvent.js b/src/model/StoreFeeConfigUpdatedEvent.js new file mode 100644 index 00000000..b6465b61 --- /dev/null +++ b/src/model/StoreFeeConfigUpdatedEvent.js @@ -0,0 +1,181 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreFeeConfig from './StoreFeeConfig'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreFeeConfigUpdatedEvent model module. + * @module model/StoreFeeConfigUpdatedEvent + * @version 1.0.0 + */ +class StoreFeeConfigUpdatedEvent { + /** + * Constructs a new StoreFeeConfigUpdatedEvent. + * Fee Config Updated Event + * @alias module:model/StoreFeeConfigUpdatedEvent + */ + constructor() { + + StoreFeeConfigUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreFeeConfigUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreFeeConfigUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreFeeConfigUpdatedEvent} The populated StoreFeeConfigUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreFeeConfigUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Changes')) { + obj['Changes'] = ApiClient.convertToType(data['Changes'], 'String'); + } + if (data.hasOwnProperty('StoreFeeConfig')) { + obj['StoreFeeConfig'] = StoreFeeConfig.constructFromObject(data['StoreFeeConfig']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreFeeConfigUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreFeeConfigUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreFeeConfigUpdatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreFeeConfigUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreFeeConfigUpdatedEvent.prototype['Description'] = undefined; + +/** + * Diff between before and after + * @member {String} Changes + */ +StoreFeeConfigUpdatedEvent.prototype['Changes'] = undefined; + +/** + * @member {module:model/StoreFeeConfig} StoreFeeConfig + */ +StoreFeeConfigUpdatedEvent.prototype['StoreFeeConfig'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreFeeConfigUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreFeeConfigUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreFeeConfigUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreFeeConfigUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreFeeConfigUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreFeeConfigUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreFeeConfigUpdatedEvent; + diff --git a/src/model/StoreGroup.js b/src/model/StoreGroup.js new file mode 100644 index 00000000..d14f75c0 --- /dev/null +++ b/src/model/StoreGroup.js @@ -0,0 +1,823 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreGroup model module. + * @module model/StoreGroup + * @version 1.0.0 + */ +class StoreGroup { + /** + * Constructs a new StoreGroup. + * Store Group + * @alias module:model/StoreGroup + */ + constructor() { + + StoreGroup.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreGroup} obj Optional instance to populate. + * @return {module:model/StoreGroup} The populated StoreGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreGroup(); + + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('GeneralRating')) { + obj['GeneralRating'] = ApiClient.convertToType(data['GeneralRating'], 'Number'); + } + if (data.hasOwnProperty('GeneralRatingCount')) { + obj['GeneralRatingCount'] = ApiClient.convertToType(data['GeneralRatingCount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryMenuMessage')) { + obj['DeliveryMenuMessage'] = ApiClient.convertToType(data['DeliveryMenuMessage'], 'String'); + } + if (data.hasOwnProperty('PickupMenuMessage')) { + obj['PickupMenuMessage'] = ApiClient.convertToType(data['PickupMenuMessage'], 'String'); + } + if (data.hasOwnProperty('BrandIds')) { + obj['BrandIds'] = ApiClient.convertToType(data['BrandIds'], ['String']); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + } + return obj; + } + + +} + +/** + * Unique Store Group Identifier + * @member {Number} StoreGroupId + */ +StoreGroup.prototype['StoreGroupId'] = undefined; + +/** + * Store Group rating + * @member {Number} GeneralRating + */ +StoreGroup.prototype['GeneralRating'] = undefined; + +/** + * Store Group rating count + * @member {Number} GeneralRatingCount + */ +StoreGroup.prototype['GeneralRatingCount'] = undefined; + +/** + * Delivery menu message + * @member {String} DeliveryMenuMessage + */ +StoreGroup.prototype['DeliveryMenuMessage'] = undefined; + +/** + * Pickup menu message + * @member {String} PickupMenuMessage + */ +StoreGroup.prototype['PickupMenuMessage'] = undefined; + +/** + * List of brand ids (AppIds) that are associated with this store group + * @member {Array.} BrandIds + */ +StoreGroup.prototype['BrandIds'] = undefined; + +/** + * Store Group Name + * @member {String} Name + */ +StoreGroup.prototype['Name'] = undefined; + +/** + * Currency used by the stores in this group + * @member {module:model/StoreGroup.CurrencyEnum} Currency + */ +StoreGroup.prototype['Currency'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +StoreGroup['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default StoreGroup; + diff --git a/src/model/StoreGroupBase.js b/src/model/StoreGroupBase.js new file mode 100644 index 00000000..3fd6d7cb --- /dev/null +++ b/src/model/StoreGroupBase.js @@ -0,0 +1,769 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreGroupBase model module. + * @module model/StoreGroupBase + * @version 1.0.0 + */ +class StoreGroupBase { + /** + * Constructs a new StoreGroupBase. + * Update Store Group + * @alias module:model/StoreGroupBase + */ + constructor() { + + StoreGroupBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreGroupBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreGroupBase} obj Optional instance to populate. + * @return {module:model/StoreGroupBase} The populated StoreGroupBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreGroupBase(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + } + return obj; + } + + +} + +/** + * Store Group Name + * @member {String} Name + */ +StoreGroupBase.prototype['Name'] = undefined; + +/** + * Currency used by the stores in this group + * @member {module:model/StoreGroupBase.CurrencyEnum} Currency + */ +StoreGroupBase.prototype['Currency'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +StoreGroupBase['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default StoreGroupBase; + diff --git a/src/model/StoreGroupCreatedEvent.js b/src/model/StoreGroupCreatedEvent.js new file mode 100644 index 00000000..d6e50571 --- /dev/null +++ b/src/model/StoreGroupCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreGroup from './StoreGroup'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreGroupCreatedEvent model module. + * @module model/StoreGroupCreatedEvent + * @version 1.0.0 + */ +class StoreGroupCreatedEvent { + /** + * Constructs a new StoreGroupCreatedEvent. + * Store Group Created Event + * @alias module:model/StoreGroupCreatedEvent + */ + constructor() { + + StoreGroupCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreGroupCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreGroupCreatedEvent} obj Optional instance to populate. + * @return {module:model/StoreGroupCreatedEvent} The populated StoreGroupCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreGroupCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreGroup')) { + obj['StoreGroup'] = StoreGroup.constructFromObject(data['StoreGroup']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreGroupCreatedEvent.prototype['EventName'] = undefined; + +/** + * Store Group Id + * @member {Number} StoreGroupId + */ +StoreGroupCreatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreGroupCreatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreGroupCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/StoreGroup} StoreGroup + */ +StoreGroupCreatedEvent.prototype['StoreGroup'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreGroupCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreGroupCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreGroupCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreGroupCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreGroupCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreGroupCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreGroupCreatedEvent; + diff --git a/src/model/StoreGroupDeletedEvent.js b/src/model/StoreGroupDeletedEvent.js new file mode 100644 index 00000000..f9d58c30 --- /dev/null +++ b/src/model/StoreGroupDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreGroup from './StoreGroup'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreGroupDeletedEvent model module. + * @module model/StoreGroupDeletedEvent + * @version 1.0.0 + */ +class StoreGroupDeletedEvent { + /** + * Constructs a new StoreGroupDeletedEvent. + * Store Group Deleted Event + * @alias module:model/StoreGroupDeletedEvent + */ + constructor() { + + StoreGroupDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreGroupDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreGroupDeletedEvent} obj Optional instance to populate. + * @return {module:model/StoreGroupDeletedEvent} The populated StoreGroupDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreGroupDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreGroup')) { + obj['StoreGroup'] = StoreGroup.constructFromObject(data['StoreGroup']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreGroupDeletedEvent.prototype['EventName'] = undefined; + +/** + * Store Group Id + * @member {Number} StoreGroupId + */ +StoreGroupDeletedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreGroupDeletedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreGroupDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/StoreGroup} StoreGroup + */ +StoreGroupDeletedEvent.prototype['StoreGroup'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreGroupDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreGroupDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreGroupDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreGroupDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreGroupDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreGroupDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreGroupDeletedEvent; + diff --git a/src/model/StoreGroupExtended.js b/src/model/StoreGroupExtended.js new file mode 100644 index 00000000..8bb60e88 --- /dev/null +++ b/src/model/StoreGroupExtended.js @@ -0,0 +1,852 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import GroupedCoordinates from './GroupedCoordinates'; +import StoreHeader from './StoreHeader'; + +/** + * The StoreGroupExtended model module. + * @module model/StoreGroupExtended + * @version 1.0.0 + */ +class StoreGroupExtended { + /** + * Constructs a new StoreGroupExtended. + * Store Group Extended + * @alias module:model/StoreGroupExtended + */ + constructor() { + + StoreGroupExtended.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreGroupExtended from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreGroupExtended} obj Optional instance to populate. + * @return {module:model/StoreGroupExtended} The populated StoreGroupExtended instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreGroupExtended(); + + if (data.hasOwnProperty('TotalStores')) { + obj['TotalStores'] = ApiClient.convertToType(data['TotalStores'], 'Number'); + } + if (data.hasOwnProperty('GroupedCoordinates')) { + obj['GroupedCoordinates'] = ApiClient.convertToType(data['GroupedCoordinates'], [GroupedCoordinates]); + } + if (data.hasOwnProperty('StoreHeaders')) { + obj['StoreHeaders'] = ApiClient.convertToType(data['StoreHeaders'], [StoreHeader]); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('GeneralRating')) { + obj['GeneralRating'] = ApiClient.convertToType(data['GeneralRating'], 'Number'); + } + if (data.hasOwnProperty('GeneralRatingCount')) { + obj['GeneralRatingCount'] = ApiClient.convertToType(data['GeneralRatingCount'], 'Number'); + } + if (data.hasOwnProperty('DeliveryMenuMessage')) { + obj['DeliveryMenuMessage'] = ApiClient.convertToType(data['DeliveryMenuMessage'], 'String'); + } + if (data.hasOwnProperty('PickupMenuMessage')) { + obj['PickupMenuMessage'] = ApiClient.convertToType(data['PickupMenuMessage'], 'String'); + } + if (data.hasOwnProperty('BrandIds')) { + obj['BrandIds'] = ApiClient.convertToType(data['BrandIds'], ['String']); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + } + return obj; + } + + +} + +/** + * Total Amount of Stores + * @member {Number} TotalStores + */ +StoreGroupExtended.prototype['TotalStores'] = undefined; + +/** + * Grouped store coordinates + * @member {Array.} GroupedCoordinates + */ +StoreGroupExtended.prototype['GroupedCoordinates'] = undefined; + +/** + * Store Headers associated with Store Group + * @member {Array.} StoreHeaders + */ +StoreGroupExtended.prototype['StoreHeaders'] = undefined; + +/** + * Unique Store Group Identifier + * @member {Number} StoreGroupId + */ +StoreGroupExtended.prototype['StoreGroupId'] = undefined; + +/** + * Store Group rating + * @member {Number} GeneralRating + */ +StoreGroupExtended.prototype['GeneralRating'] = undefined; + +/** + * Store Group rating count + * @member {Number} GeneralRatingCount + */ +StoreGroupExtended.prototype['GeneralRatingCount'] = undefined; + +/** + * Delivery menu message + * @member {String} DeliveryMenuMessage + */ +StoreGroupExtended.prototype['DeliveryMenuMessage'] = undefined; + +/** + * Pickup menu message + * @member {String} PickupMenuMessage + */ +StoreGroupExtended.prototype['PickupMenuMessage'] = undefined; + +/** + * List of brand ids (AppIds) that are associated with this store group + * @member {Array.} BrandIds + */ +StoreGroupExtended.prototype['BrandIds'] = undefined; + +/** + * Store Group Name + * @member {String} Name + */ +StoreGroupExtended.prototype['Name'] = undefined; + +/** + * Currency used by the stores in this group + * @member {module:model/StoreGroupExtended.CurrencyEnum} Currency + */ +StoreGroupExtended.prototype['Currency'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +StoreGroupExtended['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default StoreGroupExtended; + diff --git a/src/model/StoreGroupUpdatedEvent.js b/src/model/StoreGroupUpdatedEvent.js new file mode 100644 index 00000000..9211bfa5 --- /dev/null +++ b/src/model/StoreGroupUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreGroup from './StoreGroup'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreGroupUpdatedEvent model module. + * @module model/StoreGroupUpdatedEvent + * @version 1.0.0 + */ +class StoreGroupUpdatedEvent { + /** + * Constructs a new StoreGroupUpdatedEvent. + * Store Group Updated Event + * @alias module:model/StoreGroupUpdatedEvent + */ + constructor() { + + StoreGroupUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreGroupUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreGroupUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreGroupUpdatedEvent} The populated StoreGroupUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreGroupUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreGroup')) { + obj['StoreGroup'] = StoreGroup.constructFromObject(data['StoreGroup']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreGroupUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Group Id + * @member {Number} StoreGroupId + */ +StoreGroupUpdatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreGroupUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreGroupUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/StoreGroup} StoreGroup + */ +StoreGroupUpdatedEvent.prototype['StoreGroup'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreGroupUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreGroupUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreGroupUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreGroupUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreGroupUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreGroupUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreGroupUpdatedEvent; + diff --git a/src/model/StoreHeader.js b/src/model/StoreHeader.js new file mode 100644 index 00000000..9c8a2a2c --- /dev/null +++ b/src/model/StoreHeader.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreHeader model module. + * @module model/StoreHeader + * @version 1.0.0 + */ +class StoreHeader { + /** + * Constructs a new StoreHeader. + * Represents the most basic store information, used mostly for searches + * @alias module:model/StoreHeader + */ + constructor() { + + StoreHeader.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreHeader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreHeader} obj Optional instance to populate. + * @return {module:model/StoreHeader} The populated StoreHeader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreHeader(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Category')) { + obj['Category'] = ApiClient.convertToType(data['Category'], 'String'); + } + } + return obj; + } + + +} + +/** + * Store identifier + * @member {Number} StoreId + */ +StoreHeader.prototype['StoreId'] = undefined; + +/** + * Name + * @member {String} Name + */ +StoreHeader.prototype['Name'] = undefined; + +/** + * Name + * @member {String} Category + */ +StoreHeader.prototype['Category'] = undefined; + + + + + + +export default StoreHeader; + diff --git a/src/model/StoreItemHeader.js b/src/model/StoreItemHeader.js new file mode 100644 index 00000000..033d3395 --- /dev/null +++ b/src/model/StoreItemHeader.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreItemHeader model module. + * @module model/StoreItemHeader + * @version 1.0.0 + */ +class StoreItemHeader { + /** + * Constructs a new StoreItemHeader. + * @alias module:model/StoreItemHeader + */ + constructor() { + + StoreItemHeader.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreItemHeader from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreItemHeader} obj Optional instance to populate. + * @return {module:model/StoreItemHeader} The populated StoreItemHeader instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreItemHeader(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} StoreId + */ +StoreItemHeader.prototype['StoreId'] = undefined; + +/** + * @member {String} Name + */ +StoreItemHeader.prototype['Name'] = undefined; + + + + + + +export default StoreItemHeader; + diff --git a/src/model/StoreKioskSetting.js b/src/model/StoreKioskSetting.js new file mode 100644 index 00000000..70984c5e --- /dev/null +++ b/src/model/StoreKioskSetting.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreKioskSetting model module. + * @module model/StoreKioskSetting + * @version 1.0.0 + */ +class StoreKioskSetting { + /** + * Constructs a new StoreKioskSetting. + * Store Kiosk Settings + * @alias module:model/StoreKioskSetting + */ + constructor() { + + StoreKioskSetting.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreKioskSetting from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreKioskSetting} obj Optional instance to populate. + * @return {module:model/StoreKioskSetting} The populated StoreKioskSetting instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreKioskSetting(); + + if (data.hasOwnProperty('KioskSettingId')) { + obj['KioskSettingId'] = ApiClient.convertToType(data['KioskSettingId'], 'Number'); + } + if (data.hasOwnProperty('KioskName')) { + obj['KioskName'] = ApiClient.convertToType(data['KioskName'], 'String'); + } + if (data.hasOwnProperty('RequireCustomerName')) { + obj['RequireCustomerName'] = ApiClient.convertToType(data['RequireCustomerName'], 'Boolean'); + } + if (data.hasOwnProperty('RequireCustomerPhoneNumber')) { + obj['RequireCustomerPhoneNumber'] = ApiClient.convertToType(data['RequireCustomerPhoneNumber'], 'Boolean'); + } + if (data.hasOwnProperty('RequestCustomerPhoneNumber')) { + obj['RequestCustomerPhoneNumber'] = ApiClient.convertToType(data['RequestCustomerPhoneNumber'], 'Boolean'); + } + if (data.hasOwnProperty('RequestTableNumber')) { + obj['RequestTableNumber'] = ApiClient.convertToType(data['RequestTableNumber'], 'Boolean'); + } + if (data.hasOwnProperty('OfferDineInOrTakeawayOption')) { + obj['OfferDineInOrTakeawayOption'] = ApiClient.convertToType(data['OfferDineInOrTakeawayOption'], 'Boolean'); + } + if (data.hasOwnProperty('PhysicalRestaurantId')) { + obj['PhysicalRestaurantId'] = ApiClient.convertToType(data['PhysicalRestaurantId'], 'Number'); + } + if (data.hasOwnProperty('HydraConfigId')) { + obj['HydraConfigId'] = ApiClient.convertToType(data['HydraConfigId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Kiosk setting id + * @member {Number} KioskSettingId + */ +StoreKioskSetting.prototype['KioskSettingId'] = undefined; + +/** + * Store kiosk name + * @member {String} KioskName + */ +StoreKioskSetting.prototype['KioskName'] = undefined; + +/** + * Require customer name flag + * @member {Boolean} RequireCustomerName + */ +StoreKioskSetting.prototype['RequireCustomerName'] = undefined; + +/** + * Require customer phone number flag + * @member {Boolean} RequireCustomerPhoneNumber + */ +StoreKioskSetting.prototype['RequireCustomerPhoneNumber'] = undefined; + +/** + * Request customer phone number flag (Option to Skip) + * @member {Boolean} RequestCustomerPhoneNumber + */ +StoreKioskSetting.prototype['RequestCustomerPhoneNumber'] = undefined; + +/** + * Request table number flag + * @member {Boolean} RequestTableNumber + */ +StoreKioskSetting.prototype['RequestTableNumber'] = undefined; + +/** + * Offer Dine-In/Takeaway option flag + * @member {Boolean} OfferDineInOrTakeawayOption + */ +StoreKioskSetting.prototype['OfferDineInOrTakeawayOption'] = undefined; + +/** + * Physical restaurant id + * @member {Number} PhysicalRestaurantId + */ +StoreKioskSetting.prototype['PhysicalRestaurantId'] = undefined; + +/** + * Hydra config id + * @member {Number} HydraConfigId + */ +StoreKioskSetting.prototype['HydraConfigId'] = undefined; + + + + + + +export default StoreKioskSetting; + diff --git a/src/model/StoreKioskSettingUpdatedEvent.js b/src/model/StoreKioskSettingUpdatedEvent.js new file mode 100644 index 00000000..b4e71e3b --- /dev/null +++ b/src/model/StoreKioskSettingUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreKioskSetting from './StoreKioskSetting'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreKioskSettingUpdatedEvent model module. + * @module model/StoreKioskSettingUpdatedEvent + * @version 1.0.0 + */ +class StoreKioskSettingUpdatedEvent { + /** + * Constructs a new StoreKioskSettingUpdatedEvent. + * Store kiosk setting updated + * @alias module:model/StoreKioskSettingUpdatedEvent + */ + constructor() { + + StoreKioskSettingUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreKioskSettingUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreKioskSettingUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreKioskSettingUpdatedEvent} The populated StoreKioskSettingUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreKioskSettingUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreKioskSetting')) { + obj['StoreKioskSetting'] = StoreKioskSetting.constructFromObject(data['StoreKioskSetting']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreKioskSettingUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreKioskSettingUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreKioskSettingUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreKioskSettingUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/StoreKioskSetting} StoreKioskSetting + */ +StoreKioskSettingUpdatedEvent.prototype['StoreKioskSetting'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreKioskSettingUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreKioskSettingUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreKioskSettingUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreKioskSettingUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreKioskSettingUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreKioskSettingUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreKioskSettingUpdatedEvent; + diff --git a/src/model/StoreListItem.js b/src/model/StoreListItem.js new file mode 100644 index 00000000..ac7a6d60 --- /dev/null +++ b/src/model/StoreListItem.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreListItem model module. + * @module model/StoreListItem + * @version 1.0.0 + */ +class StoreListItem { + /** + * Constructs a new StoreListItem. + * Store id and name + * @alias module:model/StoreListItem + */ + constructor() { + + StoreListItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreListItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreListItem} obj Optional instance to populate. + * @return {module:model/StoreListItem} The populated StoreListItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreListItem(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupName')) { + obj['StoreGroupName'] = ApiClient.convertToType(data['StoreGroupName'], 'String'); + } + if (data.hasOwnProperty('HasLoyaltyCampaign')) { + obj['HasLoyaltyCampaign'] = ApiClient.convertToType(data['HasLoyaltyCampaign'], 'Boolean'); + } + if (data.hasOwnProperty('HasRetentionCampaign')) { + obj['HasRetentionCampaign'] = ApiClient.convertToType(data['HasRetentionCampaign'], 'Boolean'); + } + if (data.hasOwnProperty('IsPublished')) { + obj['IsPublished'] = ApiClient.convertToType(data['IsPublished'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Store Id + * @member {Number} StoreId + */ +StoreListItem.prototype['StoreId'] = undefined; + +/** + * Store Name + * @member {String} StoreName + */ +StoreListItem.prototype['StoreName'] = undefined; + +/** + * Store Group Id + * @member {Number} StoreGroupId + */ +StoreListItem.prototype['StoreGroupId'] = undefined; + +/** + * Store Group Name + * @member {String} StoreGroupName + */ +StoreListItem.prototype['StoreGroupName'] = undefined; + +/** + * Store has loyalty campaign + * @member {Boolean} HasLoyaltyCampaign + */ +StoreListItem.prototype['HasLoyaltyCampaign'] = undefined; + +/** + * Store has retention campaign + * @member {Boolean} HasRetentionCampaign + */ +StoreListItem.prototype['HasRetentionCampaign'] = undefined; + +/** + * Is Published store + * @member {Boolean} IsPublished + */ +StoreListItem.prototype['IsPublished'] = undefined; + + + + + + +export default StoreListItem; + diff --git a/src/model/StoreLogoCreatedEvent.js b/src/model/StoreLogoCreatedEvent.js new file mode 100644 index 00000000..9deb8eb8 --- /dev/null +++ b/src/model/StoreLogoCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreLogoCreatedEvent model module. + * @module model/StoreLogoCreatedEvent + * @version 1.0.0 + */ +class StoreLogoCreatedEvent { + /** + * Constructs a new StoreLogoCreatedEvent. + * Store logo created + * @alias module:model/StoreLogoCreatedEvent + */ + constructor() { + + StoreLogoCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreLogoCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreLogoCreatedEvent} obj Optional instance to populate. + * @return {module:model/StoreLogoCreatedEvent} The populated StoreLogoCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreLogoCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('LogoUrl')) { + obj['LogoUrl'] = ApiClient.convertToType(data['LogoUrl'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreLogoCreatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +StoreLogoCreatedEvent.prototype['OrgId'] = undefined; + +/** + * ID of store that the logo has been added to + * @member {Number} StoreId + */ +StoreLogoCreatedEvent.prototype['StoreId'] = undefined; + +/** + * Url of logo + * @member {String} LogoUrl + */ +StoreLogoCreatedEvent.prototype['LogoUrl'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreLogoCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreLogoCreatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreLogoCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreLogoCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreLogoCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreLogoCreatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreLogoCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreLogoCreatedEvent; + diff --git a/src/model/StoreLogoDeletedEvent.js b/src/model/StoreLogoDeletedEvent.js new file mode 100644 index 00000000..4e8fb05f --- /dev/null +++ b/src/model/StoreLogoDeletedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreLogoDeletedEvent model module. + * @module model/StoreLogoDeletedEvent + * @version 1.0.0 + */ +class StoreLogoDeletedEvent { + /** + * Constructs a new StoreLogoDeletedEvent. + * Store logo deleted + * @alias module:model/StoreLogoDeletedEvent + */ + constructor() { + + StoreLogoDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreLogoDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreLogoDeletedEvent} obj Optional instance to populate. + * @return {module:model/StoreLogoDeletedEvent} The populated StoreLogoDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreLogoDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreLogoDeletedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +StoreLogoDeletedEvent.prototype['OrgId'] = undefined; + +/** + * ID of store that the logo has been added to + * @member {Number} StoreId + */ +StoreLogoDeletedEvent.prototype['StoreId'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreLogoDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreLogoDeletedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreLogoDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreLogoDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreLogoDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreLogoDeletedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreLogoDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreLogoDeletedEvent; + diff --git a/src/model/StoreLogoUpdatedEvent.js b/src/model/StoreLogoUpdatedEvent.js new file mode 100644 index 00000000..c9cad746 --- /dev/null +++ b/src/model/StoreLogoUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreLogoUpdatedEvent model module. + * @module model/StoreLogoUpdatedEvent + * @version 1.0.0 + */ +class StoreLogoUpdatedEvent { + /** + * Constructs a new StoreLogoUpdatedEvent. + * Store logo updated + * @alias module:model/StoreLogoUpdatedEvent + */ + constructor() { + + StoreLogoUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreLogoUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreLogoUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreLogoUpdatedEvent} The populated StoreLogoUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreLogoUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('LogoUrl')) { + obj['LogoUrl'] = ApiClient.convertToType(data['LogoUrl'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreLogoUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +StoreLogoUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * ID of store that the logo has been added to + * @member {Number} StoreId + */ +StoreLogoUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * Url of logo + * @member {String} LogoUrl + */ +StoreLogoUpdatedEvent.prototype['LogoUrl'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreLogoUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreLogoUpdatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreLogoUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreLogoUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreLogoUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreLogoUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreLogoUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreLogoUpdatedEvent; + diff --git a/src/model/StoreMenuAssignedEvent.js b/src/model/StoreMenuAssignedEvent.js new file mode 100644 index 00000000..12ee1293 --- /dev/null +++ b/src/model/StoreMenuAssignedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreMenuAssignedEvent model module. + * @module model/StoreMenuAssignedEvent + * @version 1.0.0 + */ +class StoreMenuAssignedEvent { + /** + * Constructs a new StoreMenuAssignedEvent. + * Menu Assigned To Store Event + * @alias module:model/StoreMenuAssignedEvent + */ + constructor() { + + StoreMenuAssignedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreMenuAssignedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreMenuAssignedEvent} obj Optional instance to populate. + * @return {module:model/StoreMenuAssignedEvent} The populated StoreMenuAssignedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreMenuAssignedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreMenuAssignedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreMenuAssignedEvent.prototype['StoreId'] = undefined; + +/** + * MenuId Id + * @member {Number} MenuId + */ +StoreMenuAssignedEvent.prototype['MenuId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreMenuAssignedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreMenuAssignedEvent.prototype['Description'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreMenuAssignedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreMenuAssignedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreMenuAssignedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreMenuAssignedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreMenuAssignedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreMenuAssignedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreMenuAssignedEvent; + diff --git a/src/model/StoreNote.js b/src/model/StoreNote.js new file mode 100644 index 00000000..fc43f926 --- /dev/null +++ b/src/model/StoreNote.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreNote model module. + * @module model/StoreNote + * @version 1.0.0 + */ +class StoreNote { + /** + * Constructs a new StoreNote. + * Store note + * @alias module:model/StoreNote + */ + constructor() { + + StoreNote.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreNote from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreNote} obj Optional instance to populate. + * @return {module:model/StoreNote} The populated StoreNote instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreNote(); + + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Note')) { + obj['Note'] = ApiClient.convertToType(data['Note'], 'String'); + } + } + return obj; + } + + +} + +/** + * User identifier + * @member {Number} UserId + */ +StoreNote.prototype['UserId'] = undefined; + +/** + * Create time + * @member {Date} CreateTime + */ +StoreNote.prototype['CreateTime'] = undefined; + +/** + * Note + * @member {String} Note + */ +StoreNote.prototype['Note'] = undefined; + + + + + + +export default StoreNote; + diff --git a/src/model/StoreOpeningHoursUpdatedEvent.js b/src/model/StoreOpeningHoursUpdatedEvent.js new file mode 100644 index 00000000..568abc86 --- /dev/null +++ b/src/model/StoreOpeningHoursUpdatedEvent.js @@ -0,0 +1,240 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import BusinessHoursPeriod from './BusinessHoursPeriod'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreOpeningHoursUpdatedEvent model module. + * @module model/StoreOpeningHoursUpdatedEvent + * @version 1.0.0 + */ +class StoreOpeningHoursUpdatedEvent { + /** + * Constructs a new StoreOpeningHoursUpdatedEvent. + * Store Opening Hours Updated Event + * @alias module:model/StoreOpeningHoursUpdatedEvent + */ + constructor() { + + StoreOpeningHoursUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreOpeningHoursUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreOpeningHoursUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreOpeningHoursUpdatedEvent} The populated StoreOpeningHoursUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreOpeningHoursUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('DeliveryType')) { + obj['DeliveryType'] = ApiClient.convertToType(data['DeliveryType'], 'String'); + } + if (data.hasOwnProperty('DeliveryTypeString')) { + obj['DeliveryTypeString'] = ApiClient.convertToType(data['DeliveryTypeString'], 'String'); + } + if (data.hasOwnProperty('BusinessHoursPeriodOld')) { + obj['BusinessHoursPeriodOld'] = BusinessHoursPeriod.constructFromObject(data['BusinessHoursPeriodOld']); + } + if (data.hasOwnProperty('BusinessHoursPeriod')) { + obj['BusinessHoursPeriod'] = BusinessHoursPeriod.constructFromObject(data['BusinessHoursPeriod']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreOpeningHoursUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +StoreOpeningHoursUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreOpeningHoursUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreOpeningHoursUpdatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreOpeningHoursUpdatedEvent.prototype['User'] = undefined; + +/** + * Type of opening hours Delivery / Pickup + * @member {module:model/StoreOpeningHoursUpdatedEvent.DeliveryTypeEnum} DeliveryType + */ +StoreOpeningHoursUpdatedEvent.prototype['DeliveryType'] = undefined; + +/** + * Type of opening hours Delivery / Pickup as a string + * @member {module:model/StoreOpeningHoursUpdatedEvent.DeliveryTypeStringEnum} DeliveryTypeString + */ +StoreOpeningHoursUpdatedEvent.prototype['DeliveryTypeString'] = undefined; + +/** + * @member {module:model/BusinessHoursPeriod} BusinessHoursPeriodOld + */ +StoreOpeningHoursUpdatedEvent.prototype['BusinessHoursPeriodOld'] = undefined; + +/** + * @member {module:model/BusinessHoursPeriod} BusinessHoursPeriod + */ +StoreOpeningHoursUpdatedEvent.prototype['BusinessHoursPeriod'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreOpeningHoursUpdatedEvent.prototype['Description'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreOpeningHoursUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreOpeningHoursUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreOpeningHoursUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreOpeningHoursUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreOpeningHoursUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + +/** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ +StoreOpeningHoursUpdatedEvent['DeliveryTypeEnum'] = { + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Pickup" + * @const + */ + "Pickup": "Pickup" +}; + + +/** + * Allowed values for the DeliveryTypeString property. + * @enum {String} + * @readonly + */ +StoreOpeningHoursUpdatedEvent['DeliveryTypeStringEnum'] = { + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Pickup" + * @const + */ + "Pickup": "Pickup" +}; + + + +export default StoreOpeningHoursUpdatedEvent; + diff --git a/src/model/StoreOrderCapacityConfig.js b/src/model/StoreOrderCapacityConfig.js new file mode 100644 index 00000000..638c1d79 --- /dev/null +++ b/src/model/StoreOrderCapacityConfig.js @@ -0,0 +1,122 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreOrderCapacityPeriod from './StoreOrderCapacityPeriod'; + +/** + * The StoreOrderCapacityConfig model module. + * @module model/StoreOrderCapacityConfig + * @version 1.0.0 + */ +class StoreOrderCapacityConfig { + /** + * Constructs a new StoreOrderCapacityConfig. + * Represents one store's order capacity configuration + * @alias module:model/StoreOrderCapacityConfig + */ + constructor() { + + StoreOrderCapacityConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreOrderCapacityConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreOrderCapacityConfig} obj Optional instance to populate. + * @return {module:model/StoreOrderCapacityConfig} The populated StoreOrderCapacityConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreOrderCapacityConfig(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('DeliveryType')) { + obj['DeliveryType'] = ApiClient.convertToType(data['DeliveryType'], 'String'); + } + if (data.hasOwnProperty('StoreIntervalInMinutes')) { + obj['StoreIntervalInMinutes'] = ApiClient.convertToType(data['StoreIntervalInMinutes'], 'Number'); + } + if (data.hasOwnProperty('OrderCapacityPeriods')) { + obj['OrderCapacityPeriods'] = ApiClient.convertToType(data['OrderCapacityPeriods'], [StoreOrderCapacityPeriod]); + } + } + return obj; + } + + +} + +/** + * Store identifier + * @member {Number} StoreId + */ +StoreOrderCapacityConfig.prototype['StoreId'] = undefined; + +/** + * Signifies whether the order capacity configuration is for Delivery / Pickup + * @member {module:model/StoreOrderCapacityConfig.DeliveryTypeEnum} DeliveryType + */ +StoreOrderCapacityConfig.prototype['DeliveryType'] = undefined; + +/** + * Store Interval - time between orders, e.g. 10 minutes between each order time available to customer + * @member {Number} StoreIntervalInMinutes + */ +StoreOrderCapacityConfig.prototype['StoreIntervalInMinutes'] = undefined; + +/** + * Order capacity periods + * @member {Array.} OrderCapacityPeriods + */ +StoreOrderCapacityConfig.prototype['OrderCapacityPeriods'] = undefined; + + + + + +/** + * Allowed values for the DeliveryType property. + * @enum {String} + * @readonly + */ +StoreOrderCapacityConfig['DeliveryTypeEnum'] = { + + /** + * value: "Delivery" + * @const + */ + "Delivery": "Delivery", + + /** + * value: "Pickup" + * @const + */ + "Pickup": "Pickup" +}; + + + +export default StoreOrderCapacityConfig; + diff --git a/src/model/StoreOrderCapacityConfigEditModel.js b/src/model/StoreOrderCapacityConfigEditModel.js new file mode 100644 index 00000000..b81a27b6 --- /dev/null +++ b/src/model/StoreOrderCapacityConfigEditModel.js @@ -0,0 +1,74 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreOrderCapacityPeriod from './StoreOrderCapacityPeriod'; + +/** + * The StoreOrderCapacityConfigEditModel model module. + * @module model/StoreOrderCapacityConfigEditModel + * @version 1.0.0 + */ +class StoreOrderCapacityConfigEditModel { + /** + * Constructs a new StoreOrderCapacityConfigEditModel. + * Represents one store's order capacity configuration edit + * @alias module:model/StoreOrderCapacityConfigEditModel + */ + constructor() { + + StoreOrderCapacityConfigEditModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreOrderCapacityConfigEditModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreOrderCapacityConfigEditModel} obj Optional instance to populate. + * @return {module:model/StoreOrderCapacityConfigEditModel} The populated StoreOrderCapacityConfigEditModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreOrderCapacityConfigEditModel(); + + if (data.hasOwnProperty('OrderCapacityPeriods')) { + obj['OrderCapacityPeriods'] = ApiClient.convertToType(data['OrderCapacityPeriods'], [StoreOrderCapacityPeriod]); + } + } + return obj; + } + + +} + +/** + * Order capacity periods + * @member {Array.} OrderCapacityPeriods + */ +StoreOrderCapacityConfigEditModel.prototype['OrderCapacityPeriods'] = undefined; + + + + + + +export default StoreOrderCapacityConfigEditModel; + diff --git a/src/model/StoreOrderCapacityPeriod.js b/src/model/StoreOrderCapacityPeriod.js new file mode 100644 index 00000000..a1ac2f54 --- /dev/null +++ b/src/model/StoreOrderCapacityPeriod.js @@ -0,0 +1,169 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StoreOrderCapacityPeriod model module. + * @module model/StoreOrderCapacityPeriod + * @version 1.0.0 + */ +class StoreOrderCapacityPeriod { + /** + * Constructs a new StoreOrderCapacityPeriod. + * Represents a single order capacity period + * @alias module:model/StoreOrderCapacityPeriod + */ + constructor() { + + StoreOrderCapacityPeriod.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreOrderCapacityPeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreOrderCapacityPeriod} obj Optional instance to populate. + * @return {module:model/StoreOrderCapacityPeriod} The populated StoreOrderCapacityPeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreOrderCapacityPeriod(); + + if (data.hasOwnProperty('MaxOrderNumberPerStoreInterval')) { + obj['MaxOrderNumberPerStoreInterval'] = ApiClient.convertToType(data['MaxOrderNumberPerStoreInterval'], 'Number'); + } + if (data.hasOwnProperty('DayOfTheWeek')) { + obj['DayOfTheWeek'] = ApiClient.convertToType(data['DayOfTheWeek'], 'String'); + } + if (data.hasOwnProperty('PeriodStartHour')) { + obj['PeriodStartHour'] = ApiClient.convertToType(data['PeriodStartHour'], 'Number'); + } + if (data.hasOwnProperty('PeriodStartMinutes')) { + obj['PeriodStartMinutes'] = ApiClient.convertToType(data['PeriodStartMinutes'], 'Number'); + } + if (data.hasOwnProperty('PeriodEndHour')) { + obj['PeriodEndHour'] = ApiClient.convertToType(data['PeriodEndHour'], 'Number'); + } + if (data.hasOwnProperty('PeriodEndMinutes')) { + obj['PeriodEndMinutes'] = ApiClient.convertToType(data['PeriodEndMinutes'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The maximum number of orders per each store order interval in this order capacity period. E.g. for a period from 9:00 till 11:00, if the store's interval is 10 minutes, and MaxOrderNumberPerStoreInterval is set to 5, it means that within each 10-minute interval between 9:00 and 11:00 (i.e. 9:00-9:10, 9:10-9:20, .. , 10:50-11:00) it will be possible to request at most 5 orders. + * @member {Number} MaxOrderNumberPerStoreInterval + */ +StoreOrderCapacityPeriod.prototype['MaxOrderNumberPerStoreInterval'] = undefined; + +/** + * Day of the week the period pertains to + * @member {module:model/StoreOrderCapacityPeriod.DayOfTheWeekEnum} DayOfTheWeek + */ +StoreOrderCapacityPeriod.prototype['DayOfTheWeek'] = undefined; + +/** + * The hour the period starts at + * @member {Number} PeriodStartHour + */ +StoreOrderCapacityPeriod.prototype['PeriodStartHour'] = undefined; + +/** + * The minutes after the hour the period starts at + * @member {Number} PeriodStartMinutes + */ +StoreOrderCapacityPeriod.prototype['PeriodStartMinutes'] = undefined; + +/** + * The hour the period ends at + * @member {Number} PeriodEndHour + */ +StoreOrderCapacityPeriod.prototype['PeriodEndHour'] = undefined; + +/** + * The minutes after the hour the period ends at + * @member {Number} PeriodEndMinutes + */ +StoreOrderCapacityPeriod.prototype['PeriodEndMinutes'] = undefined; + + + + + +/** + * Allowed values for the DayOfTheWeek property. + * @enum {String} + * @readonly + */ +StoreOrderCapacityPeriod['DayOfTheWeekEnum'] = { + + /** + * value: "Sunday" + * @const + */ + "Sunday": "Sunday", + + /** + * value: "Monday" + * @const + */ + "Monday": "Monday", + + /** + * value: "Tuesday" + * @const + */ + "Tuesday": "Tuesday", + + /** + * value: "Wednesday" + * @const + */ + "Wednesday": "Wednesday", + + /** + * value: "Thursday" + * @const + */ + "Thursday": "Thursday", + + /** + * value: "Friday" + * @const + */ + "Friday": "Friday", + + /** + * value: "Saturday" + * @const + */ + "Saturday": "Saturday" +}; + + + +export default StoreOrderCapacityPeriod; + diff --git a/src/model/StorePreOrderConfigUpdatedEvent.js b/src/model/StorePreOrderConfigUpdatedEvent.js new file mode 100644 index 00000000..9980f22f --- /dev/null +++ b/src/model/StorePreOrderConfigUpdatedEvent.js @@ -0,0 +1,171 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import PreOrderConfig from './PreOrderConfig'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StorePreOrderConfigUpdatedEvent model module. + * @module model/StorePreOrderConfigUpdatedEvent + * @version 1.0.0 + */ +class StorePreOrderConfigUpdatedEvent { + /** + * Constructs a new StorePreOrderConfigUpdatedEvent. + * Store Pre order config updated + * @alias module:model/StorePreOrderConfigUpdatedEvent + */ + constructor() { + + StorePreOrderConfigUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StorePreOrderConfigUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StorePreOrderConfigUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StorePreOrderConfigUpdatedEvent} The populated StorePreOrderConfigUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StorePreOrderConfigUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('PreOrderConfig')) { + obj['PreOrderConfig'] = PreOrderConfig.constructFromObject(data['PreOrderConfig']); + } + if (data.hasOwnProperty('OldPreOrderConfig')) { + obj['OldPreOrderConfig'] = PreOrderConfig.constructFromObject(data['OldPreOrderConfig']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StorePreOrderConfigUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StorePreOrderConfigUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StorePreOrderConfigUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StorePreOrderConfigUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/PreOrderConfig} PreOrderConfig + */ +StorePreOrderConfigUpdatedEvent.prototype['PreOrderConfig'] = undefined; + +/** + * @member {module:model/PreOrderConfig} OldPreOrderConfig + */ +StorePreOrderConfigUpdatedEvent.prototype['OldPreOrderConfig'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StorePreOrderConfigUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StorePreOrderConfigUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StorePreOrderConfigUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StorePreOrderConfigUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StorePreOrderConfigUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StorePreOrderConfigUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StorePreOrderConfigUpdatedEvent; + diff --git a/src/model/StorePublishedEvent.js b/src/model/StorePublishedEvent.js new file mode 100644 index 00000000..3e168eb5 --- /dev/null +++ b/src/model/StorePublishedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StorePublishedEvent model module. + * @module model/StorePublishedEvent + * @version 1.0.0 + */ +class StorePublishedEvent { + /** + * Constructs a new StorePublishedEvent. + * Store Published Event + * @alias module:model/StorePublishedEvent + */ + constructor() { + + StorePublishedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StorePublishedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StorePublishedEvent} obj Optional instance to populate. + * @return {module:model/StorePublishedEvent} The populated StorePublishedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StorePublishedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Store')) { + obj['Store'] = Store.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StorePublishedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StorePublishedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StorePublishedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StorePublishedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StorePublishedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Store} Store + */ +StorePublishedEvent.prototype['Store'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StorePublishedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StorePublishedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StorePublishedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StorePublishedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StorePublishedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StorePublishedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StorePublishedEvent; + diff --git a/src/model/StoreServiceChargeUpdatedEvent.js b/src/model/StoreServiceChargeUpdatedEvent.js new file mode 100644 index 00000000..331d8af1 --- /dev/null +++ b/src/model/StoreServiceChargeUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ServiceCharge from './ServiceCharge'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreServiceChargeUpdatedEvent model module. + * @module model/StoreServiceChargeUpdatedEvent + * @version 1.0.0 + */ +class StoreServiceChargeUpdatedEvent { + /** + * Constructs a new StoreServiceChargeUpdatedEvent. + * Service Charge Updated Event + * @alias module:model/StoreServiceChargeUpdatedEvent + */ + constructor() { + + StoreServiceChargeUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreServiceChargeUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreServiceChargeUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreServiceChargeUpdatedEvent} The populated StoreServiceChargeUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreServiceChargeUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('ServiceCharge')) { + obj['ServiceCharge'] = ServiceCharge.constructFromObject(data['ServiceCharge']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreServiceChargeUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreServiceChargeUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreServiceChargeUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreServiceChargeUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/ServiceCharge} ServiceCharge + */ +StoreServiceChargeUpdatedEvent.prototype['ServiceCharge'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreServiceChargeUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreServiceChargeUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreServiceChargeUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreServiceChargeUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreServiceChargeUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreServiceChargeUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreServiceChargeUpdatedEvent; + diff --git a/src/model/StoreStatistics.js b/src/model/StoreStatistics.js new file mode 100644 index 00000000..2440f39e --- /dev/null +++ b/src/model/StoreStatistics.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreDataPoint from './StoreDataPoint'; + +/** + * The StoreStatistics model module. + * @module model/StoreStatistics + * @version 1.0.0 + */ +class StoreStatistics { + /** + * Constructs a new StoreStatistics. + * Store statistics + * @alias module:model/StoreStatistics + */ + constructor() { + + StoreStatistics.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreStatistics from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreStatistics} obj Optional instance to populate. + * @return {module:model/StoreStatistics} The populated StoreStatistics instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreStatistics(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], [StoreDataPoint]); + } + } + return obj; + } + + +} + +/** + * Store Id + * @member {Number} StoreId + */ +StoreStatistics.prototype['StoreId'] = undefined; + +/** + * Store Data Points + * @member {Array.} Data + */ +StoreStatistics.prototype['Data'] = undefined; + + + + + + +export default StoreStatistics; + diff --git a/src/model/StoreSummary.js b/src/model/StoreSummary.js new file mode 100644 index 00000000..3d6cb5b6 --- /dev/null +++ b/src/model/StoreSummary.js @@ -0,0 +1,850 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Coordinates from './Coordinates'; + +/** + * The StoreSummary model module. + * @module model/StoreSummary + * @version 1.0.0 + */ +class StoreSummary { + /** + * Constructs a new StoreSummary. + * Store summary + * @alias module:model/StoreSummary + */ + constructor() { + + StoreSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreSummary} obj Optional instance to populate. + * @return {module:model/StoreSummary} The populated StoreSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreSummary(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('MenuId')) { + obj['MenuId'] = ApiClient.convertToType(data['MenuId'], 'Number'); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], {'String': 'String'}); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('Coordinates')) { + obj['Coordinates'] = Coordinates.constructFromObject(data['Coordinates']); + } + if (data.hasOwnProperty('StoreTimezone')) { + obj['StoreTimezone'] = ApiClient.convertToType(data['StoreTimezone'], 'String'); + } + if (data.hasOwnProperty('StoreIanaTimezone')) { + obj['StoreIanaTimezone'] = ApiClient.convertToType(data['StoreIanaTimezone'], 'String'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('TaxId')) { + obj['TaxId'] = ApiClient.convertToType(data['TaxId'], 'String'); + } + if (data.hasOwnProperty('PrettyAddress')) { + obj['PrettyAddress'] = ApiClient.convertToType(data['PrettyAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Store identifier + * @member {Number} Id + */ +StoreSummary.prototype['Id'] = undefined; + +/** + * Store name + * @member {String} Name + */ +StoreSummary.prototype['Name'] = undefined; + +/** + * Stores menu identifier + * @member {Number} MenuId + */ +StoreSummary.prototype['MenuId'] = undefined; + +/** + * Store metadata + * @member {Object.} Metadata + */ +StoreSummary.prototype['Metadata'] = undefined; + +/** + * Currency which used by the Store + * @member {module:model/StoreSummary.CurrencyEnum} Currency + */ +StoreSummary.prototype['Currency'] = undefined; + +/** + * @member {module:model/Coordinates} Coordinates + */ +StoreSummary.prototype['Coordinates'] = undefined; + +/** + * Timezone of store + * @member {String} StoreTimezone + */ +StoreSummary.prototype['StoreTimezone'] = undefined; + +/** + * IANA Timezone of store + * @member {String} StoreIanaTimezone + */ +StoreSummary.prototype['StoreIanaTimezone'] = undefined; + +/** + * Store group id of store + * @member {Number} StoreGroupId + */ +StoreSummary.prototype['StoreGroupId'] = undefined; + +/** + * VAT number or generic Tax ID of the store + * @member {String} TaxId + */ +StoreSummary.prototype['TaxId'] = undefined; + +/** + * Address of the store + * @member {String} PrettyAddress + */ +StoreSummary.prototype['PrettyAddress'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +StoreSummary['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default StoreSummary; + diff --git a/src/model/StoreTipUpdatedEvent.js b/src/model/StoreTipUpdatedEvent.js new file mode 100644 index 00000000..e743b30f --- /dev/null +++ b/src/model/StoreTipUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UpdateTipConfiguration from './UpdateTipConfiguration'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreTipUpdatedEvent model module. + * @module model/StoreTipUpdatedEvent + * @version 1.0.0 + */ +class StoreTipUpdatedEvent { + /** + * Constructs a new StoreTipUpdatedEvent. + * Store Tip Updated + * @alias module:model/StoreTipUpdatedEvent + */ + constructor() { + + StoreTipUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreTipUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreTipUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreTipUpdatedEvent} The populated StoreTipUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreTipUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Config')) { + obj['Config'] = UpdateTipConfiguration.constructFromObject(data['Config']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreTipUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreTipUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreTipUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreTipUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UpdateTipConfiguration} Config + */ +StoreTipUpdatedEvent.prototype['Config'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreTipUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreTipUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreTipUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreTipUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreTipUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreTipUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreTipUpdatedEvent; + diff --git a/src/model/StoreUnarchivedEvent.js b/src/model/StoreUnarchivedEvent.js new file mode 100644 index 00000000..0f296ce0 --- /dev/null +++ b/src/model/StoreUnarchivedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreUnarchivedEvent model module. + * @module model/StoreUnarchivedEvent + * @version 1.0.0 + */ +class StoreUnarchivedEvent { + /** + * Constructs a new StoreUnarchivedEvent. + * Store Unarchived Event + * @alias module:model/StoreUnarchivedEvent + */ + constructor() { + + StoreUnarchivedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreUnarchivedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreUnarchivedEvent} obj Optional instance to populate. + * @return {module:model/StoreUnarchivedEvent} The populated StoreUnarchivedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreUnarchivedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Store')) { + obj['Store'] = Store.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreUnarchivedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreUnarchivedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreUnarchivedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreUnarchivedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreUnarchivedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Store} Store + */ +StoreUnarchivedEvent.prototype['Store'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreUnarchivedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreUnarchivedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreUnarchivedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreUnarchivedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreUnarchivedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreUnarchivedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreUnarchivedEvent; + diff --git a/src/model/StoreUnpublishedEvent.js b/src/model/StoreUnpublishedEvent.js new file mode 100644 index 00000000..2ccfd8ca --- /dev/null +++ b/src/model/StoreUnpublishedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreUnpublishedEvent model module. + * @module model/StoreUnpublishedEvent + * @version 1.0.0 + */ +class StoreUnpublishedEvent { + /** + * Constructs a new StoreUnpublishedEvent. + * Store Unpublished Event + * @alias module:model/StoreUnpublishedEvent + */ + constructor() { + + StoreUnpublishedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreUnpublishedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreUnpublishedEvent} obj Optional instance to populate. + * @return {module:model/StoreUnpublishedEvent} The populated StoreUnpublishedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreUnpublishedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Store')) { + obj['Store'] = Store.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreUnpublishedEvent.prototype['EventName'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreUnpublishedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreUnpublishedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreUnpublishedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreUnpublishedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Store} Store + */ +StoreUnpublishedEvent.prototype['Store'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreUnpublishedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreUnpublishedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreUnpublishedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreUnpublishedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +StoreUnpublishedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreUnpublishedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreUnpublishedEvent; + diff --git a/src/model/StoreUpdatedEvent.js b/src/model/StoreUpdatedEvent.js new file mode 100644 index 00000000..4808fe81 --- /dev/null +++ b/src/model/StoreUpdatedEvent.js @@ -0,0 +1,172 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Store from './Store'; +import UserEventInfo from './UserEventInfo'; + +/** + * The StoreUpdatedEvent model module. + * @module model/StoreUpdatedEvent + * @version 1.0.0 + */ +class StoreUpdatedEvent { + /** + * Constructs a new StoreUpdatedEvent. + * Store Updated Event + * @alias module:model/StoreUpdatedEvent + */ + constructor() { + + StoreUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreUpdatedEvent} obj Optional instance to populate. + * @return {module:model/StoreUpdatedEvent} The populated StoreUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Store')) { + obj['Store'] = Store.constructFromObject(data['Store']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +StoreUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Organisation Id + * @member {String} OrgId + */ +StoreUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +StoreUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreUpdatedEvent.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +StoreUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +StoreUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Store} Store + */ +StoreUpdatedEvent.prototype['Store'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +StoreUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +StoreUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +StoreUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +StoreUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +StoreUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default StoreUpdatedEvent; + diff --git a/src/model/StoreValidationConfig.js b/src/model/StoreValidationConfig.js new file mode 100644 index 00000000..96c967cf --- /dev/null +++ b/src/model/StoreValidationConfig.js @@ -0,0 +1,109 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StoreConfig from './StoreConfig'; + +/** + * The StoreValidationConfig model module. + * @module model/StoreValidationConfig + * @version 1.0.0 + */ +class StoreValidationConfig { + /** + * Constructs a new StoreValidationConfig. + * Hey + * @alias module:model/StoreValidationConfig + */ + constructor() { + + StoreValidationConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StoreValidationConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StoreValidationConfig} obj Optional instance to populate. + * @return {module:model/StoreValidationConfig} The populated StoreValidationConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StoreValidationConfig(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('IsValid')) { + obj['IsValid'] = ApiClient.convertToType(data['IsValid'], 'Boolean'); + } + if (data.hasOwnProperty('StoreGroupId')) { + obj['StoreGroupId'] = ApiClient.convertToType(data['StoreGroupId'], 'Number'); + } + if (data.hasOwnProperty('ConfigValidation')) { + obj['ConfigValidation'] = StoreConfig.constructFromObject(data['ConfigValidation']); + } + } + return obj; + } + + +} + +/** + * Store identifier + * @member {Number} StoreId + */ +StoreValidationConfig.prototype['StoreId'] = undefined; + +/** + * Name + * @member {String} Name + */ +StoreValidationConfig.prototype['Name'] = undefined; + +/** + * Is Store Valid for Kiosk + * @member {Boolean} IsValid + */ +StoreValidationConfig.prototype['IsValid'] = undefined; + +/** + * Store group Id + * @member {Number} StoreGroupId + */ +StoreValidationConfig.prototype['StoreGroupId'] = undefined; + +/** + * @member {module:model/StoreConfig} ConfigValidation + */ +StoreValidationConfig.prototype['ConfigValidation'] = undefined; + + + + + + +export default StoreValidationConfig; + diff --git a/src/model/Stream.js b/src/model/Stream.js new file mode 100644 index 00000000..c1798d7a --- /dev/null +++ b/src/model/Stream.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Stream model module. + * @module model/Stream + * @version 1.0.0 + */ +class Stream { + /** + * Constructs a new Stream. + * @alias module:model/Stream + */ + constructor() { + + Stream.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Stream from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Stream} obj Optional instance to populate. + * @return {module:model/Stream} The populated Stream instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Stream(); + + if (data.hasOwnProperty('CanRead')) { + obj['CanRead'] = ApiClient.convertToType(data['CanRead'], 'Boolean'); + } + if (data.hasOwnProperty('CanSeek')) { + obj['CanSeek'] = ApiClient.convertToType(data['CanSeek'], 'Boolean'); + } + if (data.hasOwnProperty('CanTimeout')) { + obj['CanTimeout'] = ApiClient.convertToType(data['CanTimeout'], 'Boolean'); + } + if (data.hasOwnProperty('CanWrite')) { + obj['CanWrite'] = ApiClient.convertToType(data['CanWrite'], 'Boolean'); + } + if (data.hasOwnProperty('Length')) { + obj['Length'] = ApiClient.convertToType(data['Length'], 'Number'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('ReadTimeout')) { + obj['ReadTimeout'] = ApiClient.convertToType(data['ReadTimeout'], 'Number'); + } + if (data.hasOwnProperty('WriteTimeout')) { + obj['WriteTimeout'] = ApiClient.convertToType(data['WriteTimeout'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} CanRead + */ +Stream.prototype['CanRead'] = undefined; + +/** + * @member {Boolean} CanSeek + */ +Stream.prototype['CanSeek'] = undefined; + +/** + * @member {Boolean} CanTimeout + */ +Stream.prototype['CanTimeout'] = undefined; + +/** + * @member {Boolean} CanWrite + */ +Stream.prototype['CanWrite'] = undefined; + +/** + * @member {Number} Length + */ +Stream.prototype['Length'] = undefined; + +/** + * @member {Number} Position + */ +Stream.prototype['Position'] = undefined; + +/** + * @member {Number} ReadTimeout + */ +Stream.prototype['ReadTimeout'] = undefined; + +/** + * @member {Number} WriteTimeout + */ +Stream.prototype['WriteTimeout'] = undefined; + + + + + + +export default Stream; + diff --git a/src/model/StripeAccountLinkRequest.js b/src/model/StripeAccountLinkRequest.js new file mode 100644 index 00000000..648227a7 --- /dev/null +++ b/src/model/StripeAccountLinkRequest.js @@ -0,0 +1,142 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StripeAccountLinkRequest model module. + * @module model/StripeAccountLinkRequest + * @version 1.0.0 + */ +class StripeAccountLinkRequest { + /** + * Constructs a new StripeAccountLinkRequest. + * Represents a request for Stripe account link creation + * @alias module:model/StripeAccountLinkRequest + */ + constructor() { + + StripeAccountLinkRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StripeAccountLinkRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StripeAccountLinkRequest} obj Optional instance to populate. + * @return {module:model/StripeAccountLinkRequest} The populated StripeAccountLinkRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StripeAccountLinkRequest(); + + if (data.hasOwnProperty('StripeId')) { + obj['StripeId'] = ApiClient.convertToType(data['StripeId'], 'String'); + } + if (data.hasOwnProperty('ReturnUrl')) { + obj['ReturnUrl'] = ApiClient.convertToType(data['ReturnUrl'], 'String'); + } + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = ApiClient.convertToType(data['Collect'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + } + return obj; + } + + +} + +/** + * Stripe's own connected account identifier + * @member {String} StripeId + */ +StripeAccountLinkRequest.prototype['StripeId'] = undefined; + +/** + * URL to be hit if link creation succeeds + * @member {String} ReturnUrl + */ +StripeAccountLinkRequest.prototype['ReturnUrl'] = undefined; + +/** + * Which information to collect from users at this stage + * @member {module:model/StripeAccountLinkRequest.CollectEnum} Collect + */ +StripeAccountLinkRequest.prototype['Collect'] = undefined; + +/** + * Either onboarding or edit user information + * @member {module:model/StripeAccountLinkRequest.TypeEnum} Type + */ +StripeAccountLinkRequest.prototype['Type'] = undefined; + + + + + +/** + * Allowed values for the Collect property. + * @enum {String} + * @readonly + */ +StripeAccountLinkRequest['CollectEnum'] = { + + /** + * value: "CurrentlyDue" + * @const + */ + "CurrentlyDue": "CurrentlyDue", + + /** + * value: "EventuallyDue" + * @const + */ + "EventuallyDue": "EventuallyDue" +}; + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +StripeAccountLinkRequest['TypeEnum'] = { + + /** + * value: "Onboarding" + * @const + */ + "Onboarding": "Onboarding", + + /** + * value: "Update" + * @const + */ + "Update": "Update" +}; + + + +export default StripeAccountLinkRequest; + diff --git a/src/model/StripeConnectedAccount.js b/src/model/StripeConnectedAccount.js new file mode 100644 index 00000000..8d0574c6 --- /dev/null +++ b/src/model/StripeConnectedAccount.js @@ -0,0 +1,259 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StripeConnectedAccount model module. + * @module model/StripeConnectedAccount + * @version 1.0.0 + */ +class StripeConnectedAccount { + /** + * Constructs a new StripeConnectedAccount. + * Represents a Stripe custom connected account + * @alias module:model/StripeConnectedAccount + */ + constructor() { + + StripeConnectedAccount.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StripeConnectedAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StripeConnectedAccount} obj Optional instance to populate. + * @return {module:model/StripeConnectedAccount} The populated StripeConnectedAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StripeConnectedAccount(); + + if (data.hasOwnProperty('FlipdishConnectedAccountId')) { + obj['FlipdishConnectedAccountId'] = ApiClient.convertToType(data['FlipdishConnectedAccountId'], 'Number'); + } + if (data.hasOwnProperty('StripeId')) { + obj['StripeId'] = ApiClient.convertToType(data['StripeId'], 'String'); + } + if (data.hasOwnProperty('WhitelabelConfigId')) { + obj['WhitelabelConfigId'] = ApiClient.convertToType(data['WhitelabelConfigId'], 'Number'); + } + if (data.hasOwnProperty('CardPaymentsStatus')) { + obj['CardPaymentsStatus'] = ApiClient.convertToType(data['CardPaymentsStatus'], 'String'); + } + if (data.hasOwnProperty('TransfersStatus')) { + obj['TransfersStatus'] = ApiClient.convertToType(data['TransfersStatus'], 'String'); + } + if (data.hasOwnProperty('AccountStatus')) { + obj['AccountStatus'] = ApiClient.convertToType(data['AccountStatus'], 'String'); + } + if (data.hasOwnProperty('PayoutsEnabled')) { + obj['PayoutsEnabled'] = ApiClient.convertToType(data['PayoutsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('PaymentsEnabled')) { + obj['PaymentsEnabled'] = ApiClient.convertToType(data['PaymentsEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Flipdish connected account identifier + * @member {Number} FlipdishConnectedAccountId + */ +StripeConnectedAccount.prototype['FlipdishConnectedAccountId'] = undefined; + +/** + * Stripe's own connected account identifier + * @member {String} StripeId + */ +StripeConnectedAccount.prototype['StripeId'] = undefined; + +/** + * Id of the WhitelabelConfig the connected account is assigned to + * @member {Number} WhitelabelConfigId + */ +StripeConnectedAccount.prototype['WhitelabelConfigId'] = undefined; + +/** + * Card payments capability status (Inactive, Pending, Active, Unrequested) + * @member {module:model/StripeConnectedAccount.CardPaymentsStatusEnum} CardPaymentsStatus + */ +StripeConnectedAccount.prototype['CardPaymentsStatus'] = undefined; + +/** + * Transfers capability status (Inactive, Pending, Active, Unrequested) + * @member {module:model/StripeConnectedAccount.TransfersStatusEnum} TransfersStatus + */ +StripeConnectedAccount.prototype['TransfersStatus'] = undefined; + +/** + * Current status of the account + * @member {module:model/StripeConnectedAccount.AccountStatusEnum} AccountStatus + */ +StripeConnectedAccount.prototype['AccountStatus'] = undefined; + +/** + * Payouts Enabled status + * @member {Boolean} PayoutsEnabled + */ +StripeConnectedAccount.prototype['PayoutsEnabled'] = undefined; + +/** + * Payments Enabled status + * @member {Boolean} PaymentsEnabled + */ +StripeConnectedAccount.prototype['PaymentsEnabled'] = undefined; + + + + + +/** + * Allowed values for the CardPaymentsStatus property. + * @enum {String} + * @readonly + */ +StripeConnectedAccount['CardPaymentsStatusEnum'] = { + + /** + * value: "Inactive" + * @const + */ + "Inactive": "Inactive", + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "Active" + * @const + */ + "Active": "Active", + + /** + * value: "Unrequested" + * @const + */ + "Unrequested": "Unrequested" +}; + + +/** + * Allowed values for the TransfersStatus property. + * @enum {String} + * @readonly + */ +StripeConnectedAccount['TransfersStatusEnum'] = { + + /** + * value: "Inactive" + * @const + */ + "Inactive": "Inactive", + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "Active" + * @const + */ + "Active": "Active", + + /** + * value: "Unrequested" + * @const + */ + "Unrequested": "Unrequested" +}; + + +/** + * Allowed values for the AccountStatus property. + * @enum {String} + * @readonly + */ +StripeConnectedAccount['AccountStatusEnum'] = { + + /** + * value: "Disabled" + * @const + */ + "Disabled": "Disabled", + + /** + * value: "Enabled" + * @const + */ + "Enabled": "Enabled", + + /** + * value: "AdditionalInformationRequired" + * @const + */ + "AdditionalInformationRequired": "AdditionalInformationRequired", + + /** + * value: "PendingVerification" + * @const + */ + "PendingVerification": "PendingVerification", + + /** + * value: "Unverified" + * @const + */ + "Unverified": "Unverified", + + /** + * value: "Rejected" + * @const + */ + "Rejected": "Rejected", + + /** + * value: "UpdateExternalAccount" + * @const + */ + "UpdateExternalAccount": "UpdateExternalAccount", + + /** + * value: "PlatformPaused" + * @const + */ + "PlatformPaused": "PlatformPaused" +}; + + + +export default StripeConnectedAccount; + diff --git a/src/model/StripeConnectedAccountInfo.js b/src/model/StripeConnectedAccountInfo.js new file mode 100644 index 00000000..da9452c1 --- /dev/null +++ b/src/model/StripeConnectedAccountInfo.js @@ -0,0 +1,250 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StripeConnectedAccountInfo model module. + * @module model/StripeConnectedAccountInfo + * @version 1.0.0 + */ +class StripeConnectedAccountInfo { + /** + * Constructs a new StripeConnectedAccountInfo. + * Represents information about a Stripe connected account associated with a bank account + * @alias module:model/StripeConnectedAccountInfo + */ + constructor() { + + StripeConnectedAccountInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StripeConnectedAccountInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StripeConnectedAccountInfo} obj Optional instance to populate. + * @return {module:model/StripeConnectedAccountInfo} The populated StripeConnectedAccountInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StripeConnectedAccountInfo(); + + if (data.hasOwnProperty('AccountStatus')) { + obj['AccountStatus'] = ApiClient.convertToType(data['AccountStatus'], 'String'); + } + if (data.hasOwnProperty('StripeId')) { + obj['StripeId'] = ApiClient.convertToType(data['StripeId'], 'String'); + } + if (data.hasOwnProperty('CardPaymentStatus')) { + obj['CardPaymentStatus'] = ApiClient.convertToType(data['CardPaymentStatus'], 'String'); + } + if (data.hasOwnProperty('PayoutScheduleInterval')) { + obj['PayoutScheduleInterval'] = ApiClient.convertToType(data['PayoutScheduleInterval'], 'String'); + } + if (data.hasOwnProperty('PayoutsEnabled')) { + obj['PayoutsEnabled'] = ApiClient.convertToType(data['PayoutsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('PayoutsPaused')) { + obj['PayoutsPaused'] = ApiClient.convertToType(data['PayoutsPaused'], 'Boolean'); + } + if (data.hasOwnProperty('PaymentsEnabled')) { + obj['PaymentsEnabled'] = ApiClient.convertToType(data['PaymentsEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Stripe connected account status + * @member {module:model/StripeConnectedAccountInfo.AccountStatusEnum} AccountStatus + */ +StripeConnectedAccountInfo.prototype['AccountStatus'] = undefined; + +/** + * Stripe connected account id + * @member {String} StripeId + */ +StripeConnectedAccountInfo.prototype['StripeId'] = undefined; + +/** + * Current status of the Card Payment capability of the account + * @member {module:model/StripeConnectedAccountInfo.CardPaymentStatusEnum} CardPaymentStatus + */ +StripeConnectedAccountInfo.prototype['CardPaymentStatus'] = undefined; + +/** + * Payouts Schedule Interval + * @member {module:model/StripeConnectedAccountInfo.PayoutScheduleIntervalEnum} PayoutScheduleInterval + */ +StripeConnectedAccountInfo.prototype['PayoutScheduleInterval'] = undefined; + +/** + * Payouts Enabled status + * @member {Boolean} PayoutsEnabled + */ +StripeConnectedAccountInfo.prototype['PayoutsEnabled'] = undefined; + +/** + * Flag indicating if payouts are paused + * @member {Boolean} PayoutsPaused + */ +StripeConnectedAccountInfo.prototype['PayoutsPaused'] = undefined; + +/** + * Flag indicating if payments are enabled + * @member {Boolean} PaymentsEnabled + */ +StripeConnectedAccountInfo.prototype['PaymentsEnabled'] = undefined; + + + + + +/** + * Allowed values for the AccountStatus property. + * @enum {String} + * @readonly + */ +StripeConnectedAccountInfo['AccountStatusEnum'] = { + + /** + * value: "Disabled" + * @const + */ + "Disabled": "Disabled", + + /** + * value: "Enabled" + * @const + */ + "Enabled": "Enabled", + + /** + * value: "AdditionalInformationRequired" + * @const + */ + "AdditionalInformationRequired": "AdditionalInformationRequired", + + /** + * value: "PendingVerification" + * @const + */ + "PendingVerification": "PendingVerification", + + /** + * value: "Unverified" + * @const + */ + "Unverified": "Unverified", + + /** + * value: "Rejected" + * @const + */ + "Rejected": "Rejected", + + /** + * value: "UpdateExternalAccount" + * @const + */ + "UpdateExternalAccount": "UpdateExternalAccount", + + /** + * value: "PlatformPaused" + * @const + */ + "PlatformPaused": "PlatformPaused" +}; + + +/** + * Allowed values for the CardPaymentStatus property. + * @enum {String} + * @readonly + */ +StripeConnectedAccountInfo['CardPaymentStatusEnum'] = { + + /** + * value: "Inactive" + * @const + */ + "Inactive": "Inactive", + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "Active" + * @const + */ + "Active": "Active", + + /** + * value: "Unrequested" + * @const + */ + "Unrequested": "Unrequested" +}; + + +/** + * Allowed values for the PayoutScheduleInterval property. + * @enum {String} + * @readonly + */ +StripeConnectedAccountInfo['PayoutScheduleIntervalEnum'] = { + + /** + * value: "Manual" + * @const + */ + "Manual": "Manual", + + /** + * value: "Daily" + * @const + */ + "Daily": "Daily", + + /** + * value: "Weekly" + * @const + */ + "Weekly": "Weekly", + + /** + * value: "Monthly" + * @const + */ + "Monthly": "Monthly" +}; + + + +export default StripeConnectedAccountInfo; + diff --git a/src/model/StripeCustomConnectedAccount.js b/src/model/StripeCustomConnectedAccount.js new file mode 100644 index 00000000..a6337777 --- /dev/null +++ b/src/model/StripeCustomConnectedAccount.js @@ -0,0 +1,232 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StripeCustomConnectedAccount model module. + * @module model/StripeCustomConnectedAccount + * @version 1.0.0 + */ +class StripeCustomConnectedAccount { + /** + * Constructs a new StripeCustomConnectedAccount. + * Flipdish Stripe Custom Connected Account associated to the Store + * @alias module:model/StripeCustomConnectedAccount + */ + constructor() { + + StripeCustomConnectedAccount.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StripeCustomConnectedAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StripeCustomConnectedAccount} obj Optional instance to populate. + * @return {module:model/StripeCustomConnectedAccount} The populated StripeCustomConnectedAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StripeCustomConnectedAccount(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StripeId')) { + obj['StripeId'] = ApiClient.convertToType(data['StripeId'], 'String'); + } + if (data.hasOwnProperty('CardPaymentsStatus')) { + obj['CardPaymentsStatus'] = ApiClient.convertToType(data['CardPaymentsStatus'], 'String'); + } + if (data.hasOwnProperty('TransfersStatus')) { + obj['TransfersStatus'] = ApiClient.convertToType(data['TransfersStatus'], 'String'); + } + if (data.hasOwnProperty('AccountStatus')) { + obj['AccountStatus'] = ApiClient.convertToType(data['AccountStatus'], 'String'); + } + } + return obj; + } + + +} + +/** + * Physical Restaurant Id + * @member {Number} StoreId + */ +StripeCustomConnectedAccount.prototype['StoreId'] = undefined; + +/** + * Stripe's own connected account identifier + * @member {String} StripeId + */ +StripeCustomConnectedAccount.prototype['StripeId'] = undefined; + +/** + * Card payments capability status (Inactive, Pending, Active, Unrequested) + * @member {module:model/StripeCustomConnectedAccount.CardPaymentsStatusEnum} CardPaymentsStatus + */ +StripeCustomConnectedAccount.prototype['CardPaymentsStatus'] = undefined; + +/** + * Transfers capability status (Inactive, Pending, Active, Unrequested) + * @member {module:model/StripeCustomConnectedAccount.TransfersStatusEnum} TransfersStatus + */ +StripeCustomConnectedAccount.prototype['TransfersStatus'] = undefined; + +/** + * Current status of the account + * @member {module:model/StripeCustomConnectedAccount.AccountStatusEnum} AccountStatus + */ +StripeCustomConnectedAccount.prototype['AccountStatus'] = undefined; + + + + + +/** + * Allowed values for the CardPaymentsStatus property. + * @enum {String} + * @readonly + */ +StripeCustomConnectedAccount['CardPaymentsStatusEnum'] = { + + /** + * value: "Inactive" + * @const + */ + "Inactive": "Inactive", + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "Active" + * @const + */ + "Active": "Active", + + /** + * value: "Unrequested" + * @const + */ + "Unrequested": "Unrequested" +}; + + +/** + * Allowed values for the TransfersStatus property. + * @enum {String} + * @readonly + */ +StripeCustomConnectedAccount['TransfersStatusEnum'] = { + + /** + * value: "Inactive" + * @const + */ + "Inactive": "Inactive", + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "Active" + * @const + */ + "Active": "Active", + + /** + * value: "Unrequested" + * @const + */ + "Unrequested": "Unrequested" +}; + + +/** + * Allowed values for the AccountStatus property. + * @enum {String} + * @readonly + */ +StripeCustomConnectedAccount['AccountStatusEnum'] = { + + /** + * value: "Disabled" + * @const + */ + "Disabled": "Disabled", + + /** + * value: "Enabled" + * @const + */ + "Enabled": "Enabled", + + /** + * value: "AdditionalInformationRequired" + * @const + */ + "AdditionalInformationRequired": "AdditionalInformationRequired", + + /** + * value: "PendingVerification" + * @const + */ + "PendingVerification": "PendingVerification", + + /** + * value: "Unverified" + * @const + */ + "Unverified": "Unverified", + + /** + * value: "Rejected" + * @const + */ + "Rejected": "Rejected", + + /** + * value: "UpdateExternalAccount" + * @const + */ + "UpdateExternalAccount": "UpdateExternalAccount", + + /** + * value: "PlatformPaused" + * @const + */ + "PlatformPaused": "PlatformPaused" +}; + + + +export default StripeCustomConnectedAccount; + diff --git a/src/model/StripeTerminalConnectionToken.js b/src/model/StripeTerminalConnectionToken.js new file mode 100644 index 00000000..d7f8dfa2 --- /dev/null +++ b/src/model/StripeTerminalConnectionToken.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StripeTerminalConnectionToken model module. + * @module model/StripeTerminalConnectionToken + * @version 1.0.0 + */ +class StripeTerminalConnectionToken { + /** + * Constructs a new StripeTerminalConnectionToken. + * Stripe Terminal Connection Token + * @alias module:model/StripeTerminalConnectionToken + */ + constructor() { + + StripeTerminalConnectionToken.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StripeTerminalConnectionToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StripeTerminalConnectionToken} obj Optional instance to populate. + * @return {module:model/StripeTerminalConnectionToken} The populated StripeTerminalConnectionToken instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StripeTerminalConnectionToken(); + + if (data.hasOwnProperty('Token')) { + obj['Token'] = ApiClient.convertToType(data['Token'], 'String'); + } + } + return obj; + } + + +} + +/** + * Connection Token + * @member {String} Token + */ +StripeTerminalConnectionToken.prototype['Token'] = undefined; + + + + + + +export default StripeTerminalConnectionToken; + diff --git a/src/model/StripeTerminalLocation.js b/src/model/StripeTerminalLocation.js new file mode 100644 index 00000000..c8563f3e --- /dev/null +++ b/src/model/StripeTerminalLocation.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StripeTerminalLocation model module. + * @module model/StripeTerminalLocation + * @version 1.0.0 + */ +class StripeTerminalLocation { + /** + * Constructs a new StripeTerminalLocation. + * Stripe Terminal Private Key + * @alias module:model/StripeTerminalLocation + */ + constructor() { + + StripeTerminalLocation.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StripeTerminalLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StripeTerminalLocation} obj Optional instance to populate. + * @return {module:model/StripeTerminalLocation} The populated StripeTerminalLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StripeTerminalLocation(); + + if (data.hasOwnProperty('Location')) { + obj['Location'] = ApiClient.convertToType(data['Location'], 'String'); + } + } + return obj; + } + + +} + +/** + * Registered location of the terminal + * @member {String} Location + */ +StripeTerminalLocation.prototype['Location'] = undefined; + + + + + + +export default StripeTerminalLocation; + diff --git a/src/model/StuartSettings.js b/src/model/StuartSettings.js new file mode 100644 index 00000000..f597f931 --- /dev/null +++ b/src/model/StuartSettings.js @@ -0,0 +1,244 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import StuartSettingsTransportPrices from './StuartSettingsTransportPrices'; + +/** + * The StuartSettings model module. + * @module model/StuartSettings + * @version 1.0.0 + */ +class StuartSettings { + /** + * Constructs a new StuartSettings. + * Stuart settings + * @alias module:model/StuartSettings + */ + constructor() { + + StuartSettings.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StuartSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StuartSettings} obj Optional instance to populate. + * @return {module:model/StuartSettings} The populated StuartSettings instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StuartSettings(); + + if (data.hasOwnProperty('ClientId')) { + obj['ClientId'] = ApiClient.convertToType(data['ClientId'], 'String'); + } + if (data.hasOwnProperty('ClientSecret')) { + obj['ClientSecret'] = ApiClient.convertToType(data['ClientSecret'], 'String'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + if (data.hasOwnProperty('WebhookUrlBasicAuthentication')) { + obj['WebhookUrlBasicAuthentication'] = ApiClient.convertToType(data['WebhookUrlBasicAuthentication'], 'String'); + } + if (data.hasOwnProperty('OverrideWebhookUrl')) { + obj['OverrideWebhookUrl'] = ApiClient.convertToType(data['OverrideWebhookUrl'], 'Boolean'); + } + if (data.hasOwnProperty('MinutesToPickupBeforeThanDeliveryTime')) { + obj['MinutesToPickupBeforeThanDeliveryTime'] = ApiClient.convertToType(data['MinutesToPickupBeforeThanDeliveryTime'], 'Number'); + } + if (data.hasOwnProperty('PackageType')) { + obj['PackageType'] = ApiClient.convertToType(data['PackageType'], 'String'); + } + if (data.hasOwnProperty('TransportType')) { + obj['TransportType'] = ApiClient.convertToType(data['TransportType'], 'String'); + } + if (data.hasOwnProperty('CancelOrderIfStuartCancelDelivery')) { + obj['CancelOrderIfStuartCancelDelivery'] = ApiClient.convertToType(data['CancelOrderIfStuartCancelDelivery'], 'Boolean'); + } + if (data.hasOwnProperty('TransportPrices')) { + obj['TransportPrices'] = StuartSettingsTransportPrices.constructFromObject(data['TransportPrices']); + } + } + return obj; + } + + +} + +/** + * Client Id + * @member {String} ClientId + */ +StuartSettings.prototype['ClientId'] = undefined; + +/** + * Client Secret + * @member {String} ClientSecret + */ +StuartSettings.prototype['ClientSecret'] = undefined; + +/** + * Enabled + * @member {Boolean} Enabled + */ +StuartSettings.prototype['Enabled'] = undefined; + +/** + * Webhook url to settle in the Stuart portal + * @member {String} WebhookUrlBasicAuthentication + */ +StuartSettings.prototype['WebhookUrlBasicAuthentication'] = undefined; + +/** + * Override Flipdish Webhook Url + * @member {Boolean} OverrideWebhookUrl + */ +StuartSettings.prototype['OverrideWebhookUrl'] = undefined; + +/** + * MinutesToPickupBeforeThanDeliveryTime + * @member {Number} MinutesToPickupBeforeThanDeliveryTime + */ +StuartSettings.prototype['MinutesToPickupBeforeThanDeliveryTime'] = undefined; + +/** + * Package type + * @member {module:model/StuartSettings.PackageTypeEnum} PackageType + */ +StuartSettings.prototype['PackageType'] = undefined; + +/** + * Transport type + * @member {module:model/StuartSettings.TransportTypeEnum} TransportType + */ +StuartSettings.prototype['TransportType'] = undefined; + +/** + * Determines if Flipdish order should be cancel when Stuart cancels delivery + * @member {Boolean} CancelOrderIfStuartCancelDelivery + */ +StuartSettings.prototype['CancelOrderIfStuartCancelDelivery'] = undefined; + +/** + * @member {module:model/StuartSettingsTransportPrices} TransportPrices + */ +StuartSettings.prototype['TransportPrices'] = undefined; + + + + + +/** + * Allowed values for the PackageType property. + * @enum {String} + * @readonly + */ +StuartSettings['PackageTypeEnum'] = { + + /** + * value: "Xsmall" + * @const + */ + "Xsmall": "Xsmall", + + /** + * value: "Small" + * @const + */ + "Small": "Small", + + /** + * value: "Medium" + * @const + */ + "Medium": "Medium", + + /** + * value: "Large" + * @const + */ + "Large": "Large", + + /** + * value: "Xlarge" + * @const + */ + "Xlarge": "Xlarge" +}; + + +/** + * Allowed values for the TransportType property. + * @enum {String} + * @readonly + */ +StuartSettings['TransportTypeEnum'] = { + + /** + * value: "Bike" + * @const + */ + "Bike": "Bike", + + /** + * value: "Cargobike" + * @const + */ + "Cargobike": "Cargobike", + + /** + * value: "Cargobikexl" + * @const + */ + "Cargobikexl": "Cargobikexl", + + /** + * value: "Motorbike" + * @const + */ + "Motorbike": "Motorbike", + + /** + * value: "Motorbikexl" + * @const + */ + "Motorbikexl": "Motorbikexl", + + /** + * value: "Car" + * @const + */ + "Car": "Car", + + /** + * value: "Van" + * @const + */ + "Van": "Van" +}; + + + +export default StuartSettings; + diff --git a/src/model/StuartSettingsTransportPrices.js b/src/model/StuartSettingsTransportPrices.js new file mode 100644 index 00000000..ec439ea7 --- /dev/null +++ b/src/model/StuartSettingsTransportPrices.js @@ -0,0 +1,120 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StuartSettingsTransportPrices model module. + * @module model/StuartSettingsTransportPrices + * @version 1.0.0 + */ +class StuartSettingsTransportPrices { + /** + * Constructs a new StuartSettingsTransportPrices. + * If the order exceeds are certain amount this configuration will determine a new vehicle type + * @alias module:model/StuartSettingsTransportPrices + */ + constructor() { + + StuartSettingsTransportPrices.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a StuartSettingsTransportPrices from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StuartSettingsTransportPrices} obj Optional instance to populate. + * @return {module:model/StuartSettingsTransportPrices} The populated StuartSettingsTransportPrices instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StuartSettingsTransportPrices(); + + if (data.hasOwnProperty('Bike')) { + obj['Bike'] = ApiClient.convertToType(data['Bike'], 'Number'); + } + if (data.hasOwnProperty('Cargobike')) { + obj['Cargobike'] = ApiClient.convertToType(data['Cargobike'], 'Number'); + } + if (data.hasOwnProperty('Cargobikexl')) { + obj['Cargobikexl'] = ApiClient.convertToType(data['Cargobikexl'], 'Number'); + } + if (data.hasOwnProperty('Motorbike')) { + obj['Motorbike'] = ApiClient.convertToType(data['Motorbike'], 'Number'); + } + if (data.hasOwnProperty('Motorbikexl')) { + obj['Motorbikexl'] = ApiClient.convertToType(data['Motorbikexl'], 'Number'); + } + if (data.hasOwnProperty('Car')) { + obj['Car'] = ApiClient.convertToType(data['Car'], 'Number'); + } + if (data.hasOwnProperty('Van')) { + obj['Van'] = ApiClient.convertToType(data['Van'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} Bike + */ +StuartSettingsTransportPrices.prototype['Bike'] = undefined; + +/** + * @member {Number} Cargobike + */ +StuartSettingsTransportPrices.prototype['Cargobike'] = undefined; + +/** + * @member {Number} Cargobikexl + */ +StuartSettingsTransportPrices.prototype['Cargobikexl'] = undefined; + +/** + * @member {Number} Motorbike + */ +StuartSettingsTransportPrices.prototype['Motorbike'] = undefined; + +/** + * @member {Number} Motorbikexl + */ +StuartSettingsTransportPrices.prototype['Motorbikexl'] = undefined; + +/** + * @member {Number} Car + */ +StuartSettingsTransportPrices.prototype['Car'] = undefined; + +/** + * @member {Number} Van + */ +StuartSettingsTransportPrices.prototype['Van'] = undefined; + + + + + + +export default StuartSettingsTransportPrices; + diff --git a/src/model/Subscription.js b/src/model/Subscription.js new file mode 100644 index 00000000..fa19ac66 --- /dev/null +++ b/src/model/Subscription.js @@ -0,0 +1,942 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import InvoiceDiscount from './InvoiceDiscount'; +import InvoiceItem from './InvoiceItem'; +import SubscriptionProduct from './SubscriptionProduct'; +import UpcomingInvoice from './UpcomingInvoice'; + +/** + * The Subscription model module. + * @module model/Subscription + * @version 1.0.0 + */ +class Subscription { + /** + * Constructs a new Subscription. + * Subscription + * @alias module:model/Subscription + * @param Products {Array.} Products + * @param SubscriptionId {String} The subscription identifier + * @param Name {String} + * @param Status {module:model/Subscription.StatusEnum} Status + * @param Currency {module:model/Subscription.CurrencyEnum} Currency + * @param User {String} User + */ + constructor(Products, SubscriptionId, Name, Status, Currency, User) { + + Subscription.initialize(this, Products, SubscriptionId, Name, Status, Currency, User); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Products, SubscriptionId, Name, Status, Currency, User) { + obj['Products'] = Products; + obj['SubscriptionId'] = SubscriptionId; + obj['Name'] = Name; + obj['Status'] = Status; + obj['Currency'] = Currency; + obj['User'] = User; + } + + /** + * Constructs a Subscription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Subscription} obj Optional instance to populate. + * @return {module:model/Subscription} The populated Subscription instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Subscription(); + + if (data.hasOwnProperty('Products')) { + obj['Products'] = ApiClient.convertToType(data['Products'], [SubscriptionProduct]); + } + if (data.hasOwnProperty('NextInvoiceAmount')) { + obj['NextInvoiceAmount'] = ApiClient.convertToType(data['NextInvoiceAmount'], 'Number'); + } + if (data.hasOwnProperty('NextInvoiceBillingDate')) { + obj['NextInvoiceBillingDate'] = ApiClient.convertToType(data['NextInvoiceBillingDate'], 'Date'); + } + if (data.hasOwnProperty('UpcomingInvoiceItems')) { + obj['UpcomingInvoiceItems'] = ApiClient.convertToType(data['UpcomingInvoiceItems'], [InvoiceItem]); + } + if (data.hasOwnProperty('UpcomingInvoiceDiscounts')) { + obj['UpcomingInvoiceDiscounts'] = ApiClient.convertToType(data['UpcomingInvoiceDiscounts'], [InvoiceDiscount]); + } + if (data.hasOwnProperty('UpcomingInvoice')) { + obj['UpcomingInvoice'] = UpcomingInvoice.constructFromObject(data['UpcomingInvoice']); + } + if (data.hasOwnProperty('SubscriptionId')) { + obj['SubscriptionId'] = ApiClient.convertToType(data['SubscriptionId'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = ApiClient.convertToType(data['User'], 'String'); + } + if (data.hasOwnProperty('DefaultPaymentDescription')) { + obj['DefaultPaymentDescription'] = ApiClient.convertToType(data['DefaultPaymentDescription'], 'String'); + } + if (data.hasOwnProperty('CancellationRequestDate')) { + obj['CancellationRequestDate'] = ApiClient.convertToType(data['CancellationRequestDate'], 'Date'); + } + if (data.hasOwnProperty('CancellationDate')) { + obj['CancellationDate'] = ApiClient.convertToType(data['CancellationDate'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Products + * @member {Array.} Products + */ +Subscription.prototype['Products'] = undefined; + +/** + * Next invoice amount + * @member {Number} NextInvoiceAmount + */ +Subscription.prototype['NextInvoiceAmount'] = undefined; + +/** + * Next invoice billing date + * @member {Date} NextInvoiceBillingDate + */ +Subscription.prototype['NextInvoiceBillingDate'] = undefined; + +/** + * Upcoming invoice items + * @member {Array.} UpcomingInvoiceItems + */ +Subscription.prototype['UpcomingInvoiceItems'] = undefined; + +/** + * Upcoming invoice discounts + * @member {Array.} UpcomingInvoiceDiscounts + */ +Subscription.prototype['UpcomingInvoiceDiscounts'] = undefined; + +/** + * @member {module:model/UpcomingInvoice} UpcomingInvoice + */ +Subscription.prototype['UpcomingInvoice'] = undefined; + +/** + * The subscription identifier + * @member {String} SubscriptionId + */ +Subscription.prototype['SubscriptionId'] = undefined; + +/** + * @member {String} Name + */ +Subscription.prototype['Name'] = undefined; + +/** + * Status + * @member {module:model/Subscription.StatusEnum} Status + */ +Subscription.prototype['Status'] = undefined; + +/** + * Currency + * @member {module:model/Subscription.CurrencyEnum} Currency + */ +Subscription.prototype['Currency'] = undefined; + +/** + * User + * @member {String} User + */ +Subscription.prototype['User'] = undefined; + +/** + * Default payment description + * @member {String} DefaultPaymentDescription + */ +Subscription.prototype['DefaultPaymentDescription'] = undefined; + +/** + * Cancellation Date + * @member {Date} CancellationRequestDate + */ +Subscription.prototype['CancellationRequestDate'] = undefined; + +/** + * Cancel Date + * @member {Date} CancellationDate + */ +Subscription.prototype['CancellationDate'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +Subscription['StatusEnum'] = { + + /** + * value: "Incomplete" + * @const + */ + "Incomplete": "Incomplete", + + /** + * value: "IncompleteExpired" + * @const + */ + "IncompleteExpired": "IncompleteExpired", + + /** + * value: "Trialing" + * @const + */ + "Trialing": "Trialing", + + /** + * value: "Active" + * @const + */ + "Active": "Active", + + /** + * value: "PastDue" + * @const + */ + "PastDue": "PastDue", + + /** + * value: "Canceled" + * @const + */ + "Canceled": "Canceled", + + /** + * value: "Unpaid" + * @const + */ + "Unpaid": "Unpaid" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +Subscription['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default Subscription; + diff --git a/src/model/SubscriptionInvoice.js b/src/model/SubscriptionInvoice.js new file mode 100644 index 00000000..e125c840 --- /dev/null +++ b/src/model/SubscriptionInvoice.js @@ -0,0 +1,903 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SubscriptionInvoice model module. + * @module model/SubscriptionInvoice + * @version 1.0.0 + */ +class SubscriptionInvoice { + /** + * Constructs a new SubscriptionInvoice. + * Invoice + * @alias module:model/SubscriptionInvoice + * @param InvoiceId {String} The invoice identifier + * @param _Number {String} Invoice number + * @param Currency {module:model/SubscriptionInvoice.CurrencyEnum} Currency + * @param Status {module:model/SubscriptionInvoice.StatusEnum} Status + * @param PdfLink {String} Pdf Link + * @param HostedUrl {String} Hosted Url + * @param Overdue {Boolean} Overdue + */ + constructor(InvoiceId, _Number, Currency, Status, PdfLink, HostedUrl, Overdue) { + + SubscriptionInvoice.initialize(this, InvoiceId, _Number, Currency, Status, PdfLink, HostedUrl, Overdue); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, InvoiceId, _Number, Currency, Status, PdfLink, HostedUrl, Overdue) { + obj['InvoiceId'] = InvoiceId; + obj['Number'] = _Number; + obj['Currency'] = Currency; + obj['Status'] = Status; + obj['PdfLink'] = PdfLink; + obj['HostedUrl'] = HostedUrl; + obj['Overdue'] = Overdue; + } + + /** + * Constructs a SubscriptionInvoice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SubscriptionInvoice} obj Optional instance to populate. + * @return {module:model/SubscriptionInvoice} The populated SubscriptionInvoice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SubscriptionInvoice(); + + if (data.hasOwnProperty('InvoiceId')) { + obj['InvoiceId'] = ApiClient.convertToType(data['InvoiceId'], 'String'); + } + if (data.hasOwnProperty('Number')) { + obj['Number'] = ApiClient.convertToType(data['Number'], 'String'); + } + if (data.hasOwnProperty('Total')) { + obj['Total'] = ApiClient.convertToType(data['Total'], 'Number'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('SubscriptionId')) { + obj['SubscriptionId'] = ApiClient.convertToType(data['SubscriptionId'], 'String'); + } + if (data.hasOwnProperty('PaidAt')) { + obj['PaidAt'] = ApiClient.convertToType(data['PaidAt'], 'Date'); + } + if (data.hasOwnProperty('FinalisedAt')) { + obj['FinalisedAt'] = ApiClient.convertToType(data['FinalisedAt'], 'Date'); + } + if (data.hasOwnProperty('PdfLink')) { + obj['PdfLink'] = ApiClient.convertToType(data['PdfLink'], 'String'); + } + if (data.hasOwnProperty('HostedUrl')) { + obj['HostedUrl'] = ApiClient.convertToType(data['HostedUrl'], 'String'); + } + if (data.hasOwnProperty('Overdue')) { + obj['Overdue'] = ApiClient.convertToType(data['Overdue'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * The invoice identifier + * @member {String} InvoiceId + */ +SubscriptionInvoice.prototype['InvoiceId'] = undefined; + +/** + * Invoice number + * @member {String} Number + */ +SubscriptionInvoice.prototype['Number'] = undefined; + +/** + * Total + * @member {Number} Total + */ +SubscriptionInvoice.prototype['Total'] = undefined; + +/** + * Currency + * @member {module:model/SubscriptionInvoice.CurrencyEnum} Currency + */ +SubscriptionInvoice.prototype['Currency'] = undefined; + +/** + * Status + * @member {module:model/SubscriptionInvoice.StatusEnum} Status + */ +SubscriptionInvoice.prototype['Status'] = undefined; + +/** + * The subscription identifier + * @member {String} SubscriptionId + */ +SubscriptionInvoice.prototype['SubscriptionId'] = undefined; + +/** + * Paid At + * @member {Date} PaidAt + */ +SubscriptionInvoice.prototype['PaidAt'] = undefined; + +/** + * Finalised At + * @member {Date} FinalisedAt + */ +SubscriptionInvoice.prototype['FinalisedAt'] = undefined; + +/** + * Pdf Link + * @member {String} PdfLink + */ +SubscriptionInvoice.prototype['PdfLink'] = undefined; + +/** + * Hosted Url + * @member {String} HostedUrl + */ +SubscriptionInvoice.prototype['HostedUrl'] = undefined; + +/** + * Overdue + * @member {Boolean} Overdue + */ +SubscriptionInvoice.prototype['Overdue'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +SubscriptionInvoice['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +SubscriptionInvoice['StatusEnum'] = { + + /** + * value: "Draft" + * @const + */ + "Draft": "Draft", + + /** + * value: "Open" + * @const + */ + "Open": "Open", + + /** + * value: "Paid" + * @const + */ + "Paid": "Paid", + + /** + * value: "UnCollectible" + * @const + */ + "UnCollectible": "UnCollectible", + + /** + * value: "Void" + * @const + */ + "Void": "Void" +}; + + + +export default SubscriptionInvoice; + diff --git a/src/model/SubscriptionProduct.js b/src/model/SubscriptionProduct.js new file mode 100644 index 00000000..c7ec097f --- /dev/null +++ b/src/model/SubscriptionProduct.js @@ -0,0 +1,169 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SubscriptionStore from './SubscriptionStore'; + +/** + * The SubscriptionProduct model module. + * @module model/SubscriptionProduct + * @version 1.0.0 + */ +class SubscriptionProduct { + /** + * Constructs a new SubscriptionProduct. + * Product + * @alias module:model/SubscriptionProduct + * @param ProductId {String} Product Identifier + * @param Name {String} Name + * @param Quantity {Number} Quantity + * @param PaymentFrequency {module:model/SubscriptionProduct.PaymentFrequencyEnum} Payment Frequency + */ + constructor(ProductId, Name, Quantity, PaymentFrequency) { + + SubscriptionProduct.initialize(this, ProductId, Name, Quantity, PaymentFrequency); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, ProductId, Name, Quantity, PaymentFrequency) { + obj['ProductId'] = ProductId; + obj['Name'] = Name; + obj['Quantity'] = Quantity; + obj['PaymentFrequency'] = PaymentFrequency; + } + + /** + * Constructs a SubscriptionProduct from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SubscriptionProduct} obj Optional instance to populate. + * @return {module:model/SubscriptionProduct} The populated SubscriptionProduct instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SubscriptionProduct(); + + if (data.hasOwnProperty('ProductId')) { + obj['ProductId'] = ApiClient.convertToType(data['ProductId'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Quantity')) { + obj['Quantity'] = ApiClient.convertToType(data['Quantity'], 'Number'); + } + if (data.hasOwnProperty('PricePerUnit')) { + obj['PricePerUnit'] = ApiClient.convertToType(data['PricePerUnit'], 'Number'); + } + if (data.hasOwnProperty('PriceTotal')) { + obj['PriceTotal'] = ApiClient.convertToType(data['PriceTotal'], 'Number'); + } + if (data.hasOwnProperty('PaymentFrequency')) { + obj['PaymentFrequency'] = ApiClient.convertToType(data['PaymentFrequency'], 'String'); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], [SubscriptionStore]); + } + } + return obj; + } + + +} + +/** + * Product Identifier + * @member {String} ProductId + */ +SubscriptionProduct.prototype['ProductId'] = undefined; + +/** + * Name + * @member {String} Name + */ +SubscriptionProduct.prototype['Name'] = undefined; + +/** + * Quantity + * @member {Number} Quantity + */ +SubscriptionProduct.prototype['Quantity'] = undefined; + +/** + * Price Per Unit + * @member {Number} PricePerUnit + */ +SubscriptionProduct.prototype['PricePerUnit'] = undefined; + +/** + * Price Total + * @member {Number} PriceTotal + */ +SubscriptionProduct.prototype['PriceTotal'] = undefined; + +/** + * Payment Frequency + * @member {module:model/SubscriptionProduct.PaymentFrequencyEnum} PaymentFrequency + */ +SubscriptionProduct.prototype['PaymentFrequency'] = undefined; + +/** + * Stores + * @member {Array.} Stores + */ +SubscriptionProduct.prototype['Stores'] = undefined; + + + + + +/** + * Allowed values for the PaymentFrequency property. + * @enum {String} + * @readonly + */ +SubscriptionProduct['PaymentFrequencyEnum'] = { + + /** + * value: "day" + * @const + */ + "day": "day", + + /** + * value: "week" + * @const + */ + "week": "week", + + /** + * value: "month" + * @const + */ + "month": "month", + + /** + * value: "year" + * @const + */ + "year": "year" +}; + + + +export default SubscriptionProduct; + diff --git a/src/model/SubscriptionStore.js b/src/model/SubscriptionStore.js new file mode 100644 index 00000000..1f661b61 --- /dev/null +++ b/src/model/SubscriptionStore.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SubscriptionStore model module. + * @module model/SubscriptionStore + * @version 1.0.0 + */ +class SubscriptionStore { + /** + * Constructs a new SubscriptionStore. + * Subscription Store + * @alias module:model/SubscriptionStore + * @param Id {Number} Store Id + * @param Name {String} Name + */ + constructor(Id, Name) { + + SubscriptionStore.initialize(this, Id, Name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Id, Name) { + obj['Id'] = Id; + obj['Name'] = Name; + } + + /** + * Constructs a SubscriptionStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SubscriptionStore} obj Optional instance to populate. + * @return {module:model/SubscriptionStore} The populated SubscriptionStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SubscriptionStore(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Store Id + * @member {Number} Id + */ +SubscriptionStore.prototype['Id'] = undefined; + +/** + * Name + * @member {String} Name + */ +SubscriptionStore.prototype['Name'] = undefined; + + + + + + +export default SubscriptionStore; + diff --git a/src/model/SubscriptionSummary.js b/src/model/SubscriptionSummary.js new file mode 100644 index 00000000..27ae694b --- /dev/null +++ b/src/model/SubscriptionSummary.js @@ -0,0 +1,901 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SubscriptionSummary model module. + * @module model/SubscriptionSummary + * @version 1.0.0 + */ +class SubscriptionSummary { + /** + * Constructs a new SubscriptionSummary. + * Subscription Summary + * @alias module:model/SubscriptionSummary + * @param SubscriptionId {String} The subscription identifier + * @param Name {String} + * @param Status {module:model/SubscriptionSummary.StatusEnum} Status + * @param Currency {module:model/SubscriptionSummary.CurrencyEnum} Currency + * @param User {String} User + */ + constructor(SubscriptionId, Name, Status, Currency, User) { + + SubscriptionSummary.initialize(this, SubscriptionId, Name, Status, Currency, User); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, SubscriptionId, Name, Status, Currency, User) { + obj['SubscriptionId'] = SubscriptionId; + obj['Name'] = Name; + obj['Status'] = Status; + obj['Currency'] = Currency; + obj['User'] = User; + } + + /** + * Constructs a SubscriptionSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SubscriptionSummary} obj Optional instance to populate. + * @return {module:model/SubscriptionSummary} The populated SubscriptionSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SubscriptionSummary(); + + if (data.hasOwnProperty('NextInvoiceAmount')) { + obj['NextInvoiceAmount'] = ApiClient.convertToType(data['NextInvoiceAmount'], 'Number'); + } + if (data.hasOwnProperty('NextInvoiceBillingDate')) { + obj['NextInvoiceBillingDate'] = ApiClient.convertToType(data['NextInvoiceBillingDate'], 'Date'); + } + if (data.hasOwnProperty('SubscriptionId')) { + obj['SubscriptionId'] = ApiClient.convertToType(data['SubscriptionId'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = ApiClient.convertToType(data['User'], 'String'); + } + if (data.hasOwnProperty('DefaultPaymentDescription')) { + obj['DefaultPaymentDescription'] = ApiClient.convertToType(data['DefaultPaymentDescription'], 'String'); + } + if (data.hasOwnProperty('CancellationRequestDate')) { + obj['CancellationRequestDate'] = ApiClient.convertToType(data['CancellationRequestDate'], 'Date'); + } + if (data.hasOwnProperty('CancellationDate')) { + obj['CancellationDate'] = ApiClient.convertToType(data['CancellationDate'], 'Date'); + } + } + return obj; + } + + +} + +/** + * Next invoice amount + * @member {Number} NextInvoiceAmount + */ +SubscriptionSummary.prototype['NextInvoiceAmount'] = undefined; + +/** + * Next invoice billing date + * @member {Date} NextInvoiceBillingDate + */ +SubscriptionSummary.prototype['NextInvoiceBillingDate'] = undefined; + +/** + * The subscription identifier + * @member {String} SubscriptionId + */ +SubscriptionSummary.prototype['SubscriptionId'] = undefined; + +/** + * @member {String} Name + */ +SubscriptionSummary.prototype['Name'] = undefined; + +/** + * Status + * @member {module:model/SubscriptionSummary.StatusEnum} Status + */ +SubscriptionSummary.prototype['Status'] = undefined; + +/** + * Currency + * @member {module:model/SubscriptionSummary.CurrencyEnum} Currency + */ +SubscriptionSummary.prototype['Currency'] = undefined; + +/** + * User + * @member {String} User + */ +SubscriptionSummary.prototype['User'] = undefined; + +/** + * Default payment description + * @member {String} DefaultPaymentDescription + */ +SubscriptionSummary.prototype['DefaultPaymentDescription'] = undefined; + +/** + * Cancellation Date + * @member {Date} CancellationRequestDate + */ +SubscriptionSummary.prototype['CancellationRequestDate'] = undefined; + +/** + * Cancel Date + * @member {Date} CancellationDate + */ +SubscriptionSummary.prototype['CancellationDate'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +SubscriptionSummary['StatusEnum'] = { + + /** + * value: "Incomplete" + * @const + */ + "Incomplete": "Incomplete", + + /** + * value: "IncompleteExpired" + * @const + */ + "IncompleteExpired": "IncompleteExpired", + + /** + * value: "Trialing" + * @const + */ + "Trialing": "Trialing", + + /** + * value: "Active" + * @const + */ + "Active": "Active", + + /** + * value: "PastDue" + * @const + */ + "PastDue": "PastDue", + + /** + * value: "Canceled" + * @const + */ + "Canceled": "Canceled", + + /** + * value: "Unpaid" + * @const + */ + "Unpaid": "Unpaid" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +SubscriptionSummary['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default SubscriptionSummary; + diff --git a/src/model/SupportedCountry.js b/src/model/SupportedCountry.js new file mode 100644 index 00000000..b9ddb03b --- /dev/null +++ b/src/model/SupportedCountry.js @@ -0,0 +1,235 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SupportedCountry model module. + * @module model/SupportedCountry + * @version 1.0.0 + */ +class SupportedCountry { + /** + * Constructs a new SupportedCountry. + * Describes a supported country + * @alias module:model/SupportedCountry + */ + constructor() { + + SupportedCountry.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SupportedCountry from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SupportedCountry} obj Optional instance to populate. + * @return {module:model/SupportedCountry} The populated SupportedCountry instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SupportedCountry(); + + if (data.hasOwnProperty('CountryCode')) { + obj['CountryCode'] = ApiClient.convertToType(data['CountryCode'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('PhoneCode')) { + obj['PhoneCode'] = ApiClient.convertToType(data['PhoneCode'], 'Number'); + } + if (data.hasOwnProperty('LanguageCode')) { + obj['LanguageCode'] = ApiClient.convertToType(data['LanguageCode'], 'String'); + } + if (data.hasOwnProperty('LanguageName')) { + obj['LanguageName'] = ApiClient.convertToType(data['LanguageName'], 'String'); + } + if (data.hasOwnProperty('OtpNumber')) { + obj['OtpNumber'] = ApiClient.convertToType(data['OtpNumber'], 'String'); + } + if (data.hasOwnProperty('SupportNumber')) { + obj['SupportNumber'] = ApiClient.convertToType(data['SupportNumber'], 'String'); + } + if (data.hasOwnProperty('AddressLayout')) { + obj['AddressLayout'] = ApiClient.convertToType(data['AddressLayout'], 'String'); + } + if (data.hasOwnProperty('PostCodeType')) { + obj['PostCodeType'] = ApiClient.convertToType(data['PostCodeType'], 'String'); + } + if (data.hasOwnProperty('SupportRegion')) { + obj['SupportRegion'] = ApiClient.convertToType(data['SupportRegion'], 'String'); + } + } + return obj; + } + + +} + +/** + * Country code + * @member {String} CountryCode + */ +SupportedCountry.prototype['CountryCode'] = undefined; + +/** + * Nice display name for a country + * @member {String} Name + */ +SupportedCountry.prototype['Name'] = undefined; + +/** + * Country internatinoal phone code prefix + * @member {Number} PhoneCode + */ +SupportedCountry.prototype['PhoneCode'] = undefined; + +/** + * Language code + * @member {String} LanguageCode + */ +SupportedCountry.prototype['LanguageCode'] = undefined; + +/** + * Language name + * @member {String} LanguageName + */ +SupportedCountry.prototype['LanguageName'] = undefined; + +/** + * The phone number provided to Store staff which, in conjunction with a one-time-code, will connect them to the customer. + * @member {String} OtpNumber + */ +SupportedCountry.prototype['OtpNumber'] = undefined; + +/** + * The store's support phone number, displayed to customers. + * @member {String} SupportNumber + */ +SupportedCountry.prototype['SupportNumber'] = undefined; + +/** + * Address layout format. This changes the layout of address entry forms on the web app, iOS and Android app and should be set based on local custom. + * @member {module:model/SupportedCountry.AddressLayoutEnum} AddressLayout + */ +SupportedCountry.prototype['AddressLayout'] = undefined; + +/** + * Post code type + * @member {module:model/SupportedCountry.PostCodeTypeEnum} PostCodeType + */ +SupportedCountry.prototype['PostCodeType'] = undefined; + +/** + * Supported region. This is not used. + * @member {module:model/SupportedCountry.SupportRegionEnum} SupportRegion + */ +SupportedCountry.prototype['SupportRegion'] = undefined; + + + + + +/** + * Allowed values for the AddressLayout property. + * @enum {String} + * @readonly + */ +SupportedCountry['AddressLayoutEnum'] = { + + /** + * value: "BuildingFirst" + * @const + */ + "BuildingFirst": "BuildingFirst", + + /** + * value: "AddressFirst" + * @const + */ + "AddressFirst": "AddressFirst", + + /** + * value: "FullStreetAddressFirst" + * @const + */ + "FullStreetAddressFirst": "FullStreetAddressFirst" +}; + + +/** + * Allowed values for the PostCodeType property. + * @enum {String} + * @readonly + */ +SupportedCountry['PostCodeTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "PostCode" + * @const + */ + "PostCode": "PostCode", + + /** + * value: "Zip" + * @const + */ + "Zip": "Zip" +}; + + +/** + * Allowed values for the SupportRegion property. + * @enum {String} + * @readonly + */ +SupportedCountry['SupportRegionEnum'] = { + + /** + * value: "Default" + * @const + */ + "Default": "Default", + + /** + * value: "Spain" + * @const + */ + "Spain": "Spain", + + /** + * value: "Benelux" + * @const + */ + "Benelux": "Benelux" +}; + + + +export default SupportedCountry; + diff --git a/src/model/TaxItem.js b/src/model/TaxItem.js new file mode 100644 index 00000000..1efe1aa4 --- /dev/null +++ b/src/model/TaxItem.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TaxItem model module. + * @module model/TaxItem + * @version 1.0.0 + */ +class TaxItem { + /** + * Constructs a new TaxItem. + * A collection of tax items on the order. + * @alias module:model/TaxItem + */ + constructor() { + + TaxItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaxItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaxItem} obj Optional instance to populate. + * @return {module:model/TaxItem} The populated TaxItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaxItem(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Rate')) { + obj['Rate'] = ApiClient.convertToType(data['Rate'], 'Number'); + } + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The name of the tax item. + * @member {String} Name + */ +TaxItem.prototype['Name'] = undefined; + +/** + * The tax rate applied to the item. + * @member {Number} Rate + */ +TaxItem.prototype['Rate'] = undefined; + +/** + * The amount of tax applied to the item. + * @member {Number} Amount + */ +TaxItem.prototype['Amount'] = undefined; + + + + + + +export default TaxItem; + diff --git a/src/model/TaxRate.js b/src/model/TaxRate.js new file mode 100644 index 00000000..e589c351 --- /dev/null +++ b/src/model/TaxRate.js @@ -0,0 +1,87 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TaxRate model module. + * @module model/TaxRate + * @version 1.0.0 + */ +class TaxRate { + /** + * Constructs a new TaxRate. + * @alias module:model/TaxRate + */ + constructor() { + + TaxRate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaxRate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaxRate} obj Optional instance to populate. + * @return {module:model/TaxRate} The populated TaxRate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaxRate(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Percentage')) { + obj['Percentage'] = ApiClient.convertToType(data['Percentage'], 'Number'); + } + if (data.hasOwnProperty('Total')) { + obj['Total'] = ApiClient.convertToType(data['Total'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +TaxRate.prototype['Name'] = undefined; + +/** + * @member {Number} Percentage + */ +TaxRate.prototype['Percentage'] = undefined; + +/** + * @member {Number} Total + */ +TaxRate.prototype['Total'] = undefined; + + + + + + +export default TaxRate; + diff --git a/src/model/Teammate.js b/src/model/Teammate.js new file mode 100644 index 00000000..14334fe6 --- /dev/null +++ b/src/model/Teammate.js @@ -0,0 +1,277 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Teammate model module. + * @module model/Teammate + * @version 1.0.0 + */ +class Teammate { + /** + * Constructs a new Teammate. + * + * @alias module:model/Teammate + */ + constructor() { + + Teammate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Teammate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Teammate} obj Optional instance to populate. + * @return {module:model/Teammate} The populated Teammate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Teammate(); + + if (data.hasOwnProperty('TeammateId')) { + obj['TeammateId'] = ApiClient.convertToType(data['TeammateId'], 'String'); + } + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('LastActivity')) { + obj['LastActivity'] = ApiClient.convertToType(data['LastActivity'], 'Date'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('InvitationStatus')) { + obj['InvitationStatus'] = ApiClient.convertToType(data['InvitationStatus'], 'String'); + } + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('AppAccessLevel')) { + obj['AppAccessLevel'] = ApiClient.convertToType(data['AppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('HasAccessToAllStores')) { + obj['HasAccessToAllStores'] = ApiClient.convertToType(data['HasAccessToAllStores'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('PropertyIds')) { + obj['PropertyIds'] = ApiClient.convertToType(data['PropertyIds'], ['String']); + } + } + return obj; + } + + +} + +/** + * Unique indentifier + * @member {String} TeammateId + */ +Teammate.prototype['TeammateId'] = undefined; + +/** + * User ID of the teammate + * @member {Number} UserId + */ +Teammate.prototype['UserId'] = undefined; + +/** + * Name + * @member {String} Name + */ +Teammate.prototype['Name'] = undefined; + +/** + * Last activity + * @member {Date} LastActivity + */ +Teammate.prototype['LastActivity'] = undefined; + +/** + * Access level is for this App + * @member {String} AppId + */ +Teammate.prototype['AppId'] = undefined; + +/** + * Invitation status + * @member {module:model/Teammate.InvitationStatusEnum} InvitationStatus + */ +Teammate.prototype['InvitationStatus'] = undefined; + +/** + * Email address + * @member {String} Email + */ +Teammate.prototype['Email'] = undefined; + +/** + * App access level + * @member {module:model/Teammate.AppAccessLevelEnum} AppAccessLevel + */ +Teammate.prototype['AppAccessLevel'] = undefined; + +/** + * The user has access to all stores for the app (including new stores that added later) + * @member {Boolean} HasAccessToAllStores + */ +Teammate.prototype['HasAccessToAllStores'] = undefined; + +/** + * Store IDs the user has access to (if HasAccessToAllStores is false) + * @member {Array.} StoreIds + */ +Teammate.prototype['StoreIds'] = undefined; + +/** + * Property Ids the user has access to (if HasAccessToAllStores is false) + * @member {Array.} PropertyIds + */ +Teammate.prototype['PropertyIds'] = undefined; + + + + + +/** + * Allowed values for the InvitationStatus property. + * @enum {String} + * @readonly + */ +Teammate['InvitationStatusEnum'] = { + + /** + * value: "Pending" + * @const + */ + "Pending": "Pending", + + /** + * value: "Accepted" + * @const + */ + "Accepted": "Accepted", + + /** + * value: "Expired" + * @const + */ + "Expired": "Expired" +}; + + +/** + * Allowed values for the AppAccessLevel property. + * @enum {String} + * @readonly + */ +Teammate['AppAccessLevelEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger", + + /** + * value: "Onboarding" + * @const + */ + "Onboarding": "Onboarding", + + /** + * value: "Support" + * @const + */ + "Support": "Support" +}; + + + +export default Teammate; + diff --git a/src/model/TeammateBase.js b/src/model/TeammateBase.js new file mode 100644 index 00000000..1b49a883 --- /dev/null +++ b/src/model/TeammateBase.js @@ -0,0 +1,187 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TeammateBase model module. + * @module model/TeammateBase + * @version 1.0.0 + */ +class TeammateBase { + /** + * Constructs a new TeammateBase. + * + * @alias module:model/TeammateBase + */ + constructor() { + + TeammateBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TeammateBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TeammateBase} obj Optional instance to populate. + * @return {module:model/TeammateBase} The populated TeammateBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TeammateBase(); + + if (data.hasOwnProperty('AppAccessLevel')) { + obj['AppAccessLevel'] = ApiClient.convertToType(data['AppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('HasAccessToAllStores')) { + obj['HasAccessToAllStores'] = ApiClient.convertToType(data['HasAccessToAllStores'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('PropertyIds')) { + obj['PropertyIds'] = ApiClient.convertToType(data['PropertyIds'], ['String']); + } + } + return obj; + } + + +} + +/** + * App access level + * @member {module:model/TeammateBase.AppAccessLevelEnum} AppAccessLevel + */ +TeammateBase.prototype['AppAccessLevel'] = undefined; + +/** + * The user has access to all stores for the app (including new stores that added later) + * @member {Boolean} HasAccessToAllStores + */ +TeammateBase.prototype['HasAccessToAllStores'] = undefined; + +/** + * Store IDs the user has access to (if HasAccessToAllStores is false) + * @member {Array.} StoreIds + */ +TeammateBase.prototype['StoreIds'] = undefined; + +/** + * Property Ids the user has access to (if HasAccessToAllStores is false) + * @member {Array.} PropertyIds + */ +TeammateBase.prototype['PropertyIds'] = undefined; + + + + + +/** + * Allowed values for the AppAccessLevel property. + * @enum {String} + * @readonly + */ +TeammateBase['AppAccessLevelEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger", + + /** + * value: "Onboarding" + * @const + */ + "Onboarding": "Onboarding", + + /** + * value: "Support" + * @const + */ + "Support": "Support" +}; + + + +export default TeammateBase; + diff --git a/src/model/TeammateDeletedEvent.js b/src/model/TeammateDeletedEvent.js new file mode 100644 index 00000000..9933a6e3 --- /dev/null +++ b/src/model/TeammateDeletedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Teammate from './Teammate'; +import UserEventInfo from './UserEventInfo'; + +/** + * The TeammateDeletedEvent model module. + * @module model/TeammateDeletedEvent + * @version 1.0.0 + */ +class TeammateDeletedEvent { + /** + * Constructs a new TeammateDeletedEvent. + * + * @alias module:model/TeammateDeletedEvent + */ + constructor() { + + TeammateDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TeammateDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TeammateDeletedEvent} obj Optional instance to populate. + * @return {module:model/TeammateDeletedEvent} The populated TeammateDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TeammateDeletedEvent(); + + if (data.hasOwnProperty('Teammate')) { + obj['Teammate'] = Teammate.constructFromObject(data['Teammate']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Teammate} Teammate + */ +TeammateDeletedEvent.prototype['Teammate'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +TeammateDeletedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +TeammateDeletedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +TeammateDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +TeammateDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +TeammateDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +TeammateDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +TeammateDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +TeammateDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default TeammateDeletedEvent; + diff --git a/src/model/TeammateInviteAcceptedEvent.js b/src/model/TeammateInviteAcceptedEvent.js new file mode 100644 index 00000000..cb35dac3 --- /dev/null +++ b/src/model/TeammateInviteAcceptedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Teammate from './Teammate'; +import UserEventInfo from './UserEventInfo'; + +/** + * The TeammateInviteAcceptedEvent model module. + * @module model/TeammateInviteAcceptedEvent + * @version 1.0.0 + */ +class TeammateInviteAcceptedEvent { + /** + * Constructs a new TeammateInviteAcceptedEvent. + * + * @alias module:model/TeammateInviteAcceptedEvent + */ + constructor() { + + TeammateInviteAcceptedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TeammateInviteAcceptedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TeammateInviteAcceptedEvent} obj Optional instance to populate. + * @return {module:model/TeammateInviteAcceptedEvent} The populated TeammateInviteAcceptedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TeammateInviteAcceptedEvent(); + + if (data.hasOwnProperty('Teammate')) { + obj['Teammate'] = Teammate.constructFromObject(data['Teammate']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Teammate} Teammate + */ +TeammateInviteAcceptedEvent.prototype['Teammate'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +TeammateInviteAcceptedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +TeammateInviteAcceptedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +TeammateInviteAcceptedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +TeammateInviteAcceptedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +TeammateInviteAcceptedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +TeammateInviteAcceptedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +TeammateInviteAcceptedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +TeammateInviteAcceptedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default TeammateInviteAcceptedEvent; + diff --git a/src/model/TeammateInviteSentEvent.js b/src/model/TeammateInviteSentEvent.js new file mode 100644 index 00000000..c607371b --- /dev/null +++ b/src/model/TeammateInviteSentEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Teammate from './Teammate'; +import UserEventInfo from './UserEventInfo'; + +/** + * The TeammateInviteSentEvent model module. + * @module model/TeammateInviteSentEvent + * @version 1.0.0 + */ +class TeammateInviteSentEvent { + /** + * Constructs a new TeammateInviteSentEvent. + * + * @alias module:model/TeammateInviteSentEvent + */ + constructor() { + + TeammateInviteSentEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TeammateInviteSentEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TeammateInviteSentEvent} obj Optional instance to populate. + * @return {module:model/TeammateInviteSentEvent} The populated TeammateInviteSentEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TeammateInviteSentEvent(); + + if (data.hasOwnProperty('Teammate')) { + obj['Teammate'] = Teammate.constructFromObject(data['Teammate']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Teammate} Teammate + */ +TeammateInviteSentEvent.prototype['Teammate'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +TeammateInviteSentEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +TeammateInviteSentEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +TeammateInviteSentEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +TeammateInviteSentEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +TeammateInviteSentEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +TeammateInviteSentEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +TeammateInviteSentEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +TeammateInviteSentEvent.prototype['IpAddress'] = undefined; + + + + + + +export default TeammateInviteSentEvent; + diff --git a/src/model/TeammateUpdatedEvent.js b/src/model/TeammateUpdatedEvent.js new file mode 100644 index 00000000..9e3fdb24 --- /dev/null +++ b/src/model/TeammateUpdatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Teammate from './Teammate'; +import UserEventInfo from './UserEventInfo'; + +/** + * The TeammateUpdatedEvent model module. + * @module model/TeammateUpdatedEvent + * @version 1.0.0 + */ +class TeammateUpdatedEvent { + /** + * Constructs a new TeammateUpdatedEvent. + * + * @alias module:model/TeammateUpdatedEvent + */ + constructor() { + + TeammateUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TeammateUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TeammateUpdatedEvent} obj Optional instance to populate. + * @return {module:model/TeammateUpdatedEvent} The populated TeammateUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TeammateUpdatedEvent(); + + if (data.hasOwnProperty('Teammate')) { + obj['Teammate'] = Teammate.constructFromObject(data['Teammate']); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Teammate} Teammate + */ +TeammateUpdatedEvent.prototype['Teammate'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +TeammateUpdatedEvent.prototype['User'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +TeammateUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +TeammateUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +TeammateUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +TeammateUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +TeammateUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +TeammateUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +TeammateUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default TeammateUpdatedEvent; + diff --git a/src/model/TelemetrySeriesProperty.js b/src/model/TelemetrySeriesProperty.js new file mode 100644 index 00000000..4c2c009a --- /dev/null +++ b/src/model/TelemetrySeriesProperty.js @@ -0,0 +1,103 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TelemetrySeriesProperty model module. + * @module model/TelemetrySeriesProperty + * @version 1.0.0 + */ +class TelemetrySeriesProperty { + /** + * Constructs a new TelemetrySeriesProperty. + * @alias module:model/TelemetrySeriesProperty + */ + constructor() { + + TelemetrySeriesProperty.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TelemetrySeriesProperty from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TelemetrySeriesProperty} obj Optional instance to populate. + * @return {module:model/TelemetrySeriesProperty} The populated TelemetrySeriesProperty instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TelemetrySeriesProperty(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('IntValues')) { + obj['IntValues'] = ApiClient.convertToType(data['IntValues'], ['Number']); + } + if (data.hasOwnProperty('StringValues')) { + obj['StringValues'] = ApiClient.convertToType(data['StringValues'], ['String']); + } + if (data.hasOwnProperty('DoubleValues')) { + obj['DoubleValues'] = ApiClient.convertToType(data['DoubleValues'], ['Number']); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +TelemetrySeriesProperty.prototype['Name'] = undefined; + +/** + * @member {String} Type + */ +TelemetrySeriesProperty.prototype['Type'] = undefined; + +/** + * @member {Array.} IntValues + */ +TelemetrySeriesProperty.prototype['IntValues'] = undefined; + +/** + * @member {Array.} StringValues + */ +TelemetrySeriesProperty.prototype['StringValues'] = undefined; + +/** + * @member {Array.} DoubleValues + */ +TelemetrySeriesProperty.prototype['DoubleValues'] = undefined; + + + + + + +export default TelemetrySeriesProperty; + diff --git a/src/model/TelemetrySeriesQueryParameters.js b/src/model/TelemetrySeriesQueryParameters.js new file mode 100644 index 00000000..fbd0cfeb --- /dev/null +++ b/src/model/TelemetrySeriesQueryParameters.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TelemetrySeriesQueryParameters model module. + * @module model/TelemetrySeriesQueryParameters + * @version 1.0.0 + */ +class TelemetrySeriesQueryParameters { + /** + * Constructs a new TelemetrySeriesQueryParameters. + * @alias module:model/TelemetrySeriesQueryParameters + */ + constructor() { + + TelemetrySeriesQueryParameters.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TelemetrySeriesQueryParameters from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TelemetrySeriesQueryParameters} obj Optional instance to populate. + * @return {module:model/TelemetrySeriesQueryParameters} The populated TelemetrySeriesQueryParameters instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TelemetrySeriesQueryParameters(); + + if (data.hasOwnProperty('KioskId')) { + obj['KioskId'] = ApiClient.convertToType(data['KioskId'], 'String'); + } + if (data.hasOwnProperty('Variables')) { + obj['Variables'] = ApiClient.convertToType(data['Variables'], ['String']); + } + if (data.hasOwnProperty('StartDate')) { + obj['StartDate'] = ApiClient.convertToType(data['StartDate'], 'Date'); + } + if (data.hasOwnProperty('EndDate')) { + obj['EndDate'] = ApiClient.convertToType(data['EndDate'], 'Date'); + } + } + return obj; + } + + +} + +/** + * @member {String} KioskId + */ +TelemetrySeriesQueryParameters.prototype['KioskId'] = undefined; + +/** + * @member {Array.} Variables + */ +TelemetrySeriesQueryParameters.prototype['Variables'] = undefined; + +/** + * @member {Date} StartDate + */ +TelemetrySeriesQueryParameters.prototype['StartDate'] = undefined; + +/** + * @member {Date} EndDate + */ +TelemetrySeriesQueryParameters.prototype['EndDate'] = undefined; + + + + + + +export default TelemetrySeriesQueryParameters; + diff --git a/src/model/TelemetrySeriesResult.js b/src/model/TelemetrySeriesResult.js new file mode 100644 index 00000000..0e616f8f --- /dev/null +++ b/src/model/TelemetrySeriesResult.js @@ -0,0 +1,80 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TelemetrySeriesProperty from './TelemetrySeriesProperty'; + +/** + * The TelemetrySeriesResult model module. + * @module model/TelemetrySeriesResult + * @version 1.0.0 + */ +class TelemetrySeriesResult { + /** + * Constructs a new TelemetrySeriesResult. + * @alias module:model/TelemetrySeriesResult + */ + constructor() { + + TelemetrySeriesResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TelemetrySeriesResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TelemetrySeriesResult} obj Optional instance to populate. + * @return {module:model/TelemetrySeriesResult} The populated TelemetrySeriesResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TelemetrySeriesResult(); + + if (data.hasOwnProperty('Timestamps')) { + obj['Timestamps'] = ApiClient.convertToType(data['Timestamps'], ['Date']); + } + if (data.hasOwnProperty('Properties')) { + obj['Properties'] = ApiClient.convertToType(data['Properties'], [TelemetrySeriesProperty]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} Timestamps + */ +TelemetrySeriesResult.prototype['Timestamps'] = undefined; + +/** + * @member {Array.} Properties + */ +TelemetrySeriesResult.prototype['Properties'] = undefined; + + + + + + +export default TelemetrySeriesResult; + diff --git a/src/model/TelephonyConfig.js b/src/model/TelephonyConfig.js new file mode 100644 index 00000000..9710a38c --- /dev/null +++ b/src/model/TelephonyConfig.js @@ -0,0 +1,175 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TelephonyConfig model module. + * @module model/TelephonyConfig + * @version 1.0.0 + */ +class TelephonyConfig { + /** + * Constructs a new TelephonyConfig. + * Phone call + * @alias module:model/TelephonyConfig + */ + constructor() { + + TelephonyConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TelephonyConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TelephonyConfig} obj Optional instance to populate. + * @return {module:model/TelephonyConfig} The populated TelephonyConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TelephonyConfig(); + + if (data.hasOwnProperty('TelephonyConfigId')) { + obj['TelephonyConfigId'] = ApiClient.convertToType(data['TelephonyConfigId'], 'Number'); + } + if (data.hasOwnProperty('ApmEnabled')) { + obj['ApmEnabled'] = ApiClient.convertToType(data['ApmEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('ConsentEnabled')) { + obj['ConsentEnabled'] = ApiClient.convertToType(data['ConsentEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('SendAppLinkSms')) { + obj['SendAppLinkSms'] = ApiClient.convertToType(data['SendAppLinkSms'], 'Boolean'); + } + if (data.hasOwnProperty('UseCustomAppLinkSmsMessage')) { + obj['UseCustomAppLinkSmsMessage'] = ApiClient.convertToType(data['UseCustomAppLinkSmsMessage'], 'Boolean'); + } + if (data.hasOwnProperty('UseCustomVoiceMessage')) { + obj['UseCustomVoiceMessage'] = ApiClient.convertToType(data['UseCustomVoiceMessage'], 'Boolean'); + } + if (data.hasOwnProperty('AppLinkSmsMessage')) { + obj['AppLinkSmsMessage'] = ApiClient.convertToType(data['AppLinkSmsMessage'], 'String'); + } + if (data.hasOwnProperty('ResendApmMessageAfterDays')) { + obj['ResendApmMessageAfterDays'] = ApiClient.convertToType(data['ResendApmMessageAfterDays'], 'Number'); + } + } + return obj; + } + + +} + +/** + * ID of the phone call + * @member {Number} TelephonyConfigId + */ +TelephonyConfig.prototype['TelephonyConfigId'] = undefined; + +/** + * APM enabled flag + * @member {Boolean} ApmEnabled + */ +TelephonyConfig.prototype['ApmEnabled'] = undefined; + +/** + * Type of telephony service + * @member {module:model/TelephonyConfig.TypeEnum} Type + */ +TelephonyConfig.prototype['Type'] = undefined; + +/** + * Consent enabled flag + * @member {Boolean} ConsentEnabled + */ +TelephonyConfig.prototype['ConsentEnabled'] = undefined; + +/** + * APM phone number of the store + * @member {String} PhoneNumber + */ +TelephonyConfig.prototype['PhoneNumber'] = undefined; + +/** + * Send app link SMS flag + * @member {Boolean} SendAppLinkSms + */ +TelephonyConfig.prototype['SendAppLinkSms'] = undefined; + +/** + * Use custom app link SMS message flag + * @member {Boolean} UseCustomAppLinkSmsMessage + */ +TelephonyConfig.prototype['UseCustomAppLinkSmsMessage'] = undefined; + +/** + * Use custom voice message flag + * @member {Boolean} UseCustomVoiceMessage + */ +TelephonyConfig.prototype['UseCustomVoiceMessage'] = undefined; + +/** + * App link SMS message + * @member {String} AppLinkSmsMessage + */ +TelephonyConfig.prototype['AppLinkSmsMessage'] = undefined; + +/** + * Amount of days to resend APM message + * @member {Number} ResendApmMessageAfterDays + */ +TelephonyConfig.prototype['ResendApmMessageAfterDays'] = undefined; + + + + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +TelephonyConfig['TypeEnum'] = { + + /** + * value: "PreRecorded" + * @const + */ + "PreRecorded": "PreRecorded", + + /** + * value: "VoiceAI" + * @const + */ + "VoiceAI": "VoiceAI" +}; + + + +export default TelephonyConfig; + diff --git a/src/model/TelephonyConfigUpdatedEvent.js b/src/model/TelephonyConfigUpdatedEvent.js new file mode 100644 index 00000000..59442b03 --- /dev/null +++ b/src/model/TelephonyConfigUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TelephonyConfig from './TelephonyConfig'; + +/** + * The TelephonyConfigUpdatedEvent model module. + * @module model/TelephonyConfigUpdatedEvent + * @version 1.0.0 + */ +class TelephonyConfigUpdatedEvent { + /** + * Constructs a new TelephonyConfigUpdatedEvent. + * Telephony Config Updated Event + * @alias module:model/TelephonyConfigUpdatedEvent + */ + constructor() { + + TelephonyConfigUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TelephonyConfigUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TelephonyConfigUpdatedEvent} obj Optional instance to populate. + * @return {module:model/TelephonyConfigUpdatedEvent} The populated TelephonyConfigUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TelephonyConfigUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('TelephonyConfig')) { + obj['TelephonyConfig'] = TelephonyConfig.constructFromObject(data['TelephonyConfig']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +TelephonyConfigUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +TelephonyConfigUpdatedEvent.prototype['Description'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +TelephonyConfigUpdatedEvent.prototype['StoreId'] = undefined; + +/** + * @member {module:model/TelephonyConfig} TelephonyConfig + */ +TelephonyConfigUpdatedEvent.prototype['TelephonyConfig'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +TelephonyConfigUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +TelephonyConfigUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +TelephonyConfigUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +TelephonyConfigUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +TelephonyConfigUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +TelephonyConfigUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default TelephonyConfigUpdatedEvent; + diff --git a/src/model/ThirdPartyFeesDetails.js b/src/model/ThirdPartyFeesDetails.js new file mode 100644 index 00000000..61f3e1b0 --- /dev/null +++ b/src/model/ThirdPartyFeesDetails.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ThirdPartyFeesDetails model module. + * @module model/ThirdPartyFeesDetails + * @version 1.0.0 + */ +class ThirdPartyFeesDetails { + /** + * Constructs a new ThirdPartyFeesDetails. + * Breakdown of third party integration fees + * @alias module:model/ThirdPartyFeesDetails + */ + constructor() { + + ThirdPartyFeesDetails.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ThirdPartyFeesDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ThirdPartyFeesDetails} obj Optional instance to populate. + * @return {module:model/ThirdPartyFeesDetails} The populated ThirdPartyFeesDetails instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ThirdPartyFeesDetails(); + + if (data.hasOwnProperty('DeliveryIntegrationFee')) { + obj['DeliveryIntegrationFee'] = ApiClient.convertToType(data['DeliveryIntegrationFee'], 'Number'); + } + if (data.hasOwnProperty('DeliveryTipFee')) { + obj['DeliveryTipFee'] = ApiClient.convertToType(data['DeliveryTipFee'], 'Number'); + } + if (data.hasOwnProperty('TotalThirdPartyFees')) { + obj['TotalThirdPartyFees'] = ApiClient.convertToType(data['TotalThirdPartyFees'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Third party integration delivery fee + * @member {Number} DeliveryIntegrationFee + */ +ThirdPartyFeesDetails.prototype['DeliveryIntegrationFee'] = undefined; + +/** + * Third party integration delivery tip fee + * @member {Number} DeliveryTipFee + */ +ThirdPartyFeesDetails.prototype['DeliveryTipFee'] = undefined; + +/** + * Total third party integration fees + * @member {Number} TotalThirdPartyFees + */ +ThirdPartyFeesDetails.prototype['TotalThirdPartyFees'] = undefined; + + + + + + +export default ThirdPartyFeesDetails; + diff --git a/src/model/TipConfiguration.js b/src/model/TipConfiguration.js new file mode 100644 index 00000000..2bcd18af --- /dev/null +++ b/src/model/TipConfiguration.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TipConfiguration model module. + * @module model/TipConfiguration + * @version 1.0.0 + */ +class TipConfiguration { + /** + * Constructs a new TipConfiguration. + * Describes the configuration of tipping + * @alias module:model/TipConfiguration + */ + constructor() { + + TipConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TipConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TipConfiguration} obj Optional instance to populate. + * @return {module:model/TipConfiguration} The populated TipConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TipConfiguration(); + + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AllowCustomTips')) { + obj['AllowCustomTips'] = ApiClient.convertToType(data['AllowCustomTips'], 'Boolean'); + } + if (data.hasOwnProperty('AllowRoundUp')) { + obj['AllowRoundUp'] = ApiClient.convertToType(data['AllowRoundUp'], 'Boolean'); + } + if (data.hasOwnProperty('AllowEmojis')) { + obj['AllowEmojis'] = ApiClient.convertToType(data['AllowEmojis'], 'Boolean'); + } + if (data.hasOwnProperty('Percentages')) { + obj['Percentages'] = ApiClient.convertToType(data['Percentages'], ['Number']); + } + if (data.hasOwnProperty('DefaultPercentage')) { + obj['DefaultPercentage'] = ApiClient.convertToType(data['DefaultPercentage'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Configuration is for this StoreId + * @member {Number} StoreId + */ +TipConfiguration.prototype['StoreId'] = undefined; + +/** + * Are tips enabled? + * @member {Boolean} IsEnabled + */ +TipConfiguration.prototype['IsEnabled'] = undefined; + +/** + * Are custom tips allowed? + * @member {Boolean} AllowCustomTips + */ +TipConfiguration.prototype['AllowCustomTips'] = undefined; + +/** + * Is round up allowed? + * @member {Boolean} AllowRoundUp + */ +TipConfiguration.prototype['AllowRoundUp'] = undefined; + +/** + * Are emojis allowed? + * @member {Boolean} AllowEmojis + */ +TipConfiguration.prototype['AllowEmojis'] = undefined; + +/** + * Ordered list of tip breakpoints (smallest -> largest) + * @member {Array.} Percentages + */ +TipConfiguration.prototype['Percentages'] = undefined; + +/** + * Defines a default percentage, it must be in the list of Percentages + * @member {Number} DefaultPercentage + */ +TipConfiguration.prototype['DefaultPercentage'] = undefined; + + + + + + +export default TipConfiguration; + diff --git a/src/model/UnRegisterCardReaderRequest.js b/src/model/UnRegisterCardReaderRequest.js new file mode 100644 index 00000000..9d2a40c2 --- /dev/null +++ b/src/model/UnRegisterCardReaderRequest.js @@ -0,0 +1,86 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UnRegisterCardReaderRequest model module. + * @module model/UnRegisterCardReaderRequest + * @version 1.0.0 + */ +class UnRegisterCardReaderRequest { + /** + * Constructs a new UnRegisterCardReaderRequest. + * Un-Register card reader request + * @alias module:model/UnRegisterCardReaderRequest + * @param ReaderId {String} Device card readerid + * @param KioskDeviceId {String} The kiosk device id + */ + constructor(ReaderId, KioskDeviceId) { + + UnRegisterCardReaderRequest.initialize(this, ReaderId, KioskDeviceId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, ReaderId, KioskDeviceId) { + obj['ReaderId'] = ReaderId; + obj['KioskDeviceId'] = KioskDeviceId; + } + + /** + * Constructs a UnRegisterCardReaderRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UnRegisterCardReaderRequest} obj Optional instance to populate. + * @return {module:model/UnRegisterCardReaderRequest} The populated UnRegisterCardReaderRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UnRegisterCardReaderRequest(); + + if (data.hasOwnProperty('ReaderId')) { + obj['ReaderId'] = ApiClient.convertToType(data['ReaderId'], 'String'); + } + if (data.hasOwnProperty('KioskDeviceId')) { + obj['KioskDeviceId'] = ApiClient.convertToType(data['KioskDeviceId'], 'String'); + } + } + return obj; + } + + +} + +/** + * Device card readerid + * @member {String} ReaderId + */ +UnRegisterCardReaderRequest.prototype['ReaderId'] = undefined; + +/** + * The kiosk device id + * @member {String} KioskDeviceId + */ +UnRegisterCardReaderRequest.prototype['KioskDeviceId'] = undefined; + + + + + + +export default UnRegisterCardReaderRequest; + diff --git a/src/model/UpcomingInvoice.js b/src/model/UpcomingInvoice.js new file mode 100644 index 00000000..080b676d --- /dev/null +++ b/src/model/UpcomingInvoice.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import InvoiceDiscount from './InvoiceDiscount'; +import InvoiceItem from './InvoiceItem'; + +/** + * The UpcomingInvoice model module. + * @module model/UpcomingInvoice + * @version 1.0.0 + */ +class UpcomingInvoice { + /** + * Constructs a new UpcomingInvoice. + * @alias module:model/UpcomingInvoice + * @param Subtotal {Number} Subtotal + * @param AmountDue {Number} Amount due + * @param Tax {Number} Tax + */ + constructor(Subtotal, AmountDue, Tax) { + + UpcomingInvoice.initialize(this, Subtotal, AmountDue, Tax); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Subtotal, AmountDue, Tax) { + obj['Subtotal'] = Subtotal; + obj['AmountDue'] = AmountDue; + obj['Tax'] = Tax; + } + + /** + * Constructs a UpcomingInvoice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpcomingInvoice} obj Optional instance to populate. + * @return {module:model/UpcomingInvoice} The populated UpcomingInvoice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpcomingInvoice(); + + if (data.hasOwnProperty('Amount')) { + obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); + } + if (data.hasOwnProperty('NextBillingDate')) { + obj['NextBillingDate'] = ApiClient.convertToType(data['NextBillingDate'], 'Date'); + } + if (data.hasOwnProperty('Subtotal')) { + obj['Subtotal'] = ApiClient.convertToType(data['Subtotal'], 'Number'); + } + if (data.hasOwnProperty('TotalExcludingTax')) { + obj['TotalExcludingTax'] = ApiClient.convertToType(data['TotalExcludingTax'], 'Number'); + } + if (data.hasOwnProperty('AmountDue')) { + obj['AmountDue'] = ApiClient.convertToType(data['AmountDue'], 'Number'); + } + if (data.hasOwnProperty('Tax')) { + obj['Tax'] = ApiClient.convertToType(data['Tax'], 'Number'); + } + if (data.hasOwnProperty('Items')) { + obj['Items'] = ApiClient.convertToType(data['Items'], [InvoiceItem]); + } + if (data.hasOwnProperty('Discounts')) { + obj['Discounts'] = ApiClient.convertToType(data['Discounts'], [InvoiceDiscount]); + } + } + return obj; + } + + +} + +/** + * Amount + * @member {Number} Amount + */ +UpcomingInvoice.prototype['Amount'] = undefined; + +/** + * Next billing date + * @member {Date} NextBillingDate + */ +UpcomingInvoice.prototype['NextBillingDate'] = undefined; + +/** + * Subtotal + * @member {Number} Subtotal + */ +UpcomingInvoice.prototype['Subtotal'] = undefined; + +/** + * Total excluding tax + * @member {Number} TotalExcludingTax + */ +UpcomingInvoice.prototype['TotalExcludingTax'] = undefined; + +/** + * Amount due + * @member {Number} AmountDue + */ +UpcomingInvoice.prototype['AmountDue'] = undefined; + +/** + * Tax + * @member {Number} Tax + */ +UpcomingInvoice.prototype['Tax'] = undefined; + +/** + * Items + * @member {Array.} Items + */ +UpcomingInvoice.prototype['Items'] = undefined; + +/** + * Discounts + * @member {Array.} Discounts + */ +UpcomingInvoice.prototype['Discounts'] = undefined; + + + + + + +export default UpcomingInvoice; + diff --git a/src/model/UpdateAppStoreApp.js b/src/model/UpdateAppStoreApp.js new file mode 100644 index 00000000..a3716e47 --- /dev/null +++ b/src/model/UpdateAppStoreApp.js @@ -0,0 +1,519 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppStoreAppSupportInfo from './AppStoreAppSupportInfo'; +import FieldGroup from './FieldGroup'; + +/** + * The UpdateAppStoreApp model module. + * @module model/UpdateAppStoreApp + * @version 1.0.0 + */ +class UpdateAppStoreApp { + /** + * Constructs a new UpdateAppStoreApp. + * @alias module:model/UpdateAppStoreApp + * @param Details {String} + * @param ConfigurationType {module:model/UpdateAppStoreApp.ConfigurationTypeEnum} + * @param StoreSelectorType {module:model/UpdateAppStoreApp.StoreSelectorTypeEnum} + * @param PermissionsType {module:model/UpdateAppStoreApp.PermissionsTypeEnum} + * @param Name {String} + * @param Description {String} + * @param Categories {Array.} + * @param Countries {Array.} + */ + constructor(Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + + UpdateAppStoreApp.initialize(this, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Details, ConfigurationType, StoreSelectorType, PermissionsType, Name, Description, Categories, Countries) { + obj['Details'] = Details; + obj['ConfigurationType'] = ConfigurationType; + obj['StoreSelectorType'] = StoreSelectorType; + obj['PermissionsType'] = PermissionsType; + obj['Name'] = Name; + obj['Description'] = Description; + obj['Categories'] = Categories; + obj['Countries'] = Countries; + } + + /** + * Constructs a UpdateAppStoreApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAppStoreApp} obj Optional instance to populate. + * @return {module:model/UpdateAppStoreApp} The populated UpdateAppStoreApp instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAppStoreApp(); + + if (data.hasOwnProperty('Details')) { + obj['Details'] = ApiClient.convertToType(data['Details'], 'String'); + } + if (data.hasOwnProperty('ConfigurationType')) { + obj['ConfigurationType'] = ApiClient.convertToType(data['ConfigurationType'], 'String'); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('FieldGroups')) { + obj['FieldGroups'] = ApiClient.convertToType(data['FieldGroups'], [FieldGroup]); + } + if (data.hasOwnProperty('SetupInstructions')) { + obj['SetupInstructions'] = ApiClient.convertToType(data['SetupInstructions'], 'String'); + } + if (data.hasOwnProperty('ExternalSetupLink')) { + obj['ExternalSetupLink'] = ApiClient.convertToType(data['ExternalSetupLink'], 'String'); + } + if (data.hasOwnProperty('TeammateAppAccessLevel')) { + obj['TeammateAppAccessLevel'] = ApiClient.convertToType(data['TeammateAppAccessLevel'], 'String'); + } + if (data.hasOwnProperty('PermissionsType')) { + obj['PermissionsType'] = ApiClient.convertToType(data['PermissionsType'], 'String'); + } + if (data.hasOwnProperty('Support')) { + obj['Support'] = AppStoreAppSupportInfo.constructFromObject(data['Support']); + } + if (data.hasOwnProperty('ExternalFunctionActionUrl')) { + obj['ExternalFunctionActionUrl'] = ApiClient.convertToType(data['ExternalFunctionActionUrl'], 'String'); + } + if (data.hasOwnProperty('ExternalFunctionSignatureKey')) { + obj['ExternalFunctionSignatureKey'] = ApiClient.convertToType(data['ExternalFunctionSignatureKey'], 'String'); + } + if (data.hasOwnProperty('IsPaid')) { + obj['IsPaid'] = ApiClient.convertToType(data['IsPaid'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Categories')) { + obj['Categories'] = ApiClient.convertToType(data['Categories'], ['String']); + } + if (data.hasOwnProperty('Countries')) { + obj['Countries'] = ApiClient.convertToType(data['Countries'], ['String']); + } + if (data.hasOwnProperty('DeveloperName')) { + obj['DeveloperName'] = ApiClient.convertToType(data['DeveloperName'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Details + */ +UpdateAppStoreApp.prototype['Details'] = undefined; + +/** + * @member {module:model/UpdateAppStoreApp.ConfigurationTypeEnum} ConfigurationType + */ +UpdateAppStoreApp.prototype['ConfigurationType'] = undefined; + +/** + * @member {module:model/UpdateAppStoreApp.StoreSelectorTypeEnum} StoreSelectorType + */ +UpdateAppStoreApp.prototype['StoreSelectorType'] = undefined; + +/** + * @member {Array.} FieldGroups + */ +UpdateAppStoreApp.prototype['FieldGroups'] = undefined; + +/** + * @member {String} SetupInstructions + */ +UpdateAppStoreApp.prototype['SetupInstructions'] = undefined; + +/** + * @member {String} ExternalSetupLink + */ +UpdateAppStoreApp.prototype['ExternalSetupLink'] = undefined; + +/** + * @member {module:model/UpdateAppStoreApp.TeammateAppAccessLevelEnum} TeammateAppAccessLevel + */ +UpdateAppStoreApp.prototype['TeammateAppAccessLevel'] = undefined; + +/** + * @member {module:model/UpdateAppStoreApp.PermissionsTypeEnum} PermissionsType + */ +UpdateAppStoreApp.prototype['PermissionsType'] = undefined; + +/** + * @member {module:model/AppStoreAppSupportInfo} Support + */ +UpdateAppStoreApp.prototype['Support'] = undefined; + +/** + * @member {String} ExternalFunctionActionUrl + */ +UpdateAppStoreApp.prototype['ExternalFunctionActionUrl'] = undefined; + +/** + * @member {String} ExternalFunctionSignatureKey + */ +UpdateAppStoreApp.prototype['ExternalFunctionSignatureKey'] = undefined; + +/** + * @member {Boolean} IsPaid + */ +UpdateAppStoreApp.prototype['IsPaid'] = undefined; + +/** + * @member {String} Name + */ +UpdateAppStoreApp.prototype['Name'] = undefined; + +/** + * @member {String} Description + */ +UpdateAppStoreApp.prototype['Description'] = undefined; + +/** + * @member {Boolean} IsEnabled + */ +UpdateAppStoreApp.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} Categories + */ +UpdateAppStoreApp.prototype['Categories'] = undefined; + +/** + * @member {Array.} Countries + */ +UpdateAppStoreApp.prototype['Countries'] = undefined; + +/** + * @member {String} DeveloperName + */ +UpdateAppStoreApp.prototype['DeveloperName'] = undefined; + + + + + +/** + * Allowed values for the ConfigurationType property. + * @enum {String} + * @readonly + */ +UpdateAppStoreApp['ConfigurationTypeEnum'] = { + + /** + * value: "ExternalLink" + * @const + */ + "ExternalLink": "ExternalLink", + + /** + * value: "FlipdishHosted" + * @const + */ + "FlipdishHosted": "FlipdishHosted" +}; + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +UpdateAppStoreApp['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + +/** + * Allowed values for the TeammateAppAccessLevel property. + * @enum {String} + * @readonly + */ +UpdateAppStoreApp['TeammateAppAccessLevelEnum'] = { + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManger" + * @const + */ + "FinanceManger": "FinanceManger" +}; + + +/** + * Allowed values for the PermissionsType property. + * @enum {String} + * @readonly + */ +UpdateAppStoreApp['PermissionsTypeEnum'] = { + + /** + * value: "Teammate" + * @const + */ + "Teammate": "Teammate" +}; + + +/** + * Allowed values for the Categories property. + * @enum {String} + * @readonly + */ +UpdateAppStoreApp['CategoriesEnum'] = { + + /** + * value: "PointOfSale" + * @const + */ + "PointOfSale": "PointOfSale", + + /** + * value: "DeliveryAndLogistics" + * @const + */ + "DeliveryAndLogistics": "DeliveryAndLogistics", + + /** + * value: "CRM" + * @const + */ + "CRM": "CRM", + + /** + * value: "GiftCard" + * @const + */ + "GiftCard": "GiftCard", + + /** + * value: "Accounting" + * @const + */ + "Accounting": "Accounting", + + /** + * value: "LoyaltyAndMarketing" + * @const + */ + "LoyaltyAndMarketing": "LoyaltyAndMarketing", + + /** + * value: "Other" + * @const + */ + "Other": "Other" +}; + + +/** + * Allowed values for the Countries property. + * @enum {String} + * @readonly + */ +UpdateAppStoreApp['CountriesEnum'] = { + + /** + * value: "GB" + * @const + */ + "GB": "GB", + + /** + * value: "IE" + * @const + */ + "IE": "IE", + + /** + * value: "FR" + * @const + */ + "FR": "FR", + + /** + * value: "ES" + * @const + */ + "ES": "ES", + + /** + * value: "PT" + * @const + */ + "PT": "PT", + + /** + * value: "IT" + * @const + */ + "IT": "IT", + + /** + * value: "DE" + * @const + */ + "DE": "DE", + + /** + * value: "PL" + * @const + */ + "PL": "PL", + + /** + * value: "BE" + * @const + */ + "BE": "BE", + + /** + * value: "LU" + * @const + */ + "LU": "LU", + + /** + * value: "NL" + * @const + */ + "NL": "NL", + + /** + * value: "US" + * @const + */ + "US": "US", + + /** + * value: "CA" + * @const + */ + "CA": "CA", + + /** + * value: "BG" + * @const + */ + "BG": "BG", + + /** + * value: "MX" + * @const + */ + "MX": "MX", + + /** + * value: "AU" + * @const + */ + "AU": "AU", + + /** + * value: "NZ" + * @const + */ + "NZ": "NZ" +}; + + + +export default UpdateAppStoreApp; + diff --git a/src/model/UpdateAppStoreAppConfiguration.js b/src/model/UpdateAppStoreAppConfiguration.js new file mode 100644 index 00000000..69b2cc89 --- /dev/null +++ b/src/model/UpdateAppStoreAppConfiguration.js @@ -0,0 +1,90 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Setting from './Setting'; + +/** + * The UpdateAppStoreAppConfiguration model module. + * @module model/UpdateAppStoreAppConfiguration + * @version 1.0.0 + */ +class UpdateAppStoreAppConfiguration { + /** + * Constructs a new UpdateAppStoreAppConfiguration. + * @alias module:model/UpdateAppStoreAppConfiguration + * @param IsEnabled {Boolean} + */ + constructor(IsEnabled) { + + UpdateAppStoreAppConfiguration.initialize(this, IsEnabled); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, IsEnabled) { + obj['IsEnabled'] = IsEnabled; + } + + /** + * Constructs a UpdateAppStoreAppConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAppStoreAppConfiguration} obj Optional instance to populate. + * @return {module:model/UpdateAppStoreAppConfiguration} The populated UpdateAppStoreAppConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAppStoreAppConfiguration(); + + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('Settings')) { + obj['Settings'] = ApiClient.convertToType(data['Settings'], [Setting]); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} IsEnabled + */ +UpdateAppStoreAppConfiguration.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} StoreIds + */ +UpdateAppStoreAppConfiguration.prototype['StoreIds'] = undefined; + +/** + * @member {Array.} Settings + */ +UpdateAppStoreAppConfiguration.prototype['Settings'] = undefined; + + + + + + +export default UpdateAppStoreAppConfiguration; + diff --git a/src/model/UpdateAppStoreAppConfigurationValuesBatch.js b/src/model/UpdateAppStoreAppConfigurationValuesBatch.js new file mode 100644 index 00000000..206cd6d7 --- /dev/null +++ b/src/model/UpdateAppStoreAppConfigurationValuesBatch.js @@ -0,0 +1,72 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Setting from './Setting'; + +/** + * The UpdateAppStoreAppConfigurationValuesBatch model module. + * @module model/UpdateAppStoreAppConfigurationValuesBatch + * @version 1.0.0 + */ +class UpdateAppStoreAppConfigurationValuesBatch { + /** + * Constructs a new UpdateAppStoreAppConfigurationValuesBatch. + * @alias module:model/UpdateAppStoreAppConfigurationValuesBatch + */ + constructor() { + + UpdateAppStoreAppConfigurationValuesBatch.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateAppStoreAppConfigurationValuesBatch from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAppStoreAppConfigurationValuesBatch} obj Optional instance to populate. + * @return {module:model/UpdateAppStoreAppConfigurationValuesBatch} The populated UpdateAppStoreAppConfigurationValuesBatch instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAppStoreAppConfigurationValuesBatch(); + + if (data.hasOwnProperty('Settings')) { + obj['Settings'] = ApiClient.convertToType(data['Settings'], [Setting]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} Settings + */ +UpdateAppStoreAppConfigurationValuesBatch.prototype['Settings'] = undefined; + + + + + + +export default UpdateAppStoreAppConfigurationValuesBatch; + diff --git a/src/model/UpdateAppStoreAppConfigurationWebhookDTO.js b/src/model/UpdateAppStoreAppConfigurationWebhookDTO.js new file mode 100644 index 00000000..f1cd08dc --- /dev/null +++ b/src/model/UpdateAppStoreAppConfigurationWebhookDTO.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Setting from './Setting'; + +/** + * The UpdateAppStoreAppConfigurationWebhookDTO model module. + * @module model/UpdateAppStoreAppConfigurationWebhookDTO + * @version 1.0.0 + */ +class UpdateAppStoreAppConfigurationWebhookDTO { + /** + * Constructs a new UpdateAppStoreAppConfigurationWebhookDTO. + * @alias module:model/UpdateAppStoreAppConfigurationWebhookDTO + * @param Id {String} + * @param IsEnabled {Boolean} + */ + constructor(Id, IsEnabled) { + + UpdateAppStoreAppConfigurationWebhookDTO.initialize(this, Id, IsEnabled); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Id, IsEnabled) { + obj['Id'] = Id; + obj['IsEnabled'] = IsEnabled; + } + + /** + * Constructs a UpdateAppStoreAppConfigurationWebhookDTO from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAppStoreAppConfigurationWebhookDTO} obj Optional instance to populate. + * @return {module:model/UpdateAppStoreAppConfigurationWebhookDTO} The populated UpdateAppStoreAppConfigurationWebhookDTO instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAppStoreAppConfigurationWebhookDTO(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('Settings')) { + obj['Settings'] = ApiClient.convertToType(data['Settings'], [Setting]); + } + } + return obj; + } + + +} + +/** + * @member {String} Id + */ +UpdateAppStoreAppConfigurationWebhookDTO.prototype['Id'] = undefined; + +/** + * @member {Boolean} IsEnabled + */ +UpdateAppStoreAppConfigurationWebhookDTO.prototype['IsEnabled'] = undefined; + +/** + * @member {Array.} StoreIds + */ +UpdateAppStoreAppConfigurationWebhookDTO.prototype['StoreIds'] = undefined; + +/** + * @member {Array.} Settings + */ +UpdateAppStoreAppConfigurationWebhookDTO.prototype['Settings'] = undefined; + + + + + + +export default UpdateAppStoreAppConfigurationWebhookDTO; + diff --git a/src/model/UpdateAppStoreAppExternalProduct.js b/src/model/UpdateAppStoreAppExternalProduct.js new file mode 100644 index 00000000..9adbe18f --- /dev/null +++ b/src/model/UpdateAppStoreAppExternalProduct.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateAppStoreAppExternalProduct model module. + * @module model/UpdateAppStoreAppExternalProduct + * @version 1.0.0 + */ +class UpdateAppStoreAppExternalProduct { + /** + * Constructs a new UpdateAppStoreAppExternalProduct. + * @alias module:model/UpdateAppStoreAppExternalProduct + */ + constructor() { + + UpdateAppStoreAppExternalProduct.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateAppStoreAppExternalProduct from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAppStoreAppExternalProduct} obj Optional instance to populate. + * @return {module:model/UpdateAppStoreAppExternalProduct} The populated UpdateAppStoreAppExternalProduct instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAppStoreAppExternalProduct(); + + if (data.hasOwnProperty('ExternalProductId')) { + obj['ExternalProductId'] = ApiClient.convertToType(data['ExternalProductId'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} ExternalProductId + */ +UpdateAppStoreAppExternalProduct.prototype['ExternalProductId'] = undefined; + + + + + + +export default UpdateAppStoreAppExternalProduct; + diff --git a/src/model/UpdateCatalogGroupReference.js b/src/model/UpdateCatalogGroupReference.js new file mode 100644 index 00000000..3f1f6c1e --- /dev/null +++ b/src/model/UpdateCatalogGroupReference.js @@ -0,0 +1,110 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateCatalogGroupReference model module. + * @module model/UpdateCatalogGroupReference + * @version 1.0.0 + */ +class UpdateCatalogGroupReference { + /** + * Constructs a new UpdateCatalogGroupReference. + * Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogGroupReference} + * @alias module:model/UpdateCatalogGroupReference + * @param CatalogGroupId {String} Identifier of the ProductId to use as SubProduct + * @param GroupType {module:model/UpdateCatalogGroupReference.GroupTypeEnum} Type of the SupProduct + */ + constructor(CatalogGroupId, GroupType) { + + UpdateCatalogGroupReference.initialize(this, CatalogGroupId, GroupType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogGroupId, GroupType) { + obj['CatalogGroupId'] = CatalogGroupId; + obj['GroupType'] = GroupType; + } + + /** + * Constructs a UpdateCatalogGroupReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateCatalogGroupReference} obj Optional instance to populate. + * @return {module:model/UpdateCatalogGroupReference} The populated UpdateCatalogGroupReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateCatalogGroupReference(); + + if (data.hasOwnProperty('CatalogGroupId')) { + obj['CatalogGroupId'] = ApiClient.convertToType(data['CatalogGroupId'], 'String'); + } + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogGroupId + */ +UpdateCatalogGroupReference.prototype['CatalogGroupId'] = undefined; + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogItemId + */ +UpdateCatalogGroupReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/UpdateCatalogGroupReference.GroupTypeEnum} GroupType + */ +UpdateCatalogGroupReference.prototype['GroupType'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +UpdateCatalogGroupReference['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default UpdateCatalogGroupReference; + diff --git a/src/model/UpdateCatalogItem.js b/src/model/UpdateCatalogItem.js new file mode 100644 index 00000000..01f64530 --- /dev/null +++ b/src/model/UpdateCatalogItem.js @@ -0,0 +1,138 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Metafield from './Metafield'; +import UpdateCatalogGroupReference from './UpdateCatalogGroupReference'; + +/** + * The UpdateCatalogItem model module. + * @module model/UpdateCatalogItem + * @version 1.0.0 + */ +class UpdateCatalogItem { + /** + * Constructs a new UpdateCatalogItem. + * Update Catalog Item + * @alias module:model/UpdateCatalogItem + */ + constructor() { + + UpdateCatalogItem.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateCatalogItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateCatalogItem} obj Optional instance to populate. + * @return {module:model/UpdateCatalogItem} The populated UpdateCatalogItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateCatalogItem(); + + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + if (data.hasOwnProperty('Groups')) { + obj['Groups'] = ApiClient.convertToType(data['Groups'], [UpdateCatalogGroupReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + } + return obj; + } + + +} + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +UpdateCatalogItem.prototype['Sku'] = undefined; + +/** + * Product name + * @member {String} Name + */ +UpdateCatalogItem.prototype['Name'] = undefined; + +/** + * Product description + * @member {String} Description + */ +UpdateCatalogItem.prototype['Description'] = undefined; + +/** + * Product price + * @member {Number} Price + */ +UpdateCatalogItem.prototype['Price'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +UpdateCatalogItem.prototype['ImageFileName'] = undefined; + +/** + * Product contains alcohol + * @member {Boolean} Alcohol + */ +UpdateCatalogItem.prototype['Alcohol'] = undefined; + +/** + * Collection of groups associated with this item + * @member {Array.} Groups + */ +UpdateCatalogItem.prototype['Groups'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +UpdateCatalogItem.prototype['Metafields'] = undefined; + + + + + + +export default UpdateCatalogItem; + diff --git a/src/model/UpdateDriverNotificationToken.js b/src/model/UpdateDriverNotificationToken.js new file mode 100644 index 00000000..15c807d2 --- /dev/null +++ b/src/model/UpdateDriverNotificationToken.js @@ -0,0 +1,75 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateDriverNotificationToken model module. + * @module model/UpdateDriverNotificationToken + * @version 1.0.0 + */ +class UpdateDriverNotificationToken { + /** + * Constructs a new UpdateDriverNotificationToken. + * UpdateDriver Push Notification Token + * @alias module:model/UpdateDriverNotificationToken + * @param PushNotificationsToken {String} Push notifications token, cannot be null + */ + constructor(PushNotificationsToken) { + + UpdateDriverNotificationToken.initialize(this, PushNotificationsToken); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, PushNotificationsToken) { + obj['PushNotificationsToken'] = PushNotificationsToken; + } + + /** + * Constructs a UpdateDriverNotificationToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDriverNotificationToken} obj Optional instance to populate. + * @return {module:model/UpdateDriverNotificationToken} The populated UpdateDriverNotificationToken instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDriverNotificationToken(); + + if (data.hasOwnProperty('PushNotificationsToken')) { + obj['PushNotificationsToken'] = ApiClient.convertToType(data['PushNotificationsToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * Push notifications token, cannot be null + * @member {String} PushNotificationsToken + */ +UpdateDriverNotificationToken.prototype['PushNotificationsToken'] = undefined; + + + + + + +export default UpdateDriverNotificationToken; + diff --git a/src/model/UpdateDriverProfileModel.js b/src/model/UpdateDriverProfileModel.js new file mode 100644 index 00000000..38d2e6ff --- /dev/null +++ b/src/model/UpdateDriverProfileModel.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateDriverProfileModel model module. + * @module model/UpdateDriverProfileModel + * @version 1.0.0 + */ +class UpdateDriverProfileModel { + /** + * Constructs a new UpdateDriverProfileModel. + * Update Driver Profile + * @alias module:model/UpdateDriverProfileModel + */ + constructor() { + + UpdateDriverProfileModel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateDriverProfileModel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDriverProfileModel} obj Optional instance to populate. + * @return {module:model/UpdateDriverProfileModel} The populated UpdateDriverProfileModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDriverProfileModel(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * The new name of the Driver. + * @member {String} Name + */ +UpdateDriverProfileModel.prototype['Name'] = undefined; + + + + + + +export default UpdateDriverProfileModel; + diff --git a/src/model/UpdateFulfillmentStatesConfiguration.js b/src/model/UpdateFulfillmentStatesConfiguration.js new file mode 100644 index 00000000..c9da318c --- /dev/null +++ b/src/model/UpdateFulfillmentStatesConfiguration.js @@ -0,0 +1,146 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FulfillmentStatusConfigurationItem from './FulfillmentStatusConfigurationItem'; + +/** + * The UpdateFulfillmentStatesConfiguration model module. + * @module model/UpdateFulfillmentStatesConfiguration + * @version 1.0.0 + */ +class UpdateFulfillmentStatesConfiguration { + /** + * Constructs a new UpdateFulfillmentStatesConfiguration. + * Update fulfillment states configuration + * @alias module:model/UpdateFulfillmentStatesConfiguration + */ + constructor() { + + UpdateFulfillmentStatesConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateFulfillmentStatesConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateFulfillmentStatesConfiguration} obj Optional instance to populate. + * @return {module:model/UpdateFulfillmentStatesConfiguration} The populated UpdateFulfillmentStatesConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateFulfillmentStatesConfiguration(); + + if (data.hasOwnProperty('OverwriteSystemTemplate')) { + obj['OverwriteSystemTemplate'] = ApiClient.convertToType(data['OverwriteSystemTemplate'], 'Boolean'); + } + if (data.hasOwnProperty('StoreIds')) { + obj['StoreIds'] = ApiClient.convertToType(data['StoreIds'], ['Number']); + } + if (data.hasOwnProperty('StoreSelectorType')) { + obj['StoreSelectorType'] = ApiClient.convertToType(data['StoreSelectorType'], 'String'); + } + if (data.hasOwnProperty('States')) { + obj['States'] = ApiClient.convertToType(data['States'], [FulfillmentStatusConfigurationItem]); + } + if (data.hasOwnProperty('AutomaticTransitionsEnabled')) { + obj['AutomaticTransitionsEnabled'] = ApiClient.convertToType(data['AutomaticTransitionsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Set to true if a system configuration template is to be updated (permissions also needed) + * @member {Boolean} OverwriteSystemTemplate + */ +UpdateFulfillmentStatesConfiguration.prototype['OverwriteSystemTemplate'] = undefined; + +/** + * Stores id's + * @member {Array.} StoreIds + */ +UpdateFulfillmentStatesConfiguration.prototype['StoreIds'] = undefined; + +/** + * Store Selector Type + * @member {module:model/UpdateFulfillmentStatesConfiguration.StoreSelectorTypeEnum} StoreSelectorType + */ +UpdateFulfillmentStatesConfiguration.prototype['StoreSelectorType'] = undefined; + +/** + * Settings + * @member {Array.} States + */ +UpdateFulfillmentStatesConfiguration.prototype['States'] = undefined; + +/** + * Enable automatic transitions + * @member {Boolean} AutomaticTransitionsEnabled + */ +UpdateFulfillmentStatesConfiguration.prototype['AutomaticTransitionsEnabled'] = undefined; + +/** + * Name + * @member {String} Name + */ +UpdateFulfillmentStatesConfiguration.prototype['Name'] = undefined; + + + + + +/** + * Allowed values for the StoreSelectorType property. + * @enum {String} + * @readonly + */ +UpdateFulfillmentStatesConfiguration['StoreSelectorTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Single" + * @const + */ + "Single": "Single", + + /** + * value: "Multiple" + * @const + */ + "Multiple": "Multiple" +}; + + + +export default UpdateFulfillmentStatesConfiguration; + diff --git a/src/model/UpdateGroup.js b/src/model/UpdateGroup.js new file mode 100644 index 00000000..5d3b9344 --- /dev/null +++ b/src/model/UpdateGroup.js @@ -0,0 +1,138 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Metafield from './Metafield'; +import UpdateProductReference from './UpdateProductReference'; + +/** + * The UpdateGroup model module. + * @module model/UpdateGroup + * @version 1.0.0 + */ +class UpdateGroup { + /** + * Constructs a new UpdateGroup. + * Update Catalog Group + * @alias module:model/UpdateGroup + */ + constructor() { + + UpdateGroup.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGroup} obj Optional instance to populate. + * @return {module:model/UpdateGroup} The populated UpdateGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGroup(); + + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('AutogenerateDisplayText')) { + obj['AutogenerateDisplayText'] = ApiClient.convertToType(data['AutogenerateDisplayText'], 'Boolean'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + if (data.hasOwnProperty('MinSelectCount')) { + obj['MinSelectCount'] = ApiClient.convertToType(data['MinSelectCount'], 'Number'); + } + if (data.hasOwnProperty('MaxSelectCount')) { + obj['MaxSelectCount'] = ApiClient.convertToType(data['MaxSelectCount'], 'Number'); + } + if (data.hasOwnProperty('Products')) { + obj['Products'] = ApiClient.convertToType(data['Products'], [UpdateProductReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + } + return obj; + } + + +} + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +UpdateGroup.prototype['Sku'] = undefined; + +/** + * Group name + * @member {String} Name + */ +UpdateGroup.prototype['Name'] = undefined; + +/** + * Autogenerate display text in ordering applications + * @member {Boolean} AutogenerateDisplayText + */ +UpdateGroup.prototype['AutogenerateDisplayText'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +UpdateGroup.prototype['ImageFileName'] = undefined; + +/** + * Minimum number of items that the user has to select + * @member {Number} MinSelectCount + */ +UpdateGroup.prototype['MinSelectCount'] = undefined; + +/** + * Maximum number of items that the user has to select + * @member {Number} MaxSelectCount + */ +UpdateGroup.prototype['MaxSelectCount'] = undefined; + +/** + * Collection of items associated with this group + * @member {Array.} Products + */ +UpdateGroup.prototype['Products'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +UpdateGroup.prototype['Metafields'] = undefined; + + + + + + +export default UpdateGroup; + diff --git a/src/model/UpdateGroupReference.js b/src/model/UpdateGroupReference.js new file mode 100644 index 00000000..b50d90a1 --- /dev/null +++ b/src/model/UpdateGroupReference.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateGroupReference model module. + * @module model/UpdateGroupReference + * @version 1.0.0 + */ +class UpdateGroupReference { + /** + * Constructs a new UpdateGroupReference. + * Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference} + * @alias module:model/UpdateGroupReference + * @param CatalogItemId {String} Identifier of the ProductId to use as SubProduct + * @param GroupType {module:model/UpdateGroupReference.GroupTypeEnum} Type of the SupProduct + */ + constructor(CatalogItemId, GroupType) { + + UpdateGroupReference.initialize(this, CatalogItemId, GroupType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogItemId, GroupType) { + obj['CatalogItemId'] = CatalogItemId; + obj['GroupType'] = GroupType; + } + + /** + * Constructs a UpdateGroupReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGroupReference} obj Optional instance to populate. + * @return {module:model/UpdateGroupReference} The populated UpdateGroupReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGroupReference(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('GroupType')) { + obj['GroupType'] = ApiClient.convertToType(data['GroupType'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier of the ProductId to use as SubProduct + * @member {String} CatalogItemId + */ +UpdateGroupReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/UpdateGroupReference.GroupTypeEnum} GroupType + */ +UpdateGroupReference.prototype['GroupType'] = undefined; + + + + + +/** + * Allowed values for the GroupType property. + * @enum {String} + * @readonly + */ +UpdateGroupReference['GroupTypeEnum'] = { + + /** + * value: "ModifierGroup" + * @const + */ + "ModifierGroup": "ModifierGroup" +}; + + + +export default UpdateGroupReference; + diff --git a/src/model/UpdateLocationArea.js b/src/model/UpdateLocationArea.js new file mode 100644 index 00000000..c8df8ad8 --- /dev/null +++ b/src/model/UpdateLocationArea.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateLocationArea model module. + * @module model/UpdateLocationArea + * @version 1.0.0 + */ +class UpdateLocationArea { + /** + * Constructs a new UpdateLocationArea. + * Input model for updating a LocationArea + * @alias module:model/UpdateLocationArea + * @param LocationAreaId {Number} Location Area Id + * @param LocationAreaName {String} Descriptive LocationArea name + */ + constructor(LocationAreaId, LocationAreaName) { + + UpdateLocationArea.initialize(this, LocationAreaId, LocationAreaName); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, LocationAreaId, LocationAreaName) { + obj['LocationAreaId'] = LocationAreaId; + obj['LocationAreaName'] = LocationAreaName; + } + + /** + * Constructs a UpdateLocationArea from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLocationArea} obj Optional instance to populate. + * @return {module:model/UpdateLocationArea} The populated UpdateLocationArea instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateLocationArea(); + + if (data.hasOwnProperty('LocationAreaId')) { + obj['LocationAreaId'] = ApiClient.convertToType(data['LocationAreaId'], 'Number'); + } + if (data.hasOwnProperty('LocationAreaName')) { + obj['LocationAreaName'] = ApiClient.convertToType(data['LocationAreaName'], 'String'); + } + if (data.hasOwnProperty('IsDeleted')) { + obj['IsDeleted'] = ApiClient.convertToType(data['IsDeleted'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Location Area Id + * @member {Number} LocationAreaId + */ +UpdateLocationArea.prototype['LocationAreaId'] = undefined; + +/** + * Descriptive LocationArea name + * @member {String} LocationAreaName + */ +UpdateLocationArea.prototype['LocationAreaName'] = undefined; + +/** + * Sets if the Location Area should be soft deleted or not + * @member {Boolean} IsDeleted + */ +UpdateLocationArea.prototype['IsDeleted'] = undefined; + + + + + + +export default UpdateLocationArea; + diff --git a/src/model/UpdateMetafieldDefinition.js b/src/model/UpdateMetafieldDefinition.js new file mode 100644 index 00000000..48a17daf --- /dev/null +++ b/src/model/UpdateMetafieldDefinition.js @@ -0,0 +1,112 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateMetafieldDefinition model module. + * @module model/UpdateMetafieldDefinition + * @version 1.0.0 + */ +class UpdateMetafieldDefinition { + /** + * Constructs a new UpdateMetafieldDefinition. + * Information to update a {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition} + * @alias module:model/UpdateMetafieldDefinition + */ + constructor() { + + UpdateMetafieldDefinition.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateMetafieldDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateMetafieldDefinition} obj Optional instance to populate. + * @return {module:model/UpdateMetafieldDefinition} The populated UpdateMetafieldDefinition instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateMetafieldDefinition(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Behaviors')) { + obj['Behaviors'] = ApiClient.convertToType(data['Behaviors'], ['String']); + } + } + return obj; + } + + +} + +/** + * Field Name + * @member {String} Name + */ +UpdateMetafieldDefinition.prototype['Name'] = undefined; + +/** + * Field Description + * @member {String} Description + */ +UpdateMetafieldDefinition.prototype['Description'] = undefined; + +/** + * Enable Metafield Behaviors + * @member {Array.} Behaviors + */ +UpdateMetafieldDefinition.prototype['Behaviors'] = undefined; + + + + + +/** + * Allowed values for the Behaviors property. + * @enum {String} + * @readonly + */ +UpdateMetafieldDefinition['BehaviorsEnum'] = { + + /** + * value: "SendToOrder" + * @const + */ + "SendToOrder": "SendToOrder", + + /** + * value: "SendToMenu" + * @const + */ + "SendToMenu": "SendToMenu" +}; + + + +export default UpdateMetafieldDefinition; + diff --git a/src/model/UpdateMobileAppsSubmissionStatus.js b/src/model/UpdateMobileAppsSubmissionStatus.js new file mode 100644 index 00000000..d0ac5c91 --- /dev/null +++ b/src/model/UpdateMobileAppsSubmissionStatus.js @@ -0,0 +1,217 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateMobileAppsSubmissionStatus model module. + * @module model/UpdateMobileAppsSubmissionStatus + * @version 1.0.0 + */ +class UpdateMobileAppsSubmissionStatus { + /** + * Constructs a new UpdateMobileAppsSubmissionStatus. + * Update Mobile Apps Status + * @alias module:model/UpdateMobileAppsSubmissionStatus + */ + constructor() { + + UpdateMobileAppsSubmissionStatus.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateMobileAppsSubmissionStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateMobileAppsSubmissionStatus} obj Optional instance to populate. + * @return {module:model/UpdateMobileAppsSubmissionStatus} The populated UpdateMobileAppsSubmissionStatus instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateMobileAppsSubmissionStatus(); + + if (data.hasOwnProperty('MobileAppsSubmissionStatusId')) { + obj['MobileAppsSubmissionStatusId'] = ApiClient.convertToType(data['MobileAppsSubmissionStatusId'], 'Number'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('AppStatus')) { + obj['AppStatus'] = ApiClient.convertToType(data['AppStatus'], 'String'); + } + if (data.hasOwnProperty('UpdateStatus')) { + obj['UpdateStatus'] = ApiClient.convertToType(data['UpdateStatus'], 'String'); + } + if (data.hasOwnProperty('LastUpdateStatusTime')) { + obj['LastUpdateStatusTime'] = ApiClient.convertToType(data['LastUpdateStatusTime'], 'Date'); + } + if (data.hasOwnProperty('Notes')) { + obj['Notes'] = ApiClient.convertToType(data['Notes'], 'String'); + } + } + return obj; + } + + +} + +/** + * Mobile Apps Submission Status Id + * @member {Number} MobileAppsSubmissionStatusId + */ +UpdateMobileAppsSubmissionStatus.prototype['MobileAppsSubmissionStatusId'] = undefined; + +/** + * Mobile Type + * @member {module:model/UpdateMobileAppsSubmissionStatus.TypeEnum} Type + */ +UpdateMobileAppsSubmissionStatus.prototype['Type'] = undefined; + +/** + * Mobile App Status + * @member {module:model/UpdateMobileAppsSubmissionStatus.AppStatusEnum} AppStatus + */ +UpdateMobileAppsSubmissionStatus.prototype['AppStatus'] = undefined; + +/** + * Mobile App Status + * @member {module:model/UpdateMobileAppsSubmissionStatus.UpdateStatusEnum} UpdateStatus + */ +UpdateMobileAppsSubmissionStatus.prototype['UpdateStatus'] = undefined; + +/** + * Mobile LastUpdateStatusTime + * @member {Date} LastUpdateStatusTime + */ +UpdateMobileAppsSubmissionStatus.prototype['LastUpdateStatusTime'] = undefined; + +/** + * Mobile Notes + * @member {String} Notes + */ +UpdateMobileAppsSubmissionStatus.prototype['Notes'] = undefined; + + + + + +/** + * Allowed values for the Type property. + * @enum {String} + * @readonly + */ +UpdateMobileAppsSubmissionStatus['TypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "IOS" + * @const + */ + "IOS": "IOS" +}; + + +/** + * Allowed values for the AppStatus property. + * @enum {String} + * @readonly + */ +UpdateMobileAppsSubmissionStatus['AppStatusEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Published" + * @const + */ + "Published": "Published", + + /** + * value: "Unpublished" + * @const + */ + "Unpublished": "Unpublished" +}; + + +/** + * Allowed values for the UpdateStatus property. + * @enum {String} + * @readonly + */ +UpdateMobileAppsSubmissionStatus['UpdateStatusEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Submitted" + * @const + */ + "Submitted": "Submitted", + + /** + * value: "InReview" + * @const + */ + "InReview": "InReview", + + /** + * value: "Rejected" + * @const + */ + "Rejected": "Rejected", + + /** + * value: "Approved" + * @const + */ + "Approved": "Approved", + + /** + * value: "Published" + * @const + */ + "Published": "Published" +}; + + + +export default UpdateMobileAppsSubmissionStatus; + diff --git a/src/model/UpdatePayGreenConfigurationRequest.js b/src/model/UpdatePayGreenConfigurationRequest.js new file mode 100644 index 00000000..39fd5a8e --- /dev/null +++ b/src/model/UpdatePayGreenConfigurationRequest.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdatePayGreenConfigurationRequest model module. + * @module model/UpdatePayGreenConfigurationRequest + * @version 1.0.0 + */ +class UpdatePayGreenConfigurationRequest { + /** + * Constructs a new UpdatePayGreenConfigurationRequest. + * @alias module:model/UpdatePayGreenConfigurationRequest + */ + constructor() { + + UpdatePayGreenConfigurationRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdatePayGreenConfigurationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePayGreenConfigurationRequest} obj Optional instance to populate. + * @return {module:model/UpdatePayGreenConfigurationRequest} The populated UpdatePayGreenConfigurationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePayGreenConfigurationRequest(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('AssignedStores')) { + obj['AssignedStores'] = ApiClient.convertToType(data['AssignedStores'], ['Number']); + } + } + return obj; + } + + +} + +/** + * @member {String} Name + */ +UpdatePayGreenConfigurationRequest.prototype['Name'] = undefined; + +/** + * @member {Array.} AssignedStores + */ +UpdatePayGreenConfigurationRequest.prototype['AssignedStores'] = undefined; + + + + + + +export default UpdatePayGreenConfigurationRequest; + diff --git a/src/model/UpdateProduct.js b/src/model/UpdateProduct.js new file mode 100644 index 00000000..1dc3e10c --- /dev/null +++ b/src/model/UpdateProduct.js @@ -0,0 +1,138 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Metafield from './Metafield'; +import UpdateGroupReference from './UpdateGroupReference'; + +/** + * The UpdateProduct model module. + * @module model/UpdateProduct + * @version 1.0.0 + */ +class UpdateProduct { + /** + * Constructs a new UpdateProduct. + * Update Product + * @alias module:model/UpdateProduct + */ + constructor() { + + UpdateProduct.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateProduct from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateProduct} obj Optional instance to populate. + * @return {module:model/UpdateProduct} The populated UpdateProduct instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateProduct(); + + if (data.hasOwnProperty('Sku')) { + obj['Sku'] = ApiClient.convertToType(data['Sku'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Price')) { + obj['Price'] = ApiClient.convertToType(data['Price'], 'Number'); + } + if (data.hasOwnProperty('ImageFileName')) { + obj['ImageFileName'] = ApiClient.convertToType(data['ImageFileName'], 'String'); + } + if (data.hasOwnProperty('Alcohol')) { + obj['Alcohol'] = ApiClient.convertToType(data['Alcohol'], 'Boolean'); + } + if (data.hasOwnProperty('Groups')) { + obj['Groups'] = ApiClient.convertToType(data['Groups'], [UpdateGroupReference]); + } + if (data.hasOwnProperty('Metafields')) { + obj['Metafields'] = ApiClient.convertToType(data['Metafields'], [Metafield]); + } + } + return obj; + } + + +} + +/** + * Stock Keeping Unit (SKU) + * @member {String} Sku + */ +UpdateProduct.prototype['Sku'] = undefined; + +/** + * Product name + * @member {String} Name + */ +UpdateProduct.prototype['Name'] = undefined; + +/** + * Product description + * @member {String} Description + */ +UpdateProduct.prototype['Description'] = undefined; + +/** + * Product price + * @member {Number} Price + */ +UpdateProduct.prototype['Price'] = undefined; + +/** + * Image File Name + * @member {String} ImageFileName + */ +UpdateProduct.prototype['ImageFileName'] = undefined; + +/** + * Product contains alcohol + * @member {Boolean} Alcohol + */ +UpdateProduct.prototype['Alcohol'] = undefined; + +/** + * Collection of groups associated with this item + * @member {Array.} Groups + */ +UpdateProduct.prototype['Groups'] = undefined; + +/** + * Collection of metafields + * @member {Array.} Metafields + */ +UpdateProduct.prototype['Metafields'] = undefined; + + + + + + +export default UpdateProduct; + diff --git a/src/model/UpdateProductReference.js b/src/model/UpdateProductReference.js new file mode 100644 index 00000000..20882ffd --- /dev/null +++ b/src/model/UpdateProductReference.js @@ -0,0 +1,116 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateProductReference model module. + * @module model/UpdateProductReference + * @version 1.0.0 + */ +class UpdateProductReference { + /** + * Constructs a new UpdateProductReference. + * Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Groups.UpdateProductReference} + * @alias module:model/UpdateProductReference + * @param CatalogItemId {String} Identifier of the CatalogItemId to use as SubProduct + * @param ProductType {module:model/UpdateProductReference.ProductTypeEnum} Type of the SupProduct + */ + constructor(CatalogItemId, ProductType) { + + UpdateProductReference.initialize(this, CatalogItemId, ProductType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, CatalogItemId, ProductType) { + obj['CatalogItemId'] = CatalogItemId; + obj['ProductType'] = ProductType; + } + + /** + * Constructs a UpdateProductReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateProductReference} obj Optional instance to populate. + * @return {module:model/UpdateProductReference} The populated UpdateProductReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateProductReference(); + + if (data.hasOwnProperty('CatalogItemId')) { + obj['CatalogItemId'] = ApiClient.convertToType(data['CatalogItemId'], 'String'); + } + if (data.hasOwnProperty('ProductType')) { + obj['ProductType'] = ApiClient.convertToType(data['ProductType'], 'String'); + } + if (data.hasOwnProperty('PreselectedQuantity')) { + obj['PreselectedQuantity'] = ApiClient.convertToType(data['PreselectedQuantity'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Identifier of the CatalogItemId to use as SubProduct + * @member {String} CatalogItemId + */ +UpdateProductReference.prototype['CatalogItemId'] = undefined; + +/** + * Type of the SupProduct + * @member {module:model/UpdateProductReference.ProductTypeEnum} ProductType + */ +UpdateProductReference.prototype['ProductType'] = undefined; + +/** + * Quantity of the modifier that will be set when the parent product is placed in the basket + * @member {Number} PreselectedQuantity + */ +UpdateProductReference.prototype['PreselectedQuantity'] = undefined; + + + + + +/** + * Allowed values for the ProductType property. + * @enum {String} + * @readonly + */ +UpdateProductReference['ProductTypeEnum'] = { + + /** + * value: "Product" + * @const + */ + "Product": "Product", + + /** + * value: "Modifier" + * @const + */ + "Modifier": "Modifier" +}; + + + +export default UpdateProductReference; + diff --git a/src/model/UpdateStorePayGreenConfigurationRequest.js b/src/model/UpdateStorePayGreenConfigurationRequest.js new file mode 100644 index 00000000..9368e2fc --- /dev/null +++ b/src/model/UpdateStorePayGreenConfigurationRequest.js @@ -0,0 +1,79 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateStorePayGreenConfigurationRequest model module. + * @module model/UpdateStorePayGreenConfigurationRequest + * @version 1.0.0 + */ +class UpdateStorePayGreenConfigurationRequest { + /** + * Constructs a new UpdateStorePayGreenConfigurationRequest. + * @alias module:model/UpdateStorePayGreenConfigurationRequest + */ + constructor() { + + UpdateStorePayGreenConfigurationRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateStorePayGreenConfigurationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateStorePayGreenConfigurationRequest} obj Optional instance to populate. + * @return {module:model/UpdateStorePayGreenConfigurationRequest} The populated UpdateStorePayGreenConfigurationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateStorePayGreenConfigurationRequest(); + + if (data.hasOwnProperty('Active')) { + obj['Active'] = ApiClient.convertToType(data['Active'], 'Boolean'); + } + if (data.hasOwnProperty('PayGreenConfigurationId')) { + obj['PayGreenConfigurationId'] = ApiClient.convertToType(data['PayGreenConfigurationId'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} Active + */ +UpdateStorePayGreenConfigurationRequest.prototype['Active'] = undefined; + +/** + * @member {Number} PayGreenConfigurationId + */ +UpdateStorePayGreenConfigurationRequest.prototype['PayGreenConfigurationId'] = undefined; + + + + + + +export default UpdateStorePayGreenConfigurationRequest; + diff --git a/src/model/UpdateTipConfiguration.js b/src/model/UpdateTipConfiguration.js new file mode 100644 index 00000000..0732f9d3 --- /dev/null +++ b/src/model/UpdateTipConfiguration.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateTipConfiguration model module. + * @module model/UpdateTipConfiguration + * @version 1.0.0 + */ +class UpdateTipConfiguration { + /** + * Constructs a new UpdateTipConfiguration. + * Describes the configuration of tipping + * @alias module:model/UpdateTipConfiguration + */ + constructor() { + + UpdateTipConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateTipConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTipConfiguration} obj Optional instance to populate. + * @return {module:model/UpdateTipConfiguration} The populated UpdateTipConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTipConfiguration(); + + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('AllowCustomTips')) { + obj['AllowCustomTips'] = ApiClient.convertToType(data['AllowCustomTips'], 'Boolean'); + } + if (data.hasOwnProperty('AllowRoundUp')) { + obj['AllowRoundUp'] = ApiClient.convertToType(data['AllowRoundUp'], 'Boolean'); + } + if (data.hasOwnProperty('AllowEmojis')) { + obj['AllowEmojis'] = ApiClient.convertToType(data['AllowEmojis'], 'Boolean'); + } + if (data.hasOwnProperty('Percentages')) { + obj['Percentages'] = ApiClient.convertToType(data['Percentages'], ['Number']); + } + if (data.hasOwnProperty('DefaultPercentage')) { + obj['DefaultPercentage'] = ApiClient.convertToType(data['DefaultPercentage'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Are tips enabled? + * @member {Boolean} IsEnabled + */ +UpdateTipConfiguration.prototype['IsEnabled'] = undefined; + +/** + * Are custom tips allowed? + * @member {Boolean} AllowCustomTips + */ +UpdateTipConfiguration.prototype['AllowCustomTips'] = undefined; + +/** + * Is round up allowed? + * @member {Boolean} AllowRoundUp + */ +UpdateTipConfiguration.prototype['AllowRoundUp'] = undefined; + +/** + * Are emojis allowed? + * @member {Boolean} AllowEmojis + */ +UpdateTipConfiguration.prototype['AllowEmojis'] = undefined; + +/** + * Ordered list of tip breakpoints (smallest -> largest) + * @member {Array.} Percentages + */ +UpdateTipConfiguration.prototype['Percentages'] = undefined; + +/** + * Defines a default percentage, it must be in the list of Percentages + * @member {Number} DefaultPercentage + */ +UpdateTipConfiguration.prototype['DefaultPercentage'] = undefined; + + + + + + +export default UpdateTipConfiguration; + diff --git a/src/model/UpdateVoucher.js b/src/model/UpdateVoucher.js new file mode 100644 index 00000000..28b121af --- /dev/null +++ b/src/model/UpdateVoucher.js @@ -0,0 +1,404 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ValidityPeriod from './ValidityPeriod'; + +/** + * The UpdateVoucher model module. + * @module model/UpdateVoucher + * @version 1.0.0 + */ +class UpdateVoucher { + /** + * Constructs a new UpdateVoucher. + * Update Voucher + * @alias module:model/UpdateVoucher + */ + constructor() { + + UpdateVoucher.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateVoucher from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateVoucher} obj Optional instance to populate. + * @return {module:model/UpdateVoucher} The populated UpdateVoucher instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVoucher(); + + if (data.hasOwnProperty('PromotionId')) { + obj['PromotionId'] = ApiClient.convertToType(data['PromotionId'], 'Number'); + } + if (data.hasOwnProperty('PromotionName')) { + obj['PromotionName'] = ApiClient.convertToType(data['PromotionName'], 'String'); + } + if (data.hasOwnProperty('PromotionAwardMenuItemPublicIds')) { + obj['PromotionAwardMenuItemPublicIds'] = ApiClient.convertToType(data['PromotionAwardMenuItemPublicIds'], ['String']); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], ['Number']); + } + if (data.hasOwnProperty('ValidOnOrdersOver')) { + obj['ValidOnOrdersOver'] = ApiClient.convertToType(data['ValidOnOrdersOver'], 'Number'); + } + if (data.hasOwnProperty('TakesPriority')) { + obj['TakesPriority'] = ApiClient.convertToType(data['TakesPriority'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsAutomaticallyApplied')) { + obj['IsAutomaticallyApplied'] = ApiClient.convertToType(data['IsAutomaticallyApplied'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForDeliveryOrders')) { + obj['IsValidForDeliveryOrders'] = ApiClient.convertToType(data['IsValidForDeliveryOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForPickupOrders')) { + obj['IsValidForPickupOrders'] = ApiClient.convertToType(data['IsValidForPickupOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedOnline')) { + obj['IsValidForOrdersPayedOnline'] = ApiClient.convertToType(data['IsValidForOrdersPayedOnline'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedByCash')) { + obj['IsValidForOrdersPayedByCash'] = ApiClient.convertToType(data['IsValidForOrdersPayedByCash'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForFirstOrderOnly')) { + obj['IsValidForFirstOrderOnly'] = ApiClient.convertToType(data['IsValidForFirstOrderOnly'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOncePerCustomer')) { + obj['IsValidOncePerCustomer'] = ApiClient.convertToType(data['IsValidOncePerCustomer'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOnlyOnce')) { + obj['IsValidOnlyOnce'] = ApiClient.convertToType(data['IsValidOnlyOnce'], 'Boolean'); + } + if (data.hasOwnProperty('IsDiscoverable')) { + obj['IsDiscoverable'] = ApiClient.convertToType(data['IsDiscoverable'], 'Boolean'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + if (data.hasOwnProperty('StartDate')) { + obj['StartDate'] = ApiClient.convertToType(data['StartDate'], 'Date'); + } + if (data.hasOwnProperty('ExpiryDate')) { + obj['ExpiryDate'] = ApiClient.convertToType(data['ExpiryDate'], 'Date'); + } + if (data.hasOwnProperty('ChannelRestrictions')) { + obj['ChannelRestrictions'] = ApiClient.convertToType(data['ChannelRestrictions'], ['String']); + } + if (data.hasOwnProperty('ValidityPeriods')) { + obj['ValidityPeriods'] = ApiClient.convertToType(data['ValidityPeriods'], [ValidityPeriod]); + } + if (data.hasOwnProperty('VoucherSubType')) { + obj['VoucherSubType'] = ApiClient.convertToType(data['VoucherSubType'], 'String'); + } + if (data.hasOwnProperty('CustomerId')) { + obj['CustomerId'] = ApiClient.convertToType(data['CustomerId'], 'Number'); + } + if (data.hasOwnProperty('MaxRedemptions')) { + obj['MaxRedemptions'] = ApiClient.convertToType(data['MaxRedemptions'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Promotion ID to update + * @member {Number} PromotionId + */ +UpdateVoucher.prototype['PromotionId'] = undefined; + +/** + * The updated name of the promotion + * @member {String} PromotionName + */ +UpdateVoucher.prototype['PromotionName'] = undefined; + +/** + * The updated menu items that the promotion awards + * @member {Array.} PromotionAwardMenuItemPublicIds + */ +UpdateVoucher.prototype['PromotionAwardMenuItemPublicIds'] = undefined; + +/** + * Voucher Code + * @member {String} Code + */ +UpdateVoucher.prototype['Code'] = undefined; + +/** + * Voucher Description (Visible on printout) + * @member {String} Description + */ +UpdateVoucher.prototype['Description'] = undefined; + +/** + * Stores that this voucher applies to + * @member {Array.} Stores + */ +UpdateVoucher.prototype['Stores'] = undefined; + +/** + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver + */ +UpdateVoucher.prototype['ValidOnOrdersOver'] = undefined; + +/** + * Takes priority + * @member {Boolean} TakesPriority + */ +UpdateVoucher.prototype['TakesPriority'] = undefined; + +/** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ +UpdateVoucher.prototype['IsEnabled'] = undefined; + +/** + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied + */ +UpdateVoucher.prototype['IsAutomaticallyApplied'] = undefined; + +/** + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee + */ +UpdateVoucher.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Valid for delivery orders + * @member {Boolean} IsValidForDeliveryOrders + */ +UpdateVoucher.prototype['IsValidForDeliveryOrders'] = undefined; + +/** + * Valid for pickup orders + * @member {Boolean} IsValidForPickupOrders + */ +UpdateVoucher.prototype['IsValidForPickupOrders'] = undefined; + +/** + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline + */ +UpdateVoucher.prototype['IsValidForOrdersPayedOnline'] = undefined; + +/** + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash + */ +UpdateVoucher.prototype['IsValidForOrdersPayedByCash'] = undefined; + +/** + * Valid only on the first order by the customer + * @member {Boolean} IsValidForFirstOrderOnly + */ +UpdateVoucher.prototype['IsValidForFirstOrderOnly'] = undefined; + +/** + * Valid once per customer + * @member {Boolean} IsValidOncePerCustomer + */ +UpdateVoucher.prototype['IsValidOncePerCustomer'] = undefined; + +/** + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce + */ +UpdateVoucher.prototype['IsValidOnlyOnce'] = undefined; + +/** + * Enables the voucher to be offered in the Voucher Discoverability feature + * @member {Boolean} IsDiscoverable + */ +UpdateVoucher.prototype['IsDiscoverable'] = undefined; + +/** + * Force the discount to be applied which bypasses some menu restrictions + * @member {Boolean} ForceDiscount + */ +UpdateVoucher.prototype['ForceDiscount'] = undefined; + +/** + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate + */ +UpdateVoucher.prototype['StartDate'] = undefined; + +/** + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate + */ +UpdateVoucher.prototype['ExpiryDate'] = undefined; + +/** + * Limit the channels this voucher can be used on + * @member {Array.} ChannelRestrictions + */ +UpdateVoucher.prototype['ChannelRestrictions'] = undefined; + +/** + * 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. + * @member {Array.} ValidityPeriods + */ +UpdateVoucher.prototype['ValidityPeriods'] = undefined; + +/** + * Voucher Subtype + * @member {module:model/UpdateVoucher.VoucherSubTypeEnum} VoucherSubType + */ +UpdateVoucher.prototype['VoucherSubType'] = undefined; + +/** + * Customer UserID + * @member {Number} CustomerId + */ +UpdateVoucher.prototype['CustomerId'] = undefined; + +/** + * Maximum number of times the voucher can be redeemed (used) + * @member {Number} MaxRedemptions + */ +UpdateVoucher.prototype['MaxRedemptions'] = undefined; + + + + + +/** + * Allowed values for the ChannelRestrictions property. + * @enum {String} + * @readonly + */ +UpdateVoucher['ChannelRestrictionsEnum'] = { + + /** + * value: "Ios" + * @const + */ + "Ios": "Ios", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "Google" + * @const + */ + "Google": "Google" +}; + + +/** + * Allowed values for the VoucherSubType property. + * @enum {String} + * @readonly + */ +UpdateVoucher['VoucherSubTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "SignUp" + * @const + */ + "SignUp": "SignUp", + + /** + * value: "Loyalty" + * @const + */ + "Loyalty": "Loyalty", + + /** + * value: "Loyalty25" + * @const + */ + "Loyalty25": "Loyalty25", + + /** + * value: "Retention" + * @const + */ + "Retention": "Retention", + + /** + * value: "SecondaryRetention" + * @const + */ + "SecondaryRetention": "SecondaryRetention", + + /** + * value: "Custom" + * @const + */ + "Custom": "Custom" +}; + + + +export default UpdateVoucher; + diff --git a/src/model/UpdateVoucherUsage.js b/src/model/UpdateVoucherUsage.js new file mode 100644 index 00000000..c64352b4 --- /dev/null +++ b/src/model/UpdateVoucherUsage.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateVoucherUsage model module. + * @module model/UpdateVoucherUsage + * @version 1.0.0 + */ +class UpdateVoucherUsage { + /** + * Constructs a new UpdateVoucherUsage. + * Update Voucher Usage + * @alias module:model/UpdateVoucherUsage + */ + constructor() { + + UpdateVoucherUsage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateVoucherUsage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateVoucherUsage} obj Optional instance to populate. + * @return {module:model/UpdateVoucherUsage} The populated UpdateVoucherUsage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVoucherUsage(); + + if (data.hasOwnProperty('IsUsed')) { + obj['IsUsed'] = ApiClient.convertToType(data['IsUsed'], 'Boolean'); + } + if (data.hasOwnProperty('UsedByCustomerId')) { + obj['UsedByCustomerId'] = ApiClient.convertToType(data['UsedByCustomerId'], 'Number'); + } + if (data.hasOwnProperty('TransactionKey')) { + obj['TransactionKey'] = ApiClient.convertToType(data['TransactionKey'], 'String'); + } + } + return obj; + } + + +} + +/** + * Flag indicating whether the voucher is used + * @member {Boolean} IsUsed + */ +UpdateVoucherUsage.prototype['IsUsed'] = undefined; + +/** + * Indicates Customer that used the voucher. + * @member {Number} UsedByCustomerId + */ +UpdateVoucherUsage.prototype['UsedByCustomerId'] = undefined; + +/** + * 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. + * @member {String} TransactionKey + */ +UpdateVoucherUsage.prototype['TransactionKey'] = undefined; + + + + + + +export default UpdateVoucherUsage; + diff --git a/src/model/UserAnsweredSignupQuestionsEvent.js b/src/model/UserAnsweredSignupQuestionsEvent.js new file mode 100644 index 00000000..5d8413c5 --- /dev/null +++ b/src/model/UserAnsweredSignupQuestionsEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The UserAnsweredSignupQuestionsEvent model module. + * @module model/UserAnsweredSignupQuestionsEvent + * @version 1.0.0 + */ +class UserAnsweredSignupQuestionsEvent { + /** + * Constructs a new UserAnsweredSignupQuestionsEvent. + * User answered signup questions event + * @alias module:model/UserAnsweredSignupQuestionsEvent + */ + constructor() { + + UserAnsweredSignupQuestionsEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserAnsweredSignupQuestionsEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserAnsweredSignupQuestionsEvent} obj Optional instance to populate. + * @return {module:model/UserAnsweredSignupQuestionsEvent} The populated UserAnsweredSignupQuestionsEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserAnsweredSignupQuestionsEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('SignupAnswers')) { + obj['SignupAnswers'] = ApiClient.convertToType(data['SignupAnswers'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +UserAnsweredSignupQuestionsEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +UserAnsweredSignupQuestionsEvent.prototype['User'] = undefined; + +/** + * The users answers + * @member {String} SignupAnswers + */ +UserAnsweredSignupQuestionsEvent.prototype['SignupAnswers'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +UserAnsweredSignupQuestionsEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +UserAnsweredSignupQuestionsEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +UserAnsweredSignupQuestionsEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +UserAnsweredSignupQuestionsEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +UserAnsweredSignupQuestionsEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +UserAnsweredSignupQuestionsEvent.prototype['IpAddress'] = undefined; + + + + + + +export default UserAnsweredSignupQuestionsEvent; + diff --git a/src/model/UserCreatedEvent.js b/src/model/UserCreatedEvent.js new file mode 100644 index 00000000..d7e184f9 --- /dev/null +++ b/src/model/UserCreatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The UserCreatedEvent model module. + * @module model/UserCreatedEvent + * @version 1.0.0 + */ +class UserCreatedEvent { + /** + * Constructs a new UserCreatedEvent. + * User created event + * @alias module:model/UserCreatedEvent + */ + constructor() { + + UserCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserCreatedEvent} obj Optional instance to populate. + * @return {module:model/UserCreatedEvent} The populated UserCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +UserCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +UserCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +UserCreatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +UserCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +UserCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +UserCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +UserCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +UserCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +UserCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default UserCreatedEvent; + diff --git a/src/model/UserDeletedEvent.js b/src/model/UserDeletedEvent.js new file mode 100644 index 00000000..e3c17dbc --- /dev/null +++ b/src/model/UserDeletedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The UserDeletedEvent model module. + * @module model/UserDeletedEvent + * @version 1.0.0 + */ +class UserDeletedEvent { + /** + * Constructs a new UserDeletedEvent. + * User deleted event + * @alias module:model/UserDeletedEvent + */ + constructor() { + + UserDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserDeletedEvent} obj Optional instance to populate. + * @return {module:model/UserDeletedEvent} The populated UserDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +UserDeletedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +UserDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +UserDeletedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +UserDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +UserDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +UserDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +UserDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +UserDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +UserDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default UserDeletedEvent; + diff --git a/src/model/UserEventInfo.js b/src/model/UserEventInfo.js new file mode 100644 index 00000000..11f3e0eb --- /dev/null +++ b/src/model/UserEventInfo.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserEventInfo model module. + * @module model/UserEventInfo + * @version 1.0.0 + */ +class UserEventInfo { + /** + * Constructs a new UserEventInfo. + * User Event Info + * @alias module:model/UserEventInfo + */ + constructor() { + + UserEventInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserEventInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserEventInfo} obj Optional instance to populate. + * @return {module:model/UserEventInfo} The populated UserEventInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserEventInfo(); + + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('UserName')) { + obj['UserName'] = ApiClient.convertToType(data['UserName'], 'String'); + } + if (data.hasOwnProperty('UserPhoneNumber')) { + obj['UserPhoneNumber'] = ApiClient.convertToType(data['UserPhoneNumber'], 'String'); + } + if (data.hasOwnProperty('UserEmail')) { + obj['UserEmail'] = ApiClient.convertToType(data['UserEmail'], 'String'); + } + } + return obj; + } + + +} + +/** + * User Id + * @member {Number} UserId + */ +UserEventInfo.prototype['UserId'] = undefined; + +/** + * User Name + * @member {String} UserName + */ +UserEventInfo.prototype['UserName'] = undefined; + +/** + * User Phone Number + * @member {String} UserPhoneNumber + */ +UserEventInfo.prototype['UserPhoneNumber'] = undefined; + +/** + * User Email + * @member {String} UserEmail + */ +UserEventInfo.prototype['UserEmail'] = undefined; + + + + + + +export default UserEventInfo; + diff --git a/src/model/UserFlipdishAccount.js b/src/model/UserFlipdishAccount.js new file mode 100644 index 00000000..ad47b8b0 --- /dev/null +++ b/src/model/UserFlipdishAccount.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserFlipdishAccount model module. + * @module model/UserFlipdishAccount + * @version 1.0.0 + */ +class UserFlipdishAccount { + /** + * Constructs a new UserFlipdishAccount. + * Flipdish account information associated with a user + * @alias module:model/UserFlipdishAccount + */ + constructor() { + + UserFlipdishAccount.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserFlipdishAccount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserFlipdishAccount} obj Optional instance to populate. + * @return {module:model/UserFlipdishAccount} The populated UserFlipdishAccount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserFlipdishAccount(); + + if (data.hasOwnProperty('FlipdishAccountId')) { + obj['FlipdishAccountId'] = ApiClient.convertToType(data['FlipdishAccountId'], 'Number'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Flipdish Account Id + * @member {Number} FlipdishAccountId + */ +UserFlipdishAccount.prototype['FlipdishAccountId'] = undefined; + +/** + * Flipdish Account Name + * @member {String} Name + */ +UserFlipdishAccount.prototype['Name'] = undefined; + + + + + + +export default UserFlipdishAccount; + diff --git a/src/model/UserInfo.js b/src/model/UserInfo.js new file mode 100644 index 00000000..4c786bbd --- /dev/null +++ b/src/model/UserInfo.js @@ -0,0 +1,313 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AppInstall from './AppInstall'; +import DeliveryLocation from './DeliveryLocation'; +import Language from './Language'; +import PaymentAccount from './PaymentAccount'; +import UserMonthlyCommission from './UserMonthlyCommission'; +import UserWhiteLabelInfo from './UserWhiteLabelInfo'; + +/** + * The UserInfo model module. + * @module model/UserInfo + * @version 1.0.0 + */ +class UserInfo { + /** + * Constructs a new UserInfo. + * User information + * @alias module:model/UserInfo + */ + constructor() { + + UserInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserInfo} obj Optional instance to populate. + * @return {module:model/UserInfo} The populated UserInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserInfo(); + + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('EmailConfirmed')) { + obj['EmailConfirmed'] = ApiClient.convertToType(data['EmailConfirmed'], 'Boolean'); + } + if (data.hasOwnProperty('PreventFromUsingCards')) { + obj['PreventFromUsingCards'] = ApiClient.convertToType(data['PreventFromUsingCards'], 'Boolean'); + } + if (data.hasOwnProperty('IsUserPhoneNumberBlocked')) { + obj['IsUserPhoneNumberBlocked'] = ApiClient.convertToType(data['IsUserPhoneNumberBlocked'], 'Boolean'); + } + if (data.hasOwnProperty('UserWhiteLabels')) { + obj['UserWhiteLabels'] = ApiClient.convertToType(data['UserWhiteLabels'], [UserWhiteLabelInfo]); + } + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('UserName')) { + obj['UserName'] = ApiClient.convertToType(data['UserName'], 'String'); + } + if (data.hasOwnProperty('CustomerName')) { + obj['CustomerName'] = ApiClient.convertToType(data['CustomerName'], 'String'); + } + if (data.hasOwnProperty('HasLoggedIn')) { + obj['HasLoggedIn'] = ApiClient.convertToType(data['HasLoggedIn'], 'Boolean'); + } + if (data.hasOwnProperty('DisableAppRatingControl')) { + obj['DisableAppRatingControl'] = ApiClient.convertToType(data['DisableAppRatingControl'], 'Boolean'); + } + if (data.hasOwnProperty('GloballyOptedOut')) { + obj['GloballyOptedOut'] = ApiClient.convertToType(data['GloballyOptedOut'], 'Boolean'); + } + if (data.hasOwnProperty('CompletedOrderCount')) { + obj['CompletedOrderCount'] = ApiClient.convertToType(data['CompletedOrderCount'], 'Number'); + } + if (data.hasOwnProperty('CancelledOrderCount')) { + obj['CancelledOrderCount'] = ApiClient.convertToType(data['CancelledOrderCount'], 'Number'); + } + if (data.hasOwnProperty('OrderTotalValue')) { + obj['OrderTotalValue'] = ApiClient.convertToType(data['OrderTotalValue'], 'Number'); + } + if (data.hasOwnProperty('TsMostRecentOrder')) { + obj['TsMostRecentOrder'] = ApiClient.convertToType(data['TsMostRecentOrder'], 'Date'); + } + if (data.hasOwnProperty('TsFirstOrder')) { + obj['TsFirstOrder'] = ApiClient.convertToType(data['TsFirstOrder'], 'Date'); + } + if (data.hasOwnProperty('IsRestaurantUser')) { + obj['IsRestaurantUser'] = ApiClient.convertToType(data['IsRestaurantUser'], 'Boolean'); + } + if (data.hasOwnProperty('Installs')) { + obj['Installs'] = ApiClient.convertToType(data['Installs'], [AppInstall]); + } + if (data.hasOwnProperty('DeliveryLocations')) { + obj['DeliveryLocations'] = ApiClient.convertToType(data['DeliveryLocations'], [DeliveryLocation]); + } + if (data.hasOwnProperty('PaymentAccounts')) { + obj['PaymentAccounts'] = ApiClient.convertToType(data['PaymentAccounts'], [PaymentAccount]); + } + if (data.hasOwnProperty('LanguageId')) { + obj['LanguageId'] = ApiClient.convertToType(data['LanguageId'], 'String'); + } + if (data.hasOwnProperty('CurrentLanguageName')) { + obj['CurrentLanguageName'] = ApiClient.convertToType(data['CurrentLanguageName'], 'String'); + } + if (data.hasOwnProperty('Languages')) { + obj['Languages'] = ApiClient.convertToType(data['Languages'], [Language]); + } + if (data.hasOwnProperty('SalesForceContactId')) { + obj['SalesForceContactId'] = ApiClient.convertToType(data['SalesForceContactId'], 'String'); + } + if (data.hasOwnProperty('StripeCustomerId')) { + obj['StripeCustomerId'] = ApiClient.convertToType(data['StripeCustomerId'], 'String'); + } + if (data.hasOwnProperty('UserMonthlyCommissions')) { + obj['UserMonthlyCommissions'] = ApiClient.convertToType(data['UserMonthlyCommissions'], [UserMonthlyCommission]); + } + } + return obj; + } + + +} + +/** + * The user's phone number. + * @member {String} PhoneNumber + */ +UserInfo.prototype['PhoneNumber'] = undefined; + +/** + * The user's email address. + * @member {String} Email + */ +UserInfo.prototype['Email'] = undefined; + +/** + * Indicates if the user's email address has been confirmed. + * @member {Boolean} EmailConfirmed + */ +UserInfo.prototype['EmailConfirmed'] = undefined; + +/** + * Indicates if the user is prevented from using cards. + * @member {Boolean} PreventFromUsingCards + */ +UserInfo.prototype['PreventFromUsingCards'] = undefined; + +/** + * Indicates if the user's phone number is blocked. + * @member {Boolean} IsUserPhoneNumberBlocked + */ +UserInfo.prototype['IsUserPhoneNumberBlocked'] = undefined; + +/** + * List of white label information associated with the user. + * @member {Array.} UserWhiteLabels + */ +UserInfo.prototype['UserWhiteLabels'] = undefined; + +/** + * The unique identifier for the user. + * @member {Number} UserId + */ +UserInfo.prototype['UserId'] = undefined; + +/** + * The user's username. + * @member {String} UserName + */ +UserInfo.prototype['UserName'] = undefined; + +/** + * The customer's name. + * @member {String} CustomerName + */ +UserInfo.prototype['CustomerName'] = undefined; + +/** + * Indicates if the user has logged in. + * @member {Boolean} HasLoggedIn + */ +UserInfo.prototype['HasLoggedIn'] = undefined; + +/** + * Indicates if the app rating control is disabled for the user. + * @member {Boolean} DisableAppRatingControl + */ +UserInfo.prototype['DisableAppRatingControl'] = undefined; + +/** + * Indicates if the user has globally opted out. + * @member {Boolean} GloballyOptedOut + */ +UserInfo.prototype['GloballyOptedOut'] = undefined; + +/** + * The number of completed orders by the user. + * @member {Number} CompletedOrderCount + */ +UserInfo.prototype['CompletedOrderCount'] = undefined; + +/** + * The number of cancelled orders by the user. + * @member {Number} CancelledOrderCount + */ +UserInfo.prototype['CancelledOrderCount'] = undefined; + +/** + * The total value of orders placed by the user. + * @member {Number} OrderTotalValue + */ +UserInfo.prototype['OrderTotalValue'] = undefined; + +/** + * The timestamp of the user's most recent order. + * @member {Date} TsMostRecentOrder + */ +UserInfo.prototype['TsMostRecentOrder'] = undefined; + +/** + * The timestamp of the user's first order. + * @member {Date} TsFirstOrder + */ +UserInfo.prototype['TsFirstOrder'] = undefined; + +/** + * Indicates if the user is a restaurant user. + * @member {Boolean} IsRestaurantUser + */ +UserInfo.prototype['IsRestaurantUser'] = undefined; + +/** + * List of app installs associated with the user. + * @member {Array.} Installs + */ +UserInfo.prototype['Installs'] = undefined; + +/** + * List of delivery locations associated with the user. + * @member {Array.} DeliveryLocations + */ +UserInfo.prototype['DeliveryLocations'] = undefined; + +/** + * List of payment accounts associated with the user. + * @member {Array.} PaymentAccounts + */ +UserInfo.prototype['PaymentAccounts'] = undefined; + +/** + * The language identifier for the user. + * @member {String} LanguageId + */ +UserInfo.prototype['LanguageId'] = undefined; + +/** + * Current language name for the user. + * @member {String} CurrentLanguageName + */ +UserInfo.prototype['CurrentLanguageName'] = undefined; + +/** + * Available languages that the user can choose from. + * @member {Array.} Languages + */ +UserInfo.prototype['Languages'] = undefined; + +/** + * The Salesforce contact ID for the user. + * @member {String} SalesForceContactId + */ +UserInfo.prototype['SalesForceContactId'] = undefined; + +/** + * The Stripe customer ID for the user. + * @member {String} StripeCustomerId + */ +UserInfo.prototype['StripeCustomerId'] = undefined; + +/** + * User's monthly commissions. + * @member {Array.} UserMonthlyCommissions + */ +UserInfo.prototype['UserMonthlyCommissions'] = undefined; + + + + + + +export default UserInfo; + diff --git a/src/model/UserLoginEvent.js b/src/model/UserLoginEvent.js new file mode 100644 index 00000000..6ee976a8 --- /dev/null +++ b/src/model/UserLoginEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The UserLoginEvent model module. + * @module model/UserLoginEvent + * @version 1.0.0 + */ +class UserLoginEvent { + /** + * Constructs a new UserLoginEvent. + * User login event + * @alias module:model/UserLoginEvent + */ + constructor() { + + UserLoginEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserLoginEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserLoginEvent} obj Optional instance to populate. + * @return {module:model/UserLoginEvent} The populated UserLoginEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserLoginEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +UserLoginEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +UserLoginEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +UserLoginEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +UserLoginEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +UserLoginEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +UserLoginEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +UserLoginEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +UserLoginEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +UserLoginEvent.prototype['IpAddress'] = undefined; + + + + + + +export default UserLoginEvent; + diff --git a/src/model/UserMonthlyCommission.js b/src/model/UserMonthlyCommission.js new file mode 100644 index 00000000..5c6ee296 --- /dev/null +++ b/src/model/UserMonthlyCommission.js @@ -0,0 +1,796 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserMonthlyCommission model module. + * @module model/UserMonthlyCommission + * @version 1.0.0 + */ +class UserMonthlyCommission { + /** + * Constructs a new UserMonthlyCommission. + * User Monthly Commission + * @alias module:model/UserMonthlyCommission + */ + constructor() { + + UserMonthlyCommission.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserMonthlyCommission from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserMonthlyCommission} obj Optional instance to populate. + * @return {module:model/UserMonthlyCommission} The populated UserMonthlyCommission instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserMonthlyCommission(); + + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('MonthStart')) { + obj['MonthStart'] = ApiClient.convertToType(data['MonthStart'], 'Date'); + } + if (data.hasOwnProperty('CommissionAmount')) { + obj['CommissionAmount'] = ApiClient.convertToType(data['CommissionAmount'], 'Number'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('IsoCurrency')) { + obj['IsoCurrency'] = ApiClient.convertToType(data['IsoCurrency'], 'String'); + } + } + return obj; + } + + +} + +/** + * The unique identifier of the user. + * @member {Number} UserId + */ +UserMonthlyCommission.prototype['UserId'] = undefined; + +/** + * The start date of the month for which the commission is calculated. + * @member {Date} MonthStart + */ +UserMonthlyCommission.prototype['MonthStart'] = undefined; + +/** + * The total commission amount for the user in the specified month. + * @member {Number} CommissionAmount + */ +UserMonthlyCommission.prototype['CommissionAmount'] = undefined; + +/** + * The currency in which the commission is paid. + * @member {module:model/UserMonthlyCommission.CurrencyEnum} Currency + */ +UserMonthlyCommission.prototype['Currency'] = undefined; + +/** + * The ISO currency code for the commission currency. + * @member {String} IsoCurrency + */ +UserMonthlyCommission.prototype['IsoCurrency'] = undefined; + + + + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +UserMonthlyCommission['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + + +export default UserMonthlyCommission; + diff --git a/src/model/UserNote.js b/src/model/UserNote.js new file mode 100644 index 00000000..48877730 --- /dev/null +++ b/src/model/UserNote.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserNote model module. + * @module model/UserNote + * @version 1.0.0 + */ +class UserNote { + /** + * Constructs a new UserNote. + * User Note + * @alias module:model/UserNote + */ + constructor() { + + UserNote.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserNote from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserNote} obj Optional instance to populate. + * @return {module:model/UserNote} The populated UserNote instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserNote(); + + if (data.hasOwnProperty('UserNoteId')) { + obj['UserNoteId'] = ApiClient.convertToType(data['UserNoteId'], 'Number'); + } + if (data.hasOwnProperty('UserId')) { + obj['UserId'] = ApiClient.convertToType(data['UserId'], 'Number'); + } + if (data.hasOwnProperty('Note')) { + obj['Note'] = ApiClient.convertToType(data['Note'], 'String'); + } + if (data.hasOwnProperty('TsCreate')) { + obj['TsCreate'] = ApiClient.convertToType(data['TsCreate'], 'Date'); + } + if (data.hasOwnProperty('CreatedByUserId')) { + obj['CreatedByUserId'] = ApiClient.convertToType(data['CreatedByUserId'], 'Number'); + } + if (data.hasOwnProperty('CreatedByUserName')) { + obj['CreatedByUserName'] = ApiClient.convertToType(data['CreatedByUserName'], 'String'); + } + if (data.hasOwnProperty('CreatedByUserEmail')) { + obj['CreatedByUserEmail'] = ApiClient.convertToType(data['CreatedByUserEmail'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier for the user note. + * @member {Number} UserNoteId + */ +UserNote.prototype['UserNoteId'] = undefined; + +/** + * User identifier associated with the note. + * @member {Number} UserId + */ +UserNote.prototype['UserId'] = undefined; + +/** + * Note content. + * @member {String} Note + */ +UserNote.prototype['Note'] = undefined; + +/** + * Creation timestamp of the note. + * @member {Date} TsCreate + */ +UserNote.prototype['TsCreate'] = undefined; + +/** + * Identifier of the user who created the note. + * @member {Number} CreatedByUserId + */ +UserNote.prototype['CreatedByUserId'] = undefined; + +/** + * Name of the user who created the note. + * @member {String} CreatedByUserName + */ +UserNote.prototype['CreatedByUserName'] = undefined; + +/** + * Email of the user who created the note. + * @member {String} CreatedByUserEmail + */ +UserNote.prototype['CreatedByUserEmail'] = undefined; + + + + + + +export default UserNote; + diff --git a/src/model/UserPasswordCreatedEvent.js b/src/model/UserPasswordCreatedEvent.js new file mode 100644 index 00000000..25b98f81 --- /dev/null +++ b/src/model/UserPasswordCreatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The UserPasswordCreatedEvent model module. + * @module model/UserPasswordCreatedEvent + * @version 1.0.0 + */ +class UserPasswordCreatedEvent { + /** + * Constructs a new UserPasswordCreatedEvent. + * User created password event + * @alias module:model/UserPasswordCreatedEvent + */ + constructor() { + + UserPasswordCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserPasswordCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserPasswordCreatedEvent} obj Optional instance to populate. + * @return {module:model/UserPasswordCreatedEvent} The populated UserPasswordCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserPasswordCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +UserPasswordCreatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +UserPasswordCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +UserPasswordCreatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +UserPasswordCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +UserPasswordCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +UserPasswordCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +UserPasswordCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +UserPasswordCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +UserPasswordCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default UserPasswordCreatedEvent; + diff --git a/src/model/UserRole.js b/src/model/UserRole.js new file mode 100644 index 00000000..9de96d49 --- /dev/null +++ b/src/model/UserRole.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserRole model module. + * @module model/UserRole + * @version 1.0.0 + */ +class UserRole { + /** + * Constructs a new UserRole. + * User Role + * @alias module:model/UserRole + */ + constructor() { + + UserRole.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserRole} obj Optional instance to populate. + * @return {module:model/UserRole} The populated UserRole instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserRole(); + + if (data.hasOwnProperty('RolesUserIn')) { + obj['RolesUserIn'] = ApiClient.convertToType(data['RolesUserIn'], ['String']); + } + if (data.hasOwnProperty('RolesUserNotIn')) { + obj['RolesUserNotIn'] = ApiClient.convertToType(data['RolesUserNotIn'], ['String']); + } + } + return obj; + } + + +} + +/** + * Roles the user is in + * @member {Array.} RolesUserIn + */ +UserRole.prototype['RolesUserIn'] = undefined; + +/** + * Roles the user is not in + * @member {Array.} RolesUserNotIn + */ +UserRole.prototype['RolesUserNotIn'] = undefined; + + + + + + +export default UserRole; + diff --git a/src/model/UserSearch.js b/src/model/UserSearch.js new file mode 100644 index 00000000..83023a98 --- /dev/null +++ b/src/model/UserSearch.js @@ -0,0 +1,179 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserWhiteLabelConfig from './UserWhiteLabelConfig'; + +/** + * The UserSearch model module. + * @module model/UserSearch + * @version 1.0.0 + */ +class UserSearch { + /** + * Constructs a new UserSearch. + * User Search Result + * @alias module:model/UserSearch + */ + constructor() { + + UserSearch.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserSearch from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserSearch} obj Optional instance to populate. + * @return {module:model/UserSearch} The populated UserSearch instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserSearch(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('PhoneNumber')) { + obj['PhoneNumber'] = ApiClient.convertToType(data['PhoneNumber'], 'String'); + } + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('CustomerName')) { + obj['CustomerName'] = ApiClient.convertToType(data['CustomerName'], 'String'); + } + if (data.hasOwnProperty('HasLoggedIn')) { + obj['HasLoggedIn'] = ApiClient.convertToType(data['HasLoggedIn'], 'Boolean'); + } + if (data.hasOwnProperty('UserDiscriminator')) { + obj['UserDiscriminator'] = ApiClient.convertToType(data['UserDiscriminator'], 'String'); + } + if (data.hasOwnProperty('TsCreate')) { + obj['TsCreate'] = ApiClient.convertToType(data['TsCreate'], 'Date'); + } + if (data.hasOwnProperty('WhiteLabelConfigs')) { + obj['WhiteLabelConfigs'] = ApiClient.convertToType(data['WhiteLabelConfigs'], [UserWhiteLabelConfig]); + } + if (data.hasOwnProperty('UserType')) { + obj['UserType'] = ApiClient.convertToType(data['UserType'], 'String'); + } + } + return obj; + } + + +} + +/** + * User Id + * @member {Number} Id + */ +UserSearch.prototype['Id'] = undefined; + +/** + * Phone Number + * @member {String} PhoneNumber + */ +UserSearch.prototype['PhoneNumber'] = undefined; + +/** + * Email + * @member {String} Email + */ +UserSearch.prototype['Email'] = undefined; + +/** + * Customer Name + * @member {String} CustomerName + */ +UserSearch.prototype['CustomerName'] = undefined; + +/** + * Has Logged In + * @member {Boolean} HasLoggedIn + */ +UserSearch.prototype['HasLoggedIn'] = undefined; + +/** + * User Discriminator + * @member {module:model/UserSearch.UserDiscriminatorEnum} UserDiscriminator + */ +UserSearch.prototype['UserDiscriminator'] = undefined; + +/** + * Timestamp Created + * @member {Date} TsCreate + */ +UserSearch.prototype['TsCreate'] = undefined; + +/** + * WhiteLabel Configs + * @member {Array.} WhiteLabelConfigs + */ +UserSearch.prototype['WhiteLabelConfigs'] = undefined; + +/** + * User Type + * @member {String} UserType + */ +UserSearch.prototype['UserType'] = undefined; + + + + + +/** + * Allowed values for the UserDiscriminator property. + * @enum {String} + * @readonly + */ +UserSearch['UserDiscriminatorEnum'] = { + + /** + * value: "All" + * @const + */ + "All": "All", + + /** + * value: "ApplicationUsers" + * @const + */ + "ApplicationUsers": "ApplicationUsers", + + /** + * value: "RestaurantUsers" + * @const + */ + "RestaurantUsers": "RestaurantUsers", + + /** + * value: "HydraUsers" + * @const + */ + "HydraUsers": "HydraUsers" +}; + + + +export default UserSearch; + diff --git a/src/model/UserStoreInfo.js b/src/model/UserStoreInfo.js new file mode 100644 index 00000000..51b6b731 --- /dev/null +++ b/src/model/UserStoreInfo.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserStoreInfo model module. + * @module model/UserStoreInfo + * @version 1.0.0 + */ +class UserStoreInfo { + /** + * Constructs a new UserStoreInfo. + * Stores that the user is associated with + * @alias module:model/UserStoreInfo + */ + constructor() { + + UserStoreInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserStoreInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserStoreInfo} obj Optional instance to populate. + * @return {module:model/UserStoreInfo} The populated UserStoreInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserStoreInfo(); + + if (data.hasOwnProperty('PropertyId')) { + obj['PropertyId'] = ApiClient.convertToType(data['PropertyId'], 'String'); + } + if (data.hasOwnProperty('StoreId')) { + obj['StoreId'] = ApiClient.convertToType(data['StoreId'], 'Number'); + } + if (data.hasOwnProperty('StoreName')) { + obj['StoreName'] = ApiClient.convertToType(data['StoreName'], 'String'); + } + } + return obj; + } + + +} + +/** + * Property Id + * @member {String} PropertyId + */ +UserStoreInfo.prototype['PropertyId'] = undefined; + +/** + * Store Id + * @member {Number} StoreId + */ +UserStoreInfo.prototype['StoreId'] = undefined; + +/** + * Store Name + * @member {String} StoreName + */ +UserStoreInfo.prototype['StoreName'] = undefined; + + + + + + +export default UserStoreInfo; + diff --git a/src/model/UserUpdatedEvent.js b/src/model/UserUpdatedEvent.js new file mode 100644 index 00000000..744e85c1 --- /dev/null +++ b/src/model/UserUpdatedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The UserUpdatedEvent model module. + * @module model/UserUpdatedEvent + * @version 1.0.0 + */ +class UserUpdatedEvent { + /** + * Constructs a new UserUpdatedEvent. + * User updated event + * @alias module:model/UserUpdatedEvent + */ + constructor() { + + UserUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserUpdatedEvent} obj Optional instance to populate. + * @return {module:model/UserUpdatedEvent} The populated UserUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +UserUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +UserUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +UserUpdatedEvent.prototype['User'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +UserUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +UserUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +UserUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +UserUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +UserUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +UserUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default UserUpdatedEvent; + diff --git a/src/model/UserWhiteLabelConfig.js b/src/model/UserWhiteLabelConfig.js new file mode 100644 index 00000000..37212625 --- /dev/null +++ b/src/model/UserWhiteLabelConfig.js @@ -0,0 +1,190 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserWhiteLabelConfig model module. + * @module model/UserWhiteLabelConfig + * @version 1.0.0 + */ +class UserWhiteLabelConfig { + /** + * Constructs a new UserWhiteLabelConfig. + * User WhiteLabelConfig + * @alias module:model/UserWhiteLabelConfig + */ + constructor() { + + UserWhiteLabelConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserWhiteLabelConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserWhiteLabelConfig} obj Optional instance to populate. + * @return {module:model/UserWhiteLabelConfig} The populated UserWhiteLabelConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserWhiteLabelConfig(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('ConfigId')) { + obj['ConfigId'] = ApiClient.convertToType(data['ConfigId'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Level')) { + obj['Level'] = ApiClient.convertToType(data['Level'], 'String'); + } + } + return obj; + } + + +} + +/** + * Identifier + * @member {Number} Id + */ +UserWhiteLabelConfig.prototype['Id'] = undefined; + +/** + * WlConfigId + * @member {Number} ConfigId + */ +UserWhiteLabelConfig.prototype['ConfigId'] = undefined; + +/** + * Brand Id + * @member {String} AppId + */ +UserWhiteLabelConfig.prototype['AppId'] = undefined; + +/** + * WhiteLabel Name + * @member {String} Name + */ +UserWhiteLabelConfig.prototype['Name'] = undefined; + +/** + * WhiteLabel Access Level + * @member {module:model/UserWhiteLabelConfig.LevelEnum} Level + */ +UserWhiteLabelConfig.prototype['Level'] = undefined; + + + + + +/** + * Allowed values for the Level property. + * @enum {String} + * @readonly + */ +UserWhiteLabelConfig['LevelEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "Owner" + * @const + */ + "Owner": "Owner", + + /** + * value: "StoreOwner" + * @const + */ + "StoreOwner": "StoreOwner", + + /** + * value: "PropertyOwner" + * @const + */ + "PropertyOwner": "PropertyOwner", + + /** + * value: "ManagedOwner" + * @const + */ + "ManagedOwner": "ManagedOwner", + + /** + * value: "Integrator" + * @const + */ + "Integrator": "Integrator", + + /** + * value: "PropertyManager" + * @const + */ + "PropertyManager": "PropertyManager", + + /** + * value: "StoreManager" + * @const + */ + "StoreManager": "StoreManager", + + /** + * value: "StoreStaff" + * @const + */ + "StoreStaff": "StoreStaff", + + /** + * value: "StoreReadOnlyAccess" + * @const + */ + "StoreReadOnlyAccess": "StoreReadOnlyAccess", + + /** + * value: "FinanceManager" + * @const + */ + "FinanceManager": "FinanceManager", + + /** + * value: "Support" + * @const + */ + "Support": "Support" +}; + + + +export default UserWhiteLabelConfig; + diff --git a/src/model/UserWhiteLabelInfo.js b/src/model/UserWhiteLabelInfo.js new file mode 100644 index 00000000..c9e2942d --- /dev/null +++ b/src/model/UserWhiteLabelInfo.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserWhiteLabelInfo model module. + * @module model/UserWhiteLabelInfo + * @version 1.0.0 + */ +class UserWhiteLabelInfo { + /** + * Constructs a new UserWhiteLabelInfo. + * User WhiteLabel information + * @alias module:model/UserWhiteLabelInfo + */ + constructor() { + + UserWhiteLabelInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserWhiteLabelInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserWhiteLabelInfo} obj Optional instance to populate. + * @return {module:model/UserWhiteLabelInfo} The populated UserWhiteLabelInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserWhiteLabelInfo(); + + if (data.hasOwnProperty('WlConfigId')) { + obj['WlConfigId'] = ApiClient.convertToType(data['WlConfigId'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('WhiteLabelName')) { + obj['WhiteLabelName'] = ApiClient.convertToType(data['WhiteLabelName'], 'String'); + } + } + return obj; + } + + +} + +/** + * WhiteLabelConfig Id + * @member {Number} WlConfigId + */ +UserWhiteLabelInfo.prototype['WlConfigId'] = undefined; + +/** + * Brand Id (AppId) + * @member {String} AppId + */ +UserWhiteLabelInfo.prototype['AppId'] = undefined; + +/** + * WhiteLabel Name + * @member {String} WhiteLabelName + */ +UserWhiteLabelInfo.prototype['WhiteLabelName'] = undefined; + + + + + + +export default UserWhiteLabelInfo; + diff --git a/src/model/ValidValue.js b/src/model/ValidValue.js new file mode 100644 index 00000000..612f56f1 --- /dev/null +++ b/src/model/ValidValue.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ValidValue model module. + * @module model/ValidValue + * @version 1.0.0 + */ +class ValidValue { + /** + * Constructs a new ValidValue. + * @alias module:model/ValidValue + * @param Code {String} + * @param Name {String} + */ + constructor(Code, Name) { + + ValidValue.initialize(this, Code, Name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, Code, Name) { + obj['Code'] = Code; + obj['Name'] = Name; + } + + /** + * Constructs a ValidValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ValidValue} obj Optional instance to populate. + * @return {module:model/ValidValue} The populated ValidValue instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ValidValue(); + + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} Code + */ +ValidValue.prototype['Code'] = undefined; + +/** + * @member {String} Name + */ +ValidValue.prototype['Name'] = undefined; + + + + + + +export default ValidValue; + diff --git a/src/model/ValidationErrorResult.js b/src/model/ValidationErrorResult.js new file mode 100644 index 00000000..4417cf7a --- /dev/null +++ b/src/model/ValidationErrorResult.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ValidationErrorResult model module. + * @module model/ValidationErrorResult + * @version 1.0.0 + */ +class ValidationErrorResult { + /** + * Constructs a new ValidationErrorResult. + * Validation error result + * @alias module:model/ValidationErrorResult + */ + constructor() { + + ValidationErrorResult.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ValidationErrorResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ValidationErrorResult} obj Optional instance to populate. + * @return {module:model/ValidationErrorResult} The populated ValidationErrorResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ValidationErrorResult(); + + if (data.hasOwnProperty('FieldName')) { + obj['FieldName'] = ApiClient.convertToType(data['FieldName'], 'String'); + } + if (data.hasOwnProperty('Errors')) { + obj['Errors'] = ApiClient.convertToType(data['Errors'], ['String']); + } + } + return obj; + } + + +} + +/** + * Field name + * @member {String} FieldName + */ +ValidationErrorResult.prototype['FieldName'] = undefined; + +/** + * List of errors relates to field + * @member {Array.} Errors + */ +ValidationErrorResult.prototype['Errors'] = undefined; + + + + + + +export default ValidationErrorResult; + diff --git a/src/model/ValidityPeriod.js b/src/model/ValidityPeriod.js new file mode 100644 index 00000000..106ebae6 --- /dev/null +++ b/src/model/ValidityPeriod.js @@ -0,0 +1,138 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ValidityPeriod model module. + * @module model/ValidityPeriod + * @version 1.0.0 + */ +class ValidityPeriod { + /** + * Constructs a new ValidityPeriod. + * @alias module:model/ValidityPeriod + */ + constructor() { + + ValidityPeriod.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ValidityPeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ValidityPeriod} obj Optional instance to populate. + * @return {module:model/ValidityPeriod} The populated ValidityPeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ValidityPeriod(); + + if (data.hasOwnProperty('DayOfWeek')) { + obj['DayOfWeek'] = ApiClient.convertToType(data['DayOfWeek'], 'String'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'String'); + } + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ValidityPeriod.DayOfWeekEnum} DayOfWeek + */ +ValidityPeriod.prototype['DayOfWeek'] = undefined; + +/** + * @member {String} StartTime + */ +ValidityPeriod.prototype['StartTime'] = undefined; + +/** + * @member {String} EndTime + */ +ValidityPeriod.prototype['EndTime'] = undefined; + + + + + +/** + * Allowed values for the DayOfWeek property. + * @enum {String} + * @readonly + */ +ValidityPeriod['DayOfWeekEnum'] = { + + /** + * value: "Sunday" + * @const + */ + "Sunday": "Sunday", + + /** + * value: "Monday" + * @const + */ + "Monday": "Monday", + + /** + * value: "Tuesday" + * @const + */ + "Tuesday": "Tuesday", + + /** + * value: "Wednesday" + * @const + */ + "Wednesday": "Wednesday", + + /** + * value: "Thursday" + * @const + */ + "Thursday": "Thursday", + + /** + * value: "Friday" + * @const + */ + "Friday": "Friday", + + /** + * value: "Saturday" + * @const + */ + "Saturday": "Saturday" +}; + + + +export default ValidityPeriod; + diff --git a/src/model/Voucher.js b/src/model/Voucher.js new file mode 100644 index 00000000..e603a4cd --- /dev/null +++ b/src/model/Voucher.js @@ -0,0 +1,1223 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreditNoteDetails from './CreditNoteDetails'; +import LumpDiscountDetails from './LumpDiscountDetails'; +import PercentDiscountDetails from './PercentDiscountDetails'; +import PromotionDetails from './PromotionDetails'; +import ValidityPeriod from './ValidityPeriod'; + +/** + * The Voucher model module. + * @module model/Voucher + * @version 1.0.0 + */ +class Voucher { + /** + * Constructs a new Voucher. + * Voucher + * @alias module:model/Voucher + */ + constructor() { + + Voucher.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a Voucher from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Voucher} obj Optional instance to populate. + * @return {module:model/Voucher} The populated Voucher instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Voucher(); + + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('VoucherType')) { + obj['VoucherType'] = ApiClient.convertToType(data['VoucherType'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], ['String']); + } + if (data.hasOwnProperty('PromotionDetails')) { + obj['PromotionDetails'] = PromotionDetails.constructFromObject(data['PromotionDetails']); + } + if (data.hasOwnProperty('CreditNoteDetails')) { + obj['CreditNoteDetails'] = CreditNoteDetails.constructFromObject(data['CreditNoteDetails']); + } + if (data.hasOwnProperty('LumpDiscountDetails')) { + obj['LumpDiscountDetails'] = LumpDiscountDetails.constructFromObject(data['LumpDiscountDetails']); + } + if (data.hasOwnProperty('PercentDiscountDetails')) { + obj['PercentDiscountDetails'] = PercentDiscountDetails.constructFromObject(data['PercentDiscountDetails']); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], ['Number']); + } + if (data.hasOwnProperty('ValidOnOrdersOver')) { + obj['ValidOnOrdersOver'] = ApiClient.convertToType(data['ValidOnOrdersOver'], 'Number'); + } + if (data.hasOwnProperty('TakesPriority')) { + obj['TakesPriority'] = ApiClient.convertToType(data['TakesPriority'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsAutomaticallyApplied')) { + obj['IsAutomaticallyApplied'] = ApiClient.convertToType(data['IsAutomaticallyApplied'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForDeliveryOrders')) { + obj['IsValidForDeliveryOrders'] = ApiClient.convertToType(data['IsValidForDeliveryOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForPickupOrders')) { + obj['IsValidForPickupOrders'] = ApiClient.convertToType(data['IsValidForPickupOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedOnline')) { + obj['IsValidForOrdersPayedOnline'] = ApiClient.convertToType(data['IsValidForOrdersPayedOnline'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedByCash')) { + obj['IsValidForOrdersPayedByCash'] = ApiClient.convertToType(data['IsValidForOrdersPayedByCash'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForFirstOrderOnly')) { + obj['IsValidForFirstOrderOnly'] = ApiClient.convertToType(data['IsValidForFirstOrderOnly'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOncePerCustomer')) { + obj['IsValidOncePerCustomer'] = ApiClient.convertToType(data['IsValidOncePerCustomer'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOnlyOnce')) { + obj['IsValidOnlyOnce'] = ApiClient.convertToType(data['IsValidOnlyOnce'], 'Boolean'); + } + if (data.hasOwnProperty('IsDiscoverable')) { + obj['IsDiscoverable'] = ApiClient.convertToType(data['IsDiscoverable'], 'Boolean'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + if (data.hasOwnProperty('StartDate')) { + obj['StartDate'] = ApiClient.convertToType(data['StartDate'], 'Date'); + } + if (data.hasOwnProperty('ExpiryDate')) { + obj['ExpiryDate'] = ApiClient.convertToType(data['ExpiryDate'], 'Date'); + } + if (data.hasOwnProperty('ChannelRestrictions')) { + obj['ChannelRestrictions'] = ApiClient.convertToType(data['ChannelRestrictions'], ['String']); + } + if (data.hasOwnProperty('ValidityPeriods')) { + obj['ValidityPeriods'] = ApiClient.convertToType(data['ValidityPeriods'], [ValidityPeriod]); + } + if (data.hasOwnProperty('VoucherSubType')) { + obj['VoucherSubType'] = ApiClient.convertToType(data['VoucherSubType'], 'String'); + } + if (data.hasOwnProperty('CustomerId')) { + obj['CustomerId'] = ApiClient.convertToType(data['CustomerId'], 'Number'); + } + if (data.hasOwnProperty('MaxRedemptions')) { + obj['MaxRedemptions'] = ApiClient.convertToType(data['MaxRedemptions'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Voucher Id + * @member {Number} VoucherId + */ +Voucher.prototype['VoucherId'] = undefined; + +/** + * Voucher Status + * @member {module:model/Voucher.StatusEnum} Status + */ +Voucher.prototype['Status'] = undefined; + +/** + * Voucher Type + * @member {module:model/Voucher.VoucherTypeEnum} VoucherType + */ +Voucher.prototype['VoucherType'] = undefined; + +/** + * Currency of the voucher + * @member {module:model/Voucher.CurrencyEnum} Currency + */ +Voucher.prototype['Currency'] = undefined; + +/** + * Stores that this voucher applies to + * @member {Array.} StoreNames + */ +Voucher.prototype['StoreNames'] = undefined; + +/** + * @member {module:model/PromotionDetails} PromotionDetails + */ +Voucher.prototype['PromotionDetails'] = undefined; + +/** + * @member {module:model/CreditNoteDetails} CreditNoteDetails + */ +Voucher.prototype['CreditNoteDetails'] = undefined; + +/** + * @member {module:model/LumpDiscountDetails} LumpDiscountDetails + */ +Voucher.prototype['LumpDiscountDetails'] = undefined; + +/** + * @member {module:model/PercentDiscountDetails} PercentDiscountDetails + */ +Voucher.prototype['PercentDiscountDetails'] = undefined; + +/** + * Voucher Code + * @member {String} Code + */ +Voucher.prototype['Code'] = undefined; + +/** + * Voucher Description (Visible on printout) + * @member {String} Description + */ +Voucher.prototype['Description'] = undefined; + +/** + * Stores that this voucher applies to + * @member {Array.} Stores + */ +Voucher.prototype['Stores'] = undefined; + +/** + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver + */ +Voucher.prototype['ValidOnOrdersOver'] = undefined; + +/** + * Takes priority + * @member {Boolean} TakesPriority + */ +Voucher.prototype['TakesPriority'] = undefined; + +/** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ +Voucher.prototype['IsEnabled'] = undefined; + +/** + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied + */ +Voucher.prototype['IsAutomaticallyApplied'] = undefined; + +/** + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee + */ +Voucher.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Valid for delivery orders + * @member {Boolean} IsValidForDeliveryOrders + */ +Voucher.prototype['IsValidForDeliveryOrders'] = undefined; + +/** + * Valid for pickup orders + * @member {Boolean} IsValidForPickupOrders + */ +Voucher.prototype['IsValidForPickupOrders'] = undefined; + +/** + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline + */ +Voucher.prototype['IsValidForOrdersPayedOnline'] = undefined; + +/** + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash + */ +Voucher.prototype['IsValidForOrdersPayedByCash'] = undefined; + +/** + * Valid only on the first order by the customer + * @member {Boolean} IsValidForFirstOrderOnly + */ +Voucher.prototype['IsValidForFirstOrderOnly'] = undefined; + +/** + * Valid once per customer + * @member {Boolean} IsValidOncePerCustomer + */ +Voucher.prototype['IsValidOncePerCustomer'] = undefined; + +/** + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce + */ +Voucher.prototype['IsValidOnlyOnce'] = undefined; + +/** + * Enables the voucher to be offered in the Voucher Discoverability feature + * @member {Boolean} IsDiscoverable + */ +Voucher.prototype['IsDiscoverable'] = undefined; + +/** + * Force the discount to be applied which bypasses some menu restrictions + * @member {Boolean} ForceDiscount + */ +Voucher.prototype['ForceDiscount'] = undefined; + +/** + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate + */ +Voucher.prototype['StartDate'] = undefined; + +/** + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate + */ +Voucher.prototype['ExpiryDate'] = undefined; + +/** + * Limit the channels this voucher can be used on + * @member {Array.} ChannelRestrictions + */ +Voucher.prototype['ChannelRestrictions'] = undefined; + +/** + * 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. + * @member {Array.} ValidityPeriods + */ +Voucher.prototype['ValidityPeriods'] = undefined; + +/** + * Voucher Subtype + * @member {module:model/Voucher.VoucherSubTypeEnum} VoucherSubType + */ +Voucher.prototype['VoucherSubType'] = undefined; + +/** + * Customer UserID + * @member {Number} CustomerId + */ +Voucher.prototype['CustomerId'] = undefined; + +/** + * Maximum number of times the voucher can be redeemed (used) + * @member {Number} MaxRedemptions + */ +Voucher.prototype['MaxRedemptions'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +Voucher['StatusEnum'] = { + + /** + * value: "Valid" + * @const + */ + "Valid": "Valid", + + /** + * value: "NotYetValid" + * @const + */ + "NotYetValid": "NotYetValid", + + /** + * value: "Expired" + * @const + */ + "Expired": "Expired", + + /** + * value: "Used" + * @const + */ + "Used": "Used", + + /** + * value: "Disabled" + * @const + */ + "Disabled": "Disabled" +}; + + +/** + * Allowed values for the VoucherType property. + * @enum {String} + * @readonly + */ +Voucher['VoucherTypeEnum'] = { + + /** + * value: "PercentageDiscount" + * @const + */ + "PercentageDiscount": "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + "LumpDiscount": "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + "AddItem": "AddItem", + + /** + * value: "CreditNote" + * @const + */ + "CreditNote": "CreditNote", + + /** + * value: "FreeDelivery" + * @const + */ + "FreeDelivery": "FreeDelivery" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +Voucher['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the ChannelRestrictions property. + * @enum {String} + * @readonly + */ +Voucher['ChannelRestrictionsEnum'] = { + + /** + * value: "Ios" + * @const + */ + "Ios": "Ios", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "Google" + * @const + */ + "Google": "Google" +}; + + +/** + * Allowed values for the VoucherSubType property. + * @enum {String} + * @readonly + */ +Voucher['VoucherSubTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "SignUp" + * @const + */ + "SignUp": "SignUp", + + /** + * value: "Loyalty" + * @const + */ + "Loyalty": "Loyalty", + + /** + * value: "Loyalty25" + * @const + */ + "Loyalty25": "Loyalty25", + + /** + * value: "Retention" + * @const + */ + "Retention": "Retention", + + /** + * value: "SecondaryRetention" + * @const + */ + "SecondaryRetention": "SecondaryRetention", + + /** + * value: "Custom" + * @const + */ + "Custom": "Custom" +}; + + + +export default Voucher; + diff --git a/src/model/VoucherAppliedEvent.js b/src/model/VoucherAppliedEvent.js new file mode 100644 index 00000000..599a4ead --- /dev/null +++ b/src/model/VoucherAppliedEvent.js @@ -0,0 +1,145 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The VoucherAppliedEvent model module. + * @module model/VoucherAppliedEvent + * @version 1.0.0 + */ +class VoucherAppliedEvent { + /** + * Constructs a new VoucherAppliedEvent. + * Voucher Applied Event + * @alias module:model/VoucherAppliedEvent + */ + constructor() { + + VoucherAppliedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VoucherAppliedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherAppliedEvent} obj Optional instance to populate. + * @return {module:model/VoucherAppliedEvent} The populated VoucherAppliedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherAppliedEvent(); + + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('OrderId')) { + obj['OrderId'] = ApiClient.convertToType(data['OrderId'], 'Number'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Voucher Id + * @member {Number} VoucherId + */ +VoucherAppliedEvent.prototype['VoucherId'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +VoucherAppliedEvent.prototype['EventName'] = undefined; + +/** + * Order id + * @member {Number} OrderId + */ +VoucherAppliedEvent.prototype['OrderId'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +VoucherAppliedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +VoucherAppliedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +VoucherAppliedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +VoucherAppliedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +VoucherAppliedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +VoucherAppliedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default VoucherAppliedEvent; + diff --git a/src/model/VoucherCreatedEvent.js b/src/model/VoucherCreatedEvent.js new file mode 100644 index 00000000..bf33426e --- /dev/null +++ b/src/model/VoucherCreatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; +import Voucher from './Voucher'; + +/** + * The VoucherCreatedEvent model module. + * @module model/VoucherCreatedEvent + * @version 1.0.0 + */ +class VoucherCreatedEvent { + /** + * Constructs a new VoucherCreatedEvent. + * Voucher Created Event + * @alias module:model/VoucherCreatedEvent + */ + constructor() { + + VoucherCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VoucherCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherCreatedEvent} obj Optional instance to populate. + * @return {module:model/VoucherCreatedEvent} The populated VoucherCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherCreatedEvent(); + + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Voucher')) { + obj['Voucher'] = Voucher.constructFromObject(data['Voucher']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Voucher Id + * @member {Number} VoucherId + */ +VoucherCreatedEvent.prototype['VoucherId'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +VoucherCreatedEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +VoucherCreatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +VoucherCreatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Voucher} Voucher + */ +VoucherCreatedEvent.prototype['Voucher'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +VoucherCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +VoucherCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +VoucherCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +VoucherCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +VoucherCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +VoucherCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default VoucherCreatedEvent; + diff --git a/src/model/VoucherDataPoint.js b/src/model/VoucherDataPoint.js new file mode 100644 index 00000000..1830f5bf --- /dev/null +++ b/src/model/VoucherDataPoint.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The VoucherDataPoint model module. + * @module model/VoucherDataPoint + * @version 1.0.0 + */ +class VoucherDataPoint { + /** + * Constructs a new VoucherDataPoint. + * A single data point in timeline graphs related to Vouchers + * @alias module:model/VoucherDataPoint + */ + constructor() { + + VoucherDataPoint.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VoucherDataPoint from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherDataPoint} obj Optional instance to populate. + * @return {module:model/VoucherDataPoint} The populated VoucherDataPoint instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherDataPoint(); + + if (data.hasOwnProperty('PeriodStart')) { + obj['PeriodStart'] = ApiClient.convertToType(data['PeriodStart'], 'Date'); + } + if (data.hasOwnProperty('PeriodLengthInDays')) { + obj['PeriodLengthInDays'] = ApiClient.convertToType(data['PeriodLengthInDays'], 'Number'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Date from which the data point starts + * @member {Date} PeriodStart + */ +VoucherDataPoint.prototype['PeriodStart'] = undefined; + +/** + * The length in days that this data point covers + * @member {Number} PeriodLengthInDays + */ +VoucherDataPoint.prototype['PeriodLengthInDays'] = undefined; + +/** + * The value of this data point + * @member {Number} Value + */ +VoucherDataPoint.prototype['Value'] = undefined; + + + + + + +export default VoucherDataPoint; + diff --git a/src/model/VoucherDeletedEvent.js b/src/model/VoucherDeletedEvent.js new file mode 100644 index 00000000..8c6ae02b --- /dev/null +++ b/src/model/VoucherDeletedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; +import Voucher from './Voucher'; + +/** + * The VoucherDeletedEvent model module. + * @module model/VoucherDeletedEvent + * @version 1.0.0 + */ +class VoucherDeletedEvent { + /** + * Constructs a new VoucherDeletedEvent. + * Voucher Deleted Event + * @alias module:model/VoucherDeletedEvent + */ + constructor() { + + VoucherDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VoucherDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherDeletedEvent} obj Optional instance to populate. + * @return {module:model/VoucherDeletedEvent} The populated VoucherDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherDeletedEvent(); + + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Voucher')) { + obj['Voucher'] = Voucher.constructFromObject(data['Voucher']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Voucher Id + * @member {Number} VoucherId + */ +VoucherDeletedEvent.prototype['VoucherId'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +VoucherDeletedEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +VoucherDeletedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +VoucherDeletedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Voucher} Voucher + */ +VoucherDeletedEvent.prototype['Voucher'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +VoucherDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +VoucherDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +VoucherDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +VoucherDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +VoucherDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +VoucherDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default VoucherDeletedEvent; + diff --git a/src/model/VoucherSummary.js b/src/model/VoucherSummary.js new file mode 100644 index 00000000..c143dac4 --- /dev/null +++ b/src/model/VoucherSummary.js @@ -0,0 +1,256 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The VoucherSummary model module. + * @module model/VoucherSummary + * @version 1.0.0 + */ +class VoucherSummary { + /** + * Constructs a new VoucherSummary. + * Voucher Summary + * @alias module:model/VoucherSummary + */ + constructor() { + + VoucherSummary.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VoucherSummary from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherSummary} obj Optional instance to populate. + * @return {module:model/VoucherSummary} The populated VoucherSummary instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherSummary(); + + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('VoucherType')) { + obj['VoucherType'] = ApiClient.convertToType(data['VoucherType'], 'String'); + } + if (data.hasOwnProperty('VoucherSubType')) { + obj['VoucherSubType'] = ApiClient.convertToType(data['VoucherSubType'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Voucher Id + * @member {Number} VoucherId + */ +VoucherSummary.prototype['VoucherId'] = undefined; + +/** + * Voucher Code + * @member {String} Code + */ +VoucherSummary.prototype['Code'] = undefined; + +/** + * Voucher Status + * @member {module:model/VoucherSummary.StatusEnum} Status + */ +VoucherSummary.prototype['Status'] = undefined; + +/** + * Voucher Type + * @member {module:model/VoucherSummary.VoucherTypeEnum} VoucherType + */ +VoucherSummary.prototype['VoucherType'] = undefined; + +/** + * Voucher Sub Type + * @member {module:model/VoucherSummary.VoucherSubTypeEnum} VoucherSubType + */ +VoucherSummary.prototype['VoucherSubType'] = undefined; + +/** + * Voucher Description (Visible on printout) + * @member {String} Description + */ +VoucherSummary.prototype['Description'] = undefined; + +/** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ +VoucherSummary.prototype['IsEnabled'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +VoucherSummary['StatusEnum'] = { + + /** + * value: "Valid" + * @const + */ + "Valid": "Valid", + + /** + * value: "NotYetValid" + * @const + */ + "NotYetValid": "NotYetValid", + + /** + * value: "Expired" + * @const + */ + "Expired": "Expired", + + /** + * value: "Used" + * @const + */ + "Used": "Used", + + /** + * value: "Disabled" + * @const + */ + "Disabled": "Disabled" +}; + + +/** + * Allowed values for the VoucherType property. + * @enum {String} + * @readonly + */ +VoucherSummary['VoucherTypeEnum'] = { + + /** + * value: "PercentageDiscount" + * @const + */ + "PercentageDiscount": "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + "LumpDiscount": "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + "AddItem": "AddItem", + + /** + * value: "CreditNote" + * @const + */ + "CreditNote": "CreditNote", + + /** + * value: "FreeDelivery" + * @const + */ + "FreeDelivery": "FreeDelivery" +}; + + +/** + * Allowed values for the VoucherSubType property. + * @enum {String} + * @readonly + */ +VoucherSummary['VoucherSubTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "SignUp" + * @const + */ + "SignUp": "SignUp", + + /** + * value: "Loyalty" + * @const + */ + "Loyalty": "Loyalty", + + /** + * value: "Loyalty25" + * @const + */ + "Loyalty25": "Loyalty25", + + /** + * value: "Retention" + * @const + */ + "Retention": "Retention", + + /** + * value: "SecondaryRetention" + * @const + */ + "SecondaryRetention": "SecondaryRetention", + + /** + * value: "Custom" + * @const + */ + "Custom": "Custom" +}; + + + +export default VoucherSummary; + diff --git a/src/model/VoucherUpdatedEvent.js b/src/model/VoucherUpdatedEvent.js new file mode 100644 index 00000000..ce00c444 --- /dev/null +++ b/src/model/VoucherUpdatedEvent.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; +import Voucher from './Voucher'; + +/** + * The VoucherUpdatedEvent model module. + * @module model/VoucherUpdatedEvent + * @version 1.0.0 + */ +class VoucherUpdatedEvent { + /** + * Constructs a new VoucherUpdatedEvent. + * Voucher Updated Event + * @alias module:model/VoucherUpdatedEvent + */ + constructor() { + + VoucherUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VoucherUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherUpdatedEvent} obj Optional instance to populate. + * @return {module:model/VoucherUpdatedEvent} The populated VoucherUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherUpdatedEvent(); + + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Voucher')) { + obj['Voucher'] = Voucher.constructFromObject(data['Voucher']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * Voucher Id + * @member {Number} VoucherId + */ +VoucherUpdatedEvent.prototype['VoucherId'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +VoucherUpdatedEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +VoucherUpdatedEvent.prototype['User'] = undefined; + +/** + * Description + * @member {String} Description + */ +VoucherUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/Voucher} Voucher + */ +VoucherUpdatedEvent.prototype['Voucher'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +VoucherUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +VoucherUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +VoucherUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +VoucherUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +VoucherUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +VoucherUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default VoucherUpdatedEvent; + diff --git a/src/model/VoucherWithStats.js b/src/model/VoucherWithStats.js new file mode 100644 index 00000000..19acc271 --- /dev/null +++ b/src/model/VoucherWithStats.js @@ -0,0 +1,1268 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreditNoteDetails from './CreditNoteDetails'; +import LumpDiscountDetails from './LumpDiscountDetails'; +import PercentDiscountDetails from './PercentDiscountDetails'; +import PromotionDetails from './PromotionDetails'; +import ValidityPeriod from './ValidityPeriod'; + +/** + * The VoucherWithStats model module. + * @module model/VoucherWithStats + * @version 1.0.0 + */ +class VoucherWithStats { + /** + * Constructs a new VoucherWithStats. + * Voucher With Statistics + * @alias module:model/VoucherWithStats + */ + constructor() { + + VoucherWithStats.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VoucherWithStats from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VoucherWithStats} obj Optional instance to populate. + * @return {module:model/VoucherWithStats} The populated VoucherWithStats instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherWithStats(); + + if (data.hasOwnProperty('TotalUsed')) { + obj['TotalUsed'] = ApiClient.convertToType(data['TotalUsed'], 'Number'); + } + if (data.hasOwnProperty('TotalCustomers')) { + obj['TotalCustomers'] = ApiClient.convertToType(data['TotalCustomers'], 'Number'); + } + if (data.hasOwnProperty('TotalAmountFromOrders')) { + obj['TotalAmountFromOrders'] = ApiClient.convertToType(data['TotalAmountFromOrders'], 'Number'); + } + if (data.hasOwnProperty('TotalDiscounted')) { + obj['TotalDiscounted'] = ApiClient.convertToType(data['TotalDiscounted'], 'Number'); + } + if (data.hasOwnProperty('AverageOrderSize')) { + obj['AverageOrderSize'] = ApiClient.convertToType(data['AverageOrderSize'], 'Number'); + } + if (data.hasOwnProperty('VoucherId')) { + obj['VoucherId'] = ApiClient.convertToType(data['VoucherId'], 'Number'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); + } + if (data.hasOwnProperty('VoucherType')) { + obj['VoucherType'] = ApiClient.convertToType(data['VoucherType'], 'String'); + } + if (data.hasOwnProperty('Currency')) { + obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); + } + if (data.hasOwnProperty('StoreNames')) { + obj['StoreNames'] = ApiClient.convertToType(data['StoreNames'], ['String']); + } + if (data.hasOwnProperty('PromotionDetails')) { + obj['PromotionDetails'] = PromotionDetails.constructFromObject(data['PromotionDetails']); + } + if (data.hasOwnProperty('CreditNoteDetails')) { + obj['CreditNoteDetails'] = CreditNoteDetails.constructFromObject(data['CreditNoteDetails']); + } + if (data.hasOwnProperty('LumpDiscountDetails')) { + obj['LumpDiscountDetails'] = LumpDiscountDetails.constructFromObject(data['LumpDiscountDetails']); + } + if (data.hasOwnProperty('PercentDiscountDetails')) { + obj['PercentDiscountDetails'] = PercentDiscountDetails.constructFromObject(data['PercentDiscountDetails']); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Stores')) { + obj['Stores'] = ApiClient.convertToType(data['Stores'], ['Number']); + } + if (data.hasOwnProperty('ValidOnOrdersOver')) { + obj['ValidOnOrdersOver'] = ApiClient.convertToType(data['ValidOnOrdersOver'], 'Number'); + } + if (data.hasOwnProperty('TakesPriority')) { + obj['TakesPriority'] = ApiClient.convertToType(data['TakesPriority'], 'Boolean'); + } + if (data.hasOwnProperty('IsEnabled')) { + obj['IsEnabled'] = ApiClient.convertToType(data['IsEnabled'], 'Boolean'); + } + if (data.hasOwnProperty('IsAutomaticallyApplied')) { + obj['IsAutomaticallyApplied'] = ApiClient.convertToType(data['IsAutomaticallyApplied'], 'Boolean'); + } + if (data.hasOwnProperty('IncludeDeliveryFee')) { + obj['IncludeDeliveryFee'] = ApiClient.convertToType(data['IncludeDeliveryFee'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForDeliveryOrders')) { + obj['IsValidForDeliveryOrders'] = ApiClient.convertToType(data['IsValidForDeliveryOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForPickupOrders')) { + obj['IsValidForPickupOrders'] = ApiClient.convertToType(data['IsValidForPickupOrders'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedOnline')) { + obj['IsValidForOrdersPayedOnline'] = ApiClient.convertToType(data['IsValidForOrdersPayedOnline'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForOrdersPayedByCash')) { + obj['IsValidForOrdersPayedByCash'] = ApiClient.convertToType(data['IsValidForOrdersPayedByCash'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidForFirstOrderOnly')) { + obj['IsValidForFirstOrderOnly'] = ApiClient.convertToType(data['IsValidForFirstOrderOnly'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOncePerCustomer')) { + obj['IsValidOncePerCustomer'] = ApiClient.convertToType(data['IsValidOncePerCustomer'], 'Boolean'); + } + if (data.hasOwnProperty('IsValidOnlyOnce')) { + obj['IsValidOnlyOnce'] = ApiClient.convertToType(data['IsValidOnlyOnce'], 'Boolean'); + } + if (data.hasOwnProperty('IsDiscoverable')) { + obj['IsDiscoverable'] = ApiClient.convertToType(data['IsDiscoverable'], 'Boolean'); + } + if (data.hasOwnProperty('ForceDiscount')) { + obj['ForceDiscount'] = ApiClient.convertToType(data['ForceDiscount'], 'Boolean'); + } + if (data.hasOwnProperty('StartDate')) { + obj['StartDate'] = ApiClient.convertToType(data['StartDate'], 'Date'); + } + if (data.hasOwnProperty('ExpiryDate')) { + obj['ExpiryDate'] = ApiClient.convertToType(data['ExpiryDate'], 'Date'); + } + if (data.hasOwnProperty('ChannelRestrictions')) { + obj['ChannelRestrictions'] = ApiClient.convertToType(data['ChannelRestrictions'], ['String']); + } + if (data.hasOwnProperty('ValidityPeriods')) { + obj['ValidityPeriods'] = ApiClient.convertToType(data['ValidityPeriods'], [ValidityPeriod]); + } + if (data.hasOwnProperty('VoucherSubType')) { + obj['VoucherSubType'] = ApiClient.convertToType(data['VoucherSubType'], 'String'); + } + if (data.hasOwnProperty('CustomerId')) { + obj['CustomerId'] = ApiClient.convertToType(data['CustomerId'], 'Number'); + } + if (data.hasOwnProperty('MaxRedemptions')) { + obj['MaxRedemptions'] = ApiClient.convertToType(data['MaxRedemptions'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Total times the voucher was used + * @member {Number} TotalUsed + */ +VoucherWithStats.prototype['TotalUsed'] = undefined; + +/** + * Total amount of customers who used this voucher + * @member {Number} TotalCustomers + */ +VoucherWithStats.prototype['TotalCustomers'] = undefined; + +/** + * Total amount of money from orders + * @member {Number} TotalAmountFromOrders + */ +VoucherWithStats.prototype['TotalAmountFromOrders'] = undefined; + +/** + * Total amount of money given away + * @member {Number} TotalDiscounted + */ +VoucherWithStats.prototype['TotalDiscounted'] = undefined; + +/** + * Average Order Size + * @member {Number} AverageOrderSize + */ +VoucherWithStats.prototype['AverageOrderSize'] = undefined; + +/** + * Voucher Id + * @member {Number} VoucherId + */ +VoucherWithStats.prototype['VoucherId'] = undefined; + +/** + * Voucher Status + * @member {module:model/VoucherWithStats.StatusEnum} Status + */ +VoucherWithStats.prototype['Status'] = undefined; + +/** + * Voucher Type + * @member {module:model/VoucherWithStats.VoucherTypeEnum} VoucherType + */ +VoucherWithStats.prototype['VoucherType'] = undefined; + +/** + * Currency of the voucher + * @member {module:model/VoucherWithStats.CurrencyEnum} Currency + */ +VoucherWithStats.prototype['Currency'] = undefined; + +/** + * Stores that this voucher applies to + * @member {Array.} StoreNames + */ +VoucherWithStats.prototype['StoreNames'] = undefined; + +/** + * @member {module:model/PromotionDetails} PromotionDetails + */ +VoucherWithStats.prototype['PromotionDetails'] = undefined; + +/** + * @member {module:model/CreditNoteDetails} CreditNoteDetails + */ +VoucherWithStats.prototype['CreditNoteDetails'] = undefined; + +/** + * @member {module:model/LumpDiscountDetails} LumpDiscountDetails + */ +VoucherWithStats.prototype['LumpDiscountDetails'] = undefined; + +/** + * @member {module:model/PercentDiscountDetails} PercentDiscountDetails + */ +VoucherWithStats.prototype['PercentDiscountDetails'] = undefined; + +/** + * Voucher Code + * @member {String} Code + */ +VoucherWithStats.prototype['Code'] = undefined; + +/** + * Voucher Description (Visible on printout) + * @member {String} Description + */ +VoucherWithStats.prototype['Description'] = undefined; + +/** + * Stores that this voucher applies to + * @member {Array.} Stores + */ +VoucherWithStats.prototype['Stores'] = undefined; + +/** + * Valid on orders on or above + * @member {Number} ValidOnOrdersOver + */ +VoucherWithStats.prototype['ValidOnOrdersOver'] = undefined; + +/** + * Takes priority + * @member {Boolean} TakesPriority + */ +VoucherWithStats.prototype['TakesPriority'] = undefined; + +/** + * Is voucher enabled + * @member {Boolean} IsEnabled + */ +VoucherWithStats.prototype['IsEnabled'] = undefined; + +/** + * Is voucher automatically applied + * @member {Boolean} IsAutomaticallyApplied + */ +VoucherWithStats.prototype['IsAutomaticallyApplied'] = undefined; + +/** + * Include delivery fees + * @member {Boolean} IncludeDeliveryFee + */ +VoucherWithStats.prototype['IncludeDeliveryFee'] = undefined; + +/** + * Valid for delivery orders + * @member {Boolean} IsValidForDeliveryOrders + */ +VoucherWithStats.prototype['IsValidForDeliveryOrders'] = undefined; + +/** + * Valid for pickup orders + * @member {Boolean} IsValidForPickupOrders + */ +VoucherWithStats.prototype['IsValidForPickupOrders'] = undefined; + +/** + * Valid for orders payed online + * @member {Boolean} IsValidForOrdersPayedOnline + */ +VoucherWithStats.prototype['IsValidForOrdersPayedOnline'] = undefined; + +/** + * Valid for orders payed in cash + * @member {Boolean} IsValidForOrdersPayedByCash + */ +VoucherWithStats.prototype['IsValidForOrdersPayedByCash'] = undefined; + +/** + * Valid only on the first order by the customer + * @member {Boolean} IsValidForFirstOrderOnly + */ +VoucherWithStats.prototype['IsValidForFirstOrderOnly'] = undefined; + +/** + * Valid once per customer + * @member {Boolean} IsValidOncePerCustomer + */ +VoucherWithStats.prototype['IsValidOncePerCustomer'] = undefined; + +/** + * Valid only once, by any customer (once used cannot be used again by any other customer) + * @member {Boolean} IsValidOnlyOnce + */ +VoucherWithStats.prototype['IsValidOnlyOnce'] = undefined; + +/** + * Enables the voucher to be offered in the Voucher Discoverability feature + * @member {Boolean} IsDiscoverable + */ +VoucherWithStats.prototype['IsDiscoverable'] = undefined; + +/** + * Force the discount to be applied which bypasses some menu restrictions + * @member {Boolean} ForceDiscount + */ +VoucherWithStats.prototype['ForceDiscount'] = undefined; + +/** + * Voucher Starts On (Time in UTC) + * @member {Date} StartDate + */ +VoucherWithStats.prototype['StartDate'] = undefined; + +/** + * Voucher Expires On (Time in UTC) + * @member {Date} ExpiryDate + */ +VoucherWithStats.prototype['ExpiryDate'] = undefined; + +/** + * Limit the channels this voucher can be used on + * @member {Array.} ChannelRestrictions + */ +VoucherWithStats.prototype['ChannelRestrictions'] = undefined; + +/** + * 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. + * @member {Array.} ValidityPeriods + */ +VoucherWithStats.prototype['ValidityPeriods'] = undefined; + +/** + * Voucher Subtype + * @member {module:model/VoucherWithStats.VoucherSubTypeEnum} VoucherSubType + */ +VoucherWithStats.prototype['VoucherSubType'] = undefined; + +/** + * Customer UserID + * @member {Number} CustomerId + */ +VoucherWithStats.prototype['CustomerId'] = undefined; + +/** + * Maximum number of times the voucher can be redeemed (used) + * @member {Number} MaxRedemptions + */ +VoucherWithStats.prototype['MaxRedemptions'] = undefined; + + + + + +/** + * Allowed values for the Status property. + * @enum {String} + * @readonly + */ +VoucherWithStats['StatusEnum'] = { + + /** + * value: "Valid" + * @const + */ + "Valid": "Valid", + + /** + * value: "NotYetValid" + * @const + */ + "NotYetValid": "NotYetValid", + + /** + * value: "Expired" + * @const + */ + "Expired": "Expired", + + /** + * value: "Used" + * @const + */ + "Used": "Used", + + /** + * value: "Disabled" + * @const + */ + "Disabled": "Disabled" +}; + + +/** + * Allowed values for the VoucherType property. + * @enum {String} + * @readonly + */ +VoucherWithStats['VoucherTypeEnum'] = { + + /** + * value: "PercentageDiscount" + * @const + */ + "PercentageDiscount": "PercentageDiscount", + + /** + * value: "LumpDiscount" + * @const + */ + "LumpDiscount": "LumpDiscount", + + /** + * value: "AddItem" + * @const + */ + "AddItem": "AddItem", + + /** + * value: "CreditNote" + * @const + */ + "CreditNote": "CreditNote", + + /** + * value: "FreeDelivery" + * @const + */ + "FreeDelivery": "FreeDelivery" +}; + + +/** + * Allowed values for the Currency property. + * @enum {String} + * @readonly + */ +VoucherWithStats['CurrencyEnum'] = { + + /** + * value: "EUR" + * @const + */ + "EUR": "EUR", + + /** + * value: "USD" + * @const + */ + "USD": "USD", + + /** + * value: "GBP" + * @const + */ + "GBP": "GBP", + + /** + * value: "CAD" + * @const + */ + "CAD": "CAD", + + /** + * value: "AUD" + * @const + */ + "AUD": "AUD", + + /** + * value: "DJF" + * @const + */ + "DJF": "DJF", + + /** + * value: "ZAR" + * @const + */ + "ZAR": "ZAR", + + /** + * value: "ETB" + * @const + */ + "ETB": "ETB", + + /** + * value: "AED" + * @const + */ + "AED": "AED", + + /** + * value: "BHD" + * @const + */ + "BHD": "BHD", + + /** + * value: "DZD" + * @const + */ + "DZD": "DZD", + + /** + * value: "EGP" + * @const + */ + "EGP": "EGP", + + /** + * value: "IQD" + * @const + */ + "IQD": "IQD", + + /** + * value: "JOD" + * @const + */ + "JOD": "JOD", + + /** + * value: "KWD" + * @const + */ + "KWD": "KWD", + + /** + * value: "LBP" + * @const + */ + "LBP": "LBP", + + /** + * value: "LYD" + * @const + */ + "LYD": "LYD", + + /** + * value: "MAD" + * @const + */ + "MAD": "MAD", + + /** + * value: "OMR" + * @const + */ + "OMR": "OMR", + + /** + * value: "QAR" + * @const + */ + "QAR": "QAR", + + /** + * value: "SAR" + * @const + */ + "SAR": "SAR", + + /** + * value: "SYP" + * @const + */ + "SYP": "SYP", + + /** + * value: "TND" + * @const + */ + "TND": "TND", + + /** + * value: "YER" + * @const + */ + "YER": "YER", + + /** + * value: "CLP" + * @const + */ + "CLP": "CLP", + + /** + * value: "INR" + * @const + */ + "INR": "INR", + + /** + * value: "AZN" + * @const + */ + "AZN": "AZN", + + /** + * value: "RUB" + * @const + */ + "RUB": "RUB", + + /** + * value: "BYN" + * @const + */ + "BYN": "BYN", + + /** + * value: "BGN" + * @const + */ + "BGN": "BGN", + + /** + * value: "NGN" + * @const + */ + "NGN": "NGN", + + /** + * value: "BDT" + * @const + */ + "BDT": "BDT", + + /** + * value: "CNY" + * @const + */ + "CNY": "CNY", + + /** + * value: "BAM" + * @const + */ + "BAM": "BAM", + + /** + * value: "CZK" + * @const + */ + "CZK": "CZK", + + /** + * value: "DKK" + * @const + */ + "DKK": "DKK", + + /** + * value: "CHF" + * @const + */ + "CHF": "CHF", + + /** + * value: "MVR" + * @const + */ + "MVR": "MVR", + + /** + * value: "BTN" + * @const + */ + "BTN": "BTN", + + /** + * value: "XCD" + * @const + */ + "XCD": "XCD", + + /** + * value: "BZD" + * @const + */ + "BZD": "BZD", + + /** + * value: "HKD" + * @const + */ + "HKD": "HKD", + + /** + * value: "IDR" + * @const + */ + "IDR": "IDR", + + /** + * value: "JMD" + * @const + */ + "JMD": "JMD", + + /** + * value: "MYR" + * @const + */ + "MYR": "MYR", + + /** + * value: "NZD" + * @const + */ + "NZD": "NZD", + + /** + * value: "PHP" + * @const + */ + "PHP": "PHP", + + /** + * value: "SGD" + * @const + */ + "SGD": "SGD", + + /** + * value: "TTD" + * @const + */ + "TTD": "TTD", + + /** + * value: "XDR" + * @const + */ + "XDR": "XDR", + + /** + * value: "ARS" + * @const + */ + "ARS": "ARS", + + /** + * value: "BOB" + * @const + */ + "BOB": "BOB", + + /** + * value: "COP" + * @const + */ + "COP": "COP", + + /** + * value: "CRC" + * @const + */ + "CRC": "CRC", + + /** + * value: "CUP" + * @const + */ + "CUP": "CUP", + + /** + * value: "DOP" + * @const + */ + "DOP": "DOP", + + /** + * value: "GTQ" + * @const + */ + "GTQ": "GTQ", + + /** + * value: "HNL" + * @const + */ + "HNL": "HNL", + + /** + * value: "MXN" + * @const + */ + "MXN": "MXN", + + /** + * value: "NIO" + * @const + */ + "NIO": "NIO", + + /** + * value: "PAB" + * @const + */ + "PAB": "PAB", + + /** + * value: "PEN" + * @const + */ + "PEN": "PEN", + + /** + * value: "PYG" + * @const + */ + "PYG": "PYG", + + /** + * value: "UYU" + * @const + */ + "UYU": "UYU", + + /** + * value: "VEF" + * @const + */ + "VEF": "VEF", + + /** + * value: "IRR" + * @const + */ + "IRR": "IRR", + + /** + * value: "XOF" + * @const + */ + "XOF": "XOF", + + /** + * value: "CDF" + * @const + */ + "CDF": "CDF", + + /** + * value: "XAF" + * @const + */ + "XAF": "XAF", + + /** + * value: "HTG" + * @const + */ + "HTG": "HTG", + + /** + * value: "ILS" + * @const + */ + "ILS": "ILS", + + /** + * value: "HRK" + * @const + */ + "HRK": "HRK", + + /** + * value: "HUF" + * @const + */ + "HUF": "HUF", + + /** + * value: "AMD" + * @const + */ + "AMD": "AMD", + + /** + * value: "ISK" + * @const + */ + "ISK": "ISK", + + /** + * value: "JPY" + * @const + */ + "JPY": "JPY", + + /** + * value: "GEL" + * @const + */ + "GEL": "GEL", + + /** + * value: "KZT" + * @const + */ + "KZT": "KZT", + + /** + * value: "KHR" + * @const + */ + "KHR": "KHR", + + /** + * value: "KRW" + * @const + */ + "KRW": "KRW", + + /** + * value: "KGS" + * @const + */ + "KGS": "KGS", + + /** + * value: "LAK" + * @const + */ + "LAK": "LAK", + + /** + * value: "MKD" + * @const + */ + "MKD": "MKD", + + /** + * value: "MNT" + * @const + */ + "MNT": "MNT", + + /** + * value: "BND" + * @const + */ + "BND": "BND", + + /** + * value: "MMK" + * @const + */ + "MMK": "MMK", + + /** + * value: "NOK" + * @const + */ + "NOK": "NOK", + + /** + * value: "NPR" + * @const + */ + "NPR": "NPR", + + /** + * value: "PKR" + * @const + */ + "PKR": "PKR", + + /** + * value: "PLN" + * @const + */ + "PLN": "PLN", + + /** + * value: "AFN" + * @const + */ + "AFN": "AFN", + + /** + * value: "BRL" + * @const + */ + "BRL": "BRL", + + /** + * value: "MDL" + * @const + */ + "MDL": "MDL", + + /** + * value: "RON" + * @const + */ + "RON": "RON", + + /** + * value: "RWF" + * @const + */ + "RWF": "RWF", + + /** + * value: "SEK" + * @const + */ + "SEK": "SEK", + + /** + * value: "LKR" + * @const + */ + "LKR": "LKR", + + /** + * value: "SOS" + * @const + */ + "SOS": "SOS", + + /** + * value: "ALL" + * @const + */ + "ALL": "ALL", + + /** + * value: "RSD" + * @const + */ + "RSD": "RSD", + + /** + * value: "KES" + * @const + */ + "KES": "KES", + + /** + * value: "TJS" + * @const + */ + "TJS": "TJS", + + /** + * value: "THB" + * @const + */ + "THB": "THB", + + /** + * value: "ERN" + * @const + */ + "ERN": "ERN", + + /** + * value: "TMT" + * @const + */ + "TMT": "TMT", + + /** + * value: "BWP" + * @const + */ + "BWP": "BWP", + + /** + * value: "TRY" + * @const + */ + "TRY": "TRY", + + /** + * value: "UAH" + * @const + */ + "UAH": "UAH", + + /** + * value: "UZS" + * @const + */ + "UZS": "UZS", + + /** + * value: "VND" + * @const + */ + "VND": "VND", + + /** + * value: "MOP" + * @const + */ + "MOP": "MOP", + + /** + * value: "TWD" + * @const + */ + "TWD": "TWD", + + /** + * value: "BMD" + * @const + */ + "BMD": "BMD" +}; + + +/** + * Allowed values for the ChannelRestrictions property. + * @enum {String} + * @readonly + */ +VoucherWithStats['ChannelRestrictionsEnum'] = { + + /** + * value: "Ios" + * @const + */ + "Ios": "Ios", + + /** + * value: "Android" + * @const + */ + "Android": "Android", + + /** + * value: "Web" + * @const + */ + "Web": "Web", + + /** + * value: "Kiosk" + * @const + */ + "Kiosk": "Kiosk", + + /** + * value: "Pos" + * @const + */ + "Pos": "Pos", + + /** + * value: "Google" + * @const + */ + "Google": "Google" +}; + + +/** + * Allowed values for the VoucherSubType property. + * @enum {String} + * @readonly + */ +VoucherWithStats['VoucherSubTypeEnum'] = { + + /** + * value: "None" + * @const + */ + "None": "None", + + /** + * value: "SignUp" + * @const + */ + "SignUp": "SignUp", + + /** + * value: "Loyalty" + * @const + */ + "Loyalty": "Loyalty", + + /** + * value: "Loyalty25" + * @const + */ + "Loyalty25": "Loyalty25", + + /** + * value: "Retention" + * @const + */ + "Retention": "Retention", + + /** + * value: "SecondaryRetention" + * @const + */ + "SecondaryRetention": "SecondaryRetention", + + /** + * value: "Custom" + * @const + */ + "Custom": "Custom" +}; + + + +export default VoucherWithStats; + diff --git a/src/model/WaitHandle.js b/src/model/WaitHandle.js new file mode 100644 index 00000000..7b5b5b07 --- /dev/null +++ b/src/model/WaitHandle.js @@ -0,0 +1,80 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SafeWaitHandle from './SafeWaitHandle'; + +/** + * The WaitHandle model module. + * @module model/WaitHandle + * @version 1.0.0 + */ +class WaitHandle { + /** + * Constructs a new WaitHandle. + * @alias module:model/WaitHandle + */ + constructor() { + + WaitHandle.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WaitHandle from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WaitHandle} obj Optional instance to populate. + * @return {module:model/WaitHandle} The populated WaitHandle instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WaitHandle(); + + if (data.hasOwnProperty('Handle')) { + obj['Handle'] = ApiClient.convertToType(data['Handle'], Object); + } + if (data.hasOwnProperty('SafeWaitHandle')) { + obj['SafeWaitHandle'] = SafeWaitHandle.constructFromObject(data['SafeWaitHandle']); + } + } + return obj; + } + + +} + +/** + * @member {Object} Handle + */ +WaitHandle.prototype['Handle'] = undefined; + +/** + * @member {module:model/SafeWaitHandle} SafeWaitHandle + */ +WaitHandle.prototype['SafeWaitHandle'] = undefined; + + + + + + +export default WaitHandle; + diff --git a/src/model/WebhookEventSample.js b/src/model/WebhookEventSample.js new file mode 100644 index 00000000..f0669ccc --- /dev/null +++ b/src/model/WebhookEventSample.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FlipdishEventBase from './FlipdishEventBase'; + +/** + * The WebhookEventSample model module. + * @module model/WebhookEventSample + * @version 1.0.0 + */ +class WebhookEventSample { + /** + * Constructs a new WebhookEventSample. + * Sample payload of a webhook event + * @alias module:model/WebhookEventSample + */ + constructor() { + + WebhookEventSample.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebhookEventSample from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookEventSample} obj Optional instance to populate. + * @return {module:model/WebhookEventSample} The populated WebhookEventSample instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookEventSample(); + + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Body')) { + obj['Body'] = FlipdishEventBase.constructFromObject(data['Body']); + } + } + return obj; + } + + +} + +/** + * Event name + * @member {String} Type + */ +WebhookEventSample.prototype['Type'] = undefined; + +/** + * Sample event creation date and time + * @member {Date} CreateTime + */ +WebhookEventSample.prototype['CreateTime'] = undefined; + +/** + * @member {module:model/FlipdishEventBase} Body + */ +WebhookEventSample.prototype['Body'] = undefined; + + + + + + +export default WebhookEventSample; + diff --git a/src/model/WebhookLog.js b/src/model/WebhookLog.js new file mode 100644 index 00000000..923ab9f5 --- /dev/null +++ b/src/model/WebhookLog.js @@ -0,0 +1,199 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The WebhookLog model module. + * @module model/WebhookLog + * @version 1.0.0 + */ +class WebhookLog { + /** + * Constructs a new WebhookLog. + * Webhook log + * @alias module:model/WebhookLog + */ + constructor() { + + WebhookLog.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebhookLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookLog} obj Optional instance to populate. + * @return {module:model/WebhookLog} The populated WebhookLog instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookLog(); + + if (data.hasOwnProperty('WebhookSubscriptionOwnerUserId')) { + obj['WebhookSubscriptionOwnerUserId'] = ApiClient.convertToType(data['WebhookSubscriptionOwnerUserId'], 'Number'); + } + if (data.hasOwnProperty('EventCreated')) { + obj['EventCreated'] = ApiClient.convertToType(data['EventCreated'], 'String'); + } + if (data.hasOwnProperty('WebhookTriggered')) { + obj['WebhookTriggered'] = ApiClient.convertToType(data['WebhookTriggered'], 'String'); + } + if (data.hasOwnProperty('WebhookEventName')) { + obj['WebhookEventName'] = ApiClient.convertToType(data['WebhookEventName'], 'String'); + } + if (data.hasOwnProperty('WebhookSubscriptionCallbackUrl')) { + obj['WebhookSubscriptionCallbackUrl'] = ApiClient.convertToType(data['WebhookSubscriptionCallbackUrl'], 'String'); + } + if (data.hasOwnProperty('HttpResponseStatusCode')) { + obj['HttpResponseStatusCode'] = ApiClient.convertToType(data['HttpResponseStatusCode'], 'String'); + } + if (data.hasOwnProperty('HttpResponseStatus')) { + obj['HttpResponseStatus'] = ApiClient.convertToType(data['HttpResponseStatus'], 'String'); + } + if (data.hasOwnProperty('RequestHeaders')) { + obj['RequestHeaders'] = ApiClient.convertToType(data['RequestHeaders'], 'String'); + } + if (data.hasOwnProperty('RequestBody')) { + obj['RequestBody'] = ApiClient.convertToType(data['RequestBody'], 'String'); + } + if (data.hasOwnProperty('ResponseHeaders')) { + obj['ResponseHeaders'] = ApiClient.convertToType(data['ResponseHeaders'], 'String'); + } + if (data.hasOwnProperty('ResponseBody')) { + obj['ResponseBody'] = ApiClient.convertToType(data['ResponseBody'], 'String'); + } + if (data.hasOwnProperty('Duration')) { + obj['Duration'] = ApiClient.convertToType(data['Duration'], 'String'); + } + if (data.hasOwnProperty('RetryCount')) { + obj['RetryCount'] = ApiClient.convertToType(data['RetryCount'], 'Number'); + } + if (data.hasOwnProperty('FlipdishWebhookId')) { + obj['FlipdishWebhookId'] = ApiClient.convertToType(data['FlipdishWebhookId'], 'String'); + } + if (data.hasOwnProperty('Version')) { + obj['Version'] = ApiClient.convertToType(data['Version'], 'String'); + } + } + return obj; + } + + +} + +/** + * Webhook subscription owner user identifier + * @member {Number} WebhookSubscriptionOwnerUserId + */ +WebhookLog.prototype['WebhookSubscriptionOwnerUserId'] = undefined; + +/** + * Event created + * @member {String} EventCreated + */ +WebhookLog.prototype['EventCreated'] = undefined; + +/** + * Webhook triggered + * @member {String} WebhookTriggered + */ +WebhookLog.prototype['WebhookTriggered'] = undefined; + +/** + * Webhook event name + * @member {String} WebhookEventName + */ +WebhookLog.prototype['WebhookEventName'] = undefined; + +/** + * Webhook subscription callback url + * @member {String} WebhookSubscriptionCallbackUrl + */ +WebhookLog.prototype['WebhookSubscriptionCallbackUrl'] = undefined; + +/** + * Received HTTP repsonse status HTTP code + * @member {String} HttpResponseStatusCode + */ +WebhookLog.prototype['HttpResponseStatusCode'] = undefined; + +/** + * Received HTTP repsonse status + * @member {String} HttpResponseStatus + */ +WebhookLog.prototype['HttpResponseStatus'] = undefined; + +/** + * Request headers + * @member {String} RequestHeaders + */ +WebhookLog.prototype['RequestHeaders'] = undefined; + +/** + * Request body + * @member {String} RequestBody + */ +WebhookLog.prototype['RequestBody'] = undefined; + +/** + * Received response headers + * @member {String} ResponseHeaders + */ +WebhookLog.prototype['ResponseHeaders'] = undefined; + +/** + * Received response body + * @member {String} ResponseBody + */ +WebhookLog.prototype['ResponseBody'] = undefined; + +/** + * Duration of HTTP request + * @member {String} Duration + */ +WebhookLog.prototype['Duration'] = undefined; + +/** + * Retry count + * @member {Number} RetryCount + */ +WebhookLog.prototype['RetryCount'] = undefined; + +/** + * Flipdish webhook identifier + * @member {String} FlipdishWebhookId + */ +WebhookLog.prototype['FlipdishWebhookId'] = undefined; + +/** + * Flipdish webhook version + * @member {String} Version + */ +WebhookLog.prototype['Version'] = undefined; + + + + + + +export default WebhookLog; + diff --git a/src/model/WebhookSubscription.js b/src/model/WebhookSubscription.js new file mode 100644 index 00000000..9e2cc7c7 --- /dev/null +++ b/src/model/WebhookSubscription.js @@ -0,0 +1,127 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The WebhookSubscription model module. + * @module model/WebhookSubscription + * @version 1.0.0 + */ +class WebhookSubscription { + /** + * Constructs a new WebhookSubscription. + * Webhook subscription + * @alias module:model/WebhookSubscription + */ + constructor() { + + WebhookSubscription.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebhookSubscription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookSubscription} obj Optional instance to populate. + * @return {module:model/WebhookSubscription} The populated WebhookSubscription instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookSubscription(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'Number'); + } + if (data.hasOwnProperty('OwnerUserId')) { + obj['OwnerUserId'] = ApiClient.convertToType(data['OwnerUserId'], 'Number'); + } + if (data.hasOwnProperty('Version')) { + obj['Version'] = ApiClient.convertToType(data['Version'], 'String'); + } + if (data.hasOwnProperty('EventNames')) { + obj['EventNames'] = ApiClient.convertToType(data['EventNames'], ['String']); + } + if (data.hasOwnProperty('CallbackUrl')) { + obj['CallbackUrl'] = ApiClient.convertToType(data['CallbackUrl'], 'String'); + } + if (data.hasOwnProperty('Enabled')) { + obj['Enabled'] = ApiClient.convertToType(data['Enabled'], 'Boolean'); + } + if (data.hasOwnProperty('VerifyToken')) { + obj['VerifyToken'] = ApiClient.convertToType(data['VerifyToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * Webhook subscription identifier + * @member {Number} Id + */ +WebhookSubscription.prototype['Id'] = undefined; + +/** + * Webhook subscription owner user identifier + * @member {Number} OwnerUserId + */ +WebhookSubscription.prototype['OwnerUserId'] = undefined; + +/** + * Webhook subscription owner user identifier + * @member {String} Version + */ +WebhookSubscription.prototype['Version'] = undefined; + +/** + * Webhook subscription event names + * @member {Array.} EventNames + */ +WebhookSubscription.prototype['EventNames'] = undefined; + +/** + * Callback url. Flipdish system POST messages to this url. + * @member {String} CallbackUrl + */ +WebhookSubscription.prototype['CallbackUrl'] = undefined; + +/** + * Is webhook subscription enabled. + * @member {Boolean} Enabled + */ +WebhookSubscription.prototype['Enabled'] = undefined; + +/** + * This is your token which will be in the Header of each POST request from Flipdish with name: X-Verify-Token. + * @member {String} VerifyToken + */ +WebhookSubscription.prototype['VerifyToken'] = undefined; + + + + + + +export default WebhookSubscription; + diff --git a/src/model/WebhookSubscriptionCreatedEvent.js b/src/model/WebhookSubscriptionCreatedEvent.js new file mode 100644 index 00000000..ac2baf1b --- /dev/null +++ b/src/model/WebhookSubscriptionCreatedEvent.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebhookSubscriptionEventInfo from './WebhookSubscriptionEventInfo'; + +/** + * The WebhookSubscriptionCreatedEvent model module. + * @module model/WebhookSubscriptionCreatedEvent + * @version 1.0.0 + */ +class WebhookSubscriptionCreatedEvent { + /** + * Constructs a new WebhookSubscriptionCreatedEvent. + * + * @alias module:model/WebhookSubscriptionCreatedEvent + */ + constructor() { + + WebhookSubscriptionCreatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebhookSubscriptionCreatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookSubscriptionCreatedEvent} obj Optional instance to populate. + * @return {module:model/WebhookSubscriptionCreatedEvent} The populated WebhookSubscriptionCreatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookSubscriptionCreatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('WebhookSubscriptionEventInfo')) { + obj['WebhookSubscriptionEventInfo'] = WebhookSubscriptionEventInfo.constructFromObject(data['WebhookSubscriptionEventInfo']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +WebhookSubscriptionCreatedEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/WebhookSubscriptionEventInfo} WebhookSubscriptionEventInfo + */ +WebhookSubscriptionCreatedEvent.prototype['WebhookSubscriptionEventInfo'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +WebhookSubscriptionCreatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +WebhookSubscriptionCreatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +WebhookSubscriptionCreatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +WebhookSubscriptionCreatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +WebhookSubscriptionCreatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +WebhookSubscriptionCreatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default WebhookSubscriptionCreatedEvent; + diff --git a/src/model/WebhookSubscriptionDeletedEvent.js b/src/model/WebhookSubscriptionDeletedEvent.js new file mode 100644 index 00000000..563ef946 --- /dev/null +++ b/src/model/WebhookSubscriptionDeletedEvent.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebhookSubscriptionEventInfo from './WebhookSubscriptionEventInfo'; + +/** + * The WebhookSubscriptionDeletedEvent model module. + * @module model/WebhookSubscriptionDeletedEvent + * @version 1.0.0 + */ +class WebhookSubscriptionDeletedEvent { + /** + * Constructs a new WebhookSubscriptionDeletedEvent. + * + * @alias module:model/WebhookSubscriptionDeletedEvent + */ + constructor() { + + WebhookSubscriptionDeletedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebhookSubscriptionDeletedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookSubscriptionDeletedEvent} obj Optional instance to populate. + * @return {module:model/WebhookSubscriptionDeletedEvent} The populated WebhookSubscriptionDeletedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookSubscriptionDeletedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('WebhookSubscriptionEventInfo')) { + obj['WebhookSubscriptionEventInfo'] = WebhookSubscriptionEventInfo.constructFromObject(data['WebhookSubscriptionEventInfo']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +WebhookSubscriptionDeletedEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/WebhookSubscriptionEventInfo} WebhookSubscriptionEventInfo + */ +WebhookSubscriptionDeletedEvent.prototype['WebhookSubscriptionEventInfo'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +WebhookSubscriptionDeletedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +WebhookSubscriptionDeletedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +WebhookSubscriptionDeletedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +WebhookSubscriptionDeletedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +WebhookSubscriptionDeletedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +WebhookSubscriptionDeletedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default WebhookSubscriptionDeletedEvent; + diff --git a/src/model/WebhookSubscriptionEventInfo.js b/src/model/WebhookSubscriptionEventInfo.js new file mode 100644 index 00000000..72304506 --- /dev/null +++ b/src/model/WebhookSubscriptionEventInfo.js @@ -0,0 +1,100 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The WebhookSubscriptionEventInfo model module. + * @module model/WebhookSubscriptionEventInfo + * @version 1.0.0 + */ +class WebhookSubscriptionEventInfo { + /** + * Constructs a new WebhookSubscriptionEventInfo. + * + * @alias module:model/WebhookSubscriptionEventInfo + */ + constructor() { + + WebhookSubscriptionEventInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebhookSubscriptionEventInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookSubscriptionEventInfo} obj Optional instance to populate. + * @return {module:model/WebhookSubscriptionEventInfo} The populated WebhookSubscriptionEventInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookSubscriptionEventInfo(); + + if (data.hasOwnProperty('OwnerUserId')) { + obj['OwnerUserId'] = ApiClient.convertToType(data['OwnerUserId'], 'Number'); + } + if (data.hasOwnProperty('WebhookSubscriptionId')) { + obj['WebhookSubscriptionId'] = ApiClient.convertToType(data['WebhookSubscriptionId'], 'Number'); + } + if (data.hasOwnProperty('ClientId')) { + obj['ClientId'] = ApiClient.convertToType(data['ClientId'], 'String'); + } + if (data.hasOwnProperty('CallbackUrl')) { + obj['CallbackUrl'] = ApiClient.convertToType(data['CallbackUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Webhook subscription owner user identifier + * @member {Number} OwnerUserId + */ +WebhookSubscriptionEventInfo.prototype['OwnerUserId'] = undefined; + +/** + * Webhook subscription identifier + * @member {Number} WebhookSubscriptionId + */ +WebhookSubscriptionEventInfo.prototype['WebhookSubscriptionId'] = undefined; + +/** + * Oauth client identifier + * @member {String} ClientId + */ +WebhookSubscriptionEventInfo.prototype['ClientId'] = undefined; + +/** + * Webhook callback url + * @member {String} CallbackUrl + */ +WebhookSubscriptionEventInfo.prototype['CallbackUrl'] = undefined; + + + + + + +export default WebhookSubscriptionEventInfo; + diff --git a/src/model/WebhookSubscriptionUpdatedEvent.js b/src/model/WebhookSubscriptionUpdatedEvent.js new file mode 100644 index 00000000..7b49695b --- /dev/null +++ b/src/model/WebhookSubscriptionUpdatedEvent.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import WebhookSubscriptionEventInfo from './WebhookSubscriptionEventInfo'; + +/** + * The WebhookSubscriptionUpdatedEvent model module. + * @module model/WebhookSubscriptionUpdatedEvent + * @version 1.0.0 + */ +class WebhookSubscriptionUpdatedEvent { + /** + * Constructs a new WebhookSubscriptionUpdatedEvent. + * + * @alias module:model/WebhookSubscriptionUpdatedEvent + */ + constructor() { + + WebhookSubscriptionUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebhookSubscriptionUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebhookSubscriptionUpdatedEvent} obj Optional instance to populate. + * @return {module:model/WebhookSubscriptionUpdatedEvent} The populated WebhookSubscriptionUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebhookSubscriptionUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('WebhookSubscriptionEventInfo')) { + obj['WebhookSubscriptionEventInfo'] = WebhookSubscriptionEventInfo.constructFromObject(data['WebhookSubscriptionEventInfo']); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +WebhookSubscriptionUpdatedEvent.prototype['EventName'] = undefined; + +/** + * @member {module:model/WebhookSubscriptionEventInfo} WebhookSubscriptionEventInfo + */ +WebhookSubscriptionUpdatedEvent.prototype['WebhookSubscriptionEventInfo'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +WebhookSubscriptionUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +WebhookSubscriptionUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +WebhookSubscriptionUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +WebhookSubscriptionUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +WebhookSubscriptionUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +WebhookSubscriptionUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default WebhookSubscriptionUpdatedEvent; + diff --git a/src/model/WebsiteImage.js b/src/model/WebsiteImage.js new file mode 100644 index 00000000..a4a31d3c --- /dev/null +++ b/src/model/WebsiteImage.js @@ -0,0 +1,136 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The WebsiteImage model module. + * @module model/WebsiteImage + * @version 1.0.0 + */ +class WebsiteImage { + /** + * Constructs a new WebsiteImage. + * Represents a website image + * @alias module:model/WebsiteImage + */ + constructor() { + + WebsiteImage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebsiteImage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebsiteImage} obj Optional instance to populate. + * @return {module:model/WebsiteImage} The populated WebsiteImage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebsiteImage(); + + if (data.hasOwnProperty('ImageId')) { + obj['ImageId'] = ApiClient.convertToType(data['ImageId'], 'Number'); + } + if (data.hasOwnProperty('ImageLocation')) { + obj['ImageLocation'] = ApiClient.convertToType(data['ImageLocation'], 'String'); + } + if (data.hasOwnProperty('ImageUrl')) { + obj['ImageUrl'] = ApiClient.convertToType(data['ImageUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * Represents the id of the image + * @member {Number} ImageId + */ +WebsiteImage.prototype['ImageId'] = undefined; + +/** + * Represents the location of the image + * @member {module:model/WebsiteImage.ImageLocationEnum} ImageLocation + */ +WebsiteImage.prototype['ImageLocation'] = undefined; + +/** + * Represents the image url + * @member {String} ImageUrl + */ +WebsiteImage.prototype['ImageUrl'] = undefined; + + + + + +/** + * Allowed values for the ImageLocation property. + * @enum {String} + * @readonly + */ +WebsiteImage['ImageLocationEnum'] = { + + /** + * value: "IndexHeader" + * @const + */ + "IndexHeader": "IndexHeader", + + /** + * value: "IndexAboutSectionLeft" + * @const + */ + "IndexAboutSectionLeft": "IndexAboutSectionLeft", + + /** + * value: "IndexAboutSectionRight" + * @const + */ + "IndexAboutSectionRight": "IndexAboutSectionRight", + + /** + * value: "IndexGallery" + * @const + */ + "IndexGallery": "IndexGallery", + + /** + * value: "IndexOpeningHoursHeader" + * @const + */ + "IndexOpeningHoursHeader": "IndexOpeningHoursHeader", + + /** + * value: "IndexTestimonialsHeader" + * @const + */ + "IndexTestimonialsHeader": "IndexTestimonialsHeader" +}; + + + +export default WebsiteImage; + diff --git a/src/model/WebsiteTestimonial.js b/src/model/WebsiteTestimonial.js new file mode 100644 index 00000000..80808bf4 --- /dev/null +++ b/src/model/WebsiteTestimonial.js @@ -0,0 +1,91 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The WebsiteTestimonial model module. + * @module model/WebsiteTestimonial + * @version 1.0.0 + */ +class WebsiteTestimonial { + /** + * Constructs a new WebsiteTestimonial. + * Represents a testimonial + * @alias module:model/WebsiteTestimonial + */ + constructor() { + + WebsiteTestimonial.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebsiteTestimonial from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebsiteTestimonial} obj Optional instance to populate. + * @return {module:model/WebsiteTestimonial} The populated WebsiteTestimonial instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebsiteTestimonial(); + + if (data.hasOwnProperty('TestimonialId')) { + obj['TestimonialId'] = ApiClient.convertToType(data['TestimonialId'], 'Number'); + } + if (data.hasOwnProperty('Author')) { + obj['Author'] = ApiClient.convertToType(data['Author'], 'String'); + } + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + +} + +/** + * Id of the testimonial + * @member {Number} TestimonialId + */ +WebsiteTestimonial.prototype['TestimonialId'] = undefined; + +/** + * Author of the testimonial + * @member {String} Author + */ +WebsiteTestimonial.prototype['Author'] = undefined; + +/** + * Message of the testimonial + * @member {String} Message + */ +WebsiteTestimonial.prototype['Message'] = undefined; + + + + + + +export default WebsiteTestimonial; + diff --git a/src/model/WebsiteTestimonialBase.js b/src/model/WebsiteTestimonialBase.js new file mode 100644 index 00000000..1deb09ef --- /dev/null +++ b/src/model/WebsiteTestimonialBase.js @@ -0,0 +1,82 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The WebsiteTestimonialBase model module. + * @module model/WebsiteTestimonialBase + * @version 1.0.0 + */ +class WebsiteTestimonialBase { + /** + * Constructs a new WebsiteTestimonialBase. + * Represents a testimonial base + * @alias module:model/WebsiteTestimonialBase + */ + constructor() { + + WebsiteTestimonialBase.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebsiteTestimonialBase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebsiteTestimonialBase} obj Optional instance to populate. + * @return {module:model/WebsiteTestimonialBase} The populated WebsiteTestimonialBase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebsiteTestimonialBase(); + + if (data.hasOwnProperty('Author')) { + obj['Author'] = ApiClient.convertToType(data['Author'], 'String'); + } + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + +} + +/** + * Author of the testimonial + * @member {String} Author + */ +WebsiteTestimonialBase.prototype['Author'] = undefined; + +/** + * Message of the testimonial + * @member {String} Message + */ +WebsiteTestimonialBase.prototype['Message'] = undefined; + + + + + + +export default WebsiteTestimonialBase; + diff --git a/src/model/WebsiteUpdatedEvent.js b/src/model/WebsiteUpdatedEvent.js new file mode 100644 index 00000000..99ba5d2b --- /dev/null +++ b/src/model/WebsiteUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The WebsiteUpdatedEvent model module. + * @module model/WebsiteUpdatedEvent + * @version 1.0.0 + */ +class WebsiteUpdatedEvent { + /** + * Constructs a new WebsiteUpdatedEvent. + * WebsiteUpdatedEvent + * @alias module:model/WebsiteUpdatedEvent + */ + constructor() { + + WebsiteUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebsiteUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebsiteUpdatedEvent} obj Optional instance to populate. + * @return {module:model/WebsiteUpdatedEvent} The populated WebsiteUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebsiteUpdatedEvent(); + + if (data.hasOwnProperty('AppNameId')) { + obj['AppNameId'] = ApiClient.convertToType(data['AppNameId'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * App Name id of the whitelabel of the website + * @member {String} AppNameId + */ +WebsiteUpdatedEvent.prototype['AppNameId'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +WebsiteUpdatedEvent.prototype['User'] = undefined; + +/** + * Description of event + * @member {String} Description + */ +WebsiteUpdatedEvent.prototype['Description'] = undefined; + +/** + * The event name + * @member {String} EventName + */ +WebsiteUpdatedEvent.prototype['EventName'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +WebsiteUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +WebsiteUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +WebsiteUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +WebsiteUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +WebsiteUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +WebsiteUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default WebsiteUpdatedEvent; + diff --git a/src/model/WebsiteVanityUrlUpdatedEvent.js b/src/model/WebsiteVanityUrlUpdatedEvent.js new file mode 100644 index 00000000..8cafbb44 --- /dev/null +++ b/src/model/WebsiteVanityUrlUpdatedEvent.js @@ -0,0 +1,154 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import UserEventInfo from './UserEventInfo'; + +/** + * The WebsiteVanityUrlUpdatedEvent model module. + * @module model/WebsiteVanityUrlUpdatedEvent + * @version 1.0.0 + */ +class WebsiteVanityUrlUpdatedEvent { + /** + * Constructs a new WebsiteVanityUrlUpdatedEvent. + * Website vanity url + * @alias module:model/WebsiteVanityUrlUpdatedEvent + */ + constructor() { + + WebsiteVanityUrlUpdatedEvent.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WebsiteVanityUrlUpdatedEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WebsiteVanityUrlUpdatedEvent} obj Optional instance to populate. + * @return {module:model/WebsiteVanityUrlUpdatedEvent} The populated WebsiteVanityUrlUpdatedEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WebsiteVanityUrlUpdatedEvent(); + + if (data.hasOwnProperty('EventName')) { + obj['EventName'] = ApiClient.convertToType(data['EventName'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = UserEventInfo.constructFromObject(data['User']); + } + if (data.hasOwnProperty('VanityUrl')) { + obj['VanityUrl'] = ApiClient.convertToType(data['VanityUrl'], 'String'); + } + if (data.hasOwnProperty('FlipdishEventId')) { + obj['FlipdishEventId'] = ApiClient.convertToType(data['FlipdishEventId'], 'String'); + } + if (data.hasOwnProperty('CreateTime')) { + obj['CreateTime'] = ApiClient.convertToType(data['CreateTime'], 'Date'); + } + if (data.hasOwnProperty('Position')) { + obj['Position'] = ApiClient.convertToType(data['Position'], 'Number'); + } + if (data.hasOwnProperty('AppId')) { + obj['AppId'] = ApiClient.convertToType(data['AppId'], 'String'); + } + if (data.hasOwnProperty('OrgId')) { + obj['OrgId'] = ApiClient.convertToType(data['OrgId'], 'String'); + } + if (data.hasOwnProperty('IpAddress')) { + obj['IpAddress'] = ApiClient.convertToType(data['IpAddress'], 'String'); + } + } + return obj; + } + + +} + +/** + * The event name + * @member {String} EventName + */ +WebsiteVanityUrlUpdatedEvent.prototype['EventName'] = undefined; + +/** + * Description + * @member {String} Description + */ +WebsiteVanityUrlUpdatedEvent.prototype['Description'] = undefined; + +/** + * @member {module:model/UserEventInfo} User + */ +WebsiteVanityUrlUpdatedEvent.prototype['User'] = undefined; + +/** + * New vanity url + * @member {String} VanityUrl + */ +WebsiteVanityUrlUpdatedEvent.prototype['VanityUrl'] = undefined; + +/** + * The identitfier of the event + * @member {String} FlipdishEventId + */ +WebsiteVanityUrlUpdatedEvent.prototype['FlipdishEventId'] = undefined; + +/** + * The time of creation of the event + * @member {Date} CreateTime + */ +WebsiteVanityUrlUpdatedEvent.prototype['CreateTime'] = undefined; + +/** + * Position + * @member {Number} Position + */ +WebsiteVanityUrlUpdatedEvent.prototype['Position'] = undefined; + +/** + * App id + * @member {String} AppId + */ +WebsiteVanityUrlUpdatedEvent.prototype['AppId'] = undefined; + +/** + * Org id + * @member {String} OrgId + */ +WebsiteVanityUrlUpdatedEvent.prototype['OrgId'] = undefined; + +/** + * Ip Address + * @member {String} IpAddress + */ +WebsiteVanityUrlUpdatedEvent.prototype['IpAddress'] = undefined; + + + + + + +export default WebsiteVanityUrlUpdatedEvent; + diff --git a/src/model/WhiteLabelConfig.js b/src/model/WhiteLabelConfig.js new file mode 100644 index 00000000..1c1cd7d0 --- /dev/null +++ b/src/model/WhiteLabelConfig.js @@ -0,0 +1,118 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The WhiteLabelConfig model module. + * @module model/WhiteLabelConfig + * @version 1.0.0 + */ +class WhiteLabelConfig { + /** + * Constructs a new WhiteLabelConfig. + * White label configuration details + * @alias module:model/WhiteLabelConfig + */ + constructor() { + + WhiteLabelConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a WhiteLabelConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/WhiteLabelConfig} obj Optional instance to populate. + * @return {module:model/WhiteLabelConfig} The populated WhiteLabelConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WhiteLabelConfig(); + + if (data.hasOwnProperty('WhiteLabelId')) { + obj['WhiteLabelId'] = ApiClient.convertToType(data['WhiteLabelId'], 'Number'); + } + if (data.hasOwnProperty('WhiteLabelName')) { + obj['WhiteLabelName'] = ApiClient.convertToType(data['WhiteLabelName'], 'String'); + } + if (data.hasOwnProperty('CountryId')) { + obj['CountryId'] = ApiClient.convertToType(data['CountryId'], 'String'); + } + if (data.hasOwnProperty('AppNameId')) { + obj['AppNameId'] = ApiClient.convertToType(data['AppNameId'], 'String'); + } + if (data.hasOwnProperty('Website')) { + obj['Website'] = ApiClient.convertToType(data['Website'], 'String'); + } + if (data.hasOwnProperty('PanaceaVanityUrl')) { + obj['PanaceaVanityUrl'] = ApiClient.convertToType(data['PanaceaVanityUrl'], 'String'); + } + } + return obj; + } + + +} + +/** + * White label identifier + * @member {Number} WhiteLabelId + */ +WhiteLabelConfig.prototype['WhiteLabelId'] = undefined; + +/** + * White label name + * @member {String} WhiteLabelName + */ +WhiteLabelConfig.prototype['WhiteLabelName'] = undefined; + +/** + * Country identifier + * @member {String} CountryId + */ +WhiteLabelConfig.prototype['CountryId'] = undefined; + +/** + * App id + * @member {String} AppNameId + */ +WhiteLabelConfig.prototype['AppNameId'] = undefined; + +/** + * Website URL + * @member {String} Website + */ +WhiteLabelConfig.prototype['Website'] = undefined; + +/** + * Panacea vanity URL + * @member {String} PanaceaVanityUrl + */ +WhiteLabelConfig.prototype['PanaceaVanityUrl'] = undefined; + + + + + + +export default WhiteLabelConfig; + diff --git a/test/api/AccountsApi.spec.js b/test/api/AccountsApi.spec.js new file mode 100644 index 00000000..d542dc93 --- /dev/null +++ b/test/api/AccountsApi.spec.js @@ -0,0 +1,233 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AccountsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccountsApi', function() { + describe('answerSignUpQuestion', function() { + it('should call answerSignUpQuestion successfully', function(done) { + //uncomment below and update the code to test answerSignUpQuestion + //instance.answerSignUpQuestion(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('changePassword', function() { + it('should call changePassword successfully', function(done) { + //uncomment below and update the code to test changePassword + //instance.changePassword(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('changePasswordWithPin', function() { + it('should call changePasswordWithPin successfully', function(done) { + //uncomment below and update the code to test changePasswordWithPin + //instance.changePasswordWithPin(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createAccount', function() { + it('should call createAccount successfully', function(done) { + //uncomment below and update the code to test createAccount + //instance.createAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createBasicAccount', function() { + it('should call createBasicAccount successfully', function(done) { + //uncomment below and update the code to test createBasicAccount + //instance.createBasicAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAccountDetails', function() { + it('should call getAccountDetails successfully', function(done) { + //uncomment below and update the code to test getAccountDetails + //instance.getAccountDetails(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getLocalisedTimeZones', function() { + it('should call getLocalisedTimeZones successfully', function(done) { + //uncomment below and update the code to test getLocalisedTimeZones + //instance.getLocalisedTimeZones(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('login', function() { + it('should call login successfully', function(done) { + //uncomment below and update the code to test login + //instance.login(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('loginSso', function() { + it('should call loginSso successfully', function(done) { + //uncomment below and update the code to test loginSso + //instance.loginSso(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('loginWithPin', function() { + it('should call loginWithPin successfully', function(done) { + //uncomment below and update the code to test loginWithPin + //instance.loginWithPin(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('logout', function() { + it('should call logout successfully', function(done) { + //uncomment below and update the code to test logout + //instance.logout(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('passwordResetWithToken', function() { + it('should call passwordResetWithToken successfully', function(done) { + //uncomment below and update the code to test passwordResetWithToken + //instance.passwordResetWithToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('recaptchaValidate', function() { + it('should call recaptchaValidate successfully', function(done) { + //uncomment below and update the code to test recaptchaValidate + //instance.recaptchaValidate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('requestLoginPin', function() { + it('should call requestLoginPin successfully', function(done) { + //uncomment below and update the code to test requestLoginPin + //instance.requestLoginPin(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('requestPasswordReset', function() { + it('should call requestPasswordReset successfully', function(done) { + //uncomment below and update the code to test requestPasswordReset + //instance.requestPasswordReset(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('sendPinForPasswordReset', function() { + it('should call sendPinForPasswordReset successfully', function(done) { + //uncomment below and update the code to test sendPinForPasswordReset + //instance.sendPinForPasswordReset(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('skipSignupStep', function() { + it('should call skipSignupStep successfully', function(done) { + //uncomment below and update the code to test skipSignupStep + //instance.skipSignupStep(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateAccount', function() { + it('should call updateAccount successfully', function(done) { + //uncomment below and update the code to test updateAccount + //instance.updateAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AddressApi.spec.js b/test/api/AddressApi.spec.js new file mode 100644 index 00000000..a6665484 --- /dev/null +++ b/test/api/AddressApi.spec.js @@ -0,0 +1,103 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AddressApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AddressApi', function() { + describe('addressTemplates', function() { + it('should call addressTemplates successfully', function(done) { + //uncomment below and update the code to test addressTemplates + //instance.addressTemplates(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('formByApp', function() { + it('should call formByApp successfully', function(done) { + //uncomment below and update the code to test formByApp + //instance.formByApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('formByCountry', function() { + it('should call formByCountry successfully', function(done) { + //uncomment below and update the code to test formByCountry + //instance.formByCountry(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('formatGoogleAddress', function() { + it('should call formatGoogleAddress successfully', function(done) { + //uncomment below and update the code to test formatGoogleAddress + //instance.formatGoogleAddress(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCountries', function() { + it('should call getCountries successfully', function(done) { + //uncomment below and update the code to test getCountries + //instance.getCountries(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ApmApi.spec.js b/test/api/ApmApi.spec.js new file mode 100644 index 00000000..b0003dbb --- /dev/null +++ b/test/api/ApmApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ApmApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ApmApi', function() { + describe('getApmStatus', function() { + it('should call getApmStatus successfully', function(done) { + //uncomment below and update the code to test getApmStatus + //instance.getApmStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBasicStatistics', function() { + it('should call getBasicStatistics successfully', function(done) { + //uncomment below and update the code to test getBasicStatistics + //instance.getBasicStatistics(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCalendarWeekStatistics', function() { + it('should call getCalendarWeekStatistics successfully', function(done) { + //uncomment below and update the code to test getCalendarWeekStatistics + //instance.getCalendarWeekStatistics(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCallsStatistics', function() { + it('should call getCallsStatistics successfully', function(done) { + //uncomment below and update the code to test getCallsStatistics + //instance.getCallsStatistics(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrderStatistics', function() { + it('should call getOrderStatistics successfully', function(done) { + //uncomment below and update the code to test getOrderStatistics + //instance.getOrderStatistics(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPaginatedCallList', function() { + it('should call getPaginatedCallList successfully', function(done) { + //uncomment below and update the code to test getPaginatedCallList + //instance.getPaginatedCallList(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AppStoreApi.spec.js b/test/api/AppStoreApi.spec.js new file mode 100644 index 00000000..a3cfe54b --- /dev/null +++ b/test/api/AppStoreApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreApi', function() { + describe('getAppStoreApp', function() { + it('should call getAppStoreApp successfully', function(done) { + //uncomment below and update the code to test getAppStoreApp + //instance.getAppStoreApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAppStoreApps', function() { + it('should call getAppStoreApps successfully', function(done) { + //uncomment below and update the code to test getAppStoreApps + //instance.getAppStoreApps(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AppStoreConfigurationsApi.spec.js b/test/api/AppStoreConfigurationsApi.spec.js new file mode 100644 index 00000000..bcdfd7ba --- /dev/null +++ b/test/api/AppStoreConfigurationsApi.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreConfigurationsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreConfigurationsApi', function() { + describe('appStoreConfigurationsAppStoreHandleOauthResponseCode', function() { + it('should call appStoreConfigurationsAppStoreHandleOauthResponseCode successfully', function(done) { + //uncomment below and update the code to test appStoreConfigurationsAppStoreHandleOauthResponseCode + //instance.appStoreConfigurationsAppStoreHandleOauthResponseCode(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createAppStoreConfig', function() { + it('should call createAppStoreConfig successfully', function(done) { + //uncomment below and update the code to test createAppStoreConfig + //instance.createAppStoreConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteAppStoreConfig', function() { + it('should call deleteAppStoreConfig successfully', function(done) { + //uncomment below and update the code to test deleteAppStoreConfig + //instance.deleteAppStoreConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('executeConfigurationAction', function() { + it('should call executeConfigurationAction successfully', function(done) { + //uncomment below and update the code to test executeConfigurationAction + //instance.executeConfigurationAction(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAppStoreConfig', function() { + it('should call getAppStoreConfig successfully', function(done) { + //uncomment below and update the code to test getAppStoreConfig + //instance.getAppStoreConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getConfiguredAppSingleApp', function() { + it('should call getConfiguredAppSingleApp successfully', function(done) { + //uncomment below and update the code to test getConfiguredAppSingleApp + //instance.getConfiguredAppSingleApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getConfiguredApps', function() { + it('should call getConfiguredApps successfully', function(done) { + //uncomment below and update the code to test getConfiguredApps + //instance.getConfiguredApps(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateAppStoreConfig', function() { + it('should call updateAppStoreConfig successfully', function(done) { + //uncomment below and update the code to test updateAppStoreConfig + //instance.updateAppStoreConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateAppStoreConfigSettingValues', function() { + it('should call updateAppStoreConfigSettingValues successfully', function(done) { + //uncomment below and update the code to test updateAppStoreConfigSettingValues + //instance.updateAppStoreConfigSettingValues(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AppStoreDeveloperApi.spec.js b/test/api/AppStoreDeveloperApi.spec.js new file mode 100644 index 00000000..21f231ca --- /dev/null +++ b/test/api/AppStoreDeveloperApi.spec.js @@ -0,0 +1,133 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreDeveloperApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreDeveloperApi', function() { + describe('appVerificationUpdate', function() { + it('should call appVerificationUpdate successfully', function(done) { + //uncomment below and update the code to test appVerificationUpdate + //instance.appVerificationUpdate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createAppStoreApp', function() { + it('should call createAppStoreApp successfully', function(done) { + //uncomment below and update the code to test createAppStoreApp + //instance.createAppStoreApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteAppStoreApp', function() { + it('should call deleteAppStoreApp successfully', function(done) { + //uncomment below and update the code to test deleteAppStoreApp + //instance.deleteAppStoreApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAppExternalProduct', function() { + it('should call getAppExternalProduct successfully', function(done) { + //uncomment below and update the code to test getAppExternalProduct + //instance.getAppExternalProduct(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getExternalFunctionSigningKey', function() { + it('should call getExternalFunctionSigningKey successfully', function(done) { + //uncomment below and update the code to test getExternalFunctionSigningKey + //instance.getExternalFunctionSigningKey(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateAppStoreApp', function() { + it('should call updateAppStoreApp successfully', function(done) { + //uncomment below and update the code to test updateAppStoreApp + //instance.updateAppStoreApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateExternalProduct', function() { + it('should call updateExternalProduct successfully', function(done) { + //uncomment below and update the code to test updateExternalProduct + //instance.updateExternalProduct(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadAppStoreAppLogo', function() { + it('should call uploadAppStoreAppLogo successfully', function(done) { + //uncomment below and update the code to test uploadAppStoreAppLogo + //instance.uploadAppStoreAppLogo(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AppStoreEntitlementsApi.spec.js b/test/api/AppStoreEntitlementsApi.spec.js new file mode 100644 index 00000000..e6d32e17 --- /dev/null +++ b/test/api/AppStoreEntitlementsApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreEntitlementsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreEntitlementsApi', function() { + describe('getAppStoreAppEntitlements', function() { + it('should call getAppStoreAppEntitlements successfully', function(done) { + //uncomment below and update the code to test getAppStoreAppEntitlements + //instance.getAppStoreAppEntitlements(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AppsApi.spec.js b/test/api/AppsApi.spec.js new file mode 100644 index 00000000..0b2ff4f2 --- /dev/null +++ b/test/api/AppsApi.spec.js @@ -0,0 +1,243 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppsApi', function() { + describe('appsSetPropertyId', function() { + it('should call appsSetPropertyId successfully', function(done) { + //uncomment below and update the code to test appsSetPropertyId + //instance.appsSetPropertyId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createApp', function() { + it('should call createApp successfully', function(done) { + //uncomment below and update the code to test createApp + //instance.createApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getApp', function() { + it('should call getApp successfully', function(done) { + //uncomment below and update the code to test getApp + //instance.getApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAppHostnameStatus', function() { + it('should call getAppHostnameStatus successfully', function(done) { + //uncomment below and update the code to test getAppHostnameStatus + //instance.getAppHostnameStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAppName', function() { + it('should call getAppName successfully', function(done) { + //uncomment below and update the code to test getAppName + //instance.getAppName(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getApps', function() { + it('should call getApps successfully', function(done) { + //uncomment below and update the code to test getApps + //instance.getApps(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCompliance', function() { + it('should call getCompliance successfully', function(done) { + //uncomment below and update the code to test getCompliance + //instance.getCompliance(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPanaceaVanityUrl', function() { + it('should call getPanaceaVanityUrl successfully', function(done) { + //uncomment below and update the code to test getPanaceaVanityUrl + //instance.getPanaceaVanityUrl(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getSupportedCountries', function() { + it('should call getSupportedCountries successfully', function(done) { + //uncomment below and update the code to test getSupportedCountries + //instance.getSupportedCountries(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('isPanaceaVanityUrlAvailable', function() { + it('should call isPanaceaVanityUrlAvailable successfully', function(done) { + //uncomment below and update the code to test isPanaceaVanityUrlAvailable + //instance.isPanaceaVanityUrlAvailable(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('lookupByWhitelabelId', function() { + it('should call lookupByWhitelabelId successfully', function(done) { + //uncomment below and update the code to test lookupByWhitelabelId + //instance.lookupByWhitelabelId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setAppConfig', function() { + it('should call setAppConfig successfully', function(done) { + //uncomment below and update the code to test setAppConfig + //instance.setAppConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setAppHostname', function() { + it('should call setAppHostname successfully', function(done) { + //uncomment below and update the code to test setAppHostname + //instance.setAppHostname(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setAppLanguages', function() { + it('should call setAppLanguages successfully', function(done) { + //uncomment below and update the code to test setAppLanguages + //instance.setAppLanguages(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setAppStoreName', function() { + it('should call setAppStoreName successfully', function(done) { + //uncomment below and update the code to test setAppStoreName + //instance.setAppStoreName(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setCompliance', function() { + it('should call setCompliance successfully', function(done) { + //uncomment below and update the code to test setCompliance + //instance.setCompliance(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setPanaceaVanityUrl', function() { + it('should call setPanaceaVanityUrl successfully', function(done) { + //uncomment below and update the code to test setPanaceaVanityUrl + //instance.setPanaceaVanityUrl(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('toggleNextGenWeb', function() { + it('should call toggleNextGenWeb successfully', function(done) { + //uncomment below and update the code to test toggleNextGenWeb + //instance.toggleNextGenWeb(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadAppLogo', function() { + it('should call uploadAppLogo successfully', function(done) { + //uncomment below and update the code to test uploadAppLogo + //instance.uploadAppLogo(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AuditLogsApi.spec.js b/test/api/AuditLogsApi.spec.js new file mode 100644 index 00000000..deea0054 --- /dev/null +++ b/test/api/AuditLogsApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AuditLogsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AuditLogsApi', function() { + describe('addOrderAuditLog', function() { + it('should call addOrderAuditLog successfully', function(done) { + //uncomment below and update the code to test addOrderAuditLog + //instance.addOrderAuditLog(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('addStoreAuditLogEvent', function() { + it('should call addStoreAuditLogEvent successfully', function(done) { + //uncomment below and update the code to test addStoreAuditLogEvent + //instance.addStoreAuditLogEvent(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AuthorizationTokensApi.spec.js b/test/api/AuthorizationTokensApi.spec.js new file mode 100644 index 00000000..3d065d86 --- /dev/null +++ b/test/api/AuthorizationTokensApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AuthorizationTokensApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AuthorizationTokensApi', function() { + describe('getAuthorizationTokens', function() { + it('should call getAuthorizationTokens successfully', function(done) { + //uncomment below and update the code to test getAuthorizationTokens + //instance.getAuthorizationTokens(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('revokeToken', function() { + it('should call revokeToken successfully', function(done) { + //uncomment below and update the code to test revokeToken + //instance.revokeToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/BankAccountApi.spec.js b/test/api/BankAccountApi.spec.js new file mode 100644 index 00000000..8bb3859f --- /dev/null +++ b/test/api/BankAccountApi.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountApi', function() { + describe('attachBankAccountToStore', function() { + it('should call attachBankAccountToStore successfully', function(done) { + //uncomment below and update the code to test attachBankAccountToStore + //instance.attachBankAccountToStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createBankAccount', function() { + it('should call createBankAccount successfully', function(done) { + //uncomment below and update the code to test createBankAccount + //instance.createBankAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteBankAccount', function() { + it('should call deleteBankAccount successfully', function(done) { + //uncomment below and update the code to test deleteBankAccount + //instance.deleteBankAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBankAccountById', function() { + it('should call getBankAccountById successfully', function(done) { + //uncomment below and update the code to test getBankAccountById + //instance.getBankAccountById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBankAccounts', function() { + it('should call getBankAccounts successfully', function(done) { + //uncomment below and update the code to test getBankAccounts + //instance.getBankAccounts(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCountriesWithFieldDefinitions', function() { + it('should call getCountriesWithFieldDefinitions successfully', function(done) { + //uncomment below and update the code to test getCountriesWithFieldDefinitions + //instance.getCountriesWithFieldDefinitions(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFieldDefinitions', function() { + it('should call getFieldDefinitions successfully', function(done) { + //uncomment below and update the code to test getFieldDefinitions + //instance.getFieldDefinitions(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateBankAccount', function() { + it('should call updateBankAccount successfully', function(done) { + //uncomment below and update the code to test updateBankAccount + //instance.updateBankAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateBankAccountState', function() { + it('should call updateBankAccountState successfully', function(done) { + //uncomment below and update the code to test updateBankAccountState + //instance.updateBankAccountState(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CampaignsApi.spec.js b/test/api/CampaignsApi.spec.js new file mode 100644 index 00000000..d3eba331 --- /dev/null +++ b/test/api/CampaignsApi.spec.js @@ -0,0 +1,153 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CampaignsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CampaignsApi', function() { + describe('createLoyaltyCampaign', function() { + it('should call createLoyaltyCampaign successfully', function(done) { + //uncomment below and update the code to test createLoyaltyCampaign + //instance.createLoyaltyCampaign(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createRetentionCampaign', function() { + it('should call createRetentionCampaign successfully', function(done) { + //uncomment below and update the code to test createRetentionCampaign + //instance.createRetentionCampaign(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getLoyaltyCampaignsForApp', function() { + it('should call getLoyaltyCampaignsForApp successfully', function(done) { + //uncomment below and update the code to test getLoyaltyCampaignsForApp + //instance.getLoyaltyCampaignsForApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getLoyaltyCampaignsForStore', function() { + it('should call getLoyaltyCampaignsForStore successfully', function(done) { + //uncomment below and update the code to test getLoyaltyCampaignsForStore + //instance.getLoyaltyCampaignsForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRetentionCampaignsForApp', function() { + it('should call getRetentionCampaignsForApp successfully', function(done) { + //uncomment below and update the code to test getRetentionCampaignsForApp + //instance.getRetentionCampaignsForApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRetentionCampaignsForStore', function() { + it('should call getRetentionCampaignsForStore successfully', function(done) { + //uncomment below and update the code to test getRetentionCampaignsForStore + //instance.getRetentionCampaignsForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreList', function() { + it('should call getStoreList successfully', function(done) { + //uncomment below and update the code to test getStoreList + //instance.getStoreList(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('removeCampaign', function() { + it('should call removeCampaign successfully', function(done) { + //uncomment below and update the code to test removeCampaign + //instance.removeCampaign(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateLoyaltyCampaign', function() { + it('should call updateLoyaltyCampaign successfully', function(done) { + //uncomment below and update the code to test updateLoyaltyCampaign + //instance.updateLoyaltyCampaign(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateRetentionCampaign', function() { + it('should call updateRetentionCampaign successfully', function(done) { + //uncomment below and update the code to test updateRetentionCampaign + //instance.updateRetentionCampaign(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CardReadersApi.spec.js b/test/api/CardReadersApi.spec.js new file mode 100644 index 00000000..65d9263a --- /dev/null +++ b/test/api/CardReadersApi.spec.js @@ -0,0 +1,183 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CardReadersApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CardReadersApi', function() { + describe('cancelCurrentlyInitiatedBluetoothDeviceUpdate', function() { + it('should call cancelCurrentlyInitiatedBluetoothDeviceUpdate successfully', function(done) { + //uncomment below and update the code to test cancelCurrentlyInitiatedBluetoothDeviceUpdate + //instance.cancelCurrentlyInitiatedBluetoothDeviceUpdate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('cancelReaderAction', function() { + it('should call cancelReaderAction successfully', function(done) { + //uncomment below and update the code to test cancelReaderAction + //instance.cancelReaderAction(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('cardReadersGetReader', function() { + it('should call cardReadersGetReader successfully', function(done) { + //uncomment below and update the code to test cardReadersGetReader + //instance.cardReadersGetReader(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('generateStripeTerminalLocation', function() { + it('should call generateStripeTerminalLocation successfully', function(done) { + //uncomment below and update the code to test generateStripeTerminalLocation + //instance.generateStripeTerminalLocation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBluetoothTerminalStatus', function() { + it('should call getBluetoothTerminalStatus successfully', function(done) { + //uncomment below and update the code to test getBluetoothTerminalStatus + //instance.getBluetoothTerminalStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStripeConnectionToken', function() { + it('should call getStripeConnectionToken successfully', function(done) { + //uncomment below and update the code to test getStripeConnectionToken + //instance.getStripeConnectionToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('initiateBluetoothTerminalDeviceUpdateCheck', function() { + it('should call initiateBluetoothTerminalDeviceUpdateCheck successfully', function(done) { + //uncomment below and update the code to test initiateBluetoothTerminalDeviceUpdateCheck + //instance.initiateBluetoothTerminalDeviceUpdateCheck(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('initiateKioskBluetoothPairingMode', function() { + it('should call initiateKioskBluetoothPairingMode successfully', function(done) { + //uncomment below and update the code to test initiateKioskBluetoothPairingMode + //instance.initiateKioskBluetoothPairingMode(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('initiateKioskBluetoothUpdateInstall', function() { + it('should call initiateKioskBluetoothUpdateInstall successfully', function(done) { + //uncomment below and update the code to test initiateKioskBluetoothUpdateInstall + //instance.initiateKioskBluetoothUpdateInstall(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('initiateReaderProcessPaymentIntent', function() { + it('should call initiateReaderProcessPaymentIntent successfully', function(done) { + //uncomment below and update the code to test initiateReaderProcessPaymentIntent + //instance.initiateReaderProcessPaymentIntent(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('registerStripeTerminal', function() { + it('should call registerStripeTerminal successfully', function(done) { + //uncomment below and update the code to test registerStripeTerminal + //instance.registerStripeTerminal(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unRegisterTerminal', function() { + it('should call unRegisterTerminal successfully', function(done) { + //uncomment below and update the code to test unRegisterTerminal + //instance.unRegisterTerminal(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unpairCurrentlyPairedBluetoothDevice', function() { + it('should call unpairCurrentlyPairedBluetoothDevice successfully', function(done) { + //uncomment below and update the code to test unpairCurrentlyPairedBluetoothDevice + //instance.unpairCurrentlyPairedBluetoothDevice(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CatalogChangesApi.spec.js b/test/api/CatalogChangesApi.spec.js new file mode 100644 index 00000000..93e9b5d6 --- /dev/null +++ b/test/api/CatalogChangesApi.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogChangesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogChangesApi', function() { + describe('getPendingMenuChanges', function() { + it('should call getPendingMenuChanges successfully', function(done) { + //uncomment below and update the code to test getPendingMenuChanges + //instance.getPendingMenuChanges(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPendingMenuChangesSummaries', function() { + it('should call getPendingMenuChangesSummaries successfully', function(done) { + //uncomment below and update the code to test getPendingMenuChangesSummaries + //instance.getPendingMenuChangesSummaries(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('publishPendingMenuChanges', function() { + it('should call publishPendingMenuChanges successfully', function(done) { + //uncomment below and update the code to test publishPendingMenuChanges + //instance.publishPendingMenuChanges(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CatalogGroupsApi.spec.js b/test/api/CatalogGroupsApi.spec.js new file mode 100644 index 00000000..0b3c8cff --- /dev/null +++ b/test/api/CatalogGroupsApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogGroupsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogGroupsApi', function() { + describe('archiveGroup', function() { + it('should call archiveGroup successfully', function(done) { + //uncomment below and update the code to test archiveGroup + //instance.archiveGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createGroup', function() { + it('should call createGroup successfully', function(done) { + //uncomment below and update the code to test createGroup + //instance.createGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('duplicateGroup', function() { + it('should call duplicateGroup successfully', function(done) { + //uncomment below and update the code to test duplicateGroup + //instance.duplicateGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getGroupById', function() { + it('should call getGroupById successfully', function(done) { + //uncomment below and update the code to test getGroupById + //instance.getGroupById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getGroups', function() { + it('should call getGroups successfully', function(done) { + //uncomment below and update the code to test getGroups + //instance.getGroups(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateGroup', function() { + it('should call updateGroup successfully', function(done) { + //uncomment below and update the code to test updateGroup + //instance.updateGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CatalogImagesApi.spec.js b/test/api/CatalogImagesApi.spec.js new file mode 100644 index 00000000..bee99b8c --- /dev/null +++ b/test/api/CatalogImagesApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogImagesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogImagesApi', function() { + describe('uploadCatalogImage', function() { + it('should call uploadCatalogImage successfully', function(done) { + //uncomment below and update the code to test uploadCatalogImage + //instance.uploadCatalogImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CatalogItemsApi.spec.js b/test/api/CatalogItemsApi.spec.js new file mode 100644 index 00000000..3acea5be --- /dev/null +++ b/test/api/CatalogItemsApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogItemsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogItemsApi', function() { + describe('archiveCatalogItem', function() { + it('should call archiveCatalogItem successfully', function(done) { + //uncomment below and update the code to test archiveCatalogItem + //instance.archiveCatalogItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createCatalogItem', function() { + it('should call createCatalogItem successfully', function(done) { + //uncomment below and update the code to test createCatalogItem + //instance.createCatalogItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('duplicateCatalogItem', function() { + it('should call duplicateCatalogItem successfully', function(done) { + //uncomment below and update the code to test duplicateCatalogItem + //instance.duplicateCatalogItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCatalogItemById', function() { + it('should call getCatalogItemById successfully', function(done) { + //uncomment below and update the code to test getCatalogItemById + //instance.getCatalogItemById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getItems', function() { + it('should call getItems successfully', function(done) { + //uncomment below and update the code to test getItems + //instance.getItems(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateCatalogItem', function() { + it('should call updateCatalogItem successfully', function(done) { + //uncomment below and update the code to test updateCatalogItem + //instance.updateCatalogItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CatalogProductsApi.spec.js b/test/api/CatalogProductsApi.spec.js new file mode 100644 index 00000000..2dab50f8 --- /dev/null +++ b/test/api/CatalogProductsApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogProductsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogProductsApi', function() { + describe('archiveProduct', function() { + it('should call archiveProduct successfully', function(done) { + //uncomment below and update the code to test archiveProduct + //instance.archiveProduct(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createProduct', function() { + it('should call createProduct successfully', function(done) { + //uncomment below and update the code to test createProduct + //instance.createProduct(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('duplicateProduct', function() { + it('should call duplicateProduct successfully', function(done) { + //uncomment below and update the code to test duplicateProduct + //instance.duplicateProduct(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getProductById', function() { + it('should call getProductById successfully', function(done) { + //uncomment below and update the code to test getProductById + //instance.getProductById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getProducts', function() { + it('should call getProducts successfully', function(done) { + //uncomment below and update the code to test getProducts + //instance.getProducts(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateProduct', function() { + it('should call updateProduct successfully', function(done) { + //uncomment below and update the code to test updateProduct + //instance.updateProduct(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ChannelsApi.spec.js b/test/api/ChannelsApi.spec.js new file mode 100644 index 00000000..0ff1ca53 --- /dev/null +++ b/test/api/ChannelsApi.spec.js @@ -0,0 +1,173 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ChannelsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ChannelsApi', function() { + describe('assignAppIdToSalesChannel', function() { + it('should call assignAppIdToSalesChannel successfully', function(done) { + //uncomment below and update the code to test assignAppIdToSalesChannel + //instance.assignAppIdToSalesChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('assignStoreToChannel', function() { + it('should call assignStoreToChannel successfully', function(done) { + //uncomment below and update the code to test assignStoreToChannel + //instance.assignStoreToChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('attachStoreToSalesChannel', function() { + it('should call attachStoreToSalesChannel successfully', function(done) { + //uncomment below and update the code to test attachStoreToSalesChannel + //instance.attachStoreToSalesChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('detachAllStoresFromSalesChannel', function() { + it('should call detachAllStoresFromSalesChannel successfully', function(done) { + //uncomment below and update the code to test detachAllStoresFromSalesChannel + //instance.detachAllStoresFromSalesChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('detachStoreFromSalesChannel', function() { + it('should call detachStoreFromSalesChannel successfully', function(done) { + //uncomment below and update the code to test detachStoreFromSalesChannel + //instance.detachStoreFromSalesChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAssignedChannels', function() { + it('should call getAssignedChannels successfully', function(done) { + //uncomment below and update the code to test getAssignedChannels + //instance.getAssignedChannels(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAvailableChannels', function() { + it('should call getAvailableChannels successfully', function(done) { + //uncomment below and update the code to test getAvailableChannels + //instance.getAvailableChannels(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getChannel', function() { + it('should call getChannel successfully', function(done) { + //uncomment below and update the code to test getChannel + //instance.getChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getChannels', function() { + it('should call getChannels successfully', function(done) { + //uncomment below and update the code to test getChannels + //instance.getChannels(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoresAssignedToChannel', function() { + it('should call getStoresAssignedToChannel successfully', function(done) { + //uncomment below and update the code to test getStoresAssignedToChannel + //instance.getStoresAssignedToChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoresBySalesChannel', function() { + it('should call getStoresBySalesChannel successfully', function(done) { + //uncomment below and update the code to test getStoresBySalesChannel + //instance.getStoresBySalesChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unassignStoreFromChannel', function() { + it('should call unassignStoreFromChannel successfully', function(done) { + //uncomment below and update the code to test unassignStoreFromChannel + //instance.unassignStoreFromChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ClientsApi.spec.js b/test/api/ClientsApi.spec.js new file mode 100644 index 00000000..63d6d599 --- /dev/null +++ b/test/api/ClientsApi.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ClientsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClientsApi', function() { + describe('getClient', function() { + it('should call getClient successfully', function(done) { + //uncomment below and update the code to test getClient + //instance.getClient(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setSalesForceContactId', function() { + it('should call setSalesForceContactId successfully', function(done) { + //uncomment below and update the code to test setSalesForceContactId + //instance.setSalesForceContactId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setStripeCustomerId', function() { + it('should call setStripeCustomerId successfully', function(done) { + //uncomment below and update the code to test setStripeCustomerId + //instance.setStripeCustomerId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ContentSecurityPolicyApi.spec.js b/test/api/ContentSecurityPolicyApi.spec.js new file mode 100644 index 00000000..cdcf375c --- /dev/null +++ b/test/api/ContentSecurityPolicyApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ContentSecurityPolicyApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ContentSecurityPolicyApi', function() { + describe('contentSecurityPolicyReport', function() { + it('should call contentSecurityPolicyReport successfully', function(done) { + //uncomment below and update the code to test contentSecurityPolicyReport + //instance.contentSecurityPolicyReport(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CrossSellApi.spec.js b/test/api/CrossSellApi.spec.js new file mode 100644 index 00000000..9a8f763f --- /dev/null +++ b/test/api/CrossSellApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CrossSellApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CrossSellApi', function() { + describe('getCrossSellMenuItems', function() { + it('should call getCrossSellMenuItems successfully', function(done) { + //uncomment below and update the code to test getCrossSellMenuItems + //instance.getCrossSellMenuItems(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CustomersApi.spec.js b/test/api/CustomersApi.spec.js new file mode 100644 index 00000000..48e11dca --- /dev/null +++ b/test/api/CustomersApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomersApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomersApi', function() { + describe('createCustomer', function() { + it('should call createCustomer successfully', function(done) { + //uncomment below and update the code to test createCustomer + //instance.createCustomer(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCustomerById', function() { + it('should call getCustomerById successfully', function(done) { + //uncomment below and update the code to test getCustomerById + //instance.getCustomerById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCustomers', function() { + it('should call getCustomers successfully', function(done) { + //uncomment below and update the code to test getCustomers + //instance.getCustomers(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateCustomerById', function() { + it('should call updateCustomerById successfully', function(done) { + //uncomment below and update the code to test updateCustomerById + //instance.updateCustomerById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DeliveryZoneApi.spec.js b/test/api/DeliveryZoneApi.spec.js new file mode 100644 index 00000000..878ce4c6 --- /dev/null +++ b/test/api/DeliveryZoneApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryZoneApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeliveryZoneApi', function() { + describe('addDeliveryZone', function() { + it('should call addDeliveryZone successfully', function(done) { + //uncomment below and update the code to test addDeliveryZone + //instance.addDeliveryZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDeliveryZones', function() { + it('should call getDeliveryZones successfully', function(done) { + //uncomment below and update the code to test getDeliveryZones + //instance.getDeliveryZones(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('removeDeliveryZone', function() { + it('should call removeDeliveryZone successfully', function(done) { + //uncomment below and update the code to test removeDeliveryZone + //instance.removeDeliveryZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateDeliveryZone', function() { + it('should call updateDeliveryZone successfully', function(done) { + //uncomment below and update the code to test updateDeliveryZone + //instance.updateDeliveryZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DeviceApi.spec.js b/test/api/DeviceApi.spec.js new file mode 100644 index 00000000..2d078792 --- /dev/null +++ b/test/api/DeviceApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeviceApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeviceApi', function() { + describe('assignDevice', function() { + it('should call assignDevice successfully', function(done) { + //uncomment below and update the code to test assignDevice + //instance.assignDevice(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('enrollDevice', function() { + it('should call enrollDevice successfully', function(done) { + //uncomment below and update the code to test enrollDevice + //instance.enrollDevice(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDeviceDetails', function() { + it('should call getDeviceDetails successfully', function(done) { + //uncomment below and update the code to test getDeviceDetails + //instance.getDeviceDetails(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('searchDevices', function() { + it('should call searchDevices successfully', function(done) { + //uncomment below and update the code to test searchDevices + //instance.searchDevices(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DriversApi.spec.js b/test/api/DriversApi.spec.js new file mode 100644 index 00000000..4d87c09e --- /dev/null +++ b/test/api/DriversApi.spec.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DriversApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DriversApi', function() { + describe('driversAddDriverNotificationToken', function() { + it('should call driversAddDriverNotificationToken successfully', function(done) { + //uncomment below and update the code to test driversAddDriverNotificationToken + //instance.driversAddDriverNotificationToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversDeleteDriverProfileImage', function() { + it('should call driversDeleteDriverProfileImage successfully', function(done) { + //uncomment below and update the code to test driversDeleteDriverProfileImage + //instance.driversDeleteDriverProfileImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversDriverLogin', function() { + it('should call driversDriverLogin successfully', function(done) { + //uncomment below and update the code to test driversDriverLogin + //instance.driversDriverLogin(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversDriverRequestLoginCodeSms', function() { + it('should call driversDriverRequestLoginCodeSms successfully', function(done) { + //uncomment below and update the code to test driversDriverRequestLoginCodeSms + //instance.driversDriverRequestLoginCodeSms(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversGetDriverProfile', function() { + it('should call driversGetDriverProfile successfully', function(done) { + //uncomment below and update the code to test driversGetDriverProfile + //instance.driversGetDriverProfile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversGetStoresForDriver', function() { + it('should call driversGetStoresForDriver successfully', function(done) { + //uncomment below and update the code to test driversGetStoresForDriver + //instance.driversGetStoresForDriver(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversRemoveDriverNotificationToken', function() { + it('should call driversRemoveDriverNotificationToken successfully', function(done) { + //uncomment below and update the code to test driversRemoveDriverNotificationToken + //instance.driversRemoveDriverNotificationToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversSetDriverPresenceForStore', function() { + it('should call driversSetDriverPresenceForStore successfully', function(done) { + //uncomment below and update the code to test driversSetDriverPresenceForStore + //instance.driversSetDriverPresenceForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversSetDriverProfileImage', function() { + it('should call driversSetDriverProfileImage successfully', function(done) { + //uncomment below and update the code to test driversSetDriverProfileImage + //instance.driversSetDriverProfileImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversUpdateDeliveryTrackingStatus', function() { + it('should call driversUpdateDeliveryTrackingStatus successfully', function(done) { + //uncomment below and update the code to test driversUpdateDeliveryTrackingStatus + //instance.driversUpdateDeliveryTrackingStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('driversUpdateDriverProfile', function() { + it('should call driversUpdateDriverProfile successfully', function(done) { + //uncomment below and update the code to test driversUpdateDriverProfile + //instance.driversUpdateDriverProfile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/EventsApi.spec.js b/test/api/EventsApi.spec.js new file mode 100644 index 00000000..05b8db11 --- /dev/null +++ b/test/api/EventsApi.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.EventsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EventsApi', function() { + describe('getCustomerEvents', function() { + it('should call getCustomerEvents successfully', function(done) { + //uncomment below and update the code to test getCustomerEvents + //instance.getCustomerEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getEvents', function() { + it('should call getEvents successfully', function(done) { + //uncomment below and update the code to test getEvents + //instance.getEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getEventsById', function() { + it('should call getEventsById successfully', function(done) { + //uncomment below and update the code to test getEventsById + //instance.getEventsById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuEvents', function() { + it('should call getMenuEvents successfully', function(done) { + //uncomment below and update the code to test getMenuEvents + //instance.getMenuEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrderEvents', function() { + it('should call getOrderEvents successfully', function(done) { + //uncomment below and update the code to test getOrderEvents + //instance.getOrderEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrderEventsByCustomer', function() { + it('should call getOrderEventsByCustomer successfully', function(done) { + //uncomment below and update the code to test getOrderEventsByCustomer + //instance.getOrderEventsByCustomer(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreEvents', function() { + it('should call getStoreEvents successfully', function(done) { + //uncomment below and update the code to test getStoreEvents + //instance.getStoreEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getUserEvents', function() { + it('should call getUserEvents successfully', function(done) { + //uncomment below and update the code to test getUserEvents + //instance.getUserEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getWhiteLabelEvents', function() { + it('should call getWhiteLabelEvents successfully', function(done) { + //uncomment below and update the code to test getWhiteLabelEvents + //instance.getWhiteLabelEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/FeaturesApi.spec.js b/test/api/FeaturesApi.spec.js new file mode 100644 index 00000000..b5f2bf85 --- /dev/null +++ b/test/api/FeaturesApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FeaturesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FeaturesApi', function() { + describe('disableFeatures', function() { + it('should call disableFeatures successfully', function(done) { + //uncomment below and update the code to test disableFeatures + //instance.disableFeatures(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('enableFeatures', function() { + it('should call enableFeatures successfully', function(done) { + //uncomment below and update the code to test enableFeatures + //instance.enableFeatures(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/FilesApi.spec.js b/test/api/FilesApi.spec.js new file mode 100644 index 00000000..69813831 --- /dev/null +++ b/test/api/FilesApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FilesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FilesApi', function() { + describe('downloadFile', function() { + it('should call downloadFile successfully', function(done) { + //uncomment below and update the code to test downloadFile + //instance.downloadFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/FirebaseAppsApi.spec.js b/test/api/FirebaseAppsApi.spec.js new file mode 100644 index 00000000..ff21b36a --- /dev/null +++ b/test/api/FirebaseAppsApi.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FirebaseAppsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FirebaseAppsApi', function() { + describe('firebaseAppsAddFirebaseApp', function() { + it('should call firebaseAppsAddFirebaseApp successfully', function(done) { + //uncomment below and update the code to test firebaseAppsAddFirebaseApp + //instance.firebaseAppsAddFirebaseApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('firebaseAppsDeleteFirebaseApp', function() { + it('should call firebaseAppsDeleteFirebaseApp successfully', function(done) { + //uncomment below and update the code to test firebaseAppsDeleteFirebaseApp + //instance.firebaseAppsDeleteFirebaseApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('firebaseAppsGetFirebaseApp', function() { + it('should call firebaseAppsGetFirebaseApp successfully', function(done) { + //uncomment below and update the code to test firebaseAppsGetFirebaseApp + //instance.firebaseAppsGetFirebaseApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/FpmApi.spec.js b/test/api/FpmApi.spec.js new file mode 100644 index 00000000..d0005108 --- /dev/null +++ b/test/api/FpmApi.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FpmApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FpmApi', function() { + describe('createFpmForStore', function() { + it('should call createFpmForStore successfully', function(done) { + //uncomment below and update the code to test createFpmForStore + //instance.createFpmForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('editFpmForStore', function() { + it('should call editFpmForStore successfully', function(done) { + //uncomment below and update the code to test editFpmForStore + //instance.editFpmForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFpmForStore', function() { + it('should call getFpmForStore successfully', function(done) { + //uncomment below and update the code to test getFpmForStore + //instance.getFpmForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/FulfillmentStateConfigurationApi.spec.js b/test/api/FulfillmentStateConfigurationApi.spec.js new file mode 100644 index 00000000..574e24bb --- /dev/null +++ b/test/api/FulfillmentStateConfigurationApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FulfillmentStateConfigurationApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FulfillmentStateConfigurationApi', function() { + describe('createFulfillmentStatesConfig', function() { + it('should call createFulfillmentStatesConfig successfully', function(done) { + //uncomment below and update the code to test createFulfillmentStatesConfig + //instance.createFulfillmentStatesConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteFulfillmentStatesConfig', function() { + it('should call deleteFulfillmentStatesConfig successfully', function(done) { + //uncomment below and update the code to test deleteFulfillmentStatesConfig + //instance.deleteFulfillmentStatesConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFulfillmentStatesConfiguration', function() { + it('should call getFulfillmentStatesConfiguration successfully', function(done) { + //uncomment below and update the code to test getFulfillmentStatesConfiguration + //instance.getFulfillmentStatesConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFulfillmentStatesConfigurationTemplate', function() { + it('should call getFulfillmentStatesConfigurationTemplate successfully', function(done) { + //uncomment below and update the code to test getFulfillmentStatesConfigurationTemplate + //instance.getFulfillmentStatesConfigurationTemplate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('searchFulfillmentStatesConfigurations', function() { + it('should call searchFulfillmentStatesConfigurations successfully', function(done) { + //uncomment below and update the code to test searchFulfillmentStatesConfigurations + //instance.searchFulfillmentStatesConfigurations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateFulfillmentStatesConfig', function() { + it('should call updateFulfillmentStatesConfig successfully', function(done) { + //uncomment below and update the code to test updateFulfillmentStatesConfig + //instance.updateFulfillmentStatesConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/HeartbeatApi.spec.js b/test/api/HeartbeatApi.spec.js new file mode 100644 index 00000000..e2009183 --- /dev/null +++ b/test/api/HeartbeatApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HeartbeatApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HeartbeatApi', function() { + describe('headHostname', function() { + it('should call headHostname successfully', function(done) { + //uncomment below and update the code to test headHostname + //instance.headHostname(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('headPing', function() { + it('should call headPing successfully', function(done) { + //uncomment below and update the code to test headPing + //instance.headPing(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('hostname', function() { + it('should call hostname successfully', function(done) { + //uncomment below and update the code to test hostname + //instance.hostname(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('ping', function() { + it('should call ping successfully', function(done) { + //uncomment below and update the code to test ping + //instance.ping(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/HomeApi.spec.js b/test/api/HomeApi.spec.js new file mode 100644 index 00000000..2c7419df --- /dev/null +++ b/test/api/HomeApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HomeApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HomeApi', function() { + describe('completeHomeAction', function() { + it('should call completeHomeAction successfully', function(done) { + //uncomment below and update the code to test completeHomeAction + //instance.completeHomeAction(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getHomeActions', function() { + it('should call getHomeActions successfully', function(done) { + //uncomment below and update the code to test getHomeActions + //instance.getHomeActions(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getHomeStatistics', function() { + it('should call getHomeStatistics successfully', function(done) { + //uncomment below and update the code to test getHomeStatistics + //instance.getHomeStatistics(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOktaPortalFeatureFlag', function() { + it('should call getOktaPortalFeatureFlag successfully', function(done) { + //uncomment below and update the code to test getOktaPortalFeatureFlag + //instance.getOktaPortalFeatureFlag(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/HydraApi.spec.js b/test/api/HydraApi.spec.js new file mode 100644 index 00000000..167c6f66 --- /dev/null +++ b/test/api/HydraApi.spec.js @@ -0,0 +1,293 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraApi', function() { + describe('assignEmv', function() { + it('should call assignEmv successfully', function(done) { + //uncomment below and update the code to test assignEmv + //instance.assignEmv(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('attachStoreToKiosk', function() { + it('should call attachStoreToKiosk successfully', function(done) { + //uncomment below and update the code to test attachStoreToKiosk + //instance.attachStoreToKiosk(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('attachStoreToTerminal', function() { + it('should call attachStoreToTerminal successfully', function(done) { + //uncomment below and update the code to test attachStoreToTerminal + //instance.attachStoreToTerminal(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('cancelEmvPayment', function() { + it('should call cancelEmvPayment successfully', function(done) { + //uncomment below and update the code to test cancelEmvPayment + //instance.cancelEmvPayment(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('detachStoreFromTerminal', function() { + it('should call detachStoreFromTerminal successfully', function(done) { + //uncomment below and update the code to test detachStoreFromTerminal + //instance.detachStoreFromTerminal(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAblyToken', function() { + it('should call getAblyToken successfully', function(done) { + //uncomment below and update the code to test getAblyToken + //instance.getAblyToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAttachedDevice', function() { + it('should call getAttachedDevice successfully', function(done) { + //uncomment below and update the code to test getAttachedDevice + //instance.getAttachedDevice(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAttachedDevices', function() { + it('should call getAttachedDevices successfully', function(done) { + //uncomment below and update the code to test getAttachedDevices + //instance.getAttachedDevices(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getEMVTerminalDetails', function() { + it('should call getEMVTerminalDetails successfully', function(done) { + //uncomment below and update the code to test getEMVTerminalDetails + //instance.getEMVTerminalDetails(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getEmvOrderState', function() { + it('should call getEmvOrderState successfully', function(done) { + //uncomment below and update the code to test getEmvOrderState + //instance.getEmvOrderState(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getKioskCashPaymentSettings', function() { + it('should call getKioskCashPaymentSettings successfully', function(done) { + //uncomment below and update the code to test getKioskCashPaymentSettings + //instance.getKioskCashPaymentSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getKioskSettings', function() { + it('should call getKioskSettings successfully', function(done) { + //uncomment below and update the code to test getKioskSettings + //instance.getKioskSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRegistration', function() { + it('should call getRegistration successfully', function(done) { + //uncomment below and update the code to test getRegistration + //instance.getRegistration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getSettings', function() { + it('should call getSettings successfully', function(done) { + //uncomment below and update the code to test getSettings + //instance.getSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('hydraCreateEmv', function() { + it('should call hydraCreateEmv successfully', function(done) { + //uncomment below and update the code to test hydraCreateEmv + //instance.hydraCreateEmv(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('hydraDeleteEmv', function() { + it('should call hydraDeleteEmv successfully', function(done) { + //uncomment below and update the code to test hydraDeleteEmv + //instance.hydraDeleteEmv(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('hydraDetachStoreFromKiosk', function() { + it('should call hydraDetachStoreFromKiosk successfully', function(done) { + //uncomment below and update the code to test hydraDetachStoreFromKiosk + //instance.hydraDetachStoreFromKiosk(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('hydraGetEmvsForAppId', function() { + it('should call hydraGetEmvsForAppId successfully', function(done) { + //uncomment below and update the code to test hydraGetEmvsForAppId + //instance.hydraGetEmvsForAppId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('loginWithDeviceId', function() { + it('should call loginWithDeviceId successfully', function(done) { + //uncomment below and update the code to test loginWithDeviceId + //instance.loginWithDeviceId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('register', function() { + it('should call register successfully', function(done) { + //uncomment below and update the code to test register + //instance.register(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unAssign', function() { + it('should call unAssign successfully', function(done) { + //uncomment below and update the code to test unAssign + //instance.unAssign(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unassignEmv', function() { + it('should call unassignEmv successfully', function(done) { + //uncomment below and update the code to test unassignEmv + //instance.unassignEmv(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateKioskCashVisibilitySettings', function() { + it('should call updateKioskCashVisibilitySettings successfully', function(done) { + //uncomment below and update the code to test updateKioskCashVisibilitySettings + //instance.updateKioskCashVisibilitySettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateKioskSettings', function() { + it('should call updateKioskSettings successfully', function(done) { + //uncomment below and update the code to test updateKioskSettings + //instance.updateKioskSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/IntercomApi.spec.js b/test/api/IntercomApi.spec.js new file mode 100644 index 00000000..841af3f0 --- /dev/null +++ b/test/api/IntercomApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.IntercomApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('IntercomApi', function() { + describe('userHash', function() { + it('should call userHash successfully', function(done) { + //uncomment below and update the code to test userHash + //instance.userHash(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/InvoicesApi.spec.js b/test/api/InvoicesApi.spec.js new file mode 100644 index 00000000..21b591c9 --- /dev/null +++ b/test/api/InvoicesApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.InvoicesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InvoicesApi', function() { + describe('getInvoices', function() { + it('should call getInvoices successfully', function(done) { + //uncomment below and update the code to test getInvoices + //instance.getInvoices(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('invoicePdf', function() { + it('should call invoicePdf successfully', function(done) { + //uncomment below and update the code to test invoicePdf + //instance.invoicePdf(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('listInvoices', function() { + it('should call listInvoices successfully', function(done) { + //uncomment below and update the code to test listInvoices + //instance.listInvoices(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('listSubscriptionInvoices', function() { + it('should call listSubscriptionInvoices successfully', function(done) { + //uncomment below and update the code to test listSubscriptionInvoices + //instance.listSubscriptionInvoices(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/KioskEntitlementsApi.spec.js b/test/api/KioskEntitlementsApi.spec.js new file mode 100644 index 00000000..233fc0eb --- /dev/null +++ b/test/api/KioskEntitlementsApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskEntitlementsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskEntitlementsApi', function() { + describe('queryKioskEntitlementsByOrgId', function() { + it('should call queryKioskEntitlementsByOrgId successfully', function(done) { + //uncomment below and update the code to test queryKioskEntitlementsByOrgId + //instance.queryKioskEntitlementsByOrgId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/KioskIotApi.spec.js b/test/api/KioskIotApi.spec.js new file mode 100644 index 00000000..64f27304 --- /dev/null +++ b/test/api/KioskIotApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskIotApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskIotApi', function() { + describe('getKioskIotConnection', function() { + it('should call getKioskIotConnection successfully', function(done) { + //uncomment below and update the code to test getKioskIotConnection + //instance.getKioskIotConnection(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('queryTelemetrySeries', function() { + it('should call queryTelemetrySeries successfully', function(done) { + //uncomment below and update the code to test queryTelemetrySeries + //instance.queryTelemetrySeries(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/LightspeedApi.spec.js b/test/api/LightspeedApi.spec.js new file mode 100644 index 00000000..47c2539b --- /dev/null +++ b/test/api/LightspeedApi.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LightspeedApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LightspeedApi', function() { + describe('lightspeedGenerateMenu', function() { + it('should call lightspeedGenerateMenu successfully', function(done) { + //uncomment below and update the code to test lightspeedGenerateMenu + //instance.lightspeedGenerateMenu(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('lightspeedGetStoreSettings', function() { + it('should call lightspeedGetStoreSettings successfully', function(done) { + //uncomment below and update the code to test lightspeedGetStoreSettings + //instance.lightspeedGetStoreSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('lightspeedSaveStoreSettings', function() { + it('should call lightspeedSaveStoreSettings successfully', function(done) { + //uncomment below and update the code to test lightspeedSaveStoreSettings + //instance.lightspeedSaveStoreSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/LocationApi.spec.js b/test/api/LocationApi.spec.js new file mode 100644 index 00000000..6c428491 --- /dev/null +++ b/test/api/LocationApi.spec.js @@ -0,0 +1,103 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationApi', function() { + describe('createLocation', function() { + it('should call createLocation successfully', function(done) { + //uncomment below and update the code to test createLocation + //instance.createLocation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteLocation', function() { + it('should call deleteLocation successfully', function(done) { + //uncomment below and update the code to test deleteLocation + //instance.deleteLocation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('mapLocationToExternalId', function() { + it('should call mapLocationToExternalId successfully', function(done) { + //uncomment below and update the code to test mapLocationToExternalId + //instance.mapLocationToExternalId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('moveLocation', function() { + it('should call moveLocation successfully', function(done) { + //uncomment below and update the code to test moveLocation + //instance.moveLocation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateLocation', function() { + it('should call updateLocation successfully', function(done) { + //uncomment below and update the code to test updateLocation + //instance.updateLocation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/LocationAreasApi.spec.js b/test/api/LocationAreasApi.spec.js new file mode 100644 index 00000000..3ad09913 --- /dev/null +++ b/test/api/LocationAreasApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationAreasApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationAreasApi', function() { + describe('createLocationArea', function() { + it('should call createLocationArea successfully', function(done) { + //uncomment below and update the code to test createLocationArea + //instance.createLocationArea(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getLocationArea', function() { + it('should call getLocationArea successfully', function(done) { + //uncomment below and update the code to test getLocationArea + //instance.getLocationArea(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getLocationAreasForStore', function() { + it('should call getLocationAreasForStore successfully', function(done) { + //uncomment below and update the code to test getLocationAreasForStore + //instance.getLocationAreasForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateLocationArea', function() { + it('should call updateLocationArea successfully', function(done) { + //uncomment below and update the code to test updateLocationArea + //instance.updateLocationArea(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/LookerDashboardApi.spec.js b/test/api/LookerDashboardApi.spec.js new file mode 100644 index 00000000..d2dafc73 --- /dev/null +++ b/test/api/LookerDashboardApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LookerDashboardApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LookerDashboardApi', function() { + describe('lookerDashboardGetAll', function() { + it('should call lookerDashboardGetAll successfully', function(done) { + //uncomment below and update the code to test lookerDashboardGetAll + //instance.lookerDashboardGetAll(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/LookerSingleSignOnApi.spec.js b/test/api/LookerSingleSignOnApi.spec.js new file mode 100644 index 00000000..990b6723 --- /dev/null +++ b/test/api/LookerSingleSignOnApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LookerSingleSignOnApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LookerSingleSignOnApi', function() { + describe('getSSOEndpoint', function() { + it('should call getSSOEndpoint successfully', function(done) { + //uncomment below and update the code to test getSSOEndpoint + //instance.getSSOEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenuOptionSetItemsApi.spec.js b/test/api/MenuOptionSetItemsApi.spec.js new file mode 100644 index 00000000..da207c76 --- /dev/null +++ b/test/api/MenuOptionSetItemsApi.spec.js @@ -0,0 +1,133 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuOptionSetItemsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuOptionSetItemsApi', function() { + describe('addMenuItemOptionSetItem', function() { + it('should call addMenuItemOptionSetItem successfully', function(done) { + //uncomment below and update the code to test addMenuItemOptionSetItem + //instance.addMenuItemOptionSetItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteOptionSetItemImage', function() { + it('should call deleteOptionSetItemImage successfully', function(done) { + //uncomment below and update the code to test deleteOptionSetItemImage + //instance.deleteOptionSetItemImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemOptionSetItemById', function() { + it('should call getMenuItemOptionSetItemById successfully', function(done) { + //uncomment below and update the code to test getMenuItemOptionSetItemById + //instance.getMenuItemOptionSetItemById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemOptionSetItems', function() { + it('should call getMenuItemOptionSetItems successfully', function(done) { + //uncomment below and update the code to test getMenuItemOptionSetItems + //instance.getMenuItemOptionSetItems(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('removeMenuItemOptionSetItem', function() { + it('should call removeMenuItemOptionSetItem successfully', function(done) { + //uncomment below and update the code to test removeMenuItemOptionSetItem + //instance.removeMenuItemOptionSetItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setOptionSetItemTax', function() { + it('should call setOptionSetItemTax successfully', function(done) { + //uncomment below and update the code to test setOptionSetItemTax + //instance.setOptionSetItemTax(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateMenuItemOptionSetItem', function() { + it('should call updateMenuItemOptionSetItem successfully', function(done) { + //uncomment below and update the code to test updateMenuItemOptionSetItem + //instance.updateMenuItemOptionSetItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadOptionSetItemImage', function() { + it('should call uploadOptionSetItemImage successfully', function(done) { + //uncomment below and update the code to test uploadOptionSetItemImage + //instance.uploadOptionSetItemImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenuOptionSetsApi.spec.js b/test/api/MenuOptionSetsApi.spec.js new file mode 100644 index 00000000..a89ef1f9 --- /dev/null +++ b/test/api/MenuOptionSetsApi.spec.js @@ -0,0 +1,123 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuOptionSetsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuOptionSetsApi', function() { + describe('createMenuItemOptionSet', function() { + it('should call createMenuItemOptionSet successfully', function(done) { + //uncomment below and update the code to test createMenuItemOptionSet + //instance.createMenuItemOptionSet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuItemOptionSet', function() { + it('should call deleteMenuItemOptionSet successfully', function(done) { + //uncomment below and update the code to test deleteMenuItemOptionSet + //instance.deleteMenuItemOptionSet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteOptionSetImage', function() { + it('should call deleteOptionSetImage successfully', function(done) { + //uncomment below and update the code to test deleteOptionSetImage + //instance.deleteOptionSetImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemOptionSetById', function() { + it('should call getMenuItemOptionSetById successfully', function(done) { + //uncomment below and update the code to test getMenuItemOptionSetById + //instance.getMenuItemOptionSetById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemOptionSets', function() { + it('should call getMenuItemOptionSets successfully', function(done) { + //uncomment below and update the code to test getMenuItemOptionSets + //instance.getMenuItemOptionSets(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateMenuItemOptionSet', function() { + it('should call updateMenuItemOptionSet successfully', function(done) { + //uncomment below and update the code to test updateMenuItemOptionSet + //instance.updateMenuItemOptionSet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadOptionSetImage', function() { + it('should call uploadOptionSetImage successfully', function(done) { + //uncomment below and update the code to test uploadOptionSetImage + //instance.uploadOptionSetImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenuSectionItemsApi.spec.js b/test/api/MenuSectionItemsApi.spec.js new file mode 100644 index 00000000..d3569e9a --- /dev/null +++ b/test/api/MenuSectionItemsApi.spec.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionItemsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionItemsApi', function() { + describe('cloneMenuSectionItem', function() { + it('should call cloneMenuSectionItem successfully', function(done) { + //uncomment below and update the code to test cloneMenuSectionItem + //instance.cloneMenuSectionItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createMenuSectionItem', function() { + it('should call createMenuSectionItem successfully', function(done) { + //uncomment below and update the code to test createMenuSectionItem + //instance.createMenuSectionItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createMenuSectionItemFromCatalogItems', function() { + it('should call createMenuSectionItemFromCatalogItems successfully', function(done) { + //uncomment below and update the code to test createMenuSectionItemFromCatalogItems + //instance.createMenuSectionItemFromCatalogItems(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuSectionItem', function() { + it('should call deleteMenuSectionItem successfully', function(done) { + //uncomment below and update the code to test deleteMenuSectionItem + //instance.deleteMenuSectionItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuSectionItemImage', function() { + it('should call deleteMenuSectionItemImage successfully', function(done) { + //uncomment below and update the code to test deleteMenuSectionItemImage + //instance.deleteMenuSectionItemImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemById', function() { + it('should call getMenuItemById successfully', function(done) { + //uncomment below and update the code to test getMenuItemById + //instance.getMenuItemById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItems', function() { + it('should call getMenuItems successfully', function(done) { + //uncomment below and update the code to test getMenuItems + //instance.getMenuItems(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('moveMenuItem', function() { + it('should call moveMenuItem successfully', function(done) { + //uncomment below and update the code to test moveMenuItem + //instance.moveMenuItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setSectionItemTax', function() { + it('should call setSectionItemTax successfully', function(done) { + //uncomment below and update the code to test setSectionItemTax + //instance.setSectionItemTax(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateMenuSectionItem', function() { + it('should call updateMenuSectionItem successfully', function(done) { + //uncomment below and update the code to test updateMenuSectionItem + //instance.updateMenuSectionItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadMenuSectionItemImage', function() { + it('should call uploadMenuSectionItemImage successfully', function(done) { + //uncomment below and update the code to test uploadMenuSectionItemImage + //instance.uploadMenuSectionItemImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenuSectionsApi.spec.js b/test/api/MenuSectionsApi.spec.js new file mode 100644 index 00000000..d2a65084 --- /dev/null +++ b/test/api/MenuSectionsApi.spec.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionsApi', function() { + describe('cloneMenuSection', function() { + it('should call cloneMenuSection successfully', function(done) { + //uncomment below and update the code to test cloneMenuSection + //instance.cloneMenuSection(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createMenuAvailabilityForDay', function() { + it('should call createMenuAvailabilityForDay successfully', function(done) { + //uncomment below and update the code to test createMenuAvailabilityForDay + //instance.createMenuAvailabilityForDay(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createMenuSection', function() { + it('should call createMenuSection successfully', function(done) { + //uncomment below and update the code to test createMenuSection + //instance.createMenuSection(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createMenuSectionAvailability', function() { + it('should call createMenuSectionAvailability successfully', function(done) { + //uncomment below and update the code to test createMenuSectionAvailability + //instance.createMenuSectionAvailability(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuSection', function() { + it('should call deleteMenuSection successfully', function(done) { + //uncomment below and update the code to test deleteMenuSection + //instance.deleteMenuSection(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuSectionImage', function() { + it('should call deleteMenuSectionImage successfully', function(done) { + //uncomment below and update the code to test deleteMenuSectionImage + //instance.deleteMenuSectionImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuSectionById', function() { + it('should call getMenuSectionById successfully', function(done) { + //uncomment below and update the code to test getMenuSectionById + //instance.getMenuSectionById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuSections', function() { + it('should call getMenuSections successfully', function(done) { + //uncomment below and update the code to test getMenuSections + //instance.getMenuSections(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menuSectionsSetItemDisplayOrders', function() { + it('should call menuSectionsSetItemDisplayOrders successfully', function(done) { + //uncomment below and update the code to test menuSectionsSetItemDisplayOrders + //instance.menuSectionsSetItemDisplayOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateMenuSection', function() { + it('should call updateMenuSection successfully', function(done) { + //uncomment below and update the code to test updateMenuSection + //instance.updateMenuSection(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadMenuSectionImage', function() { + it('should call uploadMenuSectionImage successfully', function(done) { + //uncomment below and update the code to test uploadMenuSectionImage + //instance.uploadMenuSectionImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenuZonesApi.spec.js b/test/api/MenuZonesApi.spec.js new file mode 100644 index 00000000..29271c06 --- /dev/null +++ b/test/api/MenuZonesApi.spec.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuZonesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuZonesApi', function() { + describe('addMenuZone', function() { + it('should call addMenuZone successfully', function(done) { + //uncomment below and update the code to test addMenuZone + //instance.addMenuZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuZone', function() { + it('should call deleteMenuZone successfully', function(done) { + //uncomment below and update the code to test deleteMenuZone + //instance.deleteMenuZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuZoneImage', function() { + it('should call deleteMenuZoneImage successfully', function(done) { + //uncomment below and update the code to test deleteMenuZoneImage + //instance.deleteMenuZoneImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('flipMenuZones', function() { + it('should call flipMenuZones successfully', function(done) { + //uncomment below and update the code to test flipMenuZones + //instance.flipMenuZones(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuZone', function() { + it('should call getMenuZone successfully', function(done) { + //uncomment below and update the code to test getMenuZone + //instance.getMenuZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuZonesForMenuId', function() { + it('should call getMenuZonesForMenuId successfully', function(done) { + //uncomment below and update the code to test getMenuZonesForMenuId + //instance.getMenuZonesForMenuId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setMenuSectionMenuZone', function() { + it('should call setMenuSectionMenuZone successfully', function(done) { + //uncomment below and update the code to test setMenuSectionMenuZone + //instance.setMenuSectionMenuZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setMenuZoneDescription', function() { + it('should call setMenuZoneDescription successfully', function(done) { + //uncomment below and update the code to test setMenuZoneDescription + //instance.setMenuZoneDescription(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setMenuZoneName', function() { + it('should call setMenuZoneName successfully', function(done) { + //uncomment below and update the code to test setMenuZoneName + //instance.setMenuZoneName(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateMenuZone', function() { + it('should call updateMenuZone successfully', function(done) { + //uncomment below and update the code to test updateMenuZone + //instance.updateMenuZone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadMenuZoneImage', function() { + it('should call uploadMenuZoneImage successfully', function(done) { + //uncomment below and update the code to test uploadMenuZoneImage + //instance.uploadMenuZoneImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenusApi.spec.js b/test/api/MenusApi.spec.js new file mode 100644 index 00000000..71d9f2d1 --- /dev/null +++ b/test/api/MenusApi.spec.js @@ -0,0 +1,393 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenusApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenusApi', function() { + describe('createDraftMenuFromExistingMenu', function() { + it('should call createDraftMenuFromExistingMenu successfully', function(done) { + //uncomment below and update the code to test createDraftMenuFromExistingMenu + //instance.createDraftMenuFromExistingMenu(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createNewMenuAsync', function() { + it('should call createNewMenuAsync successfully', function(done) { + //uncomment below and update the code to test createNewMenuAsync + //instance.createNewMenuAsync(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createNewMenuForApp', function() { + it('should call createNewMenuForApp successfully', function(done) { + //uncomment below and update the code to test createNewMenuForApp + //instance.createNewMenuForApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenu', function() { + it('should call deleteMenu successfully', function(done) { + //uncomment below and update the code to test deleteMenu + //instance.deleteMenu(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuImage', function() { + it('should call deleteMenuImage successfully', function(done) { + //uncomment below and update the code to test deleteMenuImage + //instance.deleteMenuImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuItemMetadata', function() { + it('should call deleteMenuItemMetadata successfully', function(done) { + //uncomment below and update the code to test deleteMenuItemMetadata + //instance.deleteMenuItemMetadata(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAllMenuMetadataByMenuIdAndStoreId', function() { + it('should call getAllMenuMetadataByMenuIdAndStoreId successfully', function(done) { + //uncomment below and update the code to test getAllMenuMetadataByMenuIdAndStoreId + //instance.getAllMenuMetadataByMenuIdAndStoreId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuById', function() { + it('should call getMenuById successfully', function(done) { + //uncomment below and update the code to test getMenuById + //instance.getMenuById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemMetadata', function() { + it('should call getMenuItemMetadata successfully', function(done) { + //uncomment below and update the code to test getMenuItemMetadata + //instance.getMenuItemMetadata(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemMetadataByKey', function() { + it('should call getMenuItemMetadataByKey successfully', function(done) { + //uncomment below and update the code to test getMenuItemMetadataByKey + //instance.getMenuItemMetadataByKey(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuItemOptionSetItemMetadata', function() { + it('should call getMenuItemOptionSetItemMetadata successfully', function(done) { + //uncomment below and update the code to test getMenuItemOptionSetItemMetadata + //instance.getMenuItemOptionSetItemMetadata(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuName', function() { + it('should call getMenuName successfully', function(done) { + //uncomment below and update the code to test getMenuName + //instance.getMenuName(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuStoreNames', function() { + it('should call getMenuStoreNames successfully', function(done) { + //uncomment below and update the code to test getMenuStoreNames + //instance.getMenuStoreNames(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuTaxDetails', function() { + it('should call getMenuTaxDetails successfully', function(done) { + //uncomment below and update the code to test getMenuTaxDetails + //instance.getMenuTaxDetails(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenusByAppId', function() { + it('should call getMenusByAppId successfully', function(done) { + //uncomment below and update the code to test getMenusByAppId + //instance.getMenusByAppId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenusCheckpoints', function() { + it('should call getMenusCheckpoints successfully', function(done) { + //uncomment below and update the code to test getMenusCheckpoints + //instance.getMenusCheckpoints(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusDeleteTaxRate', function() { + it('should call menusDeleteTaxRate successfully', function(done) { + //uncomment below and update the code to test menusDeleteTaxRate + //instance.menusDeleteTaxRate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusGetMenuBulkShowHide', function() { + it('should call menusGetMenuBulkShowHide successfully', function(done) { + //uncomment below and update the code to test menusGetMenuBulkShowHide + //instance.menusGetMenuBulkShowHide(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusIsWhiteLabelMigratedToRms', function() { + it('should call menusIsWhiteLabelMigratedToRms successfully', function(done) { + //uncomment below and update the code to test menusIsWhiteLabelMigratedToRms + //instance.menusIsWhiteLabelMigratedToRms(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusMarkWhiteLabelAsMigratedToRms', function() { + it('should call menusMarkWhiteLabelAsMigratedToRms successfully', function(done) { + //uncomment below and update the code to test menusMarkWhiteLabelAsMigratedToRms + //instance.menusMarkWhiteLabelAsMigratedToRms(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusMarkWhiteLabelAsNotMigratedToRms', function() { + it('should call menusMarkWhiteLabelAsNotMigratedToRms successfully', function(done) { + //uncomment below and update the code to test menusMarkWhiteLabelAsNotMigratedToRms + //instance.menusMarkWhiteLabelAsNotMigratedToRms(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusSetDisplayOnMenuTax', function() { + it('should call menusSetDisplayOnMenuTax successfully', function(done) { + //uncomment below and update the code to test menusSetDisplayOnMenuTax + //instance.menusSetDisplayOnMenuTax(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusSetItemDisplayOrders', function() { + it('should call menusSetItemDisplayOrders successfully', function(done) { + //uncomment below and update the code to test menusSetItemDisplayOrders + //instance.menusSetItemDisplayOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusShowHideBulkItems', function() { + it('should call menusShowHideBulkItems successfully', function(done) { + //uncomment below and update the code to test menusShowHideBulkItems + //instance.menusShowHideBulkItems(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusUpdateTaxType', function() { + it('should call menusUpdateTaxType successfully', function(done) { + //uncomment below and update the code to test menusUpdateTaxType + //instance.menusUpdateTaxType(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('menusUpsertTaxRate', function() { + it('should call menusUpsertTaxRate successfully', function(done) { + //uncomment below and update the code to test menusUpsertTaxRate + //instance.menusUpsertTaxRate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('restoreAMenuCheckpoint', function() { + it('should call restoreAMenuCheckpoint successfully', function(done) { + //uncomment below and update the code to test restoreAMenuCheckpoint + //instance.restoreAMenuCheckpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setMenuItemMetadata', function() { + it('should call setMenuItemMetadata successfully', function(done) { + //uncomment below and update the code to test setMenuItemMetadata + //instance.setMenuItemMetadata(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setMenuItemOptionSetItemMetadata', function() { + it('should call setMenuItemOptionSetItemMetadata successfully', function(done) { + //uncomment below and update the code to test setMenuItemOptionSetItemMetadata + //instance.setMenuItemOptionSetItemMetadata(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setMenuLock', function() { + it('should call setMenuLock successfully', function(done) { + //uncomment below and update the code to test setMenuLock + //instance.setMenuLock(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setMenuName', function() { + it('should call setMenuName successfully', function(done) { + //uncomment below and update the code to test setMenuName + //instance.setMenuName(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateMenu', function() { + it('should call updateMenu successfully', function(done) { + //uncomment below and update the code to test updateMenu + //instance.updateMenu(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadMenuImage', function() { + it('should call uploadMenuImage successfully', function(done) { + //uncomment below and update the code to test uploadMenuImage + //instance.uploadMenuImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadNewMenuForApp', function() { + it('should call uploadNewMenuForApp successfully', function(done) { + //uncomment below and update the code to test uploadNewMenuForApp + //instance.uploadNewMenuForApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenusNutritionInfoApi.spec.js b/test/api/MenusNutritionInfoApi.spec.js new file mode 100644 index 00000000..c9b495b7 --- /dev/null +++ b/test/api/MenusNutritionInfoApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenusNutritionInfoApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenusNutritionInfoApi', function() { + describe('addOrUpdateMenuItemNutritionInfo', function() { + it('should call addOrUpdateMenuItemNutritionInfo successfully', function(done) { + //uncomment below and update the code to test addOrUpdateMenuItemNutritionInfo + //instance.addOrUpdateMenuItemNutritionInfo(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('addOrUpdateMenuItemOptionSetItemNutritionInfo', function() { + it('should call addOrUpdateMenuItemOptionSetItemNutritionInfo successfully', function(done) { + //uncomment below and update the code to test addOrUpdateMenuItemOptionSetItemNutritionInfo + //instance.addOrUpdateMenuItemOptionSetItemNutritionInfo(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('addOrUpdateMenuNutritionInfoByMenuId', function() { + it('should call addOrUpdateMenuNutritionInfoByMenuId successfully', function(done) { + //uncomment below and update the code to test addOrUpdateMenuNutritionInfoByMenuId + //instance.addOrUpdateMenuNutritionInfoByMenuId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteMenuNutritionInfoByMenuId', function() { + it('should call deleteMenuNutritionInfoByMenuId successfully', function(done) { + //uncomment below and update the code to test deleteMenuNutritionInfoByMenuId + //instance.deleteMenuNutritionInfoByMenuId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAllergens', function() { + it('should call getAllergens successfully', function(done) { + //uncomment below and update the code to test getAllergens + //instance.getAllergens(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuNutritionInfoByMenuId', function() { + it('should call getMenuNutritionInfoByMenuId successfully', function(done) { + //uncomment below and update the code to test getMenuNutritionInfoByMenuId + //instance.getMenuNutritionInfoByMenuId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MenusNutritionInfoV2Api.spec.js b/test/api/MenusNutritionInfoV2Api.spec.js new file mode 100644 index 00000000..ba9b7981 --- /dev/null +++ b/test/api/MenusNutritionInfoV2Api.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenusNutritionInfoV2Api(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenusNutritionInfoV2Api', function() { + describe('addOrUpdateMenuItemNutritionInfoV2', function() { + it('should call addOrUpdateMenuItemNutritionInfoV2 successfully', function(done) { + //uncomment below and update the code to test addOrUpdateMenuItemNutritionInfoV2 + //instance.addOrUpdateMenuItemNutritionInfoV2(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('addOrUpdateMenuItemOptionSetItemNutritionInfoV2', function() { + it('should call addOrUpdateMenuItemOptionSetItemNutritionInfoV2 successfully', function(done) { + //uncomment below and update the code to test addOrUpdateMenuItemOptionSetItemNutritionInfoV2 + //instance.addOrUpdateMenuItemOptionSetItemNutritionInfoV2(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getAllergensV2', function() { + it('should call getAllergensV2 successfully', function(done) { + //uncomment below and update the code to test getAllergensV2 + //instance.getAllergensV2(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMenuNutritionInfoV2ByMenuId', function() { + it('should call getMenuNutritionInfoV2ByMenuId successfully', function(done) { + //uncomment below and update the code to test getMenuNutritionInfoV2ByMenuId + //instance.getMenuNutritionInfoV2ByMenuId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MetafieldDefinitionsApi.spec.js b/test/api/MetafieldDefinitionsApi.spec.js new file mode 100644 index 00000000..084c9a06 --- /dev/null +++ b/test/api/MetafieldDefinitionsApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MetafieldDefinitionsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MetafieldDefinitionsApi', function() { + describe('createMetafieldDefinition', function() { + it('should call createMetafieldDefinition successfully', function(done) { + //uncomment below and update the code to test createMetafieldDefinition + //instance.createMetafieldDefinition(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMetafieldDefinitionByKey', function() { + it('should call getMetafieldDefinitionByKey successfully', function(done) { + //uncomment below and update the code to test getMetafieldDefinitionByKey + //instance.getMetafieldDefinitionByKey(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getMetafieldDefinitions', function() { + it('should call getMetafieldDefinitions successfully', function(done) { + //uncomment below and update the code to test getMetafieldDefinitions + //instance.getMetafieldDefinitions(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOwnerEntityConfigurations', function() { + it('should call getOwnerEntityConfigurations successfully', function(done) { + //uncomment below and update the code to test getOwnerEntityConfigurations + //instance.getOwnerEntityConfigurations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOwnerEntityRecommendations', function() { + it('should call getOwnerEntityRecommendations successfully', function(done) { + //uncomment below and update the code to test getOwnerEntityRecommendations + //instance.getOwnerEntityRecommendations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateMetafieldDefinition', function() { + it('should call updateMetafieldDefinition successfully', function(done) { + //uncomment below and update the code to test updateMetafieldDefinition + //instance.updateMetafieldDefinition(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/MobileAppsApi.spec.js b/test/api/MobileAppsApi.spec.js new file mode 100644 index 00000000..84b59a63 --- /dev/null +++ b/test/api/MobileAppsApi.spec.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsApi', function() { + describe('getAppConfigSalesChannel', function() { + it('should call getAppConfigSalesChannel successfully', function(done) { + //uncomment below and update the code to test getAppConfigSalesChannel + //instance.getAppConfigSalesChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStatistics', function() { + it('should call getStatistics successfully', function(done) { + //uncomment below and update the code to test getStatistics + //instance.getStatistics(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getSubmissionDetails', function() { + it('should call getSubmissionDetails successfully', function(done) { + //uncomment below and update the code to test getSubmissionDetails + //instance.getSubmissionDetails(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getSubmissionStatus', function() { + it('should call getSubmissionStatus successfully', function(done) { + //uncomment below and update the code to test getSubmissionStatus + //instance.getSubmissionStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('publish', function() { + it('should call publish successfully', function(done) { + //uncomment below and update the code to test publish + //instance.publish(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('resubmission', function() { + it('should call resubmission successfully', function(done) { + //uncomment below and update the code to test resubmission + //instance.resubmission(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('submission', function() { + it('should call submission successfully', function(done) { + //uncomment below and update the code to test submission + //instance.submission(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unpublish', function() { + it('should call unpublish successfully', function(done) { + //uncomment below and update the code to test unpublish + //instance.unpublish(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateAppConfigSalesChannel', function() { + it('should call updateAppConfigSalesChannel successfully', function(done) { + //uncomment below and update the code to test updateAppConfigSalesChannel + //instance.updateAppConfigSalesChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateSubmissionStatus', function() { + it('should call updateSubmissionStatus successfully', function(done) { + //uncomment below and update the code to test updateSubmissionStatus + //instance.updateSubmissionStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadImage', function() { + it('should call uploadImage successfully', function(done) { + //uncomment below and update the code to test uploadImage + //instance.uploadImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/OAuthClientsApi.spec.js b/test/api/OAuthClientsApi.spec.js new file mode 100644 index 00000000..dc109347 --- /dev/null +++ b/test/api/OAuthClientsApi.spec.js @@ -0,0 +1,163 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OAuthClientsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OAuthClientsApi', function() { + describe('addRedirectUri', function() { + it('should call addRedirectUri successfully', function(done) { + //uncomment below and update the code to test addRedirectUri + //instance.addRedirectUri(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createOAuthApp', function() { + it('should call createOAuthApp successfully', function(done) { + //uncomment below and update the code to test createOAuthApp + //instance.createOAuthApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteOAuthApp', function() { + it('should call deleteOAuthApp successfully', function(done) { + //uncomment below and update the code to test deleteOAuthApp + //instance.deleteOAuthApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOAuthApps', function() { + it('should call getOAuthApps successfully', function(done) { + //uncomment below and update the code to test getOAuthApps + //instance.getOAuthApps(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOAuthClientByClientId', function() { + it('should call getOAuthClientByClientId successfully', function(done) { + //uncomment below and update the code to test getOAuthClientByClientId + //instance.getOAuthClientByClientId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOAuthClientSecret', function() { + it('should call getOAuthClientSecret successfully', function(done) { + //uncomment below and update the code to test getOAuthClientSecret + //instance.getOAuthClientSecret(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOauthAccessToken', function() { + it('should call getOauthAccessToken successfully', function(done) { + //uncomment below and update the code to test getOauthAccessToken + //instance.getOauthAccessToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRedirectUris', function() { + it('should call getRedirectUris successfully', function(done) { + //uncomment below and update the code to test getRedirectUris + //instance.getRedirectUris(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('oAuthClientsGetApplications', function() { + it('should call oAuthClientsGetApplications successfully', function(done) { + //uncomment below and update the code to test oAuthClientsGetApplications + //instance.oAuthClientsGetApplications(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('removeRedirectUri', function() { + it('should call removeRedirectUri successfully', function(done) { + //uncomment below and update the code to test removeRedirectUri + //instance.removeRedirectUri(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateOAuthApp', function() { + it('should call updateOAuthApp successfully', function(done) { + //uncomment below and update the code to test updateOAuthApp + //instance.updateOAuthApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/OnboardingApi.spec.js b/test/api/OnboardingApi.spec.js new file mode 100644 index 00000000..c310e456 --- /dev/null +++ b/test/api/OnboardingApi.spec.js @@ -0,0 +1,133 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OnboardingApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OnboardingApi', function() { + describe('onboardingGetOnboardingConfig', function() { + it('should call onboardingGetOnboardingConfig successfully', function(done) { + //uncomment below and update the code to test onboardingGetOnboardingConfig + //instance.onboardingGetOnboardingConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('onboardingGetOnboardingConfigs', function() { + it('should call onboardingGetOnboardingConfigs successfully', function(done) { + //uncomment below and update the code to test onboardingGetOnboardingConfigs + //instance.onboardingGetOnboardingConfigs(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('onboardingGetOnboardingItems', function() { + it('should call onboardingGetOnboardingItems successfully', function(done) { + //uncomment below and update the code to test onboardingGetOnboardingItems + //instance.onboardingGetOnboardingItems(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('onboardingGetOnboardingItemsV2', function() { + it('should call onboardingGetOnboardingItemsV2 successfully', function(done) { + //uncomment below and update the code to test onboardingGetOnboardingItemsV2 + //instance.onboardingGetOnboardingItemsV2(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('onboardingUpdateOnboardingConfig', function() { + it('should call onboardingUpdateOnboardingConfig successfully', function(done) { + //uncomment below and update the code to test onboardingUpdateOnboardingConfig + //instance.onboardingUpdateOnboardingConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('onboardingUpdateOnboardingConfigById', function() { + it('should call onboardingUpdateOnboardingConfigById successfully', function(done) { + //uncomment below and update the code to test onboardingUpdateOnboardingConfigById + //instance.onboardingUpdateOnboardingConfigById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('onboardingUpdateOnboardingItem', function() { + it('should call onboardingUpdateOnboardingItem successfully', function(done) { + //uncomment below and update the code to test onboardingUpdateOnboardingItem + //instance.onboardingUpdateOnboardingItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('onboardingUpdateOnboardingItemV2', function() { + it('should call onboardingUpdateOnboardingItemV2 successfully', function(done) { + //uncomment below and update the code to test onboardingUpdateOnboardingItemV2 + //instance.onboardingUpdateOnboardingItemV2(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/OrderBatchesApi.spec.js b/test/api/OrderBatchesApi.spec.js new file mode 100644 index 00000000..661bd86a --- /dev/null +++ b/test/api/OrderBatchesApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderBatchesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderBatchesApi', function() { + describe('getAllOrderBatches', function() { + it('should call getAllOrderBatches successfully', function(done) { + //uncomment below and update the code to test getAllOrderBatches + //instance.getAllOrderBatches(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrderBatch', function() { + it('should call getOrderBatch successfully', function(done) { + //uncomment below and update the code to test getOrderBatch + //instance.getOrderBatch(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/OrderBatchingConfigurationApi.spec.js b/test/api/OrderBatchingConfigurationApi.spec.js new file mode 100644 index 00000000..05857149 --- /dev/null +++ b/test/api/OrderBatchingConfigurationApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderBatchingConfigurationApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderBatchingConfigurationApi', function() { + describe('get', function() { + it('should call get successfully', function(done) { + //uncomment below and update the code to test get + //instance.get(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('post', function() { + it('should call post successfully', function(done) { + //uncomment below and update the code to test post + //instance.post(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/OrdersApi.spec.js b/test/api/OrdersApi.spec.js new file mode 100644 index 00000000..3d08905f --- /dev/null +++ b/test/api/OrdersApi.spec.js @@ -0,0 +1,203 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrdersApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrdersApi', function() { + describe('acceptOrder', function() { + it('should call acceptOrder successfully', function(done) { + //uncomment below and update the code to test acceptOrder + //instance.acceptOrder(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dispatchOrder', function() { + it('should call dispatchOrder successfully', function(done) { + //uncomment below and update the code to test dispatchOrder + //instance.dispatchOrder(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDeliveryInformation', function() { + it('should call getDeliveryInformation successfully', function(done) { + //uncomment below and update the code to test getDeliveryInformation + //instance.getDeliveryInformation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFulfillmentState', function() { + it('should call getFulfillmentState successfully', function(done) { + //uncomment below and update the code to test getFulfillmentState + //instance.getFulfillmentState(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFulfillmentStatusWithDetailsAndActions', function() { + it('should call getFulfillmentStatusWithDetailsAndActions successfully', function(done) { + //uncomment below and update the code to test getFulfillmentStatusWithDetailsAndActions + //instance.getFulfillmentStatusWithDetailsAndActions(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrderById', function() { + it('should call getOrderById successfully', function(done) { + //uncomment below and update the code to test getOrderById + //instance.getOrderById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrders', function() { + it('should call getOrders successfully', function(done) { + //uncomment below and update the code to test getOrders + //instance.getOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrdersSummary', function() { + it('should call getOrdersSummary successfully', function(done) { + //uncomment below and update the code to test getOrdersSummary + //instance.getOrdersSummary(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrdersSummaryNew', function() { + it('should call getOrdersSummaryNew successfully', function(done) { + //uncomment below and update the code to test getOrdersSummaryNew + //instance.getOrdersSummaryNew(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getReadyToProcess', function() { + it('should call getReadyToProcess successfully', function(done) { + //uncomment below and update the code to test getReadyToProcess + //instance.getReadyToProcess(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('refundOrder', function() { + it('should call refundOrder successfully', function(done) { + //uncomment below and update the code to test refundOrder + //instance.refundOrder(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('rejectOrder', function() { + it('should call rejectOrder successfully', function(done) { + //uncomment below and update the code to test rejectOrder + //instance.rejectOrder(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('searchFulfillmentStatuses', function() { + it('should call searchFulfillmentStatuses successfully', function(done) { + //uncomment below and update the code to test searchFulfillmentStatuses + //instance.searchFulfillmentStatuses(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateDeliveryInformation', function() { + it('should call updateDeliveryInformation successfully', function(done) { + //uncomment below and update the code to test updateDeliveryInformation + //instance.updateDeliveryInformation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateFulfillmentState', function() { + it('should call updateFulfillmentState successfully', function(done) { + //uncomment below and update the code to test updateFulfillmentState + //instance.updateFulfillmentState(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PaymentIntentsApi.spec.js b/test/api/PaymentIntentsApi.spec.js new file mode 100644 index 00000000..16a9d4d1 --- /dev/null +++ b/test/api/PaymentIntentsApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PaymentIntentsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PaymentIntentsApi', function() { + describe('getPaymentIntent', function() { + it('should call getPaymentIntent successfully', function(done) { + //uncomment below and update the code to test getPaymentIntent + //instance.getPaymentIntent(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PaymentsApi.spec.js b/test/api/PaymentsApi.spec.js new file mode 100644 index 00000000..e7fd9f7e --- /dev/null +++ b/test/api/PaymentsApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PaymentsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PaymentsApi', function() { + describe('getOrderPaymentInformation', function() { + it('should call getOrderPaymentInformation successfully', function(done) { + //uncomment below and update the code to test getOrderPaymentInformation + //instance.getOrderPaymentInformation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PayoutReportsApi.spec.js b/test/api/PayoutReportsApi.spec.js new file mode 100644 index 00000000..1be320d4 --- /dev/null +++ b/test/api/PayoutReportsApi.spec.js @@ -0,0 +1,123 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReportsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReportsApi', function() { + describe('getPayoutReport3Details', function() { + it('should call getPayoutReport3Details successfully', function(done) { + //uncomment below and update the code to test getPayoutReport3Details + //instance.getPayoutReport3Details(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayoutReport3Overview', function() { + it('should call getPayoutReport3Overview successfully', function(done) { + //uncomment below and update the code to test getPayoutReport3Overview + //instance.getPayoutReport3Overview(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayoutReport3RefundedOrders', function() { + it('should call getPayoutReport3RefundedOrders successfully', function(done) { + //uncomment below and update the code to test getPayoutReport3RefundedOrders + //instance.getPayoutReport3RefundedOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('payoutReport3ExportPayoutChargebacks', function() { + it('should call payoutReport3ExportPayoutChargebacks successfully', function(done) { + //uncomment below and update the code to test payoutReport3ExportPayoutChargebacks + //instance.payoutReport3ExportPayoutChargebacks(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('payoutReport3ExportPayoutOrders', function() { + it('should call payoutReport3ExportPayoutOrders successfully', function(done) { + //uncomment below and update the code to test payoutReport3ExportPayoutOrders + //instance.payoutReport3ExportPayoutOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('payoutReport3ExportPayoutPosSales', function() { + it('should call payoutReport3ExportPayoutPosSales successfully', function(done) { + //uncomment below and update the code to test payoutReport3ExportPayoutPosSales + //instance.payoutReport3ExportPayoutPosSales(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('payoutReport3ExportPayoutRefundedOrders', function() { + it('should call payoutReport3ExportPayoutRefundedOrders successfully', function(done) { + //uncomment below and update the code to test payoutReport3ExportPayoutRefundedOrders + //instance.payoutReport3ExportPayoutRefundedOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PayoutsApi.spec.js b/test/api/PayoutsApi.spec.js new file mode 100644 index 00000000..1231f69d --- /dev/null +++ b/test/api/PayoutsApi.spec.js @@ -0,0 +1,123 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutsApi', function() { + describe('getPayout', function() { + it('should call getPayout successfully', function(done) { + //uncomment below and update the code to test getPayout + //instance.getPayout(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayoutChargebacks', function() { + it('should call getPayoutChargebacks successfully', function(done) { + //uncomment below and update the code to test getPayoutChargebacks + //instance.getPayoutChargebacks(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayoutOrders', function() { + it('should call getPayoutOrders successfully', function(done) { + //uncomment below and update the code to test getPayoutOrders + //instance.getPayoutOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayoutOtherCharges', function() { + it('should call getPayoutOtherCharges successfully', function(done) { + //uncomment below and update the code to test getPayoutOtherCharges + //instance.getPayoutOtherCharges(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayoutRefunds', function() { + it('should call getPayoutRefunds successfully', function(done) { + //uncomment below and update the code to test getPayoutRefunds + //instance.getPayoutRefunds(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayoutSummaries', function() { + it('should call getPayoutSummaries successfully', function(done) { + //uncomment below and update the code to test getPayoutSummaries + //instance.getPayoutSummaries(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayouts', function() { + it('should call getPayouts successfully', function(done) { + //uncomment below and update the code to test getPayouts + //instance.getPayouts(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PayoutsExportApi.spec.js b/test/api/PayoutsExportApi.spec.js new file mode 100644 index 00000000..de5c0524 --- /dev/null +++ b/test/api/PayoutsExportApi.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutsExportApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutsExportApi', function() { + describe('exportPayoutChargebacks', function() { + it('should call exportPayoutChargebacks successfully', function(done) { + //uncomment below and update the code to test exportPayoutChargebacks + //instance.exportPayoutChargebacks(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('exportPayoutOrders', function() { + it('should call exportPayoutOrders successfully', function(done) { + //uncomment below and update the code to test exportPayoutOrders + //instance.exportPayoutOrders(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('exportPayoutOtherCharges', function() { + it('should call exportPayoutOtherCharges successfully', function(done) { + //uncomment below and update the code to test exportPayoutOtherCharges + //instance.exportPayoutOtherCharges(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('exportPayoutRefunds', function() { + it('should call exportPayoutRefunds successfully', function(done) { + //uncomment below and update the code to test exportPayoutRefunds + //instance.exportPayoutRefunds(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('exportPayoutStores', function() { + it('should call exportPayoutStores successfully', function(done) { + //uncomment below and update the code to test exportPayoutStores + //instance.exportPayoutStores(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('exportPayouts', function() { + it('should call exportPayouts successfully', function(done) { + //uncomment below and update the code to test exportPayouts + //instance.exportPayouts(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ProcessingFeeConfigsApi.spec.js b/test/api/ProcessingFeeConfigsApi.spec.js new file mode 100644 index 00000000..4771f762 --- /dev/null +++ b/test/api/ProcessingFeeConfigsApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ProcessingFeeConfigsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ProcessingFeeConfigsApi', function() { + describe('getProcessingFeeConfigsByStoreIds', function() { + it('should call getProcessingFeeConfigsByStoreIds successfully', function(done) { + //uncomment below and update the code to test getProcessingFeeConfigsByStoreIds + //instance.getProcessingFeeConfigsByStoreIds(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PushNotificationsApi.spec.js b/test/api/PushNotificationsApi.spec.js new file mode 100644 index 00000000..08f2f183 --- /dev/null +++ b/test/api/PushNotificationsApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PushNotificationsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PushNotificationsApi', function() { + describe('deletePushNotification', function() { + it('should call deletePushNotification successfully', function(done) { + //uncomment below and update the code to test deletePushNotification + //instance.deletePushNotification(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPushNotifications', function() { + it('should call getPushNotifications successfully', function(done) { + //uncomment below and update the code to test getPushNotifications + //instance.getPushNotifications(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('schedulePushNotification', function() { + it('should call schedulePushNotification successfully', function(done) { + //uncomment below and update the code to test schedulePushNotification + //instance.schedulePushNotification(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePushNotification', function() { + it('should call updatePushNotification successfully', function(done) { + //uncomment below and update the code to test updatePushNotification + //instance.updatePushNotification(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ReceiptsApi.spec.js b/test/api/ReceiptsApi.spec.js new file mode 100644 index 00000000..a7a5cc7e --- /dev/null +++ b/test/api/ReceiptsApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ReceiptsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ReceiptsApi', function() { + describe('getReceipt', function() { + it('should call getReceipt successfully', function(done) { + //uncomment below and update the code to test getReceipt + //instance.getReceipt(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/RestaurantVouchersPayGreenApi.spec.js b/test/api/RestaurantVouchersPayGreenApi.spec.js new file mode 100644 index 00000000..6f26c52d --- /dev/null +++ b/test/api/RestaurantVouchersPayGreenApi.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestaurantVouchersPayGreenApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestaurantVouchersPayGreenApi', function() { + describe('createPayGreenConfiguration', function() { + it('should call createPayGreenConfiguration successfully', function(done) { + //uncomment below and update the code to test createPayGreenConfiguration + //instance.createPayGreenConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deletePayGreenConfiguration', function() { + it('should call deletePayGreenConfiguration successfully', function(done) { + //uncomment below and update the code to test deletePayGreenConfiguration + //instance.deletePayGreenConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getElegibleStores', function() { + it('should call getElegibleStores successfully', function(done) { + //uncomment below and update the code to test getElegibleStores + //instance.getElegibleStores(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPayGreenConfigurations', function() { + it('should call getPayGreenConfigurations successfully', function(done) { + //uncomment below and update the code to test getPayGreenConfigurations + //instance.getPayGreenConfigurations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreAvailablePayGreenConfigurations', function() { + it('should call getStoreAvailablePayGreenConfigurations successfully', function(done) { + //uncomment below and update the code to test getStoreAvailablePayGreenConfigurations + //instance.getStoreAvailablePayGreenConfigurations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStorePayGreenConfiguration', function() { + it('should call getStorePayGreenConfiguration successfully', function(done) { + //uncomment below and update the code to test getStorePayGreenConfiguration + //instance.getStorePayGreenConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('listPayGreenConfigurations', function() { + it('should call listPayGreenConfigurations successfully', function(done) { + //uncomment below and update the code to test listPayGreenConfigurations + //instance.listPayGreenConfigurations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePayGreenConfiguration', function() { + it('should call updatePayGreenConfiguration successfully', function(done) { + //uncomment below and update the code to test updatePayGreenConfiguration + //instance.updatePayGreenConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateStorePayGreenConfiguration', function() { + it('should call updateStorePayGreenConfiguration successfully', function(done) { + //uncomment below and update the code to test updateStorePayGreenConfiguration + //instance.updateStorePayGreenConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/SearchApi.spec.js b/test/api/SearchApi.spec.js new file mode 100644 index 00000000..2bc1b877 --- /dev/null +++ b/test/api/SearchApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SearchApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SearchApi', function() { + describe('searchRestaurants', function() { + it('should call searchRestaurants successfully', function(done) { + //uncomment below and update the code to test searchRestaurants + //instance.searchRestaurants(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/SmsProviderCredentialsApi.spec.js b/test/api/SmsProviderCredentialsApi.spec.js new file mode 100644 index 00000000..96cf9b2a --- /dev/null +++ b/test/api/SmsProviderCredentialsApi.spec.js @@ -0,0 +1,103 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SmsProviderCredentialsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SmsProviderCredentialsApi', function() { + describe('getBrandSmsProviderCredentialByServiceType', function() { + it('should call getBrandSmsProviderCredentialByServiceType successfully', function(done) { + //uncomment below and update the code to test getBrandSmsProviderCredentialByServiceType + //instance.getBrandSmsProviderCredentialByServiceType(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBrandSmsProviderCredentials', function() { + it('should call getBrandSmsProviderCredentials successfully', function(done) { + //uncomment below and update the code to test getBrandSmsProviderCredentials + //instance.getBrandSmsProviderCredentials(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('smsProviderCredentialDelete', function() { + it('should call smsProviderCredentialDelete successfully', function(done) { + //uncomment below and update the code to test smsProviderCredentialDelete + //instance.smsProviderCredentialDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('smsProviderCredentialUpdate', function() { + it('should call smsProviderCredentialUpdate successfully', function(done) { + //uncomment below and update the code to test smsProviderCredentialUpdate + //instance.smsProviderCredentialUpdate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('smsProviderCredentialsBulkUpsert', function() { + it('should call smsProviderCredentialsBulkUpsert successfully', function(done) { + //uncomment below and update the code to test smsProviderCredentialsBulkUpsert + //instance.smsProviderCredentialsBulkUpsert(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/StoreGroupsApi.spec.js b/test/api/StoreGroupsApi.spec.js new file mode 100644 index 00000000..9f296703 --- /dev/null +++ b/test/api/StoreGroupsApi.spec.js @@ -0,0 +1,133 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreGroupsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreGroupsApi', function() { + describe('assignStoresToStoreGroup', function() { + it('should call assignStoresToStoreGroup successfully', function(done) { + //uncomment below and update the code to test assignStoresToStoreGroup + //instance.assignStoresToStoreGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createStoreGroup', function() { + it('should call createStoreGroup successfully', function(done) { + //uncomment below and update the code to test createStoreGroup + //instance.createStoreGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreGroup', function() { + it('should call getStoreGroup successfully', function(done) { + //uncomment below and update the code to test getStoreGroup + //instance.getStoreGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreGroups', function() { + it('should call getStoreGroups successfully', function(done) { + //uncomment below and update the code to test getStoreGroups + //instance.getStoreGroups(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreGroupsExtended', function() { + it('should call getStoreGroupsExtended successfully', function(done) { + //uncomment below and update the code to test getStoreGroupsExtended + //instance.getStoreGroupsExtended(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('removeStoreGroup', function() { + it('should call removeStoreGroup successfully', function(done) { + //uncomment below and update the code to test removeStoreGroup + //instance.removeStoreGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setCustomerMessages', function() { + it('should call setCustomerMessages successfully', function(done) { + //uncomment below and update the code to test setCustomerMessages + //instance.setCustomerMessages(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateStoreGroup', function() { + it('should call updateStoreGroup successfully', function(done) { + //uncomment below and update the code to test updateStoreGroup + //instance.updateStoreGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/StoreOrderCapacityApi.spec.js b/test/api/StoreOrderCapacityApi.spec.js new file mode 100644 index 00000000..5b99470d --- /dev/null +++ b/test/api/StoreOrderCapacityApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreOrderCapacityApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreOrderCapacityApi', function() { + describe('getStoreOrderCapacity', function() { + it('should call getStoreOrderCapacity successfully', function(done) { + //uncomment below and update the code to test getStoreOrderCapacity + //instance.getStoreOrderCapacity(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateStoreOrderCapacityConfig', function() { + it('should call updateStoreOrderCapacityConfig successfully', function(done) { + //uncomment below and update the code to test updateStoreOrderCapacityConfig + //instance.updateStoreOrderCapacityConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/StoresApi.spec.js b/test/api/StoresApi.spec.js new file mode 100644 index 00000000..fae08baf --- /dev/null +++ b/test/api/StoresApi.spec.js @@ -0,0 +1,453 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoresApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoresApi', function() { + describe('archiveStore', function() { + it('should call archiveStore successfully', function(done) { + //uncomment below and update the code to test archiveStore + //instance.archiveStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('assignMenu', function() { + it('should call assignMenu successfully', function(done) { + //uncomment below and update the code to test assignMenu + //instance.assignMenu(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('cloneStore', function() { + it('should call cloneStore successfully', function(done) { + //uncomment below and update the code to test cloneStore + //instance.cloneStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('configureStoreServiceCharge', function() { + it('should call configureStoreServiceCharge successfully', function(done) { + //uncomment below and update the code to test configureStoreServiceCharge + //instance.configureStoreServiceCharge(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createBusinessHoursOverrideByStoreId', function() { + it('should call createBusinessHoursOverrideByStoreId successfully', function(done) { + //uncomment below and update the code to test createBusinessHoursOverrideByStoreId + //instance.createBusinessHoursOverrideByStoreId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createStore', function() { + it('should call createStore successfully', function(done) { + //uncomment below and update the code to test createStore + //instance.createStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createStoreInProperty', function() { + it('should call createStoreInProperty successfully', function(done) { + //uncomment below and update the code to test createStoreInProperty + //instance.createStoreInProperty(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteBusinessHoursOverride', function() { + it('should call deleteBusinessHoursOverride successfully', function(done) { + //uncomment below and update the code to test deleteBusinessHoursOverride + //instance.deleteBusinessHoursOverride(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBankAccountForStore', function() { + it('should call getBankAccountForStore successfully', function(done) { + //uncomment below and update the code to test getBankAccountForStore + //instance.getBankAccountForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBusinessHours', function() { + it('should call getBusinessHours successfully', function(done) { + //uncomment below and update the code to test getBusinessHours + //instance.getBusinessHours(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBusinessHoursOverrideByStoreId', function() { + it('should call getBusinessHoursOverrideByStoreId successfully', function(done) { + //uncomment below and update the code to test getBusinessHoursOverrideByStoreId + //instance.getBusinessHoursOverrideByStoreId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getEndOfDayReport', function() { + it('should call getEndOfDayReport successfully', function(done) { + //uncomment below and update the code to test getEndOfDayReport + //instance.getEndOfDayReport(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPreOrderConfig', function() { + it('should call getPreOrderConfig successfully', function(done) { + //uncomment below and update the code to test getPreOrderConfig + //instance.getPreOrderConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPreOrderPreview', function() { + it('should call getPreOrderPreview successfully', function(done) { + //uncomment below and update the code to test getPreOrderPreview + //instance.getPreOrderPreview(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getProcessingFeeConfigsByStoreId', function() { + it('should call getProcessingFeeConfigsByStoreId successfully', function(done) { + //uncomment below and update the code to test getProcessingFeeConfigsByStoreId + //instance.getProcessingFeeConfigsByStoreId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getProcessingFeeConfigsByStoreIdAndPaymentAccountType', function() { + it('should call getProcessingFeeConfigsByStoreIdAndPaymentAccountType successfully', function(done) { + //uncomment below and update the code to test getProcessingFeeConfigsByStoreIdAndPaymentAccountType + //instance.getProcessingFeeConfigsByStoreIdAndPaymentAccountType(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreById', function() { + it('should call getStoreById successfully', function(done) { + //uncomment below and update the code to test getStoreById + //instance.getStoreById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreDeliveryFeeConfig', function() { + it('should call getStoreDeliveryFeeConfig successfully', function(done) { + //uncomment below and update the code to test getStoreDeliveryFeeConfig + //instance.getStoreDeliveryFeeConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreFeeConfig', function() { + it('should call getStoreFeeConfig successfully', function(done) { + //uncomment below and update the code to test getStoreFeeConfig + //instance.getStoreFeeConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreHeadersByAppId', function() { + it('should call getStoreHeadersByAppId successfully', function(done) { + //uncomment below and update the code to test getStoreHeadersByAppId + //instance.getStoreHeadersByAppId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreLeadTimes', function() { + it('should call getStoreLeadTimes successfully', function(done) { + //uncomment below and update the code to test getStoreLeadTimes + //instance.getStoreLeadTimes(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreNetSales', function() { + it('should call getStoreNetSales successfully', function(done) { + //uncomment below and update the code to test getStoreNetSales + //instance.getStoreNetSales(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoreServiceCharge', function() { + it('should call getStoreServiceCharge successfully', function(done) { + //uncomment below and update the code to test getStoreServiceCharge + //instance.getStoreServiceCharge(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStores', function() { + it('should call getStores successfully', function(done) { + //uncomment below and update the code to test getStores + //instance.getStores(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoresByAppId', function() { + it('should call getStoresByAppId successfully', function(done) { + //uncomment below and update the code to test getStoresByAppId + //instance.getStoresByAppId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getStoresByStoreIdWithValidations', function() { + it('should call getStoresByStoreIdWithValidations successfully', function(done) { + //uncomment below and update the code to test getStoresByStoreIdWithValidations + //instance.getStoresByStoreIdWithValidations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('publishStore', function() { + it('should call publishStore successfully', function(done) { + //uncomment below and update the code to test publishStore + //instance.publishStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('putStoreDeliveryFeeConfig', function() { + it('should call putStoreDeliveryFeeConfig successfully', function(done) { + //uncomment below and update the code to test putStoreDeliveryFeeConfig + //instance.putStoreDeliveryFeeConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setBusinessHours', function() { + it('should call setBusinessHours successfully', function(done) { + //uncomment below and update the code to test setBusinessHours + //instance.setBusinessHours(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setPreOrdeEnabled', function() { + it('should call setPreOrdeEnabled successfully', function(done) { + //uncomment below and update the code to test setPreOrdeEnabled + //instance.setPreOrdeEnabled(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setStoreCollectionSettings', function() { + it('should call setStoreCollectionSettings successfully', function(done) { + //uncomment below and update the code to test setStoreCollectionSettings + //instance.setStoreCollectionSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setStoreLeadTimes', function() { + it('should call setStoreLeadTimes successfully', function(done) { + //uncomment below and update the code to test setStoreLeadTimes + //instance.setStoreLeadTimes(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('storesSetPropertyId', function() { + it('should call storesSetPropertyId successfully', function(done) { + //uncomment below and update the code to test storesSetPropertyId + //instance.storesSetPropertyId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('supportedSalesChannelsTypes', function() { + it('should call supportedSalesChannelsTypes successfully', function(done) { + //uncomment below and update the code to test supportedSalesChannelsTypes + //instance.supportedSalesChannelsTypes(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unpublishStore', function() { + it('should call unpublishStore successfully', function(done) { + //uncomment below and update the code to test unpublishStore + //instance.unpublishStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePreOrderConfig', function() { + it('should call updatePreOrderConfig successfully', function(done) { + //uncomment below and update the code to test updatePreOrderConfig + //instance.updatePreOrderConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateStore', function() { + it('should call updateStore successfully', function(done) { + //uncomment below and update the code to test updateStore + //instance.updateStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateStoreAddress', function() { + it('should call updateStoreAddress successfully', function(done) { + //uncomment below and update the code to test updateStoreAddress + //instance.updateStoreAddress(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateStoreAddressCoordinates', function() { + it('should call updateStoreAddressCoordinates successfully', function(done) { + //uncomment below and update the code to test updateStoreAddressCoordinates + //instance.updateStoreAddressCoordinates(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateStoreAddressForm', function() { + it('should call updateStoreAddressForm successfully', function(done) { + //uncomment below and update the code to test updateStoreAddressForm + //instance.updateStoreAddressForm(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/StripeCustomConnectApi.spec.js b/test/api/StripeCustomConnectApi.spec.js new file mode 100644 index 00000000..bd8d0e7a --- /dev/null +++ b/test/api/StripeCustomConnectApi.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StripeCustomConnectApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StripeCustomConnectApi', function() { + describe('createBankAccountAndConnectedAccount', function() { + it('should call createBankAccountAndConnectedAccount successfully', function(done) { + //uncomment below and update the code to test createBankAccountAndConnectedAccount + //instance.createBankAccountAndConnectedAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createStripeConnectedAccount', function() { + it('should call createStripeConnectedAccount successfully', function(done) { + //uncomment below and update the code to test createStripeConnectedAccount + //instance.createStripeConnectedAccount(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createStripeConnectedAccountLink', function() { + it('should call createStripeConnectedAccountLink successfully', function(done) { + //uncomment below and update the code to test createStripeConnectedAccountLink + //instance.createStripeConnectedAccountLink(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getCustomConnect', function() { + it('should call getCustomConnect successfully', function(done) { + //uncomment below and update the code to test getCustomConnect + //instance.getCustomConnect(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getVerificationStatus', function() { + it('should call getVerificationStatus successfully', function(done) { + //uncomment below and update the code to test getVerificationStatus + //instance.getVerificationStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setBankAccountBusinessType', function() { + it('should call setBankAccountBusinessType successfully', function(done) { + //uncomment below and update the code to test setBankAccountBusinessType + //instance.setBankAccountBusinessType(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('stripeCustomConnectRefresh', function() { + it('should call stripeCustomConnectRefresh successfully', function(done) { + //uncomment below and update the code to test stripeCustomConnectRefresh + //instance.stripeCustomConnectRefresh(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateBankAccountDetails', function() { + it('should call updateBankAccountDetails successfully', function(done) { + //uncomment below and update the code to test updateBankAccountDetails + //instance.updateBankAccountDetails(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePayoutSchedule', function() { + it('should call updatePayoutSchedule successfully', function(done) { + //uncomment below and update the code to test updatePayoutSchedule + //instance.updatePayoutSchedule(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/StuartApi.spec.js b/test/api/StuartApi.spec.js new file mode 100644 index 00000000..cf159449 --- /dev/null +++ b/test/api/StuartApi.spec.js @@ -0,0 +1,93 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StuartApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StuartApi', function() { + describe('stuartCancelJob', function() { + it('should call stuartCancelJob successfully', function(done) { + //uncomment below and update the code to test stuartCancelJob + //instance.stuartCancelJob(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('stuartGetJob', function() { + it('should call stuartGetJob successfully', function(done) { + //uncomment below and update the code to test stuartGetJob + //instance.stuartGetJob(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('stuartGetStuartSettings', function() { + it('should call stuartGetStuartSettings successfully', function(done) { + //uncomment below and update the code to test stuartGetStuartSettings + //instance.stuartGetStuartSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('stuartPostStuartSettings', function() { + it('should call stuartPostStuartSettings successfully', function(done) { + //uncomment below and update the code to test stuartPostStuartSettings + //instance.stuartPostStuartSettings(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/SubscriptionsApi.spec.js b/test/api/SubscriptionsApi.spec.js new file mode 100644 index 00000000..41700a2f --- /dev/null +++ b/test/api/SubscriptionsApi.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SubscriptionsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SubscriptionsApi', function() { + describe('getSubscriptionById', function() { + it('should call getSubscriptionById successfully', function(done) { + //uncomment below and update the code to test getSubscriptionById + //instance.getSubscriptionById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getSubscriptionsForApp', function() { + it('should call getSubscriptionsForApp successfully', function(done) { + //uncomment below and update the code to test getSubscriptionsForApp + //instance.getSubscriptionsForApp(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('hasCustomerGotPaymentMethodOnFile', function() { + it('should call hasCustomerGotPaymentMethodOnFile successfully', function(done) { + //uncomment below and update the code to test hasCustomerGotPaymentMethodOnFile + //instance.hasCustomerGotPaymentMethodOnFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/TeammatesApi.spec.js b/test/api/TeammatesApi.spec.js new file mode 100644 index 00000000..c170b4cb --- /dev/null +++ b/test/api/TeammatesApi.spec.js @@ -0,0 +1,153 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TeammatesApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TeammatesApi', function() { + describe('createTeammate', function() { + it('should call createTeammate successfully', function(done) { + //uncomment below and update the code to test createTeammate + //instance.createTeammate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteTeammate', function() { + it('should call deleteTeammate successfully', function(done) { + //uncomment below and update the code to test deleteTeammate + //instance.deleteTeammate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getTeammateByAppIdAndTeammateId', function() { + it('should call getTeammateByAppIdAndTeammateId successfully', function(done) { + //uncomment below and update the code to test getTeammateByAppIdAndTeammateId + //instance.getTeammateByAppIdAndTeammateId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getTeammatesByAppId', function() { + it('should call getTeammatesByAppId successfully', function(done) { + //uncomment below and update the code to test getTeammatesByAppId + //instance.getTeammatesByAppId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('grantaccess', function() { + it('should call grantaccess successfully', function(done) { + //uncomment below and update the code to test grantaccess + //instance.grantaccess(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('redeemInvitation', function() { + it('should call redeemInvitation successfully', function(done) { + //uncomment below and update the code to test redeemInvitation + //instance.redeemInvitation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('teammatesAcceptInvitation', function() { + it('should call teammatesAcceptInvitation successfully', function(done) { + //uncomment below and update the code to test teammatesAcceptInvitation + //instance.teammatesAcceptInvitation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('teammatesAcceptInvitations', function() { + it('should call teammatesAcceptInvitations successfully', function(done) { + //uncomment below and update the code to test teammatesAcceptInvitations + //instance.teammatesAcceptInvitations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('teammatesPendingInvitations', function() { + it('should call teammatesPendingInvitations successfully', function(done) { + //uncomment below and update the code to test teammatesPendingInvitations + //instance.teammatesPendingInvitations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateTeammate', function() { + it('should call updateTeammate successfully', function(done) { + //uncomment below and update the code to test updateTeammate + //instance.updateTeammate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/TerminalIotApi.spec.js b/test/api/TerminalIotApi.spec.js new file mode 100644 index 00000000..9e605cb8 --- /dev/null +++ b/test/api/TerminalIotApi.spec.js @@ -0,0 +1,63 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TerminalIotApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TerminalIotApi', function() { + describe('getTerminalIotConnection', function() { + it('should call getTerminalIotConnection successfully', function(done) { + //uncomment below and update the code to test getTerminalIotConnection + //instance.getTerminalIotConnection(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/TipsApi.spec.js b/test/api/TipsApi.spec.js new file mode 100644 index 00000000..2e2b175c --- /dev/null +++ b/test/api/TipsApi.spec.js @@ -0,0 +1,73 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TipsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TipsApi', function() { + describe('tipConfigGet', function() { + it('should call tipConfigGet successfully', function(done) { + //uncomment below and update the code to test tipConfigGet + //instance.tipConfigGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('tipConfigUpsert', function() { + it('should call tipConfigUpsert successfully', function(done) { + //uncomment below and update the code to test tipConfigUpsert + //instance.tipConfigUpsert(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/UsersApi.spec.js b/test/api/UsersApi.spec.js new file mode 100644 index 00000000..b84c710b --- /dev/null +++ b/test/api/UsersApi.spec.js @@ -0,0 +1,243 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UsersApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UsersApi', function() { + describe('addUserNote', function() { + it('should call addUserNote successfully', function(done) { + //uncomment below and update the code to test addUserNote + //instance.addUserNote(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('addUserToRole', function() { + it('should call addUserToRole successfully', function(done) { + //uncomment below and update the code to test addUserToRole + //instance.addUserToRole(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('anonymizeUser', function() { + it('should call anonymizeUser successfully', function(done) { + //uncomment below and update the code to test anonymizeUser + //instance.anonymizeUser(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('blockUserPhoneNumber', function() { + it('should call blockUserPhoneNumber successfully', function(done) { + //uncomment below and update the code to test blockUserPhoneNumber + //instance.blockUserPhoneNumber(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPreviousOrderCountForStore', function() { + it('should call getPreviousOrderCountForStore successfully', function(done) { + //uncomment below and update the code to test getPreviousOrderCountForStore + //instance.getPreviousOrderCountForStore(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRestaurantUserAccounts', function() { + it('should call getRestaurantUserAccounts successfully', function(done) { + //uncomment below and update the code to test getRestaurantUserAccounts + //instance.getRestaurantUserAccounts(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRestaurantUserStores', function() { + it('should call getRestaurantUserStores successfully', function(done) { + //uncomment below and update the code to test getRestaurantUserStores + //instance.getRestaurantUserStores(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRoles', function() { + it('should call getRoles successfully', function(done) { + //uncomment below and update the code to test getRoles + //instance.getRoles(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getRolesAndUnassignedRoles', function() { + it('should call getRolesAndUnassignedRoles successfully', function(done) { + //uncomment below and update the code to test getRolesAndUnassignedRoles + //instance.getRolesAndUnassignedRoles(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getUserById', function() { + it('should call getUserById successfully', function(done) { + //uncomment below and update the code to test getUserById + //instance.getUserById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getUserNotes', function() { + it('should call getUserNotes successfully', function(done) { + //uncomment below and update the code to test getUserNotes + //instance.getUserNotes(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('markUserAsFraudulent', function() { + it('should call markUserAsFraudulent successfully', function(done) { + //uncomment below and update the code to test markUserAsFraudulent + //instance.markUserAsFraudulent(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('markUserAsSuspicious', function() { + it('should call markUserAsSuspicious successfully', function(done) { + //uncomment below and update the code to test markUserAsSuspicious + //instance.markUserAsSuspicious(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('removeUserFromRole', function() { + it('should call removeUserFromRole successfully', function(done) { + //uncomment below and update the code to test removeUserFromRole + //instance.removeUserFromRole(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('resetMfa', function() { + it('should call resetMfa successfully', function(done) { + //uncomment below and update the code to test resetMfa + //instance.resetMfa(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('searchUsers', function() { + it('should call searchUsers successfully', function(done) { + //uncomment below and update the code to test searchUsers + //instance.searchUsers(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setCustomerName', function() { + it('should call setCustomerName successfully', function(done) { + //uncomment below and update the code to test setCustomerName + //instance.setCustomerName(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setUserLanguage', function() { + it('should call setUserLanguage successfully', function(done) { + //uncomment below and update the code to test setUserLanguage + //instance.setUserLanguage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('unblockUserPhoneNumber', function() { + it('should call unblockUserPhoneNumber successfully', function(done) { + //uncomment below and update the code to test unblockUserPhoneNumber + //instance.unblockUserPhoneNumber(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/VouchersApi.spec.js b/test/api/VouchersApi.spec.js new file mode 100644 index 00000000..5ade00be --- /dev/null +++ b/test/api/VouchersApi.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VouchersApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VouchersApi', function() { + describe('createVoucher', function() { + it('should call createVoucher successfully', function(done) { + //uncomment below and update the code to test createVoucher + //instance.createVoucher(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getVoucherByCode', function() { + it('should call getVoucherByCode successfully', function(done) { + //uncomment below and update the code to test getVoucherByCode + //instance.getVoucherByCode(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getVoucherById', function() { + it('should call getVoucherById successfully', function(done) { + //uncomment below and update the code to test getVoucherById + //instance.getVoucherById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getVoucherStatsById', function() { + it('should call getVoucherStatsById successfully', function(done) { + //uncomment below and update the code to test getVoucherStatsById + //instance.getVoucherStatsById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getVoucherValidityPeriods', function() { + it('should call getVoucherValidityPeriods successfully', function(done) { + //uncomment below and update the code to test getVoucherValidityPeriods + //instance.getVoucherValidityPeriods(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getVouchers', function() { + it('should call getVouchers successfully', function(done) { + //uncomment below and update the code to test getVouchers + //instance.getVouchers(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setVoucherValidityPeriodsSimplified', function() { + it('should call setVoucherValidityPeriodsSimplified successfully', function(done) { + //uncomment below and update the code to test setVoucherValidityPeriodsSimplified + //instance.setVoucherValidityPeriodsSimplified(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateVoucher', function() { + it('should call updateVoucher successfully', function(done) { + //uncomment below and update the code to test updateVoucher + //instance.updateVoucher(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateVoucherUsage', function() { + it('should call updateVoucherUsage successfully', function(done) { + //uncomment below and update the code to test updateVoucherUsage + //instance.updateVoucherUsage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/WebhooksApi.spec.js b/test/api/WebhooksApi.spec.js new file mode 100644 index 00000000..b5387471 --- /dev/null +++ b/test/api/WebhooksApi.spec.js @@ -0,0 +1,153 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhooksApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhooksApi', function() { + describe('createWebhookSubscription', function() { + it('should call createWebhookSubscription successfully', function(done) { + //uncomment below and update the code to test createWebhookSubscription + //instance.createWebhookSubscription(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createWebhookSubscriptionEventNames', function() { + it('should call createWebhookSubscriptionEventNames successfully', function(done) { + //uncomment below and update the code to test createWebhookSubscriptionEventNames + //instance.createWebhookSubscriptionEventNames(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteWebhookSubscription', function() { + it('should call deleteWebhookSubscription successfully', function(done) { + //uncomment below and update the code to test deleteWebhookSubscription + //instance.deleteWebhookSubscription(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteWebhookSubscriptionEventName', function() { + it('should call deleteWebhookSubscriptionEventName successfully', function(done) { + //uncomment below and update the code to test deleteWebhookSubscriptionEventName + //instance.deleteWebhookSubscriptionEventName(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getWebhookEventNames', function() { + it('should call getWebhookEventNames successfully', function(done) { + //uncomment below and update the code to test getWebhookEventNames + //instance.getWebhookEventNames(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getWebhookEventNamesBySubscriptionId', function() { + it('should call getWebhookEventNamesBySubscriptionId successfully', function(done) { + //uncomment below and update the code to test getWebhookEventNamesBySubscriptionId + //instance.getWebhookEventNamesBySubscriptionId(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getWebhookEventSample', function() { + it('should call getWebhookEventSample successfully', function(done) { + //uncomment below and update the code to test getWebhookEventSample + //instance.getWebhookEventSample(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getWebhookLogs', function() { + it('should call getWebhookLogs successfully', function(done) { + //uncomment below and update the code to test getWebhookLogs + //instance.getWebhookLogs(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getWebhookSubscriptions', function() { + it('should call getWebhookSubscriptions successfully', function(done) { + //uncomment below and update the code to test getWebhookSubscriptions + //instance.getWebhookSubscriptions(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateWebhookSubscription', function() { + it('should call updateWebhookSubscription successfully', function(done) { + //uncomment below and update the code to test updateWebhookSubscription + //instance.updateWebhookSubscription(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/WebsiteApi.spec.js b/test/api/WebsiteApi.spec.js new file mode 100644 index 00000000..fa915fa7 --- /dev/null +++ b/test/api/WebsiteApi.spec.js @@ -0,0 +1,133 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebsiteApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebsiteApi', function() { + describe('addTestimonial', function() { + it('should call addTestimonial successfully', function(done) { + //uncomment below and update the code to test addTestimonial + //instance.addTestimonial(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteTestimonial', function() { + it('should call deleteTestimonial successfully', function(done) { + //uncomment below and update the code to test deleteTestimonial + //instance.deleteTestimonial(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteWebsiteImage', function() { + it('should call deleteWebsiteImage successfully', function(done) { + //uncomment below and update the code to test deleteWebsiteImage + //instance.deleteWebsiteImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('editTestimonial', function() { + it('should call editTestimonial successfully', function(done) { + //uncomment below and update the code to test editTestimonial + //instance.editTestimonial(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getIndexConfiguration', function() { + it('should call getIndexConfiguration successfully', function(done) { + //uncomment below and update the code to test getIndexConfiguration + //instance.getIndexConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('setIndexConfiguration', function() { + it('should call setIndexConfiguration successfully', function(done) { + //uncomment below and update the code to test setIndexConfiguration + //instance.setIndexConfiguration(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadWebsiteImage', function() { + it('should call uploadWebsiteImage successfully', function(done) { + //uncomment below and update the code to test uploadWebsiteImage + //instance.uploadWebsiteImage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('websiteCheckNow', function() { + it('should call websiteCheckNow successfully', function(done) { + //uncomment below and update the code to test websiteCheckNow + //instance.websiteCheckNow(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/model/Accept.spec.js b/test/model/Accept.spec.js new file mode 100644 index 00000000..76218763 --- /dev/null +++ b/test/model/Accept.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Accept(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Accept', function() { + it('should create an instance of Accept', function() { + // uncomment below and update the code to test Accept + //var instane = new Flipdish.Accept(); + //expect(instance).to.be.a(Flipdish.Accept); + }); + + it('should have the property EstimatedMinutesForDelivery (base name: "EstimatedMinutesForDelivery")', function() { + // uncomment below and update the code to test the property EstimatedMinutesForDelivery + //var instance = new Flipdish.Accept(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AcceptInvitationResult.spec.js b/test/model/AcceptInvitationResult.spec.js new file mode 100644 index 00000000..f49d22c0 --- /dev/null +++ b/test/model/AcceptInvitationResult.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AcceptInvitationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AcceptInvitationResult', function() { + it('should create an instance of AcceptInvitationResult', function() { + // uncomment below and update the code to test AcceptInvitationResult + //var instane = new Flipdish.AcceptInvitationResult(); + //expect(instance).to.be.a(Flipdish.AcceptInvitationResult); + }); + + it('should have the property IsNewUser (base name: "IsNewUser")', function() { + // uncomment below and update the code to test the property IsNewUser + //var instance = new Flipdish.AcceptInvitationResult(); + //expect(instance).to.be(); + }); + + it('should have the property InvitedEmailAddress (base name: "InvitedEmailAddress")', function() { + // uncomment below and update the code to test the property InvitedEmailAddress + //var instance = new Flipdish.AcceptInvitationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AccountDetail.spec.js b/test/model/AccountDetail.spec.js new file mode 100644 index 00000000..e542130c --- /dev/null +++ b/test/model/AccountDetail.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AccountDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccountDetail', function() { + it('should create an instance of AccountDetail', function() { + // uncomment below and update the code to test AccountDetail + //var instane = new Flipdish.AccountDetail(); + //expect(instance).to.be.a(Flipdish.AccountDetail); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property SignupSteps (base name: "SignupSteps")', function() { + // uncomment below and update the code to test the property SignupSteps + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property IsVerified (base name: "IsVerified")', function() { + // uncomment below and update the code to test the property IsVerified + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property IsSelfServeUser (base name: "IsSelfServeUser")', function() { + // uncomment below and update the code to test the property IsSelfServeUser + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property AccountId (base name: "AccountId")', function() { + // uncomment below and update the code to test the property AccountId + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Language (base name: "Language")', function() { + // uncomment below and update the code to test the property Language + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property TimeZoneInfoId (base name: "TimeZoneInfoId")', function() { + // uncomment below and update the code to test the property TimeZoneInfoId + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayTimesInUserLocalTimeZone (base name: "DisplayTimesInUserLocalTimeZone")', function() { + // uncomment below and update the code to test the property DisplayTimesInUserLocalTimeZone + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property ShowHiddenFeatures (base name: "ShowHiddenFeatures")', function() { + // uncomment below and update the code to test the property ShowHiddenFeatures + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedAt (base name: "CreatedAt")', function() { + // uncomment below and update the code to test the property CreatedAt + //var instance = new Flipdish.AccountDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AccountDetailBase.spec.js b/test/model/AccountDetailBase.spec.js new file mode 100644 index 00000000..acd1845e --- /dev/null +++ b/test/model/AccountDetailBase.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AccountDetailBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccountDetailBase', function() { + it('should create an instance of AccountDetailBase', function() { + // uncomment below and update the code to test AccountDetailBase + //var instane = new Flipdish.AccountDetailBase(); + //expect(instance).to.be.a(Flipdish.AccountDetailBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AccountDetailBase(); + //expect(instance).to.be(); + }); + + it('should have the property Language (base name: "Language")', function() { + // uncomment below and update the code to test the property Language + //var instance = new Flipdish.AccountDetailBase(); + //expect(instance).to.be(); + }); + + it('should have the property TimeZoneInfoId (base name: "TimeZoneInfoId")', function() { + // uncomment below and update the code to test the property TimeZoneInfoId + //var instance = new Flipdish.AccountDetailBase(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayTimesInUserLocalTimeZone (base name: "DisplayTimesInUserLocalTimeZone")', function() { + // uncomment below and update the code to test the property DisplayTimesInUserLocalTimeZone + //var instance = new Flipdish.AccountDetailBase(); + //expect(instance).to.be(); + }); + + it('should have the property ShowHiddenFeatures (base name: "ShowHiddenFeatures")', function() { + // uncomment below and update the code to test the property ShowHiddenFeatures + //var instance = new Flipdish.AccountDetailBase(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedAt (base name: "CreatedAt")', function() { + // uncomment below and update the code to test the property CreatedAt + //var instance = new Flipdish.AccountDetailBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AccountFieldDefinition.spec.js b/test/model/AccountFieldDefinition.spec.js new file mode 100644 index 00000000..12cb8325 --- /dev/null +++ b/test/model/AccountFieldDefinition.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AccountFieldDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccountFieldDefinition', function() { + it('should create an instance of AccountFieldDefinition', function() { + // uncomment below and update the code to test AccountFieldDefinition + //var instane = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be.a(Flipdish.AccountFieldDefinition); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // uncomment below and update the code to test the property DisplayName + //var instance = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property MinLength (base name: "MinLength")', function() { + // uncomment below and update the code to test the property MinLength + //var instance = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property MaxLength (base name: "MaxLength")', function() { + // uncomment below and update the code to test the property MaxLength + //var instance = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property DigitsOnly (base name: "DigitsOnly")', function() { + // uncomment below and update the code to test the property DigitsOnly + //var instance = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Regex (base name: "Regex")', function() { + // uncomment below and update the code to test the property Regex + //var instance = new Flipdish.AccountFieldDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AccountFieldKeyValuePair.spec.js b/test/model/AccountFieldKeyValuePair.spec.js new file mode 100644 index 00000000..6c9392ca --- /dev/null +++ b/test/model/AccountFieldKeyValuePair.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AccountFieldKeyValuePair(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccountFieldKeyValuePair', function() { + it('should create an instance of AccountFieldKeyValuePair', function() { + // uncomment below and update the code to test AccountFieldKeyValuePair + //var instane = new Flipdish.AccountFieldKeyValuePair(); + //expect(instance).to.be.a(Flipdish.AccountFieldKeyValuePair); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.AccountFieldKeyValuePair(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.AccountFieldKeyValuePair(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AccountFieldsDefinitions.spec.js b/test/model/AccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..08178c6c --- /dev/null +++ b/test/model/AccountFieldsDefinitions.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AccountFieldsDefinitions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccountFieldsDefinitions', function() { + it('should create an instance of AccountFieldsDefinitions', function() { + // uncomment below and update the code to test AccountFieldsDefinitions + //var instane = new Flipdish.AccountFieldsDefinitions(); + //expect(instance).to.be.a(Flipdish.AccountFieldsDefinitions); + }); + + it('should have the property DefinitionsPerCountry (base name: "DefinitionsPerCountry")', function() { + // uncomment below and update the code to test the property DefinitionsPerCountry + //var instance = new Flipdish.AccountFieldsDefinitions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddressFormDisplayFormat.spec.js b/test/model/AddressFormDisplayFormat.spec.js new file mode 100644 index 00000000..706f9ba7 --- /dev/null +++ b/test/model/AddressFormDisplayFormat.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AddressFormDisplayFormat(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AddressFormDisplayFormat', function() { + it('should create an instance of AddressFormDisplayFormat', function() { + // uncomment below and update the code to test AddressFormDisplayFormat + //var instane = new Flipdish.AddressFormDisplayFormat(); + //expect(instance).to.be.a(Flipdish.AddressFormDisplayFormat); + }); + + it('should have the property OneLine (base name: "OneLine")', function() { + // uncomment below and update the code to test the property OneLine + //var instance = new Flipdish.AddressFormDisplayFormat(); + //expect(instance).to.be(); + }); + + it('should have the property TwoLines (base name: "TwoLines")', function() { + // uncomment below and update the code to test the property TwoLines + //var instance = new Flipdish.AddressFormDisplayFormat(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddressFormResponse.spec.js b/test/model/AddressFormResponse.spec.js new file mode 100644 index 00000000..44fd15b6 --- /dev/null +++ b/test/model/AddressFormResponse.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AddressFormResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AddressFormResponse', function() { + it('should create an instance of AddressFormResponse', function() { + // uncomment below and update the code to test AddressFormResponse + //var instane = new Flipdish.AddressFormResponse(); + //expect(instance).to.be.a(Flipdish.AddressFormResponse); + }); + + it('should have the property FormData (base name: "FormData")', function() { + // uncomment below and update the code to test the property FormData + //var instance = new Flipdish.AddressFormResponse(); + //expect(instance).to.be(); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // uncomment below and update the code to test the property CountryCode + //var instance = new Flipdish.AddressFormResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Language (base name: "Language")', function() { + // uncomment below and update the code to test the property Language + //var instance = new Flipdish.AddressFormResponse(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayFormat (base name: "DisplayFormat")', function() { + // uncomment below and update the code to test the property DisplayFormat + //var instance = new Flipdish.AddressFormResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AllMetadataResult.spec.js b/test/model/AllMetadataResult.spec.js new file mode 100644 index 00000000..a16a8a3e --- /dev/null +++ b/test/model/AllMetadataResult.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AllMetadataResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AllMetadataResult', function() { + it('should create an instance of AllMetadataResult', function() { + // uncomment below and update the code to test AllMetadataResult + //var instane = new Flipdish.AllMetadataResult(); + //expect(instance).to.be.a(Flipdish.AllMetadataResult); + }); + + it('should have the property MenuItemMetadata (base name: "MenuItemMetadata")', function() { + // uncomment below and update the code to test the property MenuItemMetadata + //var instance = new Flipdish.AllMetadataResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItemMetadata (base name: "MenuItemOptionSetItemMetadata")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItemMetadata + //var instance = new Flipdish.AllMetadataResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Allergen.spec.js b/test/model/Allergen.spec.js new file mode 100644 index 00000000..00a9fcb7 --- /dev/null +++ b/test/model/Allergen.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Allergen(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Allergen', function() { + it('should create an instance of Allergen', function() { + // uncomment below and update the code to test Allergen + //var instane = new Flipdish.Allergen(); + //expect(instance).to.be.a(Flipdish.Allergen); + }); + + it('should have the property AllergenId (base name: "AllergenId")', function() { + // uncomment below and update the code to test the property AllergenId + //var instance = new Flipdish.Allergen(); + //expect(instance).to.be(); + }); + + it('should have the property LocalizedName (base name: "LocalizedName")', function() { + // uncomment below and update the code to test the property LocalizedName + //var instance = new Flipdish.Allergen(); + //expect(instance).to.be(); + }); + + it('should have the property IconUrl (base name: "IconUrl")', function() { + // uncomment below and update the code to test the property IconUrl + //var instance = new Flipdish.Allergen(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AnalyticsClientEvent.spec.js b/test/model/AnalyticsClientEvent.spec.js new file mode 100644 index 00000000..9f7fee3d --- /dev/null +++ b/test/model/AnalyticsClientEvent.spec.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AnalyticsClientEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsClientEvent', function() { + it('should create an instance of AnalyticsClientEvent', function() { + // uncomment below and update the code to test AnalyticsClientEvent + //var instane = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be.a(Flipdish.AnalyticsClientEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventType (base name: "EventType")', function() { + // uncomment below and update the code to test the property EventType + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppType (base name: "AppType")', function() { + // uncomment below and update the code to test the property AppType + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // uncomment below and update the code to test the property Latitude + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // uncomment below and update the code to test the property Longitude + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.AnalyticsClientEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ApmCurrencyDataPoint.spec.js b/test/model/ApmCurrencyDataPoint.spec.js new file mode 100644 index 00000000..6164f28b --- /dev/null +++ b/test/model/ApmCurrencyDataPoint.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ApmCurrencyDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ApmCurrencyDataPoint', function() { + it('should create an instance of ApmCurrencyDataPoint', function() { + // uncomment below and update the code to test ApmCurrencyDataPoint + //var instane = new Flipdish.ApmCurrencyDataPoint(); + //expect(instance).to.be.a(Flipdish.ApmCurrencyDataPoint); + }); + + it('should have the property PeriodStart (base name: "PeriodStart")', function() { + // uncomment below and update the code to test the property PeriodStart + //var instance = new Flipdish.ApmCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodLengthInDays (base name: "PeriodLengthInDays")', function() { + // uncomment below and update the code to test the property PeriodLengthInDays + //var instance = new Flipdish.ApmCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property CurrencyData (base name: "CurrencyData")', function() { + // uncomment below and update the code to test the property CurrencyData + //var instance = new Flipdish.ApmCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ApmDataPoint.spec.js b/test/model/ApmDataPoint.spec.js new file mode 100644 index 00000000..ea0c79b5 --- /dev/null +++ b/test/model/ApmDataPoint.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ApmDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ApmDataPoint', function() { + it('should create an instance of ApmDataPoint', function() { + // uncomment below and update the code to test ApmDataPoint + //var instane = new Flipdish.ApmDataPoint(); + //expect(instance).to.be.a(Flipdish.ApmDataPoint); + }); + + it('should have the property PeriodStart (base name: "PeriodStart")', function() { + // uncomment below and update the code to test the property PeriodStart + //var instance = new Flipdish.ApmDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodLengthInDays (base name: "PeriodLengthInDays")', function() { + // uncomment below and update the code to test the property PeriodLengthInDays + //var instance = new Flipdish.ApmDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.ApmDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ApmHourlyDataPoint.spec.js b/test/model/ApmHourlyDataPoint.spec.js new file mode 100644 index 00000000..26c8a6ff --- /dev/null +++ b/test/model/ApmHourlyDataPoint.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ApmHourlyDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ApmHourlyDataPoint', function() { + it('should create an instance of ApmHourlyDataPoint', function() { + // uncomment below and update the code to test ApmHourlyDataPoint + //var instane = new Flipdish.ApmHourlyDataPoint(); + //expect(instance).to.be.a(Flipdish.ApmHourlyDataPoint); + }); + + it('should have the property Day (base name: "Day")', function() { + // uncomment below and update the code to test the property Day + //var instance = new Flipdish.ApmHourlyDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property Hour (base name: "Hour")', function() { + // uncomment below and update the code to test the property Hour + //var instance = new Flipdish.ApmHourlyDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property TotalValue (base name: "TotalValue")', function() { + // uncomment below and update the code to test the property TotalValue + //var instance = new Flipdish.ApmHourlyDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ApmStatistics.spec.js b/test/model/ApmStatistics.spec.js new file mode 100644 index 00000000..a418057b --- /dev/null +++ b/test/model/ApmStatistics.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ApmStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ApmStatistics', function() { + it('should create an instance of ApmStatistics', function() { + // uncomment below and update the code to test ApmStatistics + //var instane = new Flipdish.ApmStatistics(); + //expect(instance).to.be.a(Flipdish.ApmStatistics); + }); + + it('should have the property EstimatedMinutesSaved (base name: "EstimatedMinutesSaved")', function() { + // uncomment below and update the code to test the property EstimatedMinutesSaved + //var instance = new Flipdish.ApmStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property EstimatedMinutesCouldSaved (base name: "EstimatedMinutesCouldSaved")', function() { + // uncomment below and update the code to test the property EstimatedMinutesCouldSaved + //var instance = new Flipdish.ApmStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property CurrencyData (base name: "CurrencyData")', function() { + // uncomment below and update the code to test the property CurrencyData + //var instance = new Flipdish.ApmStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ApmStatus.spec.js b/test/model/ApmStatus.spec.js new file mode 100644 index 00000000..c99d39a2 --- /dev/null +++ b/test/model/ApmStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ApmStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ApmStatus', function() { + it('should create an instance of ApmStatus', function() { + // uncomment below and update the code to test ApmStatus + //var instane = new Flipdish.ApmStatus(); + //expect(instance).to.be.a(Flipdish.ApmStatus); + }); + + it('should have the property IsApmEnabled (base name: "IsApmEnabled")', function() { + // uncomment below and update the code to test the property IsApmEnabled + //var instance = new Flipdish.ApmStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/App.spec.js b/test/model/App.spec.js new file mode 100644 index 00000000..1734be97 --- /dev/null +++ b/test/model/App.spec.js @@ -0,0 +1,227 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.App(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('App', function() { + it('should create an instance of App', function() { + // uncomment below and update the code to test App + //var instane = new Flipdish.App(); + //expect(instance).to.be.a(Flipdish.App); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property HasIosApp (base name: "HasIosApp")', function() { + // uncomment below and update the code to test the property HasIosApp + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property IosAppStoreUrl (base name: "IosAppStoreUrl")', function() { + // uncomment below and update the code to test the property IosAppStoreUrl + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property HasAndroidApp (base name: "HasAndroidApp")', function() { + // uncomment below and update the code to test the property HasAndroidApp + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property AndroidPlayStoreUrl (base name: "AndroidPlayStoreUrl")', function() { + // uncomment below and update the code to test the property AndroidPlayStoreUrl + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayDeliveryRestaurantScreen (base name: "DisplayDeliveryRestaurantScreen")', function() { + // uncomment below and update the code to test the property DisplayDeliveryRestaurantScreen + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property LogoImageUrl (base name: "LogoImageUrl")', function() { + // uncomment below and update the code to test the property LogoImageUrl + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property Languages (base name: "Languages")', function() { + // uncomment below and update the code to test the property Languages + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property AvailableAppLanguages (base name: "AvailableAppLanguages")', function() { + // uncomment below and update the code to test the property AvailableAppLanguages + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // uncomment below and update the code to test the property AppAccessLevel + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property AppResourceSet (base name: "AppResourceSet")', function() { + // uncomment below and update the code to test the property AppResourceSet + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property Features (base name: "Features")', function() { + // uncomment below and update the code to test the property Features + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property MapCenter (base name: "MapCenter")', function() { + // uncomment below and update the code to test the property MapCenter + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property MapNorthEast (base name: "MapNorthEast")', function() { + // uncomment below and update the code to test the property MapNorthEast + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property MapSouthWest (base name: "MapSouthWest")', function() { + // uncomment below and update the code to test the property MapSouthWest + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property GoogleMapsApiKeyWeb (base name: "GoogleMapsApiKeyWeb")', function() { + // uncomment below and update the code to test the property GoogleMapsApiKeyWeb + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property SmsRestaurantName (base name: "SmsRestaurantName")', function() { + // uncomment below and update the code to test the property SmsRestaurantName + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property WebToAppRedirect (base name: "WebToAppRedirect")', function() { + // uncomment below and update the code to test the property WebToAppRedirect + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property HostName (base name: "HostName")', function() { + // uncomment below and update the code to test the property HostName + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property MainColor (base name: "MainColor")', function() { + // uncomment below and update the code to test the property MainColor + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property KioskPrimaryColour (base name: "KioskPrimaryColour")', function() { + // uncomment below and update the code to test the property KioskPrimaryColour + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property ApplicationCategory (base name: "ApplicationCategory")', function() { + // uncomment below and update the code to test the property ApplicationCategory + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property IsPanaceaEnabled (base name: "IsPanaceaEnabled")', function() { + // uncomment below and update the code to test the property IsPanaceaEnabled + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property PanaceaVanityUrl (base name: "PanaceaVanityUrl")', function() { + // uncomment below and update the code to test the property PanaceaVanityUrl + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property CookieConsentPromptEnabled (base name: "CookieConsentPromptEnabled")', function() { + // uncomment below and update the code to test the property CookieConsentPromptEnabled + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // uncomment below and update the code to test the property CountryId + //var instance = new Flipdish.App(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppChannelAssignment.spec.js b/test/model/AppChannelAssignment.spec.js new file mode 100644 index 00000000..f6e38a21 --- /dev/null +++ b/test/model/AppChannelAssignment.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppChannelAssignment(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppChannelAssignment', function() { + it('should create an instance of AppChannelAssignment', function() { + // uncomment below and update the code to test AppChannelAssignment + //var instane = new Flipdish.AppChannelAssignment(); + //expect(instance).to.be.a(Flipdish.AppChannelAssignment); + }); + + it('should have the property ChannelId (base name: "ChannelId")', function() { + // uncomment below and update the code to test the property ChannelId + //var instance = new Flipdish.AppChannelAssignment(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppChannelAssignment(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppCompliance.spec.js b/test/model/AppCompliance.spec.js new file mode 100644 index 00000000..7a5dbe8d --- /dev/null +++ b/test/model/AppCompliance.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppCompliance(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppCompliance', function() { + it('should create an instance of AppCompliance', function() { + // uncomment below and update the code to test AppCompliance + //var instane = new Flipdish.AppCompliance(); + //expect(instance).to.be.a(Flipdish.AppCompliance); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppCompliance(); + //expect(instance).to.be(); + }); + + it('should have the property ComplianceType (base name: "ComplianceType")', function() { + // uncomment below and update the code to test the property ComplianceType + //var instance = new Flipdish.AppCompliance(); + //expect(instance).to.be(); + }); + + it('should have the property AllowDisablingOfGdpr (base name: "AllowDisablingOfGdpr")', function() { + // uncomment below and update the code to test the property AllowDisablingOfGdpr + //var instance = new Flipdish.AppCompliance(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppConfigSalesChannel.spec.js b/test/model/AppConfigSalesChannel.spec.js new file mode 100644 index 00000000..74f0ea90 --- /dev/null +++ b/test/model/AppConfigSalesChannel.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppConfigSalesChannel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppConfigSalesChannel', function() { + it('should create an instance of AppConfigSalesChannel', function() { + // uncomment below and update the code to test AppConfigSalesChannel + //var instane = new Flipdish.AppConfigSalesChannel(); + //expect(instance).to.be.a(Flipdish.AppConfigSalesChannel); + }); + + it('should have the property EmailRequestMode (base name: "EmailRequestMode")', function() { + // uncomment below and update the code to test the property EmailRequestMode + //var instance = new Flipdish.AppConfigSalesChannel(); + //expect(instance).to.be(); + }); + + it('should have the property WebToAppRedirect (base name: "WebToAppRedirect")', function() { + // uncomment below and update the code to test the property WebToAppRedirect + //var instance = new Flipdish.AppConfigSalesChannel(); + //expect(instance).to.be(); + }); + + it('should have the property AddressEntryType (base name: "AddressEntryType")', function() { + // uncomment below and update the code to test the property AddressEntryType + //var instance = new Flipdish.AppConfigSalesChannel(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayDeliveryRestaurantListScreen (base name: "DisplayDeliveryRestaurantListScreen")', function() { + // uncomment below and update the code to test the property DisplayDeliveryRestaurantListScreen + //var instance = new Flipdish.AppConfigSalesChannel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppConfigUpdateModel.spec.js b/test/model/AppConfigUpdateModel.spec.js new file mode 100644 index 00000000..7cdf94cf --- /dev/null +++ b/test/model/AppConfigUpdateModel.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppConfigUpdateModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppConfigUpdateModel', function() { + it('should create an instance of AppConfigUpdateModel', function() { + // uncomment below and update the code to test AppConfigUpdateModel + //var instane = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be.a(Flipdish.AppConfigUpdateModel); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property HostName (base name: "HostName")', function() { + // uncomment below and update the code to test the property HostName + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property MainColor (base name: "MainColor")', function() { + // uncomment below and update the code to test the property MainColor + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property KioskPrimaryColour (base name: "KioskPrimaryColour")', function() { + // uncomment below and update the code to test the property KioskPrimaryColour + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property ApplicationCategory (base name: "ApplicationCategory")', function() { + // uncomment below and update the code to test the property ApplicationCategory + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property IsPanaceaEnabled (base name: "IsPanaceaEnabled")', function() { + // uncomment below and update the code to test the property IsPanaceaEnabled + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property PanaceaVanityUrl (base name: "PanaceaVanityUrl")', function() { + // uncomment below and update the code to test the property PanaceaVanityUrl + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property CookieConsentPromptEnabled (base name: "CookieConsentPromptEnabled")', function() { + // uncomment below and update the code to test the property CookieConsentPromptEnabled + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property LogoImageUrl (base name: "LogoImageUrl")', function() { + // uncomment below and update the code to test the property LogoImageUrl + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // uncomment below and update the code to test the property CountryId + //var instance = new Flipdish.AppConfigUpdateModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppCreatedEvent.spec.js b/test/model/AppCreatedEvent.spec.js new file mode 100644 index 00000000..d8ea0a1a --- /dev/null +++ b/test/model/AppCreatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppCreatedEvent', function() { + it('should create an instance of AppCreatedEvent', function() { + // uncomment below and update the code to test AppCreatedEvent + //var instane = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be.a(Flipdish.AppCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppName (base name: "AppName")', function() { + // uncomment below and update the code to test the property AppName + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // uncomment below and update the code to test the property CountryId + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AccountId (base name: "AccountId")', function() { + // uncomment below and update the code to test the property AccountId + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.AppCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppInstall.spec.js b/test/model/AppInstall.spec.js new file mode 100644 index 00000000..71d40f7b --- /dev/null +++ b/test/model/AppInstall.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppInstall(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppInstall', function() { + it('should create an instance of AppInstall', function() { + // uncomment below and update the code to test AppInstall + //var instane = new Flipdish.AppInstall(); + //expect(instance).to.be.a(Flipdish.AppInstall); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property FirstLogin (base name: "FirstLogin")', function() { + // uncomment below and update the code to test the property FirstLogin + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property FirstLoginHuman (base name: "FirstLoginHuman")', function() { + // uncomment below and update the code to test the property FirstLoginHuman + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property LastActivity (base name: "LastActivity")', function() { + // uncomment below and update the code to test the property LastActivity + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property LastActivityHuman (base name: "LastActivityHuman")', function() { + // uncomment below and update the code to test the property LastActivityHuman + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property GoogleTokens (base name: "GoogleTokens")', function() { + // uncomment below and update the code to test the property GoogleTokens + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property AppleTokens (base name: "AppleTokens")', function() { + // uncomment below and update the code to test the property AppleTokens + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCount (base name: "OrderCount")', function() { + // uncomment below and update the code to test the property OrderCount + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property UserAgentAtSignup (base name: "UserAgentAtSignup")', function() { + // uncomment below and update the code to test the property UserAgentAtSignup + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + it('should have the property UserAgentMostRecent (base name: "UserAgentMostRecent")', function() { + // uncomment below and update the code to test the property UserAgentMostRecent + //var instance = new Flipdish.AppInstall(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppLookup.spec.js b/test/model/AppLookup.spec.js new file mode 100644 index 00000000..143f067c --- /dev/null +++ b/test/model/AppLookup.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppLookup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppLookup', function() { + it('should create an instance of AppLookup', function() { + // uncomment below and update the code to test AppLookup + //var instane = new Flipdish.AppLookup(); + //expect(instance).to.be.a(Flipdish.AppLookup); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppLookup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreApp.spec.js b/test/model/AppStoreApp.spec.js new file mode 100644 index 00000000..42e7ec63 --- /dev/null +++ b/test/model/AppStoreApp.spec.js @@ -0,0 +1,197 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreApp', function() { + it('should create an instance of AppStoreApp', function() { + // uncomment below and update the code to test AppStoreApp + //var instane = new Flipdish.AppStoreApp(); + //expect(instance).to.be.a(Flipdish.AppStoreApp); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property VerificationStatus (base name: "VerificationStatus")', function() { + // uncomment below and update the code to test the property VerificationStatus + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Logo (base name: "Logo")', function() { + // uncomment below and update the code to test the property Logo + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property OAuthAppId (base name: "OAuthAppId")', function() { + // uncomment below and update the code to test the property OAuthAppId + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Internal (base name: "Internal")', function() { + // uncomment below and update the code to test the property Internal + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Details (base name: "Details")', function() { + // uncomment below and update the code to test the property Details + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigurationType (base name: "ConfigurationType")', function() { + // uncomment below and update the code to test the property ConfigurationType + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property FieldGroups (base name: "FieldGroups")', function() { + // uncomment below and update the code to test the property FieldGroups + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property SetupInstructions (base name: "SetupInstructions")', function() { + // uncomment below and update the code to test the property SetupInstructions + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalSetupLink (base name: "ExternalSetupLink")', function() { + // uncomment below and update the code to test the property ExternalSetupLink + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateAppAccessLevel (base name: "TeammateAppAccessLevel")', function() { + // uncomment below and update the code to test the property TeammateAppAccessLevel + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property PermissionsType (base name: "PermissionsType")', function() { + // uncomment below and update the code to test the property PermissionsType + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Support (base name: "Support")', function() { + // uncomment below and update the code to test the property Support + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionActionUrl (base name: "ExternalFunctionActionUrl")', function() { + // uncomment below and update the code to test the property ExternalFunctionActionUrl + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionSignatureKey (base name: "ExternalFunctionSignatureKey")', function() { + // uncomment below and update the code to test the property ExternalFunctionSignatureKey + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property IsPaid (base name: "IsPaid")', function() { + // uncomment below and update the code to test the property IsPaid + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Categories (base name: "Categories")', function() { + // uncomment below and update the code to test the property Categories + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Countries (base name: "Countries")', function() { + // uncomment below and update the code to test the property Countries + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property DeveloperName (base name: "DeveloperName")', function() { + // uncomment below and update the code to test the property DeveloperName + //var instance = new Flipdish.AppStoreApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreAppConfiguration.spec.js b/test/model/AppStoreAppConfiguration.spec.js new file mode 100644 index 00000000..723ea13b --- /dev/null +++ b/test/model/AppStoreAppConfiguration.spec.js @@ -0,0 +1,221 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreAppConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreAppConfiguration', function() { + it('should create an instance of AppStoreAppConfiguration', function() { + // uncomment below and update the code to test AppStoreAppConfiguration + //var instane = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be.a(Flipdish.AppStoreAppConfiguration); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppId (base name: "AppStoreAppId")', function() { + // uncomment below and update the code to test the property AppStoreAppId + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Settings (base name: "Settings")', function() { + // uncomment below and update the code to test the property Settings + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property VerificationStatus (base name: "VerificationStatus")', function() { + // uncomment below and update the code to test the property VerificationStatus + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Logo (base name: "Logo")', function() { + // uncomment below and update the code to test the property Logo + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property OAuthAppId (base name: "OAuthAppId")', function() { + // uncomment below and update the code to test the property OAuthAppId + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Internal (base name: "Internal")', function() { + // uncomment below and update the code to test the property Internal + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Details (base name: "Details")', function() { + // uncomment below and update the code to test the property Details + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigurationType (base name: "ConfigurationType")', function() { + // uncomment below and update the code to test the property ConfigurationType + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property FieldGroups (base name: "FieldGroups")', function() { + // uncomment below and update the code to test the property FieldGroups + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property SetupInstructions (base name: "SetupInstructions")', function() { + // uncomment below and update the code to test the property SetupInstructions + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalSetupLink (base name: "ExternalSetupLink")', function() { + // uncomment below and update the code to test the property ExternalSetupLink + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateAppAccessLevel (base name: "TeammateAppAccessLevel")', function() { + // uncomment below and update the code to test the property TeammateAppAccessLevel + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property PermissionsType (base name: "PermissionsType")', function() { + // uncomment below and update the code to test the property PermissionsType + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Support (base name: "Support")', function() { + // uncomment below and update the code to test the property Support + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionActionUrl (base name: "ExternalFunctionActionUrl")', function() { + // uncomment below and update the code to test the property ExternalFunctionActionUrl + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionSignatureKey (base name: "ExternalFunctionSignatureKey")', function() { + // uncomment below and update the code to test the property ExternalFunctionSignatureKey + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property IsPaid (base name: "IsPaid")', function() { + // uncomment below and update the code to test the property IsPaid + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Categories (base name: "Categories")', function() { + // uncomment below and update the code to test the property Categories + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Countries (base name: "Countries")', function() { + // uncomment below and update the code to test the property Countries + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property DeveloperName (base name: "DeveloperName")', function() { + // uncomment below and update the code to test the property DeveloperName + //var instance = new Flipdish.AppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreAppConfigurationSummary.spec.js b/test/model/AppStoreAppConfigurationSummary.spec.js new file mode 100644 index 00000000..a123ba65 --- /dev/null +++ b/test/model/AppStoreAppConfigurationSummary.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreAppConfigurationSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreAppConfigurationSummary', function() { + it('should create an instance of AppStoreAppConfigurationSummary', function() { + // uncomment below and update the code to test AppStoreAppConfigurationSummary + //var instane = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be.a(Flipdish.AppStoreAppConfigurationSummary); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigurationType (base name: "ConfigurationType")', function() { + // uncomment below and update the code to test the property ConfigurationType + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Internal (base name: "Internal")', function() { + // uncomment below and update the code to test the property Internal + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppId (base name: "AppStoreAppId")', function() { + // uncomment below and update the code to test the property AppStoreAppId + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Logo (base name: "Logo")', function() { + // uncomment below and update the code to test the property Logo + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DeveloperName (base name: "DeveloperName")', function() { + // uncomment below and update the code to test the property DeveloperName + //var instance = new Flipdish.AppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreAppEntitlements.spec.js b/test/model/AppStoreAppEntitlements.spec.js new file mode 100644 index 00000000..2007db34 --- /dev/null +++ b/test/model/AppStoreAppEntitlements.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreAppEntitlements(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreAppEntitlements', function() { + it('should create an instance of AppStoreAppEntitlements', function() { + // uncomment below and update the code to test AppStoreAppEntitlements + //var instane = new Flipdish.AppStoreAppEntitlements(); + //expect(instance).to.be.a(Flipdish.AppStoreAppEntitlements); + }); + + it('should have the property EntitlementQuantity (base name: "EntitlementQuantity")', function() { + // uncomment below and update the code to test the property EntitlementQuantity + //var instance = new Flipdish.AppStoreAppEntitlements(); + //expect(instance).to.be(); + }); + + it('should have the property CurrentUsage (base name: "CurrentUsage")', function() { + // uncomment below and update the code to test the property CurrentUsage + //var instance = new Flipdish.AppStoreAppEntitlements(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreAppSummary.spec.js b/test/model/AppStoreAppSummary.spec.js new file mode 100644 index 00000000..161b3cf1 --- /dev/null +++ b/test/model/AppStoreAppSummary.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreAppSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreAppSummary', function() { + it('should create an instance of AppStoreAppSummary', function() { + // uncomment below and update the code to test AppStoreAppSummary + //var instane = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be.a(Flipdish.AppStoreAppSummary); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property VerificationStatus (base name: "VerificationStatus")', function() { + // uncomment below and update the code to test the property VerificationStatus + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Logo (base name: "Logo")', function() { + // uncomment below and update the code to test the property Logo + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Internal (base name: "Internal")', function() { + // uncomment below and update the code to test the property Internal + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Categories (base name: "Categories")', function() { + // uncomment below and update the code to test the property Categories + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Countries (base name: "Countries")', function() { + // uncomment below and update the code to test the property Countries + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DeveloperName (base name: "DeveloperName")', function() { + // uncomment below and update the code to test the property DeveloperName + //var instance = new Flipdish.AppStoreAppSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreAppSupportInfo.spec.js b/test/model/AppStoreAppSupportInfo.spec.js new file mode 100644 index 00000000..4ef18d9d --- /dev/null +++ b/test/model/AppStoreAppSupportInfo.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreAppSupportInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreAppSupportInfo', function() { + it('should create an instance of AppStoreAppSupportInfo', function() { + // uncomment below and update the code to test AppStoreAppSupportInfo + //var instane = new Flipdish.AppStoreAppSupportInfo(); + //expect(instance).to.be.a(Flipdish.AppStoreAppSupportInfo); + }); + + it('should have the property PrivacyPolicy (base name: "PrivacyPolicy")', function() { + // uncomment below and update the code to test the property PrivacyPolicy + //var instance = new Flipdish.AppStoreAppSupportInfo(); + //expect(instance).to.be(); + }); + + it('should have the property TermsOfUse (base name: "TermsOfUse")', function() { + // uncomment below and update the code to test the property TermsOfUse + //var instance = new Flipdish.AppStoreAppSupportInfo(); + //expect(instance).to.be(); + }); + + it('should have the property CompanyWebsite (base name: "CompanyWebsite")', function() { + // uncomment below and update the code to test the property CompanyWebsite + //var instance = new Flipdish.AppStoreAppSupportInfo(); + //expect(instance).to.be(); + }); + + it('should have the property LearnMore (base name: "LearnMore")', function() { + // uncomment below and update the code to test the property LearnMore + //var instance = new Flipdish.AppStoreAppSupportInfo(); + //expect(instance).to.be(); + }); + + it('should have the property InstallationMessage (base name: "InstallationMessage")', function() { + // uncomment below and update the code to test the property InstallationMessage + //var instance = new Flipdish.AppStoreAppSupportInfo(); + //expect(instance).to.be(); + }); + + it('should have the property SupportEmail (base name: "SupportEmail")', function() { + // uncomment below and update the code to test the property SupportEmail + //var instance = new Flipdish.AppStoreAppSupportInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreConfigCreatedEvent.spec.js b/test/model/AppStoreConfigCreatedEvent.spec.js new file mode 100644 index 00000000..036af4a7 --- /dev/null +++ b/test/model/AppStoreConfigCreatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreConfigCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreConfigCreatedEvent', function() { + it('should create an instance of AppStoreConfigCreatedEvent', function() { + // uncomment below and update the code to test AppStoreConfigCreatedEvent + //var instane = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be.a(Flipdish.AppStoreConfigCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppId (base name: "AppStoreAppId")', function() { + // uncomment below and update the code to test the property AppStoreAppId + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppConfigurationId (base name: "AppStoreAppConfigurationId")', function() { + // uncomment below and update the code to test the property AppStoreAppConfigurationId + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.AppStoreConfigCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreConfigDeletedEvent.spec.js b/test/model/AppStoreConfigDeletedEvent.spec.js new file mode 100644 index 00000000..11de798c --- /dev/null +++ b/test/model/AppStoreConfigDeletedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreConfigDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreConfigDeletedEvent', function() { + it('should create an instance of AppStoreConfigDeletedEvent', function() { + // uncomment below and update the code to test AppStoreConfigDeletedEvent + //var instane = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be.a(Flipdish.AppStoreConfigDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppId (base name: "AppStoreAppId")', function() { + // uncomment below and update the code to test the property AppStoreAppId + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppConfigurationId (base name: "AppStoreAppConfigurationId")', function() { + // uncomment below and update the code to test the property AppStoreAppConfigurationId + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.AppStoreConfigDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreConfigUpdatedEvent.spec.js b/test/model/AppStoreConfigUpdatedEvent.spec.js new file mode 100644 index 00000000..e6286c57 --- /dev/null +++ b/test/model/AppStoreConfigUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreConfigUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreConfigUpdatedEvent', function() { + it('should create an instance of AppStoreConfigUpdatedEvent', function() { + // uncomment below and update the code to test AppStoreConfigUpdatedEvent + //var instane = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.AppStoreConfigUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppId (base name: "AppStoreAppId")', function() { + // uncomment below and update the code to test the property AppStoreAppId + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppConfiguration (base name: "AppStoreAppConfiguration")', function() { + // uncomment below and update the code to test the property AppStoreAppConfiguration + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.AppStoreConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppStoreSubscriptionChangeJobUpdatedEvent.spec.js b/test/model/AppStoreSubscriptionChangeJobUpdatedEvent.spec.js new file mode 100644 index 00000000..013b2e02 --- /dev/null +++ b/test/model/AppStoreSubscriptionChangeJobUpdatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppStoreSubscriptionChangeJobUpdatedEvent', function() { + it('should create an instance of AppStoreSubscriptionChangeJobUpdatedEvent', function() { + // uncomment below and update the code to test AppStoreSubscriptionChangeJobUpdatedEvent + //var instane = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreAppId (base name: "AppStoreAppId")', function() { + // uncomment below and update the code to test the property AppStoreAppId + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.AppStoreSubscriptionChangeJobUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AppUpdatedEvent.spec.js b/test/model/AppUpdatedEvent.spec.js new file mode 100644 index 00000000..e705899f --- /dev/null +++ b/test/model/AppUpdatedEvent.spec.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AppUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AppUpdatedEvent', function() { + it('should create an instance of AppUpdatedEvent', function() { + // uncomment below and update the code to test AppUpdatedEvent + //var instane = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.AppUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Changes (base name: "Changes")', function() { + // uncomment below and update the code to test the property Changes + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppName (base name: "AppName")', function() { + // uncomment below and update the code to test the property AppName + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // uncomment below and update the code to test the property CountryId + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property App (base name: "App")', function() { + // uncomment below and update the code to test the property App + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.AppUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AssignedBankAccount.spec.js b/test/model/AssignedBankAccount.spec.js new file mode 100644 index 00000000..cc480af0 --- /dev/null +++ b/test/model/AssignedBankAccount.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AssignedBankAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AssignedBankAccount', function() { + it('should create an instance of AssignedBankAccount', function() { + // uncomment below and update the code to test AssignedBankAccount + //var instane = new Flipdish.AssignedBankAccount(); + //expect(instance).to.be.a(Flipdish.AssignedBankAccount); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.AssignedBankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountName (base name: "BankAccountName")', function() { + // uncomment below and update the code to test the property BankAccountName + //var instance = new Flipdish.AssignedBankAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AuditLogFieldChangeInformation.spec.js b/test/model/AuditLogFieldChangeInformation.spec.js new file mode 100644 index 00000000..2e98eb10 --- /dev/null +++ b/test/model/AuditLogFieldChangeInformation.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.AuditLogFieldChangeInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AuditLogFieldChangeInformation', function() { + it('should create an instance of AuditLogFieldChangeInformation', function() { + // uncomment below and update the code to test AuditLogFieldChangeInformation + //var instane = new Flipdish.AuditLogFieldChangeInformation(); + //expect(instance).to.be.a(Flipdish.AuditLogFieldChangeInformation); + }); + + it('should have the property Path (base name: "Path")', function() { + // uncomment below and update the code to test the property Path + //var instance = new Flipdish.AuditLogFieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.AuditLogFieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.AuditLogFieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property OldValue (base name: "OldValue")', function() { + // uncomment below and update the code to test the property OldValue + //var instance = new Flipdish.AuditLogFieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property NewValue (base name: "NewValue")', function() { + // uncomment below and update the code to test the property NewValue + //var instance = new Flipdish.AuditLogFieldChangeInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BalanceDetails.spec.js b/test/model/BalanceDetails.spec.js new file mode 100644 index 00000000..291ec1d5 --- /dev/null +++ b/test/model/BalanceDetails.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BalanceDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BalanceDetails', function() { + it('should create an instance of BalanceDetails', function() { + // uncomment below and update the code to test BalanceDetails + //var instane = new Flipdish.BalanceDetails(); + //expect(instance).to.be.a(Flipdish.BalanceDetails); + }); + + it('should have the property OpeningBalance (base name: "OpeningBalance")', function() { + // uncomment below and update the code to test the property OpeningBalance + //var instance = new Flipdish.BalanceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property ClosingBalance (base name: "ClosingBalance")', function() { + // uncomment below and update the code to test the property ClosingBalance + //var instance = new Flipdish.BalanceDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccount.spec.js b/test/model/BankAccount.spec.js new file mode 100644 index 00000000..00409872 --- /dev/null +++ b/test/model/BankAccount.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccount', function() { + it('should create an instance of BankAccount', function() { + // uncomment below and update the code to test BankAccount + //var instane = new Flipdish.BankAccount(); + //expect(instance).to.be.a(Flipdish.BankAccount); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // uncomment below and update the code to test the property Iban + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // uncomment below and update the code to test the property Swift + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // uncomment below and update the code to test the property PopulatedAccountFields + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property AccountState (base name: "AccountState")', function() { + // uncomment below and update the code to test the property AccountState + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // uncomment below and update the code to test the property BankAddress + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property BankCountryCode (base name: "BankCountryCode")', function() { + // uncomment below and update the code to test the property BankCountryCode + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // uncomment below and update the code to test the property AccountHolderAddress + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property AccountHolderCountryCode (base name: "AccountHolderCountryCode")', function() { + // uncomment below and update the code to test the property AccountHolderCountryCode + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // uncomment below and update the code to test the property VatNumber + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + it('should have the property StripeAccountId (base name: "StripeAccountId")', function() { + // uncomment below and update the code to test the property StripeAccountId + //var instance = new Flipdish.BankAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountAssignedEvent.spec.js b/test/model/BankAccountAssignedEvent.spec.js new file mode 100644 index 00000000..d20b711f --- /dev/null +++ b/test/model/BankAccountAssignedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountAssignedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountAssignedEvent', function() { + it('should create an instance of BankAccountAssignedEvent', function() { + // uncomment below and update the code to test BankAccountAssignedEvent + //var instane = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be.a(Flipdish.BankAccountAssignedEvent); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccount (base name: "BankAccount")', function() { + // uncomment below and update the code to test the property BankAccount + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.BankAccountAssignedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountCreate.spec.js b/test/model/BankAccountCreate.spec.js new file mode 100644 index 00000000..07ff8763 --- /dev/null +++ b/test/model/BankAccountCreate.spec.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountCreate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountCreate', function() { + it('should create an instance of BankAccountCreate', function() { + // uncomment below and update the code to test BankAccountCreate + //var instane = new Flipdish.BankAccountCreate(); + //expect(instance).to.be.a(Flipdish.BankAccountCreate); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // uncomment below and update the code to test the property BankAddress + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property BankCountryCode (base name: "BankCountryCode")', function() { + // uncomment below and update the code to test the property BankCountryCode + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // uncomment below and update the code to test the property AccountHolderAddress + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property AccountHolderCountryCode (base name: "AccountHolderCountryCode")', function() { + // uncomment below and update the code to test the property AccountHolderCountryCode + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // uncomment below and update the code to test the property VatNumber + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property CurrencyCode (base name: "CurrencyCode")', function() { + // uncomment below and update the code to test the property CurrencyCode + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property BankName (base name: "BankName")', function() { + // uncomment below and update the code to test the property BankName + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // uncomment below and update the code to test the property Iban + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // uncomment below and update the code to test the property Swift + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // uncomment below and update the code to test the property NationalClearingCode + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // uncomment below and update the code to test the property PopulatedAccountFields + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // uncomment below and update the code to test the property RejectionReason + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // uncomment below and update the code to test the property BusinessType + //var instance = new Flipdish.BankAccountCreate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountCreatedEvent.spec.js b/test/model/BankAccountCreatedEvent.spec.js new file mode 100644 index 00000000..51ae332f --- /dev/null +++ b/test/model/BankAccountCreatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountCreatedEvent', function() { + it('should create an instance of BankAccountCreatedEvent', function() { + // uncomment below and update the code to test BankAccountCreatedEvent + //var instane = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be.a(Flipdish.BankAccountCreatedEvent); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccount (base name: "BankAccount")', function() { + // uncomment below and update the code to test the property BankAccount + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.BankAccountCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountDeletedEvent.spec.js b/test/model/BankAccountDeletedEvent.spec.js new file mode 100644 index 00000000..84eef3cc --- /dev/null +++ b/test/model/BankAccountDeletedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountDeletedEvent', function() { + it('should create an instance of BankAccountDeletedEvent', function() { + // uncomment below and update the code to test BankAccountDeletedEvent + //var instane = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be.a(Flipdish.BankAccountDeletedEvent); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccount (base name: "BankAccount")', function() { + // uncomment below and update the code to test the property BankAccount + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.BankAccountDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountDetail.spec.js b/test/model/BankAccountDetail.spec.js new file mode 100644 index 00000000..8cbc5af2 --- /dev/null +++ b/test/model/BankAccountDetail.spec.js @@ -0,0 +1,173 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountDetail', function() { + it('should create an instance of BankAccountDetail', function() { + // uncomment below and update the code to test BankAccountDetail + //var instane = new Flipdish.BankAccountDetail(); + //expect(instance).to.be.a(Flipdish.BankAccountDetail); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property AccountState (base name: "AccountState")', function() { + // uncomment below and update the code to test the property AccountState + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property StripeConnectedAccountInfo (base name: "StripeConnectedAccountInfo")', function() { + // uncomment below and update the code to test the property StripeConnectedAccountInfo + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // uncomment below and update the code to test the property BankAddress + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property BankCountryCode (base name: "BankCountryCode")', function() { + // uncomment below and update the code to test the property BankCountryCode + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // uncomment below and update the code to test the property AccountHolderAddress + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property AccountHolderCountryCode (base name: "AccountHolderCountryCode")', function() { + // uncomment below and update the code to test the property AccountHolderCountryCode + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // uncomment below and update the code to test the property VatNumber + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CurrencyCode (base name: "CurrencyCode")', function() { + // uncomment below and update the code to test the property CurrencyCode + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property BankName (base name: "BankName")', function() { + // uncomment below and update the code to test the property BankName + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // uncomment below and update the code to test the property Iban + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // uncomment below and update the code to test the property Swift + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // uncomment below and update the code to test the property NationalClearingCode + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // uncomment below and update the code to test the property PopulatedAccountFields + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // uncomment below and update the code to test the property RejectionReason + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // uncomment below and update the code to test the property BusinessType + //var instance = new Flipdish.BankAccountDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountDetailsUpdateRequest.spec.js b/test/model/BankAccountDetailsUpdateRequest.spec.js new file mode 100644 index 00000000..4cad19ba --- /dev/null +++ b/test/model/BankAccountDetailsUpdateRequest.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountDetailsUpdateRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountDetailsUpdateRequest', function() { + it('should create an instance of BankAccountDetailsUpdateRequest', function() { + // uncomment below and update the code to test BankAccountDetailsUpdateRequest + //var instane = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be.a(Flipdish.BankAccountDetailsUpdateRequest); + }); + + it('should have the property BankAddress (base name: "BankAddress")', function() { + // uncomment below and update the code to test the property BankAddress + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property AccountHolderAddress (base name: "AccountHolderAddress")', function() { + // uncomment below and update the code to test the property AccountHolderAddress + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // uncomment below and update the code to test the property VatNumber + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property BankName (base name: "BankName")', function() { + // uncomment below and update the code to test the property BankName + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // uncomment below and update the code to test the property Iban + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // uncomment below and update the code to test the property Swift + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // uncomment below and update the code to test the property NationalClearingCode + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // uncomment below and update the code to test the property PopulatedAccountFields + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // uncomment below and update the code to test the property RejectionReason + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // uncomment below and update the code to test the property BusinessType + //var instance = new Flipdish.BankAccountDetailsUpdateRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountSummary.spec.js b/test/model/BankAccountSummary.spec.js new file mode 100644 index 00000000..0067f49d --- /dev/null +++ b/test/model/BankAccountSummary.spec.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountSummary', function() { + it('should create an instance of BankAccountSummary', function() { + // uncomment below and update the code to test BankAccountSummary + //var instane = new Flipdish.BankAccountSummary(); + //expect(instance).to.be.a(Flipdish.BankAccountSummary); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property AccountState (base name: "AccountState")', function() { + // uncomment below and update the code to test the property AccountState + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property CurrencyCode (base name: "CurrencyCode")', function() { + // uncomment below and update the code to test the property CurrencyCode + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StripeConnectedAccountInfo (base name: "StripeConnectedAccountInfo")', function() { + // uncomment below and update the code to test the property StripeConnectedAccountInfo + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Iban (base name: "Iban")', function() { + // uncomment below and update the code to test the property Iban + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Swift (base name: "Swift")', function() { + // uncomment below and update the code to test the property Swift + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property NationalClearingCode (base name: "NationalClearingCode")', function() { + // uncomment below and update the code to test the property NationalClearingCode + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PopulatedAccountFields (base name: "PopulatedAccountFields")', function() { + // uncomment below and update the code to test the property PopulatedAccountFields + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // uncomment below and update the code to test the property RejectionReason + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessType (base name: "BusinessType")', function() { + // uncomment below and update the code to test the property BusinessType + //var instance = new Flipdish.BankAccountSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BankAccountUpdatedEvent.spec.js b/test/model/BankAccountUpdatedEvent.spec.js new file mode 100644 index 00000000..aead2619 --- /dev/null +++ b/test/model/BankAccountUpdatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BankAccountUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BankAccountUpdatedEvent', function() { + it('should create an instance of BankAccountUpdatedEvent', function() { + // uncomment below and update the code to test BankAccountUpdatedEvent + //var instane = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.BankAccountUpdatedEvent); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccount (base name: "BankAccount")', function() { + // uncomment below and update the code to test the property BankAccount + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.BankAccountUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BluetoothTerminalStatus.spec.js b/test/model/BluetoothTerminalStatus.spec.js new file mode 100644 index 00000000..ca9fff8b --- /dev/null +++ b/test/model/BluetoothTerminalStatus.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BluetoothTerminalStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BluetoothTerminalStatus', function() { + it('should create an instance of BluetoothTerminalStatus', function() { + // uncomment below and update the code to test BluetoothTerminalStatus + //var instane = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be.a(Flipdish.BluetoothTerminalStatus); + }); + + it('should have the property SerialNumber (base name: "SerialNumber")', function() { + // uncomment below and update the code to test the property SerialNumber + //var instance = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + it('should have the property SoftwareVersion (base name: "SoftwareVersion")', function() { + // uncomment below and update the code to test the property SoftwareVersion + //var instance = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceType (base name: "DeviceType")', function() { + // uncomment below and update the code to test the property DeviceType + //var instance = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + it('should have the property BatteryLevel (base name: "BatteryLevel")', function() { + // uncomment below and update the code to test the property BatteryLevel + //var instance = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + it('should have the property UpdateTime (base name: "UpdateTime")', function() { + // uncomment below and update the code to test the property UpdateTime + //var instance = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + it('should have the property ReaderId (base name: "ReaderId")', function() { + // uncomment below and update the code to test the property ReaderId + //var instance = new Flipdish.BluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BusinessHoursOverride.spec.js b/test/model/BusinessHoursOverride.spec.js new file mode 100644 index 00000000..b125646b --- /dev/null +++ b/test/model/BusinessHoursOverride.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BusinessHoursOverride(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BusinessHoursOverride', function() { + it('should create an instance of BusinessHoursOverride', function() { + // uncomment below and update the code to test BusinessHoursOverride + //var instane = new Flipdish.BusinessHoursOverride(); + //expect(instance).to.be.a(Flipdish.BusinessHoursOverride); + }); + + it('should have the property BusinessHoursOverrideId (base name: "BusinessHoursOverrideId")', function() { + // uncomment below and update the code to test the property BusinessHoursOverrideId + //var instance = new Flipdish.BusinessHoursOverride(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // uncomment below and update the code to test the property DeliveryType + //var instance = new Flipdish.BusinessHoursOverride(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.BusinessHoursOverride(); + //expect(instance).to.be(); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // uncomment below and update the code to test the property EndTime + //var instance = new Flipdish.BusinessHoursOverride(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.BusinessHoursOverride(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BusinessHoursOverrideBase.spec.js b/test/model/BusinessHoursOverrideBase.spec.js new file mode 100644 index 00000000..5bb39309 --- /dev/null +++ b/test/model/BusinessHoursOverrideBase.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BusinessHoursOverrideBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BusinessHoursOverrideBase', function() { + it('should create an instance of BusinessHoursOverrideBase', function() { + // uncomment below and update the code to test BusinessHoursOverrideBase + //var instane = new Flipdish.BusinessHoursOverrideBase(); + //expect(instance).to.be.a(Flipdish.BusinessHoursOverrideBase); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // uncomment below and update the code to test the property DeliveryType + //var instance = new Flipdish.BusinessHoursOverrideBase(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.BusinessHoursOverrideBase(); + //expect(instance).to.be(); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // uncomment below and update the code to test the property EndTime + //var instance = new Flipdish.BusinessHoursOverrideBase(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.BusinessHoursOverrideBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BusinessHoursPeriod.spec.js b/test/model/BusinessHoursPeriod.spec.js new file mode 100644 index 00000000..fb67c232 --- /dev/null +++ b/test/model/BusinessHoursPeriod.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BusinessHoursPeriod(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BusinessHoursPeriod', function() { + it('should create an instance of BusinessHoursPeriod', function() { + // uncomment below and update the code to test BusinessHoursPeriod + //var instane = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be.a(Flipdish.BusinessHoursPeriod); + }); + + it('should have the property Early (base name: "Early")', function() { + // uncomment below and update the code to test the property Early + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property Late (base name: "Late")', function() { + // uncomment below and update the code to test the property Late + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property Ranges (base name: "Ranges")', function() { + // uncomment below and update the code to test the property Ranges + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property DayOfWeek (base name: "DayOfWeek")', function() { + // uncomment below and update the code to test the property DayOfWeek + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property Period (base name: "Period")', function() { + // uncomment below and update the code to test the property Period + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property StartTimeEarly (base name: "StartTimeEarly")', function() { + // uncomment below and update the code to test the property StartTimeEarly + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodEarly (base name: "PeriodEarly")', function() { + // uncomment below and update the code to test the property PeriodEarly + //var instance = new Flipdish.BusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BusinessHoursPeriodBase.spec.js b/test/model/BusinessHoursPeriodBase.spec.js new file mode 100644 index 00000000..839d2426 --- /dev/null +++ b/test/model/BusinessHoursPeriodBase.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.BusinessHoursPeriodBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BusinessHoursPeriodBase', function() { + it('should create an instance of BusinessHoursPeriodBase', function() { + // uncomment below and update the code to test BusinessHoursPeriodBase + //var instane = new Flipdish.BusinessHoursPeriodBase(); + //expect(instance).to.be.a(Flipdish.BusinessHoursPeriodBase); + }); + + it('should have the property DayOfWeek (base name: "DayOfWeek")', function() { + // uncomment below and update the code to test the property DayOfWeek + //var instance = new Flipdish.BusinessHoursPeriodBase(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.BusinessHoursPeriodBase(); + //expect(instance).to.be(); + }); + + it('should have the property Period (base name: "Period")', function() { + // uncomment below and update the code to test the property Period + //var instance = new Flipdish.BusinessHoursPeriodBase(); + //expect(instance).to.be(); + }); + + it('should have the property StartTimeEarly (base name: "StartTimeEarly")', function() { + // uncomment below and update the code to test the property StartTimeEarly + //var instance = new Flipdish.BusinessHoursPeriodBase(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodEarly (base name: "PeriodEarly")', function() { + // uncomment below and update the code to test the property PeriodEarly + //var instance = new Flipdish.BusinessHoursPeriodBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CampaignStatistics.spec.js b/test/model/CampaignStatistics.spec.js new file mode 100644 index 00000000..ea811720 --- /dev/null +++ b/test/model/CampaignStatistics.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CampaignStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CampaignStatistics', function() { + it('should create an instance of CampaignStatistics', function() { + // uncomment below and update the code to test CampaignStatistics + //var instane = new Flipdish.CampaignStatistics(); + //expect(instance).to.be.a(Flipdish.CampaignStatistics); + }); + + it('should have the property VouchersIssued (base name: "VouchersIssued")', function() { + // uncomment below and update the code to test the property VouchersIssued + //var instance = new Flipdish.CampaignStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property VouchersRedeemed (base name: "VouchersRedeemed")', function() { + // uncomment below and update the code to test the property VouchersRedeemed + //var instance = new Flipdish.CampaignStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property Conversion (base name: "Conversion")', function() { + // uncomment below and update the code to test the property Conversion + //var instance = new Flipdish.CampaignStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property SalesGenerated (base name: "SalesGenerated")', function() { + // uncomment below and update the code to test the property SalesGenerated + //var instance = new Flipdish.CampaignStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property ReturnOfInvestment (base name: "ReturnOfInvestment")', function() { + // uncomment below and update the code to test the property ReturnOfInvestment + //var instance = new Flipdish.CampaignStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CancellationToken.spec.js b/test/model/CancellationToken.spec.js new file mode 100644 index 00000000..29a2e40f --- /dev/null +++ b/test/model/CancellationToken.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CancellationToken(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CancellationToken', function() { + it('should create an instance of CancellationToken', function() { + // uncomment below and update the code to test CancellationToken + //var instane = new Flipdish.CancellationToken(); + //expect(instance).to.be.a(Flipdish.CancellationToken); + }); + + it('should have the property IsCancellationRequested (base name: "IsCancellationRequested")', function() { + // uncomment below and update the code to test the property IsCancellationRequested + //var instance = new Flipdish.CancellationToken(); + //expect(instance).to.be(); + }); + + it('should have the property CanBeCanceled (base name: "CanBeCanceled")', function() { + // uncomment below and update the code to test the property CanBeCanceled + //var instance = new Flipdish.CancellationToken(); + //expect(instance).to.be(); + }); + + it('should have the property WaitHandle (base name: "WaitHandle")', function() { + // uncomment below and update the code to test the property WaitHandle + //var instance = new Flipdish.CancellationToken(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CardReader.spec.js b/test/model/CardReader.spec.js new file mode 100644 index 00000000..58e85e28 --- /dev/null +++ b/test/model/CardReader.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CardReader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CardReader', function() { + it('should create an instance of CardReader', function() { + // uncomment below and update the code to test CardReader + //var instane = new Flipdish.CardReader(); + //expect(instance).to.be.a(Flipdish.CardReader); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceSoftwareVersion (base name: "DeviceSoftwareVersion")', function() { + // uncomment below and update the code to test the property DeviceSoftwareVersion + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + it('should have the property SerialNumber (base name: "SerialNumber")', function() { + // uncomment below and update the code to test the property SerialNumber + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + it('should have the property RegistrationCode (base name: "RegistrationCode")', function() { + // uncomment below and update the code to test the property RegistrationCode + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceType (base name: "DeviceType")', function() { + // uncomment below and update the code to test the property DeviceType + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + it('should have the property Deleted (base name: "Deleted")', function() { + // uncomment below and update the code to test the property Deleted + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + it('should have the property Action (base name: "Action")', function() { + // uncomment below and update the code to test the property Action + //var instance = new Flipdish.CardReader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CardReaderRegistrationRequest.spec.js b/test/model/CardReaderRegistrationRequest.spec.js new file mode 100644 index 00000000..6d8153e4 --- /dev/null +++ b/test/model/CardReaderRegistrationRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CardReaderRegistrationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CardReaderRegistrationRequest', function() { + it('should create an instance of CardReaderRegistrationRequest', function() { + // uncomment below and update the code to test CardReaderRegistrationRequest + //var instane = new Flipdish.CardReaderRegistrationRequest(); + //expect(instance).to.be.a(Flipdish.CardReaderRegistrationRequest); + }); + + it('should have the property RegistrationCode (base name: "RegistrationCode")', function() { + // uncomment below and update the code to test the property RegistrationCode + //var instance = new Flipdish.CardReaderRegistrationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property KioskDeviceId (base name: "KioskDeviceId")', function() { + // uncomment below and update the code to test the property KioskDeviceId + //var instance = new Flipdish.CardReaderRegistrationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogGroupArchivedEvent.spec.js b/test/model/CatalogGroupArchivedEvent.spec.js new file mode 100644 index 00000000..713cc918 --- /dev/null +++ b/test/model/CatalogGroupArchivedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogGroupArchivedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogGroupArchivedEvent', function() { + it('should create an instance of CatalogGroupArchivedEvent', function() { + // uncomment below and update the code to test CatalogGroupArchivedEvent + //var instane = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be.a(Flipdish.CatalogGroupArchivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Group (base name: "Group")', function() { + // uncomment below and update the code to test the property Group + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CatalogGroupArchivedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogGroupCreatedEvent.spec.js b/test/model/CatalogGroupCreatedEvent.spec.js new file mode 100644 index 00000000..25a8653d --- /dev/null +++ b/test/model/CatalogGroupCreatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogGroupCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogGroupCreatedEvent', function() { + it('should create an instance of CatalogGroupCreatedEvent', function() { + // uncomment below and update the code to test CatalogGroupCreatedEvent + //var instane = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be.a(Flipdish.CatalogGroupCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Group (base name: "Group")', function() { + // uncomment below and update the code to test the property Group + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CatalogGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogGroupReference.spec.js b/test/model/CatalogGroupReference.spec.js new file mode 100644 index 00000000..9d701f91 --- /dev/null +++ b/test/model/CatalogGroupReference.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogGroupReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogGroupReference', function() { + it('should create an instance of CatalogGroupReference', function() { + // uncomment below and update the code to test CatalogGroupReference + //var instane = new Flipdish.CatalogGroupReference(); + //expect(instance).to.be.a(Flipdish.CatalogGroupReference); + }); + + it('should have the property Group (base name: "Group")', function() { + // uncomment below and update the code to test the property Group + //var instance = new Flipdish.CatalogGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogGroupId (base name: "CatalogGroupId")', function() { + // uncomment below and update the code to test the property CatalogGroupId + //var instance = new Flipdish.CatalogGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.CatalogGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.CatalogGroupReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogGroupUpdatedEvent.spec.js b/test/model/CatalogGroupUpdatedEvent.spec.js new file mode 100644 index 00000000..f709ac21 --- /dev/null +++ b/test/model/CatalogGroupUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogGroupUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogGroupUpdatedEvent', function() { + it('should create an instance of CatalogGroupUpdatedEvent', function() { + // uncomment below and update the code to test CatalogGroupUpdatedEvent + //var instane = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.CatalogGroupUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Group (base name: "Group")', function() { + // uncomment below and update the code to test the property Group + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CatalogGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogImage.spec.js b/test/model/CatalogImage.spec.js new file mode 100644 index 00000000..9e683ccd --- /dev/null +++ b/test/model/CatalogImage.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogImage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogImage', function() { + it('should create an instance of CatalogImage', function() { + // uncomment below and update the code to test CatalogImage + //var instane = new Flipdish.CatalogImage(); + //expect(instance).to.be.a(Flipdish.CatalogImage); + }); + + it('should have the property ImageUri (base name: "ImageUri")', function() { + // uncomment below and update the code to test the property ImageUri + //var instance = new Flipdish.CatalogImage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogItem.spec.js b/test/model/CatalogItem.spec.js new file mode 100644 index 00000000..6649c587 --- /dev/null +++ b/test/model/CatalogItem.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogItem', function() { + it('should create an instance of CatalogItem', function() { + // uncomment below and update the code to test CatalogItem + //var instane = new Flipdish.CatalogItem(); + //expect(instance).to.be.a(Flipdish.CatalogItem); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // uncomment below and update the code to test the property IsArchived + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Groups (base name: "Groups")', function() { + // uncomment below and update the code to test the property Groups + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property ItemType (base name: "ItemType")', function() { + // uncomment below and update the code to test the property ItemType + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.CatalogItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogItemArchivedEvent.spec.js b/test/model/CatalogItemArchivedEvent.spec.js new file mode 100644 index 00000000..4c40266e --- /dev/null +++ b/test/model/CatalogItemArchivedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogItemArchivedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogItemArchivedEvent', function() { + it('should create an instance of CatalogItemArchivedEvent', function() { + // uncomment below and update the code to test CatalogItemArchivedEvent + //var instane = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be.a(Flipdish.CatalogItemArchivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItem (base name: "CatalogItem")', function() { + // uncomment below and update the code to test the property CatalogItem + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CatalogItemArchivedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogItemCreatedEvent.spec.js b/test/model/CatalogItemCreatedEvent.spec.js new file mode 100644 index 00000000..c2608cc8 --- /dev/null +++ b/test/model/CatalogItemCreatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogItemCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogItemCreatedEvent', function() { + it('should create an instance of CatalogItemCreatedEvent', function() { + // uncomment below and update the code to test CatalogItemCreatedEvent + //var instane = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be.a(Flipdish.CatalogItemCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItem (base name: "CatalogItem")', function() { + // uncomment below and update the code to test the property CatalogItem + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CatalogItemCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CatalogItemUpdatedEvent.spec.js b/test/model/CatalogItemUpdatedEvent.spec.js new file mode 100644 index 00000000..c8f576fb --- /dev/null +++ b/test/model/CatalogItemUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CatalogItemUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatalogItemUpdatedEvent', function() { + it('should create an instance of CatalogItemUpdatedEvent', function() { + // uncomment below and update the code to test CatalogItemUpdatedEvent + //var instane = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.CatalogItemUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItem (base name: "CatalogItem")', function() { + // uncomment below and update the code to test the property CatalogItem + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CatalogItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CertificateCreatedEvent.spec.js b/test/model/CertificateCreatedEvent.spec.js new file mode 100644 index 00000000..a185927f --- /dev/null +++ b/test/model/CertificateCreatedEvent.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CertificateCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CertificateCreatedEvent', function() { + it('should create an instance of CertificateCreatedEvent', function() { + // uncomment below and update the code to test CertificateCreatedEvent + //var instane = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be.a(Flipdish.CertificateCreatedEvent); + }); + + it('should have the property Hostname (base name: "Hostname")', function() { + // uncomment below and update the code to test the property Hostname + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CertificateCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CertificateRenewedEvent.spec.js b/test/model/CertificateRenewedEvent.spec.js new file mode 100644 index 00000000..1be6a08c --- /dev/null +++ b/test/model/CertificateRenewedEvent.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CertificateRenewedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CertificateRenewedEvent', function() { + it('should create an instance of CertificateRenewedEvent', function() { + // uncomment below and update the code to test CertificateRenewedEvent + //var instane = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be.a(Flipdish.CertificateRenewedEvent); + }); + + it('should have the property Hostname (base name: "Hostname")', function() { + // uncomment below and update the code to test the property Hostname + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CertificateRenewedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ChangePasswordModel.spec.js b/test/model/ChangePasswordModel.spec.js new file mode 100644 index 00000000..0773fbed --- /dev/null +++ b/test/model/ChangePasswordModel.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ChangePasswordModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ChangePasswordModel', function() { + it('should create an instance of ChangePasswordModel', function() { + // uncomment below and update the code to test ChangePasswordModel + //var instane = new Flipdish.ChangePasswordModel(); + //expect(instance).to.be.a(Flipdish.ChangePasswordModel); + }); + + it('should have the property OldPassword (base name: "OldPassword")', function() { + // uncomment below and update the code to test the property OldPassword + //var instance = new Flipdish.ChangePasswordModel(); + //expect(instance).to.be(); + }); + + it('should have the property NewPassword (base name: "NewPassword")', function() { + // uncomment below and update the code to test the property NewPassword + //var instance = new Flipdish.ChangePasswordModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Channel.spec.js b/test/model/Channel.spec.js new file mode 100644 index 00000000..253e244f --- /dev/null +++ b/test/model/Channel.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Channel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Channel', function() { + it('should create an instance of Channel', function() { + // uncomment below and update the code to test Channel + //var instane = new Flipdish.Channel(); + //expect(instance).to.be.a(Flipdish.Channel); + }); + + it('should have the property ChannelId (base name: "ChannelId")', function() { + // uncomment below and update the code to test the property ChannelId + //var instance = new Flipdish.Channel(); + //expect(instance).to.be(); + }); + + it('should have the property TranslationKey (base name: "TranslationKey")', function() { + // uncomment below and update the code to test the property TranslationKey + //var instance = new Flipdish.Channel(); + //expect(instance).to.be(); + }); + + it('should have the property Source (base name: "Source")', function() { + // uncomment below and update the code to test the property Source + //var instance = new Flipdish.Channel(); + //expect(instance).to.be(); + }); + + it('should have the property LogoUri (base name: "LogoUri")', function() { + // uncomment below and update the code to test the property LogoUri + //var instance = new Flipdish.Channel(); + //expect(instance).to.be(); + }); + + it('should have the property Available (base name: "Available")', function() { + // uncomment below and update the code to test the property Available + //var instance = new Flipdish.Channel(); + //expect(instance).to.be(); + }); + + it('should have the property MaintainedExternally (base name: "MaintainedExternally")', function() { + // uncomment below and update the code to test the property MaintainedExternally + //var instance = new Flipdish.Channel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ChannelStoresUpdatedEvent.spec.js b/test/model/ChannelStoresUpdatedEvent.spec.js new file mode 100644 index 00000000..8c84e6d6 --- /dev/null +++ b/test/model/ChannelStoresUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ChannelStoresUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ChannelStoresUpdatedEvent', function() { + it('should create an instance of ChannelStoresUpdatedEvent', function() { + // uncomment below and update the code to test ChannelStoresUpdatedEvent + //var instane = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.ChannelStoresUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelId (base name: "ChannelId")', function() { + // uncomment below and update the code to test the property ChannelId + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.ChannelStoresUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ChargebackDetails.spec.js b/test/model/ChargebackDetails.spec.js new file mode 100644 index 00000000..8e296a46 --- /dev/null +++ b/test/model/ChargebackDetails.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ChargebackDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ChargebackDetails', function() { + it('should create an instance of ChargebackDetails', function() { + // uncomment below and update the code to test ChargebackDetails + //var instane = new Flipdish.ChargebackDetails(); + //expect(instance).to.be.a(Flipdish.ChargebackDetails); + }); + + it('should have the property ChargebackAmount (base name: "ChargebackAmount")', function() { + // uncomment below and update the code to test the property ChargebackAmount + //var instance = new Flipdish.ChargebackDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesChargebackAmount (base name: "PosSalesChargebackAmount")', function() { + // uncomment below and update the code to test the property PosSalesChargebackAmount + //var instance = new Flipdish.ChargebackDetails(); + //expect(instance).to.be(); + }); + + it('should have the property ChargebackRefundedFees (base name: "ChargebackRefundedFees")', function() { + // uncomment below and update the code to test the property ChargebackRefundedFees + //var instance = new Flipdish.ChargebackDetails(); + //expect(instance).to.be(); + }); + + it('should have the property ChargebacksCount (base name: "ChargebacksCount")', function() { + // uncomment below and update the code to test the property ChargebacksCount + //var instance = new Flipdish.ChargebackDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TotalChargebackCost (base name: "TotalChargebackCost")', function() { + // uncomment below and update the code to test the property TotalChargebackCost + //var instance = new Flipdish.ChargebackDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClientDevice.spec.js b/test/model/ClientDevice.spec.js new file mode 100644 index 00000000..30ea23f0 --- /dev/null +++ b/test/model/ClientDevice.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ClientDevice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClientDevice', function() { + it('should create an instance of ClientDevice', function() { + // uncomment below and update the code to test ClientDevice + //var instane = new Flipdish.ClientDevice(); + //expect(instance).to.be.a(Flipdish.ClientDevice); + }); + + it('should have the property DeviceModel (base name: "DeviceModel")', function() { + // uncomment below and update the code to test the property DeviceModel + //var instance = new Flipdish.ClientDevice(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.ClientDevice(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceName (base name: "DeviceName")', function() { + // uncomment below and update the code to test the property DeviceName + //var instance = new Flipdish.ClientDevice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClientDeviceAssignEnrolledDevice.spec.js b/test/model/ClientDeviceAssignEnrolledDevice.spec.js new file mode 100644 index 00000000..55fc44cc --- /dev/null +++ b/test/model/ClientDeviceAssignEnrolledDevice.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ClientDeviceAssignEnrolledDevice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClientDeviceAssignEnrolledDevice', function() { + it('should create an instance of ClientDeviceAssignEnrolledDevice', function() { + // uncomment below and update the code to test ClientDeviceAssignEnrolledDevice + //var instane = new Flipdish.ClientDeviceAssignEnrolledDevice(); + //expect(instance).to.be.a(Flipdish.ClientDeviceAssignEnrolledDevice); + }); + + it('should have the property DeviceModel (base name: "DeviceModel")', function() { + // uncomment below and update the code to test the property DeviceModel + //var instance = new Flipdish.ClientDeviceAssignEnrolledDevice(); + //expect(instance).to.be(); + }); + + it('should have the property PinCode (base name: "PinCode")', function() { + // uncomment below and update the code to test the property PinCode + //var instance = new Flipdish.ClientDeviceAssignEnrolledDevice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClientDeviceEnroll.spec.js b/test/model/ClientDeviceEnroll.spec.js new file mode 100644 index 00000000..49bd9fb0 --- /dev/null +++ b/test/model/ClientDeviceEnroll.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ClientDeviceEnroll(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClientDeviceEnroll', function() { + it('should create an instance of ClientDeviceEnroll', function() { + // uncomment below and update the code to test ClientDeviceEnroll + //var instane = new Flipdish.ClientDeviceEnroll(); + //expect(instance).to.be.a(Flipdish.ClientDeviceEnroll); + }); + + it('should have the property DeviceModel (base name: "DeviceModel")', function() { + // uncomment below and update the code to test the property DeviceModel + //var instance = new Flipdish.ClientDeviceEnroll(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.ClientDeviceEnroll(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceName (base name: "DeviceName")', function() { + // uncomment below and update the code to test the property DeviceName + //var instance = new Flipdish.ClientDeviceEnroll(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClientDeviceEnrollmentResult.spec.js b/test/model/ClientDeviceEnrollmentResult.spec.js new file mode 100644 index 00000000..d56cb715 --- /dev/null +++ b/test/model/ClientDeviceEnrollmentResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ClientDeviceEnrollmentResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClientDeviceEnrollmentResult', function() { + it('should create an instance of ClientDeviceEnrollmentResult', function() { + // uncomment below and update the code to test ClientDeviceEnrollmentResult + //var instane = new Flipdish.ClientDeviceEnrollmentResult(); + //expect(instance).to.be.a(Flipdish.ClientDeviceEnrollmentResult); + }); + + it('should have the property PinCode (base name: "PinCode")', function() { + // uncomment below and update the code to test the property PinCode + //var instance = new Flipdish.ClientDeviceEnrollmentResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClientDeviceSummary.spec.js b/test/model/ClientDeviceSummary.spec.js new file mode 100644 index 00000000..1506e7d7 --- /dev/null +++ b/test/model/ClientDeviceSummary.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ClientDeviceSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClientDeviceSummary', function() { + it('should create an instance of ClientDeviceSummary', function() { + // uncomment below and update the code to test ClientDeviceSummary + //var instane = new Flipdish.ClientDeviceSummary(); + //expect(instance).to.be.a(Flipdish.ClientDeviceSummary); + }); + + it('should have the property DeviceModel (base name: "DeviceModel")', function() { + // uncomment below and update the code to test the property DeviceModel + //var instance = new Flipdish.ClientDeviceSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.ClientDeviceSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceName (base name: "DeviceName")', function() { + // uncomment below and update the code to test the property DeviceName + //var instance = new Flipdish.ClientDeviceSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ConfiguredStore.spec.js b/test/model/ConfiguredStore.spec.js new file mode 100644 index 00000000..1c30a7bf --- /dev/null +++ b/test/model/ConfiguredStore.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ConfiguredStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ConfiguredStore', function() { + it('should create an instance of ConfiguredStore', function() { + // uncomment below and update the code to test ConfiguredStore + //var instane = new Flipdish.ConfiguredStore(); + //expect(instance).to.be.a(Flipdish.ConfiguredStore); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.ConfiguredStore(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.ConfiguredStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Coordinates.spec.js b/test/model/Coordinates.spec.js new file mode 100644 index 00000000..d418927e --- /dev/null +++ b/test/model/Coordinates.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Coordinates(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Coordinates', function() { + it('should create an instance of Coordinates', function() { + // uncomment below and update the code to test Coordinates + //var instane = new Flipdish.Coordinates(); + //expect(instance).to.be.a(Flipdish.Coordinates); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // uncomment below and update the code to test the property Latitude + //var instance = new Flipdish.Coordinates(); + //expect(instance).to.be(); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // uncomment below and update the code to test the property Longitude + //var instance = new Flipdish.Coordinates(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CountryFormResponse.spec.js b/test/model/CountryFormResponse.spec.js new file mode 100644 index 00000000..ffa35b24 --- /dev/null +++ b/test/model/CountryFormResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CountryFormResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CountryFormResponse', function() { + it('should create an instance of CountryFormResponse', function() { + // uncomment below and update the code to test CountryFormResponse + //var instane = new Flipdish.CountryFormResponse(); + //expect(instance).to.be.a(Flipdish.CountryFormResponse); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.CountryFormResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Label (base name: "Label")', function() { + // uncomment below and update the code to test the property Label + //var instance = new Flipdish.CountryFormResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CountryWithAccountFieldsDefinitions.spec.js b/test/model/CountryWithAccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..0d09d5e8 --- /dev/null +++ b/test/model/CountryWithAccountFieldsDefinitions.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CountryWithAccountFieldsDefinitions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CountryWithAccountFieldsDefinitions', function() { + it('should create an instance of CountryWithAccountFieldsDefinitions', function() { + // uncomment below and update the code to test CountryWithAccountFieldsDefinitions + //var instane = new Flipdish.CountryWithAccountFieldsDefinitions(); + //expect(instance).to.be.a(Flipdish.CountryWithAccountFieldsDefinitions); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // uncomment below and update the code to test the property CountryCode + //var instance = new Flipdish.CountryWithAccountFieldsDefinitions(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // uncomment below and update the code to test the property DisplayName + //var instance = new Flipdish.CountryWithAccountFieldsDefinitions(); + //expect(instance).to.be(); + }); + + it('should have the property SupportType (base name: "SupportType")', function() { + // uncomment below and update the code to test the property SupportType + //var instance = new Flipdish.CountryWithAccountFieldsDefinitions(); + //expect(instance).to.be(); + }); + + it('should have the property FieldDefinitions (base name: "FieldDefinitions")', function() { + // uncomment below and update the code to test the property FieldDefinitions + //var instance = new Flipdish.CountryWithAccountFieldsDefinitions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAccountModel.spec.js b/test/model/CreateAccountModel.spec.js new file mode 100644 index 00000000..5ff5726a --- /dev/null +++ b/test/model/CreateAccountModel.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateAccountModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAccountModel', function() { + it('should create an instance of CreateAccountModel', function() { + // uncomment below and update the code to test CreateAccountModel + //var instane = new Flipdish.CreateAccountModel(); + //expect(instance).to.be.a(Flipdish.CreateAccountModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.CreateAccountModel(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.CreateAccountModel(); + //expect(instance).to.be(); + }); + + it('should have the property LanguageId (base name: "LanguageId")', function() { + // uncomment below and update the code to test the property LanguageId + //var instance = new Flipdish.CreateAccountModel(); + //expect(instance).to.be(); + }); + + it('should have the property Rid (base name: "Rid")', function() { + // uncomment below and update the code to test the property Rid + //var instance = new Flipdish.CreateAccountModel(); + //expect(instance).to.be(); + }); + + it('should have the property Cid (base name: "Cid")', function() { + // uncomment below and update the code to test the property Cid + //var instance = new Flipdish.CreateAccountModel(); + //expect(instance).to.be(); + }); + + it('should have the property RecaptchaToken (base name: "RecaptchaToken")', function() { + // uncomment below and update the code to test the property RecaptchaToken + //var instance = new Flipdish.CreateAccountModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAppParameters.spec.js b/test/model/CreateAppParameters.spec.js new file mode 100644 index 00000000..fbbe3301 --- /dev/null +++ b/test/model/CreateAppParameters.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateAppParameters(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAppParameters', function() { + it('should create an instance of CreateAppParameters', function() { + // uncomment below and update the code to test CreateAppParameters + //var instane = new Flipdish.CreateAppParameters(); + //expect(instance).to.be.a(Flipdish.CreateAppParameters); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateAppParameters(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAppStoreApp.spec.js b/test/model/CreateAppStoreApp.spec.js new file mode 100644 index 00000000..bfea8058 --- /dev/null +++ b/test/model/CreateAppStoreApp.spec.js @@ -0,0 +1,167 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateAppStoreApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAppStoreApp', function() { + it('should create an instance of CreateAppStoreApp', function() { + // uncomment below and update the code to test CreateAppStoreApp + //var instane = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be.a(Flipdish.CreateAppStoreApp); + }); + + it('should have the property Details (base name: "Details")', function() { + // uncomment below and update the code to test the property Details + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigurationType (base name: "ConfigurationType")', function() { + // uncomment below and update the code to test the property ConfigurationType + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property FieldGroups (base name: "FieldGroups")', function() { + // uncomment below and update the code to test the property FieldGroups + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property SetupInstructions (base name: "SetupInstructions")', function() { + // uncomment below and update the code to test the property SetupInstructions + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalSetupLink (base name: "ExternalSetupLink")', function() { + // uncomment below and update the code to test the property ExternalSetupLink + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateAppAccessLevel (base name: "TeammateAppAccessLevel")', function() { + // uncomment below and update the code to test the property TeammateAppAccessLevel + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property PermissionsType (base name: "PermissionsType")', function() { + // uncomment below and update the code to test the property PermissionsType + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Support (base name: "Support")', function() { + // uncomment below and update the code to test the property Support + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionActionUrl (base name: "ExternalFunctionActionUrl")', function() { + // uncomment below and update the code to test the property ExternalFunctionActionUrl + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionSignatureKey (base name: "ExternalFunctionSignatureKey")', function() { + // uncomment below and update the code to test the property ExternalFunctionSignatureKey + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property IsPaid (base name: "IsPaid")', function() { + // uncomment below and update the code to test the property IsPaid + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Categories (base name: "Categories")', function() { + // uncomment below and update the code to test the property Categories + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Countries (base name: "Countries")', function() { + // uncomment below and update the code to test the property Countries + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property DeveloperName (base name: "DeveloperName")', function() { + // uncomment below and update the code to test the property DeveloperName + //var instance = new Flipdish.CreateAppStoreApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateBasicAccountModel.spec.js b/test/model/CreateBasicAccountModel.spec.js new file mode 100644 index 00000000..8eb8a705 --- /dev/null +++ b/test/model/CreateBasicAccountModel.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateBasicAccountModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateBasicAccountModel', function() { + it('should create an instance of CreateBasicAccountModel', function() { + // uncomment below and update the code to test CreateBasicAccountModel + //var instane = new Flipdish.CreateBasicAccountModel(); + //expect(instance).to.be.a(Flipdish.CreateBasicAccountModel); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.CreateBasicAccountModel(); + //expect(instance).to.be(); + }); + + it('should have the property LanguageId (base name: "LanguageId")', function() { + // uncomment below and update the code to test the property LanguageId + //var instance = new Flipdish.CreateBasicAccountModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateCatalogGroupReference.spec.js b/test/model/CreateCatalogGroupReference.spec.js new file mode 100644 index 00000000..08fb70f6 --- /dev/null +++ b/test/model/CreateCatalogGroupReference.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateCatalogGroupReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateCatalogGroupReference', function() { + it('should create an instance of CreateCatalogGroupReference', function() { + // uncomment below and update the code to test CreateCatalogGroupReference + //var instane = new Flipdish.CreateCatalogGroupReference(); + //expect(instance).to.be.a(Flipdish.CreateCatalogGroupReference); + }); + + it('should have the property CatalogGroupId (base name: "CatalogGroupId")', function() { + // uncomment below and update the code to test the property CatalogGroupId + //var instance = new Flipdish.CreateCatalogGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.CreateCatalogGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.CreateCatalogGroupReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateCatalogItem.spec.js b/test/model/CreateCatalogItem.spec.js new file mode 100644 index 00000000..2b386595 --- /dev/null +++ b/test/model/CreateCatalogItem.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateCatalogItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateCatalogItem', function() { + it('should create an instance of CreateCatalogItem', function() { + // uncomment below and update the code to test CreateCatalogItem + //var instane = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be.a(Flipdish.CreateCatalogItem); + }); + + it('should have the property Groups (base name: "Groups")', function() { + // uncomment below and update the code to test the property Groups + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property ItemType (base name: "ItemType")', function() { + // uncomment below and update the code to test the property ItemType + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.CreateCatalogItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateFulfillmentStatesConfiguration.spec.js b/test/model/CreateFulfillmentStatesConfiguration.spec.js new file mode 100644 index 00000000..38001345 --- /dev/null +++ b/test/model/CreateFulfillmentStatesConfiguration.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateFulfillmentStatesConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateFulfillmentStatesConfiguration', function() { + it('should create an instance of CreateFulfillmentStatesConfiguration', function() { + // uncomment below and update the code to test CreateFulfillmentStatesConfiguration + //var instane = new Flipdish.CreateFulfillmentStatesConfiguration(); + //expect(instance).to.be.a(Flipdish.CreateFulfillmentStatesConfiguration); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.CreateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.CreateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property States (base name: "States")', function() { + // uncomment below and update the code to test the property States + //var instance = new Flipdish.CreateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AutomaticTransitionsEnabled (base name: "AutomaticTransitionsEnabled")', function() { + // uncomment below and update the code to test the property AutomaticTransitionsEnabled + //var instance = new Flipdish.CreateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateFullMenu.spec.js b/test/model/CreateFullMenu.spec.js new file mode 100644 index 00000000..0d0df3fa --- /dev/null +++ b/test/model/CreateFullMenu.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateFullMenu(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateFullMenu', function() { + it('should create an instance of CreateFullMenu', function() { + // uncomment below and update the code to test CreateFullMenu + //var instane = new Flipdish.CreateFullMenu(); + //expect(instance).to.be.a(Flipdish.CreateFullMenu); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSections (base name: "MenuSections")', function() { + // uncomment below and update the code to test the property MenuSections + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRates (base name: "TaxRates")', function() { + // uncomment below and update the code to test the property TaxRates + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + it('should have the property DisplaySectionLinks (base name: "DisplaySectionLinks")', function() { + // uncomment below and update the code to test the property DisplaySectionLinks + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { + // uncomment below and update the code to test the property MenuSectionBehaviour + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + it('should have the property TaxType (base name: "TaxType")', function() { + // uncomment below and update the code to test the property TaxType + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + it('should have the property IsIntegrated (base name: "IsIntegrated")', function() { + // uncomment below and update the code to test the property IsIntegrated + //var instance = new Flipdish.CreateFullMenu(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateFullMenuItemOptionSet.spec.js b/test/model/CreateFullMenuItemOptionSet.spec.js new file mode 100644 index 00000000..d8053356 --- /dev/null +++ b/test/model/CreateFullMenuItemOptionSet.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateFullMenuItemOptionSet(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateFullMenuItemOptionSet', function() { + it('should create an instance of CreateFullMenuItemOptionSet', function() { + // uncomment below and update the code to test CreateFullMenuItemOptionSet + //var instane = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be.a(Flipdish.CreateFullMenuItemOptionSet); + }); + + it('should have the property MenuItemOptionSetId (base name: "MenuItemOptionSetId")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetId + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItems (base name: "MenuItemOptionSetItems")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItems + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property IsMasterOptionSet (base name: "IsMasterOptionSet")', function() { + // uncomment below and update the code to test the property IsMasterOptionSet + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // uncomment below and update the code to test the property MinSelectCount + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // uncomment below and update the code to test the property MaxSelectCount + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.CreateFullMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateFullMenuItemOptionSetItem.spec.js b/test/model/CreateFullMenuItemOptionSetItem.spec.js new file mode 100644 index 00000000..7ac76e9a --- /dev/null +++ b/test/model/CreateFullMenuItemOptionSetItem.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateFullMenuItemOptionSetItem', function() { + it('should create an instance of CreateFullMenuItemOptionSetItem', function() { + // uncomment below and update the code to test CreateFullMenuItemOptionSetItem + //var instane = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be.a(Flipdish.CreateFullMenuItemOptionSetItem); + }); + + it('should have the property MenuItemOptionSetItemId (base name: "MenuItemOptionSetItemId")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItemId + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRateName (base name: "TaxRateName")', function() { + // uncomment below and update the code to test the property TaxRateName + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property NextMenuItemOptionSetId (base name: "NextMenuItemOptionSetId")', function() { + // uncomment below and update the code to test the property NextMenuItemOptionSetId + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.CreateFullMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateFullMenuSection.spec.js b/test/model/CreateFullMenuSection.spec.js new file mode 100644 index 00000000..7293bab6 --- /dev/null +++ b/test/model/CreateFullMenuSection.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateFullMenuSection(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateFullMenuSection', function() { + it('should create an instance of CreateFullMenuSection', function() { + // uncomment below and update the code to test CreateFullMenuSection + //var instane = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be.a(Flipdish.CreateFullMenuSection); + }); + + it('should have the property MenuSectionAvailability (base name: "MenuSectionAvailability")', function() { + // uncomment below and update the code to test the property MenuSectionAvailability + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItems (base name: "MenuItems")', function() { + // uncomment below and update the code to test the property MenuItems + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property IsHiddenFromCustomers (base name: "IsHiddenFromCustomers")', function() { + // uncomment below and update the code to test the property IsHiddenFromCustomers + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionId (base name: "MenuSectionId")', function() { + // uncomment below and update the code to test the property MenuSectionId + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.CreateFullMenuSection(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateFullMenuSectionItem.spec.js b/test/model/CreateFullMenuSectionItem.spec.js new file mode 100644 index 00000000..154dea80 --- /dev/null +++ b/test/model/CreateFullMenuSectionItem.spec.js @@ -0,0 +1,167 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateFullMenuSectionItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateFullMenuSectionItem', function() { + it('should create an instance of CreateFullMenuSectionItem', function() { + // uncomment below and update the code to test CreateFullMenuSectionItem + //var instane = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be.a(Flipdish.CreateFullMenuSectionItem); + }); + + it('should have the property MenuItemOptionSets (base name: "MenuItemOptionSets")', function() { + // uncomment below and update the code to test the property MenuItemOptionSets + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRateName (base name: "TaxRateName")', function() { + // uncomment below and update the code to test the property TaxRateName + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property SpicinessRating (base name: "SpicinessRating")', function() { + // uncomment below and update the code to test the property SpicinessRating + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property DisableVouchers (base name: "DisableVouchers")', function() { + // uncomment below and update the code to test the property DisableVouchers + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemId (base name: "MenuItemId")', function() { + // uncomment below and update the code to test the property MenuItemId + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property ExcludeFromVoucherDiscounting (base name: "ExcludeFromVoucherDiscounting")', function() { + // uncomment below and update the code to test the property ExcludeFromVoucherDiscounting + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.CreateFullMenuSectionItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateGroup.spec.js b/test/model/CreateGroup.spec.js new file mode 100644 index 00000000..db943c00 --- /dev/null +++ b/test/model/CreateGroup.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateGroup', function() { + it('should create an instance of CreateGroup', function() { + // uncomment below and update the code to test CreateGroup + //var instane = new Flipdish.CreateGroup(); + //expect(instance).to.be.a(Flipdish.CreateGroup); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // uncomment below and update the code to test the property MinSelectCount + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // uncomment below and update the code to test the property MaxSelectCount + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Products (base name: "Products")', function() { + // uncomment below and update the code to test the property Products + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property AutogenerateDisplayText (base name: "AutogenerateDisplayText")', function() { + // uncomment below and update the code to test the property AutogenerateDisplayText + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.CreateGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateGroupReference.spec.js b/test/model/CreateGroupReference.spec.js new file mode 100644 index 00000000..e0506c77 --- /dev/null +++ b/test/model/CreateGroupReference.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateGroupReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateGroupReference', function() { + it('should create an instance of CreateGroupReference', function() { + // uncomment below and update the code to test CreateGroupReference + //var instane = new Flipdish.CreateGroupReference(); + //expect(instance).to.be.a(Flipdish.CreateGroupReference); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.CreateGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.CreateGroupReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateLocation.spec.js b/test/model/CreateLocation.spec.js new file mode 100644 index 00000000..9e3e99c3 --- /dev/null +++ b/test/model/CreateLocation.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateLocation', function() { + it('should create an instance of CreateLocation', function() { + // uncomment below and update the code to test CreateLocation + //var instane = new Flipdish.CreateLocation(); + //expect(instance).to.be.a(Flipdish.CreateLocation); + }); + + it('should have the property LocationId (base name: "LocationId")', function() { + // uncomment below and update the code to test the property LocationId + //var instance = new Flipdish.CreateLocation(); + //expect(instance).to.be(); + }); + + it('should have the property LocationName (base name: "LocationName")', function() { + // uncomment below and update the code to test the property LocationName + //var instance = new Flipdish.CreateLocation(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.CreateLocation(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalLocationId (base name: "ExternalLocationId")', function() { + // uncomment below and update the code to test the property ExternalLocationId + //var instance = new Flipdish.CreateLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateLocationArea.spec.js b/test/model/CreateLocationArea.spec.js new file mode 100644 index 00000000..7d9c5fd3 --- /dev/null +++ b/test/model/CreateLocationArea.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateLocationArea(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateLocationArea', function() { + it('should create an instance of CreateLocationArea', function() { + // uncomment below and update the code to test CreateLocationArea + //var instane = new Flipdish.CreateLocationArea(); + //expect(instance).to.be.a(Flipdish.CreateLocationArea); + }); + + it('should have the property LocationAreaName (base name: "LocationAreaName")', function() { + // uncomment below and update the code to test the property LocationAreaName + //var instance = new Flipdish.CreateLocationArea(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateMenuSectionItemFromCatalogItems.spec.js b/test/model/CreateMenuSectionItemFromCatalogItems.spec.js new file mode 100644 index 00000000..6211f7f9 --- /dev/null +++ b/test/model/CreateMenuSectionItemFromCatalogItems.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateMenuSectionItemFromCatalogItems(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateMenuSectionItemFromCatalogItems', function() { + it('should create an instance of CreateMenuSectionItemFromCatalogItems', function() { + // uncomment below and update the code to test CreateMenuSectionItemFromCatalogItems + //var instane = new Flipdish.CreateMenuSectionItemFromCatalogItems(); + //expect(instance).to.be.a(Flipdish.CreateMenuSectionItemFromCatalogItems); + }); + + it('should have the property MenuCatalogItems (base name: "MenuCatalogItems")', function() { + // uncomment below and update the code to test the property MenuCatalogItems + //var instance = new Flipdish.CreateMenuSectionItemFromCatalogItems(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateMenuTaxRate.spec.js b/test/model/CreateMenuTaxRate.spec.js new file mode 100644 index 00000000..57186827 --- /dev/null +++ b/test/model/CreateMenuTaxRate.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateMenuTaxRate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateMenuTaxRate', function() { + it('should create an instance of CreateMenuTaxRate', function() { + // uncomment below and update the code to test CreateMenuTaxRate + //var instane = new Flipdish.CreateMenuTaxRate(); + //expect(instance).to.be.a(Flipdish.CreateMenuTaxRate); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateMenuTaxRate(); + //expect(instance).to.be(); + }); + + it('should have the property Rate (base name: "Rate")', function() { + // uncomment below and update the code to test the property Rate + //var instance = new Flipdish.CreateMenuTaxRate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateMetadata.spec.js b/test/model/CreateMetadata.spec.js new file mode 100644 index 00000000..eee12d32 --- /dev/null +++ b/test/model/CreateMetadata.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateMetadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateMetadata', function() { + it('should create an instance of CreateMetadata', function() { + // uncomment below and update the code to test CreateMetadata + //var instane = new Flipdish.CreateMetadata(); + //expect(instance).to.be.a(Flipdish.CreateMetadata); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.CreateMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.CreateMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.CreateMetadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateMetafieldDefinition.spec.js b/test/model/CreateMetafieldDefinition.spec.js new file mode 100644 index 00000000..9fad9e1e --- /dev/null +++ b/test/model/CreateMetafieldDefinition.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateMetafieldDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateMetafieldDefinition', function() { + it('should create an instance of CreateMetafieldDefinition', function() { + // uncomment below and update the code to test CreateMetafieldDefinition + //var instane = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be.a(Flipdish.CreateMetafieldDefinition); + }); + + it('should have the property IsReadOnly (base name: "IsReadOnly")', function() { + // uncomment below and update the code to test the property IsReadOnly + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property OwnerEntity (base name: "OwnerEntity")', function() { + // uncomment below and update the code to test the property OwnerEntity + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property ValueType (base name: "ValueType")', function() { + // uncomment below and update the code to test the property ValueType + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Behaviors (base name: "Behaviors")', function() { + // uncomment below and update the code to test the property Behaviors + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property MetafieldDefinitionRecommendationId (base name: "MetafieldDefinitionRecommendationId")', function() { + // uncomment below and update the code to test the property MetafieldDefinitionRecommendationId + //var instance = new Flipdish.CreateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreatePayGreenConfigurationRequest.spec.js b/test/model/CreatePayGreenConfigurationRequest.spec.js new file mode 100644 index 00000000..331d44af --- /dev/null +++ b/test/model/CreatePayGreenConfigurationRequest.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreatePayGreenConfigurationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreatePayGreenConfigurationRequest', function() { + it('should create an instance of CreatePayGreenConfigurationRequest', function() { + // uncomment below and update the code to test CreatePayGreenConfigurationRequest + //var instane = new Flipdish.CreatePayGreenConfigurationRequest(); + //expect(instance).to.be.a(Flipdish.CreatePayGreenConfigurationRequest); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreatePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenId (base name: "PayGreenId")', function() { + // uncomment below and update the code to test the property PayGreenId + //var instance = new Flipdish.CreatePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenPrivateKey (base name: "PayGreenPrivateKey")', function() { + // uncomment below and update the code to test the property PayGreenPrivateKey + //var instance = new Flipdish.CreatePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property AssignedStores (base name: "AssignedStores")', function() { + // uncomment below and update the code to test the property AssignedStores + //var instance = new Flipdish.CreatePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateProduct.spec.js b/test/model/CreateProduct.spec.js new file mode 100644 index 00000000..40cf9767 --- /dev/null +++ b/test/model/CreateProduct.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateProduct(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateProduct', function() { + it('should create an instance of CreateProduct', function() { + // uncomment below and update the code to test CreateProduct + //var instane = new Flipdish.CreateProduct(); + //expect(instance).to.be.a(Flipdish.CreateProduct); + }); + + it('should have the property Groups (base name: "Groups")', function() { + // uncomment below and update the code to test the property Groups + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property ProductType (base name: "ProductType")', function() { + // uncomment below and update the code to test the property ProductType + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.CreateProduct(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateProductReference.spec.js b/test/model/CreateProductReference.spec.js new file mode 100644 index 00000000..8b902727 --- /dev/null +++ b/test/model/CreateProductReference.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateProductReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateProductReference', function() { + it('should create an instance of CreateProductReference', function() { + // uncomment below and update the code to test CreateProductReference + //var instane = new Flipdish.CreateProductReference(); + //expect(instance).to.be.a(Flipdish.CreateProductReference); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.CreateProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property ProductType (base name: "ProductType")', function() { + // uncomment below and update the code to test the property ProductType + //var instance = new Flipdish.CreateProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property PreselectedQuantity (base name: "PreselectedQuantity")', function() { + // uncomment below and update the code to test the property PreselectedQuantity + //var instance = new Flipdish.CreateProductReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreatePromotion.spec.js b/test/model/CreatePromotion.spec.js new file mode 100644 index 00000000..42f9e191 --- /dev/null +++ b/test/model/CreatePromotion.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreatePromotion(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreatePromotion', function() { + it('should create an instance of CreatePromotion', function() { + // uncomment below and update the code to test CreatePromotion + //var instane = new Flipdish.CreatePromotion(); + //expect(instance).to.be.a(Flipdish.CreatePromotion); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CreatePromotion(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemPublicIds (base name: "MenuItemPublicIds")', function() { + // uncomment below and update the code to test the property MenuItemPublicIds + //var instance = new Flipdish.CreatePromotion(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateTeammate.spec.js b/test/model/CreateTeammate.spec.js new file mode 100644 index 00000000..ae778ec3 --- /dev/null +++ b/test/model/CreateTeammate.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateTeammate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateTeammate', function() { + it('should create an instance of CreateTeammate', function() { + // uncomment below and update the code to test CreateTeammate + //var instane = new Flipdish.CreateTeammate(); + //expect(instance).to.be.a(Flipdish.CreateTeammate); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.CreateTeammate(); + //expect(instance).to.be(); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // uncomment below and update the code to test the property AppAccessLevel + //var instance = new Flipdish.CreateTeammate(); + //expect(instance).to.be(); + }); + + it('should have the property HasAccessToAllStores (base name: "HasAccessToAllStores")', function() { + // uncomment below and update the code to test the property HasAccessToAllStores + //var instance = new Flipdish.CreateTeammate(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.CreateTeammate(); + //expect(instance).to.be(); + }); + + it('should have the property PropertyIds (base name: "PropertyIds")', function() { + // uncomment below and update the code to test the property PropertyIds + //var instance = new Flipdish.CreateTeammate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateVoucher.spec.js b/test/model/CreateVoucher.spec.js new file mode 100644 index 00000000..5cd3cff5 --- /dev/null +++ b/test/model/CreateVoucher.spec.js @@ -0,0 +1,233 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreateVoucher(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateVoucher', function() { + it('should create an instance of CreateVoucher', function() { + // uncomment below and update the code to test CreateVoucher + //var instane = new Flipdish.CreateVoucher(); + //expect(instance).to.be.a(Flipdish.CreateVoucher); + }); + + it('should have the property VoucherType (base name: "VoucherType")', function() { + // uncomment below and update the code to test the property VoucherType + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property Promotion (base name: "Promotion")', function() { + // uncomment below and update the code to test the property Promotion + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property CreditNoteDetails (base name: "CreditNoteDetails")', function() { + // uncomment below and update the code to test the property CreditNoteDetails + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property LumpDiscountDetails (base name: "LumpDiscountDetails")', function() { + // uncomment below and update the code to test the property LumpDiscountDetails + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property PercentDiscountDetails (base name: "PercentDiscountDetails")', function() { + // uncomment below and update the code to test the property PercentDiscountDetails + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // uncomment below and update the code to test the property ValidOnOrdersOver + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // uncomment below and update the code to test the property TakesPriority + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // uncomment below and update the code to test the property IsAutomaticallyApplied + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // uncomment below and update the code to test the property IsValidForDeliveryOrders + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // uncomment below and update the code to test the property IsValidForPickupOrders + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedOnline + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedByCash + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // uncomment below and update the code to test the property IsValidForFirstOrderOnly + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // uncomment below and update the code to test the property IsValidOncePerCustomer + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // uncomment below and update the code to test the property IsValidOnlyOnce + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsDiscoverable (base name: "IsDiscoverable")', function() { + // uncomment below and update the code to test the property IsDiscoverable + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // uncomment below and update the code to test the property StartDate + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // uncomment below and update the code to test the property ExpiryDate + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelRestrictions (base name: "ChannelRestrictions")', function() { + // uncomment below and update the code to test the property ChannelRestrictions + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ValidityPeriods (base name: "ValidityPeriods")', function() { + // uncomment below and update the code to test the property ValidityPeriods + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // uncomment below and update the code to test the property VoucherSubType + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerId (base name: "CustomerId")', function() { + // uncomment below and update the code to test the property CustomerId + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property MaxRedemptions (base name: "MaxRedemptions")', function() { + // uncomment below and update the code to test the property MaxRedemptions + //var instance = new Flipdish.CreateVoucher(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreatedMenuSectionItems.spec.js b/test/model/CreatedMenuSectionItems.spec.js new file mode 100644 index 00000000..2947b424 --- /dev/null +++ b/test/model/CreatedMenuSectionItems.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreatedMenuSectionItems(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreatedMenuSectionItems', function() { + it('should create an instance of CreatedMenuSectionItems', function() { + // uncomment below and update the code to test CreatedMenuSectionItems + //var instane = new Flipdish.CreatedMenuSectionItems(); + //expect(instance).to.be.a(Flipdish.CreatedMenuSectionItems); + }); + + it('should have the property MenuSectionItems (base name: "MenuSectionItems")', function() { + // uncomment below and update the code to test the property MenuSectionItems + //var instance = new Flipdish.CreatedMenuSectionItems(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreditNoteDetails.spec.js b/test/model/CreditNoteDetails.spec.js new file mode 100644 index 00000000..45526be2 --- /dev/null +++ b/test/model/CreditNoteDetails.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CreditNoteDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreditNoteDetails', function() { + it('should create an instance of CreditNoteDetails', function() { + // uncomment below and update the code to test CreditNoteDetails + //var instane = new Flipdish.CreditNoteDetails(); + //expect(instance).to.be.a(Flipdish.CreditNoteDetails); + }); + + it('should have the property RemainingCredit (base name: "RemainingCredit")', function() { + // uncomment below and update the code to test the property RemainingCredit + //var instance = new Flipdish.CreditNoteDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CrossSellMenuItems.spec.js b/test/model/CrossSellMenuItems.spec.js new file mode 100644 index 00000000..87e1189d --- /dev/null +++ b/test/model/CrossSellMenuItems.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CrossSellMenuItems(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CrossSellMenuItems', function() { + it('should create an instance of CrossSellMenuItems', function() { + // uncomment below and update the code to test CrossSellMenuItems + //var instane = new Flipdish.CrossSellMenuItems(); + //expect(instance).to.be.a(Flipdish.CrossSellMenuItems); + }); + + it('should have the property MenuItemIds (base name: "MenuItemIds")', function() { + // uncomment below and update the code to test the property MenuItemIds + //var instance = new Flipdish.CrossSellMenuItems(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CspReport.spec.js b/test/model/CspReport.spec.js new file mode 100644 index 00000000..9d148006 --- /dev/null +++ b/test/model/CspReport.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CspReport(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CspReport', function() { + it('should create an instance of CspReport', function() { + // uncomment below and update the code to test CspReport + //var instane = new Flipdish.CspReport(); + //expect(instance).to.be.a(Flipdish.CspReport); + }); + + it('should have the property Document_uri (base name: "Document-uri")', function() { + // uncomment below and update the code to test the property Document_uri + //var instance = new Flipdish.CspReport(); + //expect(instance).to.be(); + }); + + it('should have the property Referrer (base name: "Referrer")', function() { + // uncomment below and update the code to test the property Referrer + //var instance = new Flipdish.CspReport(); + //expect(instance).to.be(); + }); + + it('should have the property Violated_directive (base name: "Violated-directive")', function() { + // uncomment below and update the code to test the property Violated_directive + //var instance = new Flipdish.CspReport(); + //expect(instance).to.be(); + }); + + it('should have the property Effective_directive (base name: "Effective-directive")', function() { + // uncomment below and update the code to test the property Effective_directive + //var instance = new Flipdish.CspReport(); + //expect(instance).to.be(); + }); + + it('should have the property Original_policy (base name: "Original-policy")', function() { + // uncomment below and update the code to test the property Original_policy + //var instance = new Flipdish.CspReport(); + //expect(instance).to.be(); + }); + + it('should have the property Blocked_uri (base name: "Blocked-uri")', function() { + // uncomment below and update the code to test the property Blocked_uri + //var instance = new Flipdish.CspReport(); + //expect(instance).to.be(); + }); + + it('should have the property Status_code (base name: "Status-code")', function() { + // uncomment below and update the code to test the property Status_code + //var instance = new Flipdish.CspReport(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CspReportRequest.spec.js b/test/model/CspReportRequest.spec.js new file mode 100644 index 00000000..78a8d5bd --- /dev/null +++ b/test/model/CspReportRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CspReportRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CspReportRequest', function() { + it('should create an instance of CspReportRequest', function() { + // uncomment below and update the code to test CspReportRequest + //var instane = new Flipdish.CspReportRequest(); + //expect(instance).to.be.a(Flipdish.CspReportRequest); + }); + + it('should have the property Csp_report (base name: "Csp-report")', function() { + // uncomment below and update the code to test the property Csp_report + //var instance = new Flipdish.CspReportRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CurrencyData.spec.js b/test/model/CurrencyData.spec.js new file mode 100644 index 00000000..26c1b4c7 --- /dev/null +++ b/test/model/CurrencyData.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CurrencyData(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CurrencyData', function() { + it('should create an instance of CurrencyData', function() { + // uncomment below and update the code to test CurrencyData + //var instane = new Flipdish.CurrencyData(); + //expect(instance).to.be.a(Flipdish.CurrencyData); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.CurrencyData(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.CurrencyData(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Customer.spec.js b/test/model/Customer.spec.js new file mode 100644 index 00000000..c1dade8e --- /dev/null +++ b/test/model/Customer.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Customer(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Customer', function() { + it('should create an instance of Customer', function() { + // uncomment below and update the code to test Customer + //var instane = new Flipdish.Customer(); + //expect(instance).to.be.a(Flipdish.Customer); + }); + + it('should have the property CustomerId (base name: "CustomerId")', function() { + // uncomment below and update the code to test the property CustomerId + //var instance = new Flipdish.Customer(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Customer(); + //expect(instance).to.be(); + }); + + it('should have the property RegistrationDate (base name: "RegistrationDate")', function() { + // uncomment below and update the code to test the property RegistrationDate + //var instance = new Flipdish.Customer(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.Customer(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrdersEnabled (base name: "CashOrdersEnabled")', function() { + // uncomment below and update the code to test the property CashOrdersEnabled + //var instance = new Flipdish.Customer(); + //expect(instance).to.be(); + }); + + it('should have the property CardOrdersEnabled (base name: "CardOrdersEnabled")', function() { + // uncomment below and update the code to test the property CardOrdersEnabled + //var instance = new Flipdish.Customer(); + //expect(instance).to.be(); + }); + + it('should have the property MarketingEnabled (base name: "MarketingEnabled")', function() { + // uncomment below and update the code to test the property MarketingEnabled + //var instance = new Flipdish.Customer(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerConsentUpdatedEvent.spec.js b/test/model/CustomerConsentUpdatedEvent.spec.js new file mode 100644 index 00000000..765725cd --- /dev/null +++ b/test/model/CustomerConsentUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerConsentUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerConsentUpdatedEvent', function() { + it('should create an instance of CustomerConsentUpdatedEvent', function() { + // uncomment below and update the code to test CustomerConsentUpdatedEvent + //var instane = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.CustomerConsentUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CustomerConsentUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerCreateModel.spec.js b/test/model/CustomerCreateModel.spec.js new file mode 100644 index 00000000..d557cca6 --- /dev/null +++ b/test/model/CustomerCreateModel.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerCreateModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerCreateModel', function() { + it('should create an instance of CustomerCreateModel', function() { + // uncomment below and update the code to test CustomerCreateModel + //var instane = new Flipdish.CustomerCreateModel(); + //expect(instance).to.be.a(Flipdish.CustomerCreateModel); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.CustomerCreateModel(); + //expect(instance).to.be(); + }); + + it('should have the property AppType (base name: "AppType")', function() { + // uncomment below and update the code to test the property AppType + //var instance = new Flipdish.CustomerCreateModel(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CustomerCreateModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerCreatedEvent.spec.js b/test/model/CustomerCreatedEvent.spec.js new file mode 100644 index 00000000..37697482 --- /dev/null +++ b/test/model/CustomerCreatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerCreatedEvent', function() { + it('should create an instance of CustomerCreatedEvent', function() { + // uncomment below and update the code to test CustomerCreatedEvent + //var instane = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be.a(Flipdish.CustomerCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CustomerCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerDeliveryTrackingOrder.spec.js b/test/model/CustomerDeliveryTrackingOrder.spec.js new file mode 100644 index 00000000..fb0c43b2 --- /dev/null +++ b/test/model/CustomerDeliveryTrackingOrder.spec.js @@ -0,0 +1,173 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerDeliveryTrackingOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerDeliveryTrackingOrder', function() { + it('should create an instance of CustomerDeliveryTrackingOrder', function() { + // uncomment below and update the code to test CustomerDeliveryTrackingOrder + //var instane = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be.a(Flipdish.CustomerDeliveryTrackingOrder); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Address (base name: "Address")', function() { + // uncomment below and update the code to test the property Address + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryNotes (base name: "DeliveryNotes")', function() { + // uncomment below and update the code to test the property DeliveryNotes + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property StorePhoneNumber (base name: "StorePhoneNumber")', function() { + // uncomment below and update the code to test the property StorePhoneNumber + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property AppIconUrl (base name: "AppIconUrl")', function() { + // uncomment below and update the code to test the property AppIconUrl + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property OrderTrackingCode (base name: "OrderTrackingCode")', function() { + // uncomment below and update the code to test the property OrderTrackingCode + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentMethodDescription (base name: "PaymentMethodDescription")', function() { + // uncomment below and update the code to test the property PaymentMethodDescription + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property LastFourDigits (base name: "LastFourDigits")', function() { + // uncomment below and update the code to test the property LastFourDigits + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property OrderLines (base name: "OrderLines")', function() { + // uncomment below and update the code to test the property OrderLines + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TotalAmount (base name: "TotalAmount")', function() { + // uncomment below and update the code to test the property TotalAmount + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // uncomment below and update the code to test the property Latitude + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // uncomment below and update the code to test the property Longitude + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Placed (base name: "Placed")', function() { + // uncomment below and update the code to test the property Placed + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property RequestedFor (base name: "RequestedFor")', function() { + // uncomment below and update the code to test the property RequestedFor + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DriverId (base name: "DriverId")', function() { + // uncomment below and update the code to test the property DriverId + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DriverName (base name: "DriverName")', function() { + // uncomment below and update the code to test the property DriverName + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DriverImage (base name: "DriverImage")', function() { + // uncomment below and update the code to test the property DriverImage + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + it('should have the property EstimatedMinutesForDelivery (base name: "EstimatedMinutesForDelivery")', function() { + // uncomment below and update the code to test the property EstimatedMinutesForDelivery + //var instance = new Flipdish.CustomerDeliveryTrackingOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerDeliveryTrackingOrderLine.spec.js b/test/model/CustomerDeliveryTrackingOrderLine.spec.js new file mode 100644 index 00000000..1d9daade --- /dev/null +++ b/test/model/CustomerDeliveryTrackingOrderLine.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerDeliveryTrackingOrderLine(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerDeliveryTrackingOrderLine', function() { + it('should create an instance of CustomerDeliveryTrackingOrderLine', function() { + // uncomment below and update the code to test CustomerDeliveryTrackingOrderLine + //var instane = new Flipdish.CustomerDeliveryTrackingOrderLine(); + //expect(instance).to.be.a(Flipdish.CustomerDeliveryTrackingOrderLine); + }); + + it('should have the property ItemName (base name: "ItemName")', function() { + // uncomment below and update the code to test the property ItemName + //var instance = new Flipdish.CustomerDeliveryTrackingOrderLine(); + //expect(instance).to.be(); + }); + + it('should have the property SelectedOptions (base name: "SelectedOptions")', function() { + // uncomment below and update the code to test the property SelectedOptions + //var instance = new Flipdish.CustomerDeliveryTrackingOrderLine(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerMessages.spec.js b/test/model/CustomerMessages.spec.js new file mode 100644 index 00000000..ec2cded7 --- /dev/null +++ b/test/model/CustomerMessages.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerMessages(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerMessages', function() { + it('should create an instance of CustomerMessages', function() { + // uncomment below and update the code to test CustomerMessages + //var instane = new Flipdish.CustomerMessages(); + //expect(instance).to.be.a(Flipdish.CustomerMessages); + }); + + it('should have the property DeliveryMenuMessage (base name: "DeliveryMenuMessage")', function() { + // uncomment below and update the code to test the property DeliveryMenuMessage + //var instance = new Flipdish.CustomerMessages(); + //expect(instance).to.be(); + }); + + it('should have the property PickupMenuMessage (base name: "PickupMenuMessage")', function() { + // uncomment below and update the code to test the property PickupMenuMessage + //var instance = new Flipdish.CustomerMessages(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerSummary.spec.js b/test/model/CustomerSummary.spec.js new file mode 100644 index 00000000..41d4e605 --- /dev/null +++ b/test/model/CustomerSummary.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerSummary', function() { + it('should create an instance of CustomerSummary', function() { + // uncomment below and update the code to test CustomerSummary + //var instane = new Flipdish.CustomerSummary(); + //expect(instance).to.be.a(Flipdish.CustomerSummary); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.CustomerSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.CustomerSummary(); + //expect(instance).to.be(); + }); + + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // uncomment below and update the code to test the property EmailAddress + //var instance = new Flipdish.CustomerSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumberLocalFormat (base name: "PhoneNumberLocalFormat")', function() { + // uncomment below and update the code to test the property PhoneNumberLocalFormat + //var instance = new Flipdish.CustomerSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.CustomerSummary(); + //expect(instance).to.be(); + }); + + it('should have the property LanguagePreference (base name: "LanguagePreference")', function() { + // uncomment below and update the code to test the property LanguagePreference + //var instance = new Flipdish.CustomerSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerUpdateModel.spec.js b/test/model/CustomerUpdateModel.spec.js new file mode 100644 index 00000000..c4530565 --- /dev/null +++ b/test/model/CustomerUpdateModel.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerUpdateModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerUpdateModel', function() { + it('should create an instance of CustomerUpdateModel', function() { + // uncomment below and update the code to test CustomerUpdateModel + //var instane = new Flipdish.CustomerUpdateModel(); + //expect(instance).to.be.a(Flipdish.CustomerUpdateModel); + }); + + it('should have the property CashOrdersEnabled (base name: "CashOrdersEnabled")', function() { + // uncomment below and update the code to test the property CashOrdersEnabled + //var instance = new Flipdish.CustomerUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property CardOrdersEnabled (base name: "CardOrdersEnabled")', function() { + // uncomment below and update the code to test the property CardOrdersEnabled + //var instance = new Flipdish.CustomerUpdateModel(); + //expect(instance).to.be(); + }); + + it('should have the property MarketingEnabled (base name: "MarketingEnabled")', function() { + // uncomment below and update the code to test the property MarketingEnabled + //var instance = new Flipdish.CustomerUpdateModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CustomerUpdatedEvent.spec.js b/test/model/CustomerUpdatedEvent.spec.js new file mode 100644 index 00000000..1f2fc4e9 --- /dev/null +++ b/test/model/CustomerUpdatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.CustomerUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CustomerUpdatedEvent', function() { + it('should create an instance of CustomerUpdatedEvent', function() { + // uncomment below and update the code to test CustomerUpdatedEvent + //var instane = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.CustomerUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.CustomerUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Customers.spec.js b/test/model/Customers.spec.js new file mode 100644 index 00000000..a8ef5696 --- /dev/null +++ b/test/model/Customers.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Customers(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Customers', function() { + it('should create an instance of Customers', function() { + // uncomment below and update the code to test Customers + //var instane = new Flipdish.Customers(); + //expect(instance).to.be.a(Flipdish.Customers); + }); + + it('should have the property Items (base name: "Items")', function() { + // uncomment below and update the code to test the property Items + //var instance = new Flipdish.Customers(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DashboardEmbed.spec.js b/test/model/DashboardEmbed.spec.js new file mode 100644 index 00000000..94b71d66 --- /dev/null +++ b/test/model/DashboardEmbed.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DashboardEmbed(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DashboardEmbed', function() { + it('should create an instance of DashboardEmbed', function() { + // uncomment below and update the code to test DashboardEmbed + //var instane = new Flipdish.DashboardEmbed(); + //expect(instance).to.be.a(Flipdish.DashboardEmbed); + }); + + it('should have the property EmbedUrl (base name: "EmbedUrl")', function() { + // uncomment below and update the code to test the property EmbedUrl + //var instance = new Flipdish.DashboardEmbed(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeliveryLocation.spec.js b/test/model/DeliveryLocation.spec.js new file mode 100644 index 00000000..0405f5fc --- /dev/null +++ b/test/model/DeliveryLocation.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeliveryLocation', function() { + it('should create an instance of DeliveryLocation', function() { + // uncomment below and update the code to test DeliveryLocation + //var instane = new Flipdish.DeliveryLocation(); + //expect(instance).to.be.a(Flipdish.DeliveryLocation); + }); + + it('should have the property Coordinates (base name: "Coordinates")', function() { + // uncomment below and update the code to test the property Coordinates + //var instance = new Flipdish.DeliveryLocation(); + //expect(instance).to.be(); + }); + + it('should have the property Building (base name: "Building")', function() { + // uncomment below and update the code to test the property Building + //var instance = new Flipdish.DeliveryLocation(); + //expect(instance).to.be(); + }); + + it('should have the property Street (base name: "Street")', function() { + // uncomment below and update the code to test the property Street + //var instance = new Flipdish.DeliveryLocation(); + //expect(instance).to.be(); + }); + + it('should have the property Town (base name: "Town")', function() { + // uncomment below and update the code to test the property Town + //var instance = new Flipdish.DeliveryLocation(); + //expect(instance).to.be(); + }); + + it('should have the property PostCode (base name: "PostCode")', function() { + // uncomment below and update the code to test the property PostCode + //var instance = new Flipdish.DeliveryLocation(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryInstructions (base name: "DeliveryInstructions")', function() { + // uncomment below and update the code to test the property DeliveryInstructions + //var instance = new Flipdish.DeliveryLocation(); + //expect(instance).to.be(); + }); + + it('should have the property PrettyAddressString (base name: "PrettyAddressString")', function() { + // uncomment below and update the code to test the property PrettyAddressString + //var instance = new Flipdish.DeliveryLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeliveryZone.spec.js b/test/model/DeliveryZone.spec.js new file mode 100644 index 00000000..91df2574 --- /dev/null +++ b/test/model/DeliveryZone.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeliveryZone', function() { + it('should create an instance of DeliveryZone', function() { + // uncomment below and update the code to test DeliveryZone + //var instane = new Flipdish.DeliveryZone(); + //expect(instance).to.be.a(Flipdish.DeliveryZone); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.DeliveryZone(); + //expect(instance).to.be(); + }); + + it('should have the property FeeChargedToStore (base name: "FeeChargedToStore")', function() { + // uncomment below and update the code to test the property FeeChargedToStore + //var instance = new Flipdish.DeliveryZone(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryFee (base name: "DeliveryFee")', function() { + // uncomment below and update the code to test the property DeliveryFee + //var instance = new Flipdish.DeliveryZone(); + //expect(instance).to.be(); + }); + + it('should have the property MinimumDeliveryOrderAmount (base name: "MinimumDeliveryOrderAmount")', function() { + // uncomment below and update the code to test the property MinimumDeliveryOrderAmount + //var instance = new Flipdish.DeliveryZone(); + //expect(instance).to.be(); + }); + + it('should have the property WellKnownText (base name: "WellKnownText")', function() { + // uncomment below and update the code to test the property WellKnownText + //var instance = new Flipdish.DeliveryZone(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.DeliveryZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeliveryZoneBase.spec.js b/test/model/DeliveryZoneBase.spec.js new file mode 100644 index 00000000..00e0a2b7 --- /dev/null +++ b/test/model/DeliveryZoneBase.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryZoneBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeliveryZoneBase', function() { + it('should create an instance of DeliveryZoneBase', function() { + // uncomment below and update the code to test DeliveryZoneBase + //var instane = new Flipdish.DeliveryZoneBase(); + //expect(instance).to.be.a(Flipdish.DeliveryZoneBase); + }); + + it('should have the property DeliveryFee (base name: "DeliveryFee")', function() { + // uncomment below and update the code to test the property DeliveryFee + //var instance = new Flipdish.DeliveryZoneBase(); + //expect(instance).to.be(); + }); + + it('should have the property MinimumDeliveryOrderAmount (base name: "MinimumDeliveryOrderAmount")', function() { + // uncomment below and update the code to test the property MinimumDeliveryOrderAmount + //var instance = new Flipdish.DeliveryZoneBase(); + //expect(instance).to.be(); + }); + + it('should have the property WellKnownText (base name: "WellKnownText")', function() { + // uncomment below and update the code to test the property WellKnownText + //var instance = new Flipdish.DeliveryZoneBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.DeliveryZoneBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeliveryZoneCreatedEvent.spec.js b/test/model/DeliveryZoneCreatedEvent.spec.js new file mode 100644 index 00000000..c4fdc071 --- /dev/null +++ b/test/model/DeliveryZoneCreatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryZoneCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeliveryZoneCreatedEvent', function() { + it('should create an instance of DeliveryZoneCreatedEvent', function() { + // uncomment below and update the code to test DeliveryZoneCreatedEvent + //var instane = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be.a(Flipdish.DeliveryZoneCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryZone (base name: "DeliveryZone")', function() { + // uncomment below and update the code to test the property DeliveryZone + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.DeliveryZoneCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeliveryZoneDeletedEvent.spec.js b/test/model/DeliveryZoneDeletedEvent.spec.js new file mode 100644 index 00000000..6b29a483 --- /dev/null +++ b/test/model/DeliveryZoneDeletedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryZoneDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeliveryZoneDeletedEvent', function() { + it('should create an instance of DeliveryZoneDeletedEvent', function() { + // uncomment below and update the code to test DeliveryZoneDeletedEvent + //var instane = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be.a(Flipdish.DeliveryZoneDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryZone (base name: "DeliveryZone")', function() { + // uncomment below and update the code to test the property DeliveryZone + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.DeliveryZoneDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeliveryZoneUpdatedEvent.spec.js b/test/model/DeliveryZoneUpdatedEvent.spec.js new file mode 100644 index 00000000..7c26bb79 --- /dev/null +++ b/test/model/DeliveryZoneUpdatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeliveryZoneUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeliveryZoneUpdatedEvent', function() { + it('should create an instance of DeliveryZoneUpdatedEvent', function() { + // uncomment below and update the code to test DeliveryZoneUpdatedEvent + //var instane = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.DeliveryZoneUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryZone (base name: "DeliveryZone")', function() { + // uncomment below and update the code to test the property DeliveryZone + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.DeliveryZoneUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DepositReturnFeesSummary.spec.js b/test/model/DepositReturnFeesSummary.spec.js new file mode 100644 index 00000000..4b14846a --- /dev/null +++ b/test/model/DepositReturnFeesSummary.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DepositReturnFeesSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DepositReturnFeesSummary', function() { + it('should create an instance of DepositReturnFeesSummary', function() { + // uncomment below and update the code to test DepositReturnFeesSummary + //var instane = new Flipdish.DepositReturnFeesSummary(); + //expect(instance).to.be.a(Flipdish.DepositReturnFeesSummary); + }); + + it('should have the property Count (base name: "Count")', function() { + // uncomment below and update the code to test the property Count + //var instance = new Flipdish.DepositReturnFeesSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Fee (base name: "Fee")', function() { + // uncomment below and update the code to test the property Fee + //var instance = new Flipdish.DepositReturnFeesSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Total (base name: "Total")', function() { + // uncomment below and update the code to test the property Total + //var instance = new Flipdish.DepositReturnFeesSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeviceSettings.spec.js b/test/model/DeviceSettings.spec.js new file mode 100644 index 00000000..cb610ab0 --- /dev/null +++ b/test/model/DeviceSettings.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DeviceSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeviceSettings', function() { + it('should create an instance of DeviceSettings', function() { + // uncomment below and update the code to test DeviceSettings + //var instane = new Flipdish.DeviceSettings(); + //expect(instance).to.be.a(Flipdish.DeviceSettings); + }); + + it('should have the property Volume (base name: "Volume")', function() { + // uncomment below and update the code to test the property Volume + //var instance = new Flipdish.DeviceSettings(); + //expect(instance).to.be(); + }); + + it('should have the property FontSize (base name: "FontSize")', function() { + // uncomment below and update the code to test the property FontSize + //var instance = new Flipdish.DeviceSettings(); + //expect(instance).to.be(); + }); + + it('should have the property Brightness (base name: "Brightness")', function() { + // uncomment below and update the code to test the property Brightness + //var instance = new Flipdish.DeviceSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DnsRecordInformation.spec.js b/test/model/DnsRecordInformation.spec.js new file mode 100644 index 00000000..9a40d1ca --- /dev/null +++ b/test/model/DnsRecordInformation.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DnsRecordInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DnsRecordInformation', function() { + it('should create an instance of DnsRecordInformation', function() { + // uncomment below and update the code to test DnsRecordInformation + //var instane = new Flipdish.DnsRecordInformation(); + //expect(instance).to.be.a(Flipdish.DnsRecordInformation); + }); + + it('should have the property IsCNameReady (base name: "IsCNameReady")', function() { + // uncomment below and update the code to test the property IsCNameReady + //var instance = new Flipdish.DnsRecordInformation(); + //expect(instance).to.be(); + }); + + it('should have the property IsAReady (base name: "IsAReady")', function() { + // uncomment below and update the code to test the property IsAReady + //var instance = new Flipdish.DnsRecordInformation(); + //expect(instance).to.be(); + }); + + it('should have the property IsApiCNameReady (base name: "IsApiCNameReady")', function() { + // uncomment below and update the code to test the property IsApiCNameReady + //var instance = new Flipdish.DnsRecordInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DnsVerifiedEvent.spec.js b/test/model/DnsVerifiedEvent.spec.js new file mode 100644 index 00000000..8f951307 --- /dev/null +++ b/test/model/DnsVerifiedEvent.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DnsVerifiedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DnsVerifiedEvent', function() { + it('should create an instance of DnsVerifiedEvent', function() { + // uncomment below and update the code to test DnsVerifiedEvent + //var instane = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be.a(Flipdish.DnsVerifiedEvent); + }); + + it('should have the property Hostname (base name: "Hostname")', function() { + // uncomment below and update the code to test the property Hostname + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.DnsVerifiedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DriverLoginModel.spec.js b/test/model/DriverLoginModel.spec.js new file mode 100644 index 00000000..e8a863a7 --- /dev/null +++ b/test/model/DriverLoginModel.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DriverLoginModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DriverLoginModel', function() { + it('should create an instance of DriverLoginModel', function() { + // uncomment below and update the code to test DriverLoginModel + //var instane = new Flipdish.DriverLoginModel(); + //expect(instance).to.be.a(Flipdish.DriverLoginModel); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.DriverLoginModel(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.DriverLoginModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DriverRequestLoginPinModel.spec.js b/test/model/DriverRequestLoginPinModel.spec.js new file mode 100644 index 00000000..b250ee25 --- /dev/null +++ b/test/model/DriverRequestLoginPinModel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DriverRequestLoginPinModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DriverRequestLoginPinModel', function() { + it('should create an instance of DriverRequestLoginPinModel', function() { + // uncomment below and update the code to test DriverRequestLoginPinModel + //var instane = new Flipdish.DriverRequestLoginPinModel(); + //expect(instance).to.be.a(Flipdish.DriverRequestLoginPinModel); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.DriverRequestLoginPinModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DynamicFormField.spec.js b/test/model/DynamicFormField.spec.js new file mode 100644 index 00000000..dc12e00d --- /dev/null +++ b/test/model/DynamicFormField.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DynamicFormField(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DynamicFormField', function() { + it('should create an instance of DynamicFormField', function() { + // uncomment below and update the code to test DynamicFormField + //var instane = new Flipdish.DynamicFormField(); + //expect(instance).to.be.a(Flipdish.DynamicFormField); + }); + + it('should have the property Identifier (base name: "Identifier")', function() { + // uncomment below and update the code to test the property Identifier + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + it('should have the property Label (base name: "Label")', function() { + // uncomment below and update the code to test the property Label + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + it('should have the property Placeholder (base name: "Placeholder")', function() { + // uncomment below and update the code to test the property Placeholder + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + it('should have the property Rules (base name: "Rules")', function() { + // uncomment below and update the code to test the property Rules + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + it('should have the property Mapping (base name: "Mapping")', function() { + // uncomment below and update the code to test the property Mapping + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + it('should have the property Modifiers (base name: "Modifiers")', function() { + // uncomment below and update the code to test the property Modifiers + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + it('should have the property Scopes (base name: "Scopes")', function() { + // uncomment below and update the code to test the property Scopes + //var instance = new Flipdish.DynamicFormField(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DynamicFormFieldOption.spec.js b/test/model/DynamicFormFieldOption.spec.js new file mode 100644 index 00000000..e1964bad --- /dev/null +++ b/test/model/DynamicFormFieldOption.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DynamicFormFieldOption(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DynamicFormFieldOption', function() { + it('should create an instance of DynamicFormFieldOption', function() { + // uncomment below and update the code to test DynamicFormFieldOption + //var instane = new Flipdish.DynamicFormFieldOption(); + //expect(instance).to.be.a(Flipdish.DynamicFormFieldOption); + }); + + it('should have the property Display (base name: "Display")', function() { + // uncomment below and update the code to test the property Display + //var instance = new Flipdish.DynamicFormFieldOption(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.DynamicFormFieldOption(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DynamicFormRule.spec.js b/test/model/DynamicFormRule.spec.js new file mode 100644 index 00000000..dc3d4303 --- /dev/null +++ b/test/model/DynamicFormRule.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DynamicFormRule(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DynamicFormRule', function() { + it('should create an instance of DynamicFormRule', function() { + // uncomment below and update the code to test DynamicFormRule + //var instane = new Flipdish.DynamicFormRule(); + //expect(instance).to.be.a(Flipdish.DynamicFormRule); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.DynamicFormRule(); + //expect(instance).to.be(); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.DynamicFormRule(); + //expect(instance).to.be(); + }); + + it('should have the property Scopes (base name: "Scopes")', function() { + // uncomment below and update the code to test the property Scopes + //var instance = new Flipdish.DynamicFormRule(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DynamicFormRules.spec.js b/test/model/DynamicFormRules.spec.js new file mode 100644 index 00000000..7db45045 --- /dev/null +++ b/test/model/DynamicFormRules.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.DynamicFormRules(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DynamicFormRules', function() { + it('should create an instance of DynamicFormRules', function() { + // uncomment below and update the code to test DynamicFormRules + //var instane = new Flipdish.DynamicFormRules(); + //expect(instance).to.be.a(Flipdish.DynamicFormRules); + }); + + it('should have the property MaxLength (base name: "MaxLength")', function() { + // uncomment below and update the code to test the property MaxLength + //var instance = new Flipdish.DynamicFormRules(); + //expect(instance).to.be(); + }); + + it('should have the property MinLength (base name: "MinLength")', function() { + // uncomment below and update the code to test the property MinLength + //var instance = new Flipdish.DynamicFormRules(); + //expect(instance).to.be(); + }); + + it('should have the property Required (base name: "Required")', function() { + // uncomment below and update the code to test the property Required + //var instance = new Flipdish.DynamicFormRules(); + //expect(instance).to.be(); + }); + + it('should have the property Pattern (base name: "Pattern")', function() { + // uncomment below and update the code to test the property Pattern + //var instance = new Flipdish.DynamicFormRules(); + //expect(instance).to.be(); + }); + + it('should have the property Predefined (base name: "Predefined")', function() { + // uncomment below and update the code to test the property Predefined + //var instance = new Flipdish.DynamicFormRules(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/EmvNotificationEvent.spec.js b/test/model/EmvNotificationEvent.spec.js new file mode 100644 index 00000000..a96a47c5 --- /dev/null +++ b/test/model/EmvNotificationEvent.spec.js @@ -0,0 +1,161 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.EmvNotificationEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EmvNotificationEvent', function() { + it('should create an instance of EmvNotificationEvent', function() { + // uncomment below and update the code to test EmvNotificationEvent + //var instane = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be.a(Flipdish.EmvNotificationEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Notification (base name: "Notification")', function() { + // uncomment below and update the code to test the property Notification + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // uncomment below and update the code to test the property TerminalId + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property ExpDate (base name: "ExpDate")', function() { + // uncomment below and update the code to test the property ExpDate + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CardType (base name: "CardType")', function() { + // uncomment below and update the code to test the property CardType + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentMethod (base name: "PaymentMethod")', function() { + // uncomment below and update the code to test the property PaymentMethod + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AccountNumber (base name: "AccountNumber")', function() { + // uncomment below and update the code to test the property AccountNumber + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AuthCode (base name: "AuthCode")', function() { + // uncomment below and update the code to test the property AuthCode + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property ProviderMessage (base name: "ProviderMessage")', function() { + // uncomment below and update the code to test the property ProviderMessage + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.EmvNotificationEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/EmvTerminal.spec.js b/test/model/EmvTerminal.spec.js new file mode 100644 index 00000000..1062409d --- /dev/null +++ b/test/model/EmvTerminal.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.EmvTerminal(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EmvTerminal', function() { + it('should create an instance of EmvTerminal', function() { + // uncomment below and update the code to test EmvTerminal + //var instane = new Flipdish.EmvTerminal(); + //expect(instance).to.be.a(Flipdish.EmvTerminal); + }); + + it('should have the property EmvTerminalId (base name: "EmvTerminalId")', function() { + // uncomment below and update the code to test the property EmvTerminalId + //var instance = new Flipdish.EmvTerminal(); + //expect(instance).to.be(); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // uncomment below and update the code to test the property TerminalId + //var instance = new Flipdish.EmvTerminal(); + //expect(instance).to.be(); + }); + + it('should have the property Url (base name: "Url")', function() { + // uncomment below and update the code to test the property Url + //var instance = new Flipdish.EmvTerminal(); + //expect(instance).to.be(); + }); + + it('should have the property Token (base name: "Token")', function() { + // uncomment below and update the code to test the property Token + //var instance = new Flipdish.EmvTerminal(); + //expect(instance).to.be(); + }); + + it('should have the property SoftwareHouseId (base name: "SoftwareHouseId")', function() { + // uncomment below and update the code to test the property SoftwareHouseId + //var instance = new Flipdish.EmvTerminal(); + //expect(instance).to.be(); + }); + + it('should have the property InstallerId (base name: "InstallerId")', function() { + // uncomment below and update the code to test the property InstallerId + //var instance = new Flipdish.EmvTerminal(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/EmvTerminalWithAssignments.spec.js b/test/model/EmvTerminalWithAssignments.spec.js new file mode 100644 index 00000000..6f487ef8 --- /dev/null +++ b/test/model/EmvTerminalWithAssignments.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.EmvTerminalWithAssignments(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EmvTerminalWithAssignments', function() { + it('should create an instance of EmvTerminalWithAssignments', function() { + // uncomment below and update the code to test EmvTerminalWithAssignments + //var instane = new Flipdish.EmvTerminalWithAssignments(); + //expect(instance).to.be.a(Flipdish.EmvTerminalWithAssignments); + }); + + it('should have the property EmvTerminalId (base name: "EmvTerminalId")', function() { + // uncomment below and update the code to test the property EmvTerminalId + //var instance = new Flipdish.EmvTerminalWithAssignments(); + //expect(instance).to.be(); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // uncomment below and update the code to test the property TerminalId + //var instance = new Flipdish.EmvTerminalWithAssignments(); + //expect(instance).to.be(); + }); + + it('should have the property IsAssignedToHydraDevice (base name: "IsAssignedToHydraDevice")', function() { + // uncomment below and update the code to test the property IsAssignedToHydraDevice + //var instance = new Flipdish.EmvTerminalWithAssignments(); + //expect(instance).to.be(); + }); + + it('should have the property HydraConfigId (base name: "HydraConfigId")', function() { + // uncomment below and update the code to test the property HydraConfigId + //var instance = new Flipdish.EmvTerminalWithAssignments(); + //expect(instance).to.be(); + }); + + it('should have the property HydraDeviceId (base name: "HydraDeviceId")', function() { + // uncomment below and update the code to test the property HydraDeviceId + //var instance = new Flipdish.EmvTerminalWithAssignments(); + //expect(instance).to.be(); + }); + + it('should have the property HydraName (base name: "HydraName")', function() { + // uncomment below and update the code to test the property HydraName + //var instance = new Flipdish.EmvTerminalWithAssignments(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/EventSearchResult.spec.js b/test/model/EventSearchResult.spec.js new file mode 100644 index 00000000..ca990d49 --- /dev/null +++ b/test/model/EventSearchResult.spec.js @@ -0,0 +1,905 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.EventSearchResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EventSearchResult', function() { + it('should create an instance of EventSearchResult', function() { + // uncomment below and update the code to test EventSearchResult + //var instane = new Flipdish.EventSearchResult(); + //expect(instance).to.be.a(Flipdish.EventSearchResult); + }); + + it('should have the property AppCreatedEvent (base name: "AppCreatedEvent")', function() { + // uncomment below and update the code to test the property AppCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property AppUpdatedEvent (base name: "AppUpdatedEvent")', function() { + // uncomment below and update the code to test the property AppUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property AnalyticsClientEvent (base name: "AnalyticsClientEvent")', function() { + // uncomment below and update the code to test the property AnalyticsClientEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderAcceptedEvent (base name: "OrderAcceptedEvent")', function() { + // uncomment below and update the code to test the property OrderAcceptedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDispatchedEvent (base name: "OrderDispatchedEvent")', function() { + // uncomment below and update the code to test the property OrderDispatchedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCustomerTrackingCreatedEvent (base name: "OrderCustomerTrackingCreatedEvent")', function() { + // uncomment below and update the code to test the property OrderCustomerTrackingCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDeliveryTrackingStatusUpdatedEvent (base name: "OrderDeliveryTrackingStatusUpdatedEvent")', function() { + // uncomment below and update the code to test the property OrderDeliveryTrackingStatusUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderBatchPublishedEvent (base name: "OrderBatchPublishedEvent")', function() { + // uncomment below and update the code to test the property OrderBatchPublishedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCreatedEvent (base name: "OrderCreatedEvent")', function() { + // uncomment below and update the code to test the property OrderCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderRatingUpdatedEvent (base name: "OrderRatingUpdatedEvent")', function() { + // uncomment below and update the code to test the property OrderRatingUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderRefundedEvent (base name: "OrderRefundedEvent")', function() { + // uncomment below and update the code to test the property OrderRefundedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderRejectedEvent (base name: "OrderRejectedEvent")', function() { + // uncomment below and update the code to test the property OrderRejectedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderTipUpdatedEvent (base name: "OrderTipUpdatedEvent")', function() { + // uncomment below and update the code to test the property OrderTipUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderTerminalNotifications (base name: "OrderTerminalNotifications")', function() { + // uncomment below and update the code to test the property OrderTerminalNotifications + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreCreatedEvent (base name: "StoreCreatedEvent")', function() { + // uncomment below and update the code to test the property StoreCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreDeletedEvent (base name: "StoreDeletedEvent")', function() { + // uncomment below and update the code to test the property StoreDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreAddressUpdatedEvent (base name: "StoreAddressUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreAddressUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreKioskSettingUpdatedEvent (base name: "StoreKioskSettingUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreKioskSettingUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryZoneCreatedEvent (base name: "DeliveryZoneCreatedEvent")', function() { + // uncomment below and update the code to test the property DeliveryZoneCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryZoneUpdatedEvent (base name: "DeliveryZoneUpdatedEvent")', function() { + // uncomment below and update the code to test the property DeliveryZoneUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryZoneDeletedEvent (base name: "DeliveryZoneDeletedEvent")', function() { + // uncomment below and update the code to test the property DeliveryZoneDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreOpeningHoursUpdatedEvent (base name: "StoreOpeningHoursUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreOpeningHoursUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreMenuAssignedEvent (base name: "StoreMenuAssignedEvent")', function() { + // uncomment below and update the code to test the property StoreMenuAssignedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreBusinessHoursOverrideCreatedEvent (base name: "StoreBusinessHoursOverrideCreatedEvent")', function() { + // uncomment below and update the code to test the property StoreBusinessHoursOverrideCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreBusinessHoursOverrideDeletedEvent (base name: "StoreBusinessHoursOverrideDeletedEvent")', function() { + // uncomment below and update the code to test the property StoreBusinessHoursOverrideDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreArchivedEvent (base name: "StoreArchivedEvent")', function() { + // uncomment below and update the code to test the property StoreArchivedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreUnarchivedEvent (base name: "StoreUnarchivedEvent")', function() { + // uncomment below and update the code to test the property StoreUnarchivedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StorePublishedEvent (base name: "StorePublishedEvent")', function() { + // uncomment below and update the code to test the property StorePublishedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreUnpublishedEvent (base name: "StoreUnpublishedEvent")', function() { + // uncomment below and update the code to test the property StoreUnpublishedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreUpdatedEvent (base name: "StoreUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StorePreOrderConfigUpdatedEvent (base name: "StorePreOrderConfigUpdatedEvent")', function() { + // uncomment below and update the code to test the property StorePreOrderConfigUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreLogoCreatedEvent (base name: "StoreLogoCreatedEvent")', function() { + // uncomment below and update the code to test the property StoreLogoCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreLogoUpdatedEvent (base name: "StoreLogoUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreLogoUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreLogoDeletedEvent (base name: "StoreLogoDeletedEvent")', function() { + // uncomment below and update the code to test the property StoreLogoDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuCreatedEvent (base name: "MenuCreatedEvent")', function() { + // uncomment below and update the code to test the property MenuCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuAsyncCreationCompletedEvent (base name: "MenuAsyncCreationCompletedEvent")', function() { + // uncomment below and update the code to test the property MenuAsyncCreationCompletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuUpdatedEvent (base name: "MenuUpdatedEvent")', function() { + // uncomment below and update the code to test the property MenuUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuUploadedEvent (base name: "MenuUploadedEvent")', function() { + // uncomment below and update the code to test the property MenuUploadedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuBulkEditEvent (base name: "MenuBulkEditEvent")', function() { + // uncomment below and update the code to test the property MenuBulkEditEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionCreatedEvent (base name: "MenuSectionCreatedEvent")', function() { + // uncomment below and update the code to test the property MenuSectionCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionUpdatedEvent (base name: "MenuSectionUpdatedEvent")', function() { + // uncomment below and update the code to test the property MenuSectionUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionDeletedEvent (base name: "MenuSectionDeletedEvent")', function() { + // uncomment below and update the code to test the property MenuSectionDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionItemCreatedEvent (base name: "MenuSectionItemCreatedEvent")', function() { + // uncomment below and update the code to test the property MenuSectionItemCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionItemUpdatedEvent (base name: "MenuSectionItemUpdatedEvent")', function() { + // uncomment below and update the code to test the property MenuSectionItemUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionItemDeletedEvent (base name: "MenuSectionItemDeletedEvent")', function() { + // uncomment below and update the code to test the property MenuSectionItemDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetCreatedEvent (base name: "MenuItemOptionSetCreatedEvent")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetUpdatedEvent (base name: "MenuItemOptionSetUpdatedEvent")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetDeletedEvent (base name: "MenuItemOptionSetDeletedEvent")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItemCreatedEvent (base name: "MenuItemOptionSetItemCreatedEvent")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItemCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItemUpdatedEvent (base name: "MenuItemOptionSetItemUpdatedEvent")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItemUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItemDeletedEvent (base name: "MenuItemOptionSetItemDeletedEvent")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItemDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MenuCheckpointCreatedEvent (base name: "MenuCheckpointCreatedEvent")', function() { + // uncomment below and update the code to test the property MenuCheckpointCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupCreatedEvent (base name: "StoreGroupCreatedEvent")', function() { + // uncomment below and update the code to test the property StoreGroupCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupUpdatedEvent (base name: "StoreGroupUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreGroupUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupDeletedEvent (base name: "StoreGroupDeletedEvent")', function() { + // uncomment below and update the code to test the property StoreGroupDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerCreatedEvent (base name: "CustomerCreatedEvent")', function() { + // uncomment below and update the code to test the property CustomerCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerUpdatedEvent (base name: "CustomerUpdatedEvent")', function() { + // uncomment below and update the code to test the property CustomerUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerConsentUpdatedEvent (base name: "CustomerConsentUpdatedEvent")', function() { + // uncomment below and update the code to test the property CustomerConsentUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionCreatedEvent (base name: "WebhookSubscriptionCreatedEvent")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionUpdatedEvent (base name: "WebhookSubscriptionUpdatedEvent")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionDeletedEvent (base name: "WebhookSubscriptionDeletedEvent")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PrinterTurnedOnEvent (base name: "PrinterTurnedOnEvent")', function() { + // uncomment below and update the code to test the property PrinterTurnedOnEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PrinterTurnedOffEvent (base name: "PrinterTurnedOffEvent")', function() { + // uncomment below and update the code to test the property PrinterTurnedOffEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PrinterAssignedToStoreEvent (base name: "PrinterAssignedToStoreEvent")', function() { + // uncomment below and update the code to test the property PrinterAssignedToStoreEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PrinterUnassignedFromStoreEvent (base name: "PrinterUnassignedFromStoreEvent")', function() { + // uncomment below and update the code to test the property PrinterUnassignedFromStoreEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneCallStartedEvent (base name: "PhoneCallStartedEvent")', function() { + // uncomment below and update the code to test the property PhoneCallStartedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneCallEndedEvent (base name: "PhoneCallEndedEvent")', function() { + // uncomment below and update the code to test the property PhoneCallEndedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property TelephonyConfigUpdatedEvent (base name: "TelephonyConfigUpdatedEvent")', function() { + // uncomment below and update the code to test the property TelephonyConfigUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelStoresUpdatedEvent (base name: "ChannelStoresUpdatedEvent")', function() { + // uncomment below and update the code to test the property ChannelStoresUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property LoyaltyCampaignCreatedEvent (base name: "LoyaltyCampaignCreatedEvent")', function() { + // uncomment below and update the code to test the property LoyaltyCampaignCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property LoyaltyCampaignDeletedEvent (base name: "LoyaltyCampaignDeletedEvent")', function() { + // uncomment below and update the code to test the property LoyaltyCampaignDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property LoyaltyCampaignUpdatedEvent (base name: "LoyaltyCampaignUpdatedEvent")', function() { + // uncomment below and update the code to test the property LoyaltyCampaignUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property RetentionCampaignCreatedEvent (base name: "RetentionCampaignCreatedEvent")', function() { + // uncomment below and update the code to test the property RetentionCampaignCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property RetentionCampaignDeletedEvent (base name: "RetentionCampaignDeletedEvent")', function() { + // uncomment below and update the code to test the property RetentionCampaignDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property RetentionCampaignUpdatedEvent (base name: "RetentionCampaignUpdatedEvent")', function() { + // uncomment below and update the code to test the property RetentionCampaignUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property SmsReceivedEvent (base name: "SmsReceivedEvent")', function() { + // uncomment below and update the code to test the property SmsReceivedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property UserLoginEvent (base name: "UserLoginEvent")', function() { + // uncomment below and update the code to test the property UserLoginEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property UserCreatedEvent (base name: "UserCreatedEvent")', function() { + // uncomment below and update the code to test the property UserCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property UserUpdatedEvent (base name: "UserUpdatedEvent")', function() { + // uncomment below and update the code to test the property UserUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property UserDeletedEvent (base name: "UserDeletedEvent")', function() { + // uncomment below and update the code to test the property UserDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property UserCreatedPasswordEvent (base name: "UserCreatedPasswordEvent")', function() { + // uncomment below and update the code to test the property UserCreatedPasswordEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property UserAnsweredSignupQuestionsEvent (base name: "UserAnsweredSignupQuestionsEvent")', function() { + // uncomment below and update the code to test the property UserAnsweredSignupQuestionsEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherCreatedEvent (base name: "VoucherCreatedEvent")', function() { + // uncomment below and update the code to test the property VoucherCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherUpdatedEvent (base name: "VoucherUpdatedEvent")', function() { + // uncomment below and update the code to test the property VoucherUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherDeletedEvent (base name: "VoucherDeletedEvent")', function() { + // uncomment below and update the code to test the property VoucherDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherAppliedEvent (base name: "VoucherAppliedEvent")', function() { + // uncomment below and update the code to test the property VoucherAppliedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateInviteSentEvent (base name: "TeammateInviteSentEvent")', function() { + // uncomment below and update the code to test the property TeammateInviteSentEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateInviteAcceptedEvent (base name: "TeammateInviteAcceptedEvent")', function() { + // uncomment below and update the code to test the property TeammateInviteAcceptedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateUpdatedEvent (base name: "TeammateUpdatedEvent")', function() { + // uncomment below and update the code to test the property TeammateUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateDeletedEvent (base name: "TeammateDeletedEvent")', function() { + // uncomment below and update the code to test the property TeammateDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountCreatedEvent (base name: "BankAccountCreatedEvent")', function() { + // uncomment below and update the code to test the property BankAccountCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountUpdatedEvent (base name: "BankAccountUpdatedEvent")', function() { + // uncomment below and update the code to test the property BankAccountUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountDeletedEvent (base name: "BankAccountDeletedEvent")', function() { + // uncomment below and update the code to test the property BankAccountDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountAssignedEvent (base name: "BankAccountAssignedEvent")', function() { + // uncomment below and update the code to test the property BankAccountAssignedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property HydraAssignedEvent (base name: "HydraAssignedEvent")', function() { + // uncomment below and update the code to test the property HydraAssignedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property HydraRequestResetEvent (base name: "HydraRequestResetEvent")', function() { + // uncomment below and update the code to test the property HydraRequestResetEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property HydraStoreAssignedEvent (base name: "HydraStoreAssignedEvent")', function() { + // uncomment below and update the code to test the property HydraStoreAssignedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property HydraStoreUnassignedEvent (base name: "HydraStoreUnassignedEvent")', function() { + // uncomment below and update the code to test the property HydraStoreUnassignedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property HydraSettingChangedEvent (base name: "HydraSettingChangedEvent")', function() { + // uncomment below and update the code to test the property HydraSettingChangedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property HydraUnAssignedEvent (base name: "HydraUnAssignedEvent")', function() { + // uncomment below and update the code to test the property HydraUnAssignedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property HydraConnectionStatusChangedEvent (base name: "HydraConnectionStatusChangedEvent")', function() { + // uncomment below and update the code to test the property HydraConnectionStatusChangedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothPairingModeEvent (base name: "KioskBluetoothPairingModeEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothPairingModeEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothUnpairingModeEvent (base name: "KioskBluetoothUnpairingModeEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothUnpairingModeEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothTerminalUnpairedEvent (base name: "KioskBluetoothTerminalUnpairedEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothTerminalUnpairedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskTerminalActionStateChangedEvent (base name: "KioskTerminalActionStateChangedEvent")', function() { + // uncomment below and update the code to test the property KioskTerminalActionStateChangedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothTerminalUpdatedEvent (base name: "KioskBluetoothTerminalUpdatedEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothTerminalUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothTerminalInitiateUpdateCheckEvent (base name: "KioskBluetoothTerminalInitiateUpdateCheckEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothTerminalInitiateUpdateCheckEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothInstallUpdateInitiateEvent (base name: "KioskBluetoothInstallUpdateInitiateEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothInstallUpdateInitiateEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothTerminalCancelUpdateEvent (base name: "KioskBluetoothTerminalCancelUpdateEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothTerminalCancelUpdateEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothTerminalFirmwareVersionStatusEvent (base name: "KioskBluetoothTerminalFirmwareVersionStatusEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothTerminalFirmwareVersionStatusEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property KioskBluetoothTerminalInstallationStatusEvent (base name: "KioskBluetoothTerminalInstallationStatusEvent")', function() { + // uncomment below and update the code to test the property KioskBluetoothTerminalInstallationStatusEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PushNotificationScheduledEvent (base name: "PushNotificationScheduledEvent")', function() { + // uncomment below and update the code to test the property PushNotificationScheduledEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PushNotificationSentEvent (base name: "PushNotificationSentEvent")', function() { + // uncomment below and update the code to test the property PushNotificationSentEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property PushNotificationDeletedEvent (base name: "PushNotificationDeletedEvent")', function() { + // uncomment below and update the code to test the property PushNotificationDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property DnsVerifiedEvent (base name: "DnsVerifiedEvent")', function() { + // uncomment below and update the code to test the property DnsVerifiedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CertificateCreatedEvent (base name: "CertificateCreatedEvent")', function() { + // uncomment below and update the code to test the property CertificateCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CertificateRenewedEvent (base name: "CertificateRenewedEvent")', function() { + // uncomment below and update the code to test the property CertificateRenewedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property WebsiteVanityUrlUpdatedEvent (base name: "WebsiteVanityUrlUpdatedEvent")', function() { + // uncomment below and update the code to test the property WebsiteVanityUrlUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property WebsiteUpdatedEvent (base name: "WebsiteUpdatedEvent")', function() { + // uncomment below and update the code to test the property WebsiteUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCapacityUpdatedEvent (base name: "OrderCapacityUpdatedEvent")', function() { + // uncomment below and update the code to test the property OrderCapacityUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalStoreEvent (base name: "ExternalStoreEvent")', function() { + // uncomment below and update the code to test the property ExternalStoreEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property OrderFulfillmentStatusUpdatedEvent (base name: "OrderFulfillmentStatusUpdatedEvent")', function() { + // uncomment below and update the code to test the property OrderFulfillmentStatusUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreConfigCreatedEvent (base name: "AppStoreConfigCreatedEvent")', function() { + // uncomment below and update the code to test the property AppStoreConfigCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreConfigUpdatedEvent (base name: "AppStoreConfigUpdatedEvent")', function() { + // uncomment below and update the code to test the property AppStoreConfigUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreConfigDeletedEvent (base name: "AppStoreConfigDeletedEvent")', function() { + // uncomment below and update the code to test the property AppStoreConfigDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property AppStoreSubscriptionChangeJobUpdatedEvent (base name: "AppStoreSubscriptionChangeJobUpdatedEvent")', function() { + // uncomment below and update the code to test the property AppStoreSubscriptionChangeJobUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemCreatedEvent (base name: "CatalogItemCreatedEvent")', function() { + // uncomment below and update the code to test the property CatalogItemCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemUpdatedEvent (base name: "CatalogItemUpdatedEvent")', function() { + // uncomment below and update the code to test the property CatalogItemUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemArchivedEvent (base name: "CatalogItemArchivedEvent")', function() { + // uncomment below and update the code to test the property CatalogItemArchivedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogGroupCreatedEvent (base name: "CatalogGroupCreatedEvent")', function() { + // uncomment below and update the code to test the property CatalogGroupCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogGroupUpdatedEvent (base name: "CatalogGroupUpdatedEvent")', function() { + // uncomment below and update the code to test the property CatalogGroupUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogGroupArchivedEvent (base name: "CatalogGroupArchivedEvent")', function() { + // uncomment below and update the code to test the property CatalogGroupArchivedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreTipUpdatedEvent (base name: "StoreTipUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreTipUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaCreatedEvent (base name: "LocationAreaCreatedEvent")', function() { + // uncomment below and update the code to test the property LocationAreaCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaUpdatedEvent (base name: "LocationAreaUpdatedEvent")', function() { + // uncomment below and update the code to test the property LocationAreaUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property LocationCreatedEvent (base name: "LocationCreatedEvent")', function() { + // uncomment below and update the code to test the property LocationCreatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property LocationDeletedEvent (base name: "LocationDeletedEvent")', function() { + // uncomment below and update the code to test the property LocationDeletedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreServiceChargeUpdatedEvent (base name: "StoreServiceChargeUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreServiceChargeUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MobileAppsSubmissionStatusUpdatedEvent (base name: "MobileAppsSubmissionStatusUpdatedEvent")', function() { + // uncomment below and update the code to test the property MobileAppsSubmissionStatusUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property MobileAppsSubmissionUpdatedEvent (base name: "MobileAppsSubmissionUpdatedEvent")', function() { + // uncomment below and update the code to test the property MobileAppsSubmissionUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + it('should have the property StoreFeeConfigUpdatedEvent (base name: "StoreFeeConfigUpdatedEvent")', function() { + // uncomment below and update the code to test the property StoreFeeConfigUpdatedEvent + //var instance = new Flipdish.EventSearchResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ExecuteConfigurationActionRequest.spec.js b/test/model/ExecuteConfigurationActionRequest.spec.js new file mode 100644 index 00000000..148c4313 --- /dev/null +++ b/test/model/ExecuteConfigurationActionRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ExecuteConfigurationActionRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ExecuteConfigurationActionRequest', function() { + it('should create an instance of ExecuteConfigurationActionRequest', function() { + // uncomment below and update the code to test ExecuteConfigurationActionRequest + //var instane = new Flipdish.ExecuteConfigurationActionRequest(); + //expect(instance).to.be.a(Flipdish.ExecuteConfigurationActionRequest); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.ExecuteConfigurationActionRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Action (base name: "Action")', function() { + // uncomment below and update the code to test the property Action + //var instance = new Flipdish.ExecuteConfigurationActionRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ExecuteConfigurationActionResult.spec.js b/test/model/ExecuteConfigurationActionResult.spec.js new file mode 100644 index 00000000..c68ecb1c --- /dev/null +++ b/test/model/ExecuteConfigurationActionResult.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ExecuteConfigurationActionResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ExecuteConfigurationActionResult', function() { + it('should create an instance of ExecuteConfigurationActionResult', function() { + // uncomment below and update the code to test ExecuteConfigurationActionResult + //var instane = new Flipdish.ExecuteConfigurationActionResult(); + //expect(instance).to.be.a(Flipdish.ExecuteConfigurationActionResult); + }); + + it('should have the property ErrorMessage (base name: "ErrorMessage")', function() { + // uncomment below and update the code to test the property ErrorMessage + //var instance = new Flipdish.ExecuteConfigurationActionResult(); + //expect(instance).to.be(); + }); + + it('should have the property InfoMessage (base name: "InfoMessage")', function() { + // uncomment below and update the code to test the property InfoMessage + //var instance = new Flipdish.ExecuteConfigurationActionResult(); + //expect(instance).to.be(); + }); + + it('should have the property RedirectUrl (base name: "RedirectUrl")', function() { + // uncomment below and update the code to test the property RedirectUrl + //var instance = new Flipdish.ExecuteConfigurationActionResult(); + //expect(instance).to.be(); + }); + + it('should have the property RedirectTarget (base name: "RedirectTarget")', function() { + // uncomment below and update the code to test the property RedirectTarget + //var instance = new Flipdish.ExecuteConfigurationActionResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ExternalStoreAuditLog.spec.js b/test/model/ExternalStoreAuditLog.spec.js new file mode 100644 index 00000000..e981a1ce --- /dev/null +++ b/test/model/ExternalStoreAuditLog.spec.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ExternalStoreAuditLog(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ExternalStoreAuditLog', function() { + it('should create an instance of ExternalStoreAuditLog', function() { + // uncomment below and update the code to test ExternalStoreAuditLog + //var instane = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be.a(Flipdish.ExternalStoreAuditLog); + }); + + it('should have the property ExternalCreateTime (base name: "ExternalCreateTime")', function() { + // uncomment below and update the code to test the property ExternalCreateTime + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Source (base name: "Source")', function() { + // uncomment below and update the code to test the property Source + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Version (base name: "Version")', function() { + // uncomment below and update the code to test the property Version + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property DescriptionFormat (base name: "DescriptionFormat")', function() { + // uncomment below and update the code to test the property DescriptionFormat + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property DescriptionFields (base name: "DescriptionFields")', function() { + // uncomment below and update the code to test the property DescriptionFields + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property DescriptionId (base name: "DescriptionId")', function() { + // uncomment below and update the code to test the property DescriptionId + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Ref1 (base name: "Ref1")', function() { + // uncomment below and update the code to test the property Ref1 + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Ref2 (base name: "Ref2")', function() { + // uncomment below and update the code to test the property Ref2 + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Ref3 (base name: "Ref3")', function() { + // uncomment below and update the code to test the property Ref3 + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Ref4 (base name: "Ref4")', function() { + // uncomment below and update the code to test the property Ref4 + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property Tags (base name: "Tags")', function() { + // uncomment below and update the code to test the property Tags + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + it('should have the property FieldChanges (base name: "FieldChanges")', function() { + // uncomment below and update the code to test the property FieldChanges + //var instance = new Flipdish.ExternalStoreAuditLog(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ExternalStoreEvent.spec.js b/test/model/ExternalStoreEvent.spec.js new file mode 100644 index 00000000..c56e07be --- /dev/null +++ b/test/model/ExternalStoreEvent.spec.js @@ -0,0 +1,179 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ExternalStoreEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ExternalStoreEvent', function() { + it('should create an instance of ExternalStoreEvent', function() { + // uncomment below and update the code to test ExternalStoreEvent + //var instane = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be.a(Flipdish.ExternalStoreEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DescriptionFormat (base name: "DescriptionFormat")', function() { + // uncomment below and update the code to test the property DescriptionFormat + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DescriptionFields (base name: "DescriptionFields")', function() { + // uncomment below and update the code to test the property DescriptionFields + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DescriptionId (base name: "DescriptionId")', function() { + // uncomment below and update the code to test the property DescriptionId + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Ref1 (base name: "Ref1")', function() { + // uncomment below and update the code to test the property Ref1 + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Ref2 (base name: "Ref2")', function() { + // uncomment below and update the code to test the property Ref2 + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Ref3 (base name: "Ref3")', function() { + // uncomment below and update the code to test the property Ref3 + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Ref4 (base name: "Ref4")', function() { + // uncomment below and update the code to test the property Ref4 + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Tags (base name: "Tags")', function() { + // uncomment below and update the code to test the property Tags + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FieldChanges (base name: "FieldChanges")', function() { + // uncomment below and update the code to test the property FieldChanges + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.ExternalStoreEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FeeSummary.spec.js b/test/model/FeeSummary.spec.js new file mode 100644 index 00000000..496353dc --- /dev/null +++ b/test/model/FeeSummary.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FeeSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FeeSummary', function() { + it('should create an instance of FeeSummary', function() { + // uncomment below and update the code to test FeeSummary + //var instane = new Flipdish.FeeSummary(); + //expect(instance).to.be.a(Flipdish.FeeSummary); + }); + + it('should have the property FeeAmount (base name: "FeeAmount")', function() { + // uncomment below and update the code to test the property FeeAmount + //var instance = new Flipdish.FeeSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PercentageRate (base name: "PercentageRate")', function() { + // uncomment below and update the code to test the property PercentageRate + //var instance = new Flipdish.FeeSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PerTransactionFee (base name: "PerTransactionFee")', function() { + // uncomment below and update the code to test the property PerTransactionFee + //var instance = new Flipdish.FeeSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Field.spec.js b/test/model/Field.spec.js new file mode 100644 index 00000000..c049ac1b --- /dev/null +++ b/test/model/Field.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Field(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Field', function() { + it('should create an instance of Field', function() { + // uncomment below and update the code to test Field + //var instane = new Flipdish.Field(); + //expect(instance).to.be.a(Flipdish.Field); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property Tooltip (base name: "Tooltip")', function() { + // uncomment below and update the code to test the property Tooltip + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property DefaultValue (base name: "DefaultValue")', function() { + // uncomment below and update the code to test the property DefaultValue + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property ValidValues (base name: "ValidValues")', function() { + // uncomment below and update the code to test the property ValidValues + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property ValidationRegex (base name: "ValidationRegex")', function() { + // uncomment below and update the code to test the property ValidationRegex + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property FieldType (base name: "FieldType")', function() { + // uncomment below and update the code to test the property FieldType + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + it('should have the property IsFlipdishRestricted (base name: "IsFlipdishRestricted")', function() { + // uncomment below and update the code to test the property IsFlipdishRestricted + //var instance = new Flipdish.Field(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FieldChangeInformation.spec.js b/test/model/FieldChangeInformation.spec.js new file mode 100644 index 00000000..a16045aa --- /dev/null +++ b/test/model/FieldChangeInformation.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FieldChangeInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FieldChangeInformation', function() { + it('should create an instance of FieldChangeInformation', function() { + // uncomment below and update the code to test FieldChangeInformation + //var instane = new Flipdish.FieldChangeInformation(); + //expect(instance).to.be.a(Flipdish.FieldChangeInformation); + }); + + it('should have the property Path (base name: "Path")', function() { + // uncomment below and update the code to test the property Path + //var instance = new Flipdish.FieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.FieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.FieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property OldValue (base name: "OldValue")', function() { + // uncomment below and update the code to test the property OldValue + //var instance = new Flipdish.FieldChangeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property NewValue (base name: "NewValue")', function() { + // uncomment below and update the code to test the property NewValue + //var instance = new Flipdish.FieldChangeInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FieldGroup.spec.js b/test/model/FieldGroup.spec.js new file mode 100644 index 00000000..7b0dc4ac --- /dev/null +++ b/test/model/FieldGroup.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FieldGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FieldGroup', function() { + it('should create an instance of FieldGroup', function() { + // uncomment below and update the code to test FieldGroup + //var instane = new Flipdish.FieldGroup(); + //expect(instance).to.be.a(Flipdish.FieldGroup); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.FieldGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.FieldGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Tooltip (base name: "Tooltip")', function() { + // uncomment below and update the code to test the property Tooltip + //var instance = new Flipdish.FieldGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.FieldGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Fields (base name: "Fields")', function() { + // uncomment below and update the code to test the property Fields + //var instance = new Flipdish.FieldGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FileCreationResult.spec.js b/test/model/FileCreationResult.spec.js new file mode 100644 index 00000000..083cda65 --- /dev/null +++ b/test/model/FileCreationResult.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FileCreationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FileCreationResult', function() { + it('should create an instance of FileCreationResult', function() { + // uncomment below and update the code to test FileCreationResult + //var instane = new Flipdish.FileCreationResult(); + //expect(instance).to.be.a(Flipdish.FileCreationResult); + }); + + it('should have the property FileId (base name: "FileId")', function() { + // uncomment below and update the code to test the property FileId + //var instance = new Flipdish.FileCreationResult(); + //expect(instance).to.be(); + }); + + it('should have the property Location (base name: "Location")', function() { + // uncomment below and update the code to test the property Location + //var instance = new Flipdish.FileCreationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FileDownloadResult.spec.js b/test/model/FileDownloadResult.spec.js new file mode 100644 index 00000000..d6d2db93 --- /dev/null +++ b/test/model/FileDownloadResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FileDownloadResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FileDownloadResult', function() { + it('should create an instance of FileDownloadResult', function() { + // uncomment below and update the code to test FileDownloadResult + //var instane = new Flipdish.FileDownloadResult(); + //expect(instance).to.be.a(Flipdish.FileDownloadResult); + }); + + it('should have the property FileUrl (base name: "FileUrl")', function() { + // uncomment below and update the code to test the property FileUrl + //var instance = new Flipdish.FileDownloadResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FirebaseApp.spec.js b/test/model/FirebaseApp.spec.js new file mode 100644 index 00000000..8198c192 --- /dev/null +++ b/test/model/FirebaseApp.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FirebaseApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FirebaseApp', function() { + it('should create an instance of FirebaseApp', function() { + // uncomment below and update the code to test FirebaseApp + //var instane = new Flipdish.FirebaseApp(); + //expect(instance).to.be.a(Flipdish.FirebaseApp); + }); + + it('should have the property WhitelabelId (base name: "WhitelabelId")', function() { + // uncomment below and update the code to test the property WhitelabelId + //var instance = new Flipdish.FirebaseApp(); + //expect(instance).to.be(); + }); + + it('should have the property PackageId (base name: "PackageId")', function() { + // uncomment below and update the code to test the property PackageId + //var instance = new Flipdish.FirebaseApp(); + //expect(instance).to.be(); + }); + + it('should have the property FirebaseAppId (base name: "FirebaseAppId")', function() { + // uncomment below and update the code to test the property FirebaseAppId + //var instance = new Flipdish.FirebaseApp(); + //expect(instance).to.be(); + }); + + it('should have the property FirebaseProjectId (base name: "FirebaseProjectId")', function() { + // uncomment below and update the code to test the property FirebaseProjectId + //var instance = new Flipdish.FirebaseApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FlipdishEventBase.spec.js b/test/model/FlipdishEventBase.spec.js new file mode 100644 index 00000000..c03d0da4 --- /dev/null +++ b/test/model/FlipdishEventBase.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FlipdishEventBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FlipdishEventBase', function() { + it('should create an instance of FlipdishEventBase', function() { + // uncomment below and update the code to test FlipdishEventBase + //var instane = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be.a(Flipdish.FlipdishEventBase); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.FlipdishEventBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FlipdishFeesDetails.spec.js b/test/model/FlipdishFeesDetails.spec.js new file mode 100644 index 00000000..68e8a13e --- /dev/null +++ b/test/model/FlipdishFeesDetails.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FlipdishFeesDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FlipdishFeesDetails', function() { + it('should create an instance of FlipdishFeesDetails', function() { + // uncomment below and update the code to test FlipdishFeesDetails + //var instane = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be.a(Flipdish.FlipdishFeesDetails); + }); + + it('should have the property OnlineSalesFees (base name: "OnlineSalesFees")', function() { + // uncomment below and update the code to test the property OnlineSalesFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesFees (base name: "CashSalesFees")', function() { + // uncomment below and update the code to test the property CashSalesFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesFees (base name: "PosSalesFees")', function() { + // uncomment below and update the code to test the property PosSalesFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TotalSalesFees (base name: "TotalSalesFees")', function() { + // uncomment below and update the code to test the property TotalSalesFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesRefundedFees (base name: "OnlineSalesRefundedFees")', function() { + // uncomment below and update the code to test the property OnlineSalesRefundedFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesRefundedFees (base name: "CashSalesRefundedFees")', function() { + // uncomment below and update the code to test the property CashSalesRefundedFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesRefundedFees (base name: "PosSalesRefundedFees")', function() { + // uncomment below and update the code to test the property PosSalesRefundedFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property SalesFeesVat (base name: "SalesFeesVat")', function() { + // uncomment below and update the code to test the property SalesFeesVat + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TotalFees (base name: "TotalFees")', function() { + // uncomment below and update the code to test the property TotalFees + //var instance = new Flipdish.FlipdishFeesDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FulfillentStatusActionItem.spec.js b/test/model/FulfillentStatusActionItem.spec.js new file mode 100644 index 00000000..a68b7f87 --- /dev/null +++ b/test/model/FulfillentStatusActionItem.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FulfillentStatusActionItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FulfillentStatusActionItem', function() { + it('should create an instance of FulfillentStatusActionItem', function() { + // uncomment below and update the code to test FulfillentStatusActionItem + //var instane = new Flipdish.FulfillentStatusActionItem(); + //expect(instance).to.be.a(Flipdish.FulfillentStatusActionItem); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.FulfillentStatusActionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.FulfillentStatusActionItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FulfillmentStatesConfiguration.spec.js b/test/model/FulfillmentStatesConfiguration.spec.js new file mode 100644 index 00000000..d680cb74 --- /dev/null +++ b/test/model/FulfillmentStatesConfiguration.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FulfillmentStatesConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FulfillmentStatesConfiguration', function() { + it('should create an instance of FulfillmentStatesConfiguration', function() { + // uncomment below and update the code to test FulfillmentStatesConfiguration + //var instane = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be.a(Flipdish.FulfillmentStatesConfiguration); + }); + + it('should have the property States (base name: "States")', function() { + // uncomment below and update the code to test the property States + //var instance = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AutomaticTransitionsEnabled (base name: "AutomaticTransitionsEnabled")', function() { + // uncomment below and update the code to test the property AutomaticTransitionsEnabled + //var instance = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigurationUid (base name: "ConfigurationUid")', function() { + // uncomment below and update the code to test the property ConfigurationUid + //var instance = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.FulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FulfillmentStatesConfigurationSummary.spec.js b/test/model/FulfillmentStatesConfigurationSummary.spec.js new file mode 100644 index 00000000..d80e3c00 --- /dev/null +++ b/test/model/FulfillmentStatesConfigurationSummary.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FulfillmentStatesConfigurationSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FulfillmentStatesConfigurationSummary', function() { + it('should create an instance of FulfillmentStatesConfigurationSummary', function() { + // uncomment below and update the code to test FulfillmentStatesConfigurationSummary + //var instane = new Flipdish.FulfillmentStatesConfigurationSummary(); + //expect(instance).to.be.a(Flipdish.FulfillmentStatesConfigurationSummary); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.FulfillmentStatesConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigurationUid (base name: "ConfigurationUid")', function() { + // uncomment below and update the code to test the property ConfigurationUid + //var instance = new Flipdish.FulfillmentStatesConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.FulfillmentStatesConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.FulfillmentStatesConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.FulfillmentStatesConfigurationSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FulfillmentStatesConfiguredStore.spec.js b/test/model/FulfillmentStatesConfiguredStore.spec.js new file mode 100644 index 00000000..b7e5290d --- /dev/null +++ b/test/model/FulfillmentStatesConfiguredStore.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FulfillmentStatesConfiguredStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FulfillmentStatesConfiguredStore', function() { + it('should create an instance of FulfillmentStatesConfiguredStore', function() { + // uncomment below and update the code to test FulfillmentStatesConfiguredStore + //var instane = new Flipdish.FulfillmentStatesConfiguredStore(); + //expect(instance).to.be.a(Flipdish.FulfillmentStatesConfiguredStore); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.FulfillmentStatesConfiguredStore(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.FulfillmentStatesConfiguredStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FulfillmentStatusConfigurationItem.spec.js b/test/model/FulfillmentStatusConfigurationItem.spec.js new file mode 100644 index 00000000..05852d12 --- /dev/null +++ b/test/model/FulfillmentStatusConfigurationItem.spec.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.FulfillmentStatusConfigurationItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FulfillmentStatusConfigurationItem', function() { + it('should create an instance of FulfillmentStatusConfigurationItem', function() { + // uncomment below and update the code to test FulfillmentStatusConfigurationItem + //var instane = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be.a(Flipdish.FulfillmentStatusConfigurationItem); + }); + + it('should have the property StatusId (base name: "StatusId")', function() { + // uncomment below and update the code to test the property StatusId + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property StatusName (base name: "StatusName")', function() { + // uncomment below and update the code to test the property StatusName + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // uncomment below and update the code to test the property DisplayName + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property Icon (base name: "Icon")', function() { + // uncomment below and update the code to test the property Icon + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property PublicDescription (base name: "PublicDescription")', function() { + // uncomment below and update the code to test the property PublicDescription + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property Internal (base name: "Internal")', function() { + // uncomment below and update the code to test the property Internal + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property NextStatuses (base name: "NextStatuses")', function() { + // uncomment below and update the code to test the property NextStatuses + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property DefaultNextStatus (base name: "DefaultNextStatus")', function() { + // uncomment below and update the code to test the property DefaultNextStatus + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property ChangeType (base name: "ChangeType")', function() { + // uncomment below and update the code to test the property ChangeType + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeInReports (base name: "IncludeInReports")', function() { + // uncomment below and update the code to test the property IncludeInReports + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsCustom (base name: "IsCustom")', function() { + // uncomment below and update the code to test the property IsCustom + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property OrderTypes (base name: "OrderTypes")', function() { + // uncomment below and update the code to test the property OrderTypes + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property Communication (base name: "Communication")', function() { + // uncomment below and update the code to test the property Communication + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + it('should have the property Image (base name: "Image")', function() { + // uncomment below and update the code to test the property Image + //var instance = new Flipdish.FulfillmentStatusConfigurationItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GeoPointRequest.spec.js b/test/model/GeoPointRequest.spec.js new file mode 100644 index 00000000..9810d37b --- /dev/null +++ b/test/model/GeoPointRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GeoPointRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GeoPointRequest', function() { + it('should create an instance of GeoPointRequest', function() { + // uncomment below and update the code to test GeoPointRequest + //var instane = new Flipdish.GeoPointRequest(); + //expect(instance).to.be.a(Flipdish.GeoPointRequest); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // uncomment below and update the code to test the property Latitude + //var instance = new Flipdish.GeoPointRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // uncomment below and update the code to test the property Longitude + //var instance = new Flipdish.GeoPointRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetReceiptByOrderIdQueryResponse.spec.js b/test/model/GetReceiptByOrderIdQueryResponse.spec.js new file mode 100644 index 00000000..a5775e24 --- /dev/null +++ b/test/model/GetReceiptByOrderIdQueryResponse.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetReceiptByOrderIdQueryResponse', function() { + it('should create an instance of GetReceiptByOrderIdQueryResponse', function() { + // uncomment below and update the code to test GetReceiptByOrderIdQueryResponse + //var instane = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be.a(Flipdish.GetReceiptByOrderIdQueryResponse); + }); + + it('should have the property PreviousOrder (base name: "PreviousOrder")', function() { + // uncomment below and update the code to test the property PreviousOrder + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFeesSummary (base name: "DepositReturnFeesSummary")', function() { + // uncomment below and update the code to test the property DepositReturnFeesSummary + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property TsRequestedForLocal (base name: "TsRequestedForLocal")', function() { + // uncomment below and update the code to test the property TsRequestedForLocal + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property TsOrderPlacedLocal (base name: "TsOrderPlacedLocal")', function() { + // uncomment below and update the code to test the property TsOrderPlacedLocal + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property LogoUrl (base name: "LogoUrl")', function() { + // uncomment below and update the code to test the property LogoUrl + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Address (base name: "Address")', function() { + // uncomment below and update the code to test the property Address + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property VatNumber (base name: "VatNumber")', function() { + // uncomment below and update the code to test the property VatNumber + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentMethodDescription (base name: "PaymentMethodDescription")', function() { + // uncomment below and update the code to test the property PaymentMethodDescription + //var instance = new Flipdish.GetReceiptByOrderIdQueryResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GoogleAddress.spec.js b/test/model/GoogleAddress.spec.js new file mode 100644 index 00000000..1ed6d4aa --- /dev/null +++ b/test/model/GoogleAddress.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GoogleAddress(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GoogleAddress', function() { + it('should create an instance of GoogleAddress', function() { + // uncomment below and update the code to test GoogleAddress + //var instane = new Flipdish.GoogleAddress(); + //expect(instance).to.be.a(Flipdish.GoogleAddress); + }); + + it('should have the property Results (base name: "Results")', function() { + // uncomment below and update the code to test the property Results + //var instance = new Flipdish.GoogleAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Result (base name: "Result")', function() { + // uncomment below and update the code to test the property Result + //var instance = new Flipdish.GoogleAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.GoogleAddress(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GoogleAddressComponent.spec.js b/test/model/GoogleAddressComponent.spec.js new file mode 100644 index 00000000..a813dafa --- /dev/null +++ b/test/model/GoogleAddressComponent.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GoogleAddressComponent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GoogleAddressComponent', function() { + it('should create an instance of GoogleAddressComponent', function() { + // uncomment below and update the code to test GoogleAddressComponent + //var instane = new Flipdish.GoogleAddressComponent(); + //expect(instance).to.be.a(Flipdish.GoogleAddressComponent); + }); + + it('should have the property Long_name (base name: "Long_name")', function() { + // uncomment below and update the code to test the property Long_name + //var instance = new Flipdish.GoogleAddressComponent(); + //expect(instance).to.be(); + }); + + it('should have the property Short_name (base name: "Short_name")', function() { + // uncomment below and update the code to test the property Short_name + //var instance = new Flipdish.GoogleAddressComponent(); + //expect(instance).to.be(); + }); + + it('should have the property Types (base name: "Types")', function() { + // uncomment below and update the code to test the property Types + //var instance = new Flipdish.GoogleAddressComponent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GoogleAddressResult.spec.js b/test/model/GoogleAddressResult.spec.js new file mode 100644 index 00000000..aede0889 --- /dev/null +++ b/test/model/GoogleAddressResult.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GoogleAddressResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GoogleAddressResult', function() { + it('should create an instance of GoogleAddressResult', function() { + // uncomment below and update the code to test GoogleAddressResult + //var instane = new Flipdish.GoogleAddressResult(); + //expect(instance).to.be.a(Flipdish.GoogleAddressResult); + }); + + it('should have the property Address_components (base name: "Address_components")', function() { + // uncomment below and update the code to test the property Address_components + //var instance = new Flipdish.GoogleAddressResult(); + //expect(instance).to.be(); + }); + + it('should have the property Formatted_address (base name: "Formatted_address")', function() { + // uncomment below and update the code to test the property Formatted_address + //var instance = new Flipdish.GoogleAddressResult(); + //expect(instance).to.be(); + }); + + it('should have the property Geometry (base name: "Geometry")', function() { + // uncomment below and update the code to test the property Geometry + //var instance = new Flipdish.GoogleAddressResult(); + //expect(instance).to.be(); + }); + + it('should have the property Place_id (base name: "Place_id")', function() { + // uncomment below and update the code to test the property Place_id + //var instance = new Flipdish.GoogleAddressResult(); + //expect(instance).to.be(); + }); + + it('should have the property Types (base name: "Types")', function() { + // uncomment below and update the code to test the property Types + //var instance = new Flipdish.GoogleAddressResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GoogleCoordinates.spec.js b/test/model/GoogleCoordinates.spec.js new file mode 100644 index 00000000..ab925273 --- /dev/null +++ b/test/model/GoogleCoordinates.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GoogleCoordinates(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GoogleCoordinates', function() { + it('should create an instance of GoogleCoordinates', function() { + // uncomment below and update the code to test GoogleCoordinates + //var instane = new Flipdish.GoogleCoordinates(); + //expect(instance).to.be.a(Flipdish.GoogleCoordinates); + }); + + it('should have the property Lat (base name: "Lat")', function() { + // uncomment below and update the code to test the property Lat + //var instance = new Flipdish.GoogleCoordinates(); + //expect(instance).to.be(); + }); + + it('should have the property Lng (base name: "Lng")', function() { + // uncomment below and update the code to test the property Lng + //var instance = new Flipdish.GoogleCoordinates(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GoogleGeometry.spec.js b/test/model/GoogleGeometry.spec.js new file mode 100644 index 00000000..078e4e21 --- /dev/null +++ b/test/model/GoogleGeometry.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GoogleGeometry(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GoogleGeometry', function() { + it('should create an instance of GoogleGeometry', function() { + // uncomment below and update the code to test GoogleGeometry + //var instane = new Flipdish.GoogleGeometry(); + //expect(instance).to.be.a(Flipdish.GoogleGeometry); + }); + + it('should have the property Location (base name: "Location")', function() { + // uncomment below and update the code to test the property Location + //var instance = new Flipdish.GoogleGeometry(); + //expect(instance).to.be(); + }); + + it('should have the property Location_type (base name: "Location_type")', function() { + // uncomment below and update the code to test the property Location_type + //var instance = new Flipdish.GoogleGeometry(); + //expect(instance).to.be(); + }); + + it('should have the property Viewport (base name: "Viewport")', function() { + // uncomment below and update the code to test the property Viewport + //var instance = new Flipdish.GoogleGeometry(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GoogleLocation.spec.js b/test/model/GoogleLocation.spec.js new file mode 100644 index 00000000..aa8d110f --- /dev/null +++ b/test/model/GoogleLocation.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GoogleLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GoogleLocation', function() { + it('should create an instance of GoogleLocation', function() { + // uncomment below and update the code to test GoogleLocation + //var instane = new Flipdish.GoogleLocation(); + //expect(instance).to.be.a(Flipdish.GoogleLocation); + }); + + it('should have the property Lat (base name: "Lat")', function() { + // uncomment below and update the code to test the property Lat + //var instance = new Flipdish.GoogleLocation(); + //expect(instance).to.be(); + }); + + it('should have the property Lng (base name: "Lng")', function() { + // uncomment below and update the code to test the property Lng + //var instance = new Flipdish.GoogleLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GoogleViewport.spec.js b/test/model/GoogleViewport.spec.js new file mode 100644 index 00000000..1f238250 --- /dev/null +++ b/test/model/GoogleViewport.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GoogleViewport(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GoogleViewport', function() { + it('should create an instance of GoogleViewport', function() { + // uncomment below and update the code to test GoogleViewport + //var instane = new Flipdish.GoogleViewport(); + //expect(instance).to.be.a(Flipdish.GoogleViewport); + }); + + it('should have the property Northeast (base name: "Northeast")', function() { + // uncomment below and update the code to test the property Northeast + //var instance = new Flipdish.GoogleViewport(); + //expect(instance).to.be(); + }); + + it('should have the property Southwest (base name: "Southwest")', function() { + // uncomment below and update the code to test the property Southwest + //var instance = new Flipdish.GoogleViewport(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Group.spec.js b/test/model/Group.spec.js new file mode 100644 index 00000000..5d89add8 --- /dev/null +++ b/test/model/Group.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Group(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Group', function() { + it('should create an instance of Group', function() { + // uncomment below and update the code to test Group + //var instane = new Flipdish.Group(); + //expect(instance).to.be.a(Flipdish.Group); + }); + + it('should have the property CatalogGroupId (base name: "CatalogGroupId")', function() { + // uncomment below and update the code to test the property CatalogGroupId + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // uncomment below and update the code to test the property IsArchived + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // uncomment below and update the code to test the property MinSelectCount + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // uncomment below and update the code to test the property MaxSelectCount + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property Products (base name: "Products")', function() { + // uncomment below and update the code to test the property Products + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property AutogenerateDisplayText (base name: "AutogenerateDisplayText")', function() { + // uncomment below and update the code to test the property AutogenerateDisplayText + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.Group(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GroupReference.spec.js b/test/model/GroupReference.spec.js new file mode 100644 index 00000000..df3edf36 --- /dev/null +++ b/test/model/GroupReference.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GroupReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GroupReference', function() { + it('should create an instance of GroupReference', function() { + // uncomment below and update the code to test GroupReference + //var instane = new Flipdish.GroupReference(); + //expect(instance).to.be.a(Flipdish.GroupReference); + }); + + it('should have the property Group (base name: "Group")', function() { + // uncomment below and update the code to test the property Group + //var instance = new Flipdish.GroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.GroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.GroupReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GroupedCoordinates.spec.js b/test/model/GroupedCoordinates.spec.js new file mode 100644 index 00000000..9c68c2c3 --- /dev/null +++ b/test/model/GroupedCoordinates.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.GroupedCoordinates(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GroupedCoordinates', function() { + it('should create an instance of GroupedCoordinates', function() { + // uncomment below and update the code to test GroupedCoordinates + //var instane = new Flipdish.GroupedCoordinates(); + //expect(instance).to.be.a(Flipdish.GroupedCoordinates); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // uncomment below and update the code to test the property Latitude + //var instance = new Flipdish.GroupedCoordinates(); + //expect(instance).to.be(); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // uncomment below and update the code to test the property Longitude + //var instance = new Flipdish.GroupedCoordinates(); + //expect(instance).to.be(); + }); + + it('should have the property Count (base name: "Count")', function() { + // uncomment below and update the code to test the property Count + //var instance = new Flipdish.GroupedCoordinates(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HasPaymentMethodResponse.spec.js b/test/model/HasPaymentMethodResponse.spec.js new file mode 100644 index 00000000..ef7cfad8 --- /dev/null +++ b/test/model/HasPaymentMethodResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HasPaymentMethodResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HasPaymentMethodResponse', function() { + it('should create an instance of HasPaymentMethodResponse', function() { + // uncomment below and update the code to test HasPaymentMethodResponse + //var instane = new Flipdish.HasPaymentMethodResponse(); + //expect(instance).to.be.a(Flipdish.HasPaymentMethodResponse); + }); + + it('should have the property HasPaymentMethod (base name: "HasPaymentMethod")', function() { + // uncomment below and update the code to test the property HasPaymentMethod + //var instance = new Flipdish.HasPaymentMethodResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HomeAction.spec.js b/test/model/HomeAction.spec.js new file mode 100644 index 00000000..ad60ea59 --- /dev/null +++ b/test/model/HomeAction.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HomeAction(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HomeAction', function() { + it('should create an instance of HomeAction', function() { + // uncomment below and update the code to test HomeAction + //var instane = new Flipdish.HomeAction(); + //expect(instance).to.be.a(Flipdish.HomeAction); + }); + + it('should have the property HomeActionId (base name: "HomeActionId")', function() { + // uncomment below and update the code to test the property HomeActionId + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + it('should have the property HomeActionType (base name: "HomeActionType")', function() { + // uncomment below and update the code to test the property HomeActionType + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + it('should have the property TitleKey (base name: "TitleKey")', function() { + // uncomment below and update the code to test the property TitleKey + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + it('should have the property ActionKey (base name: "ActionKey")', function() { + // uncomment below and update the code to test the property ActionKey + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + it('should have the property DescriptionKey (base name: "DescriptionKey")', function() { + // uncomment below and update the code to test the property DescriptionKey + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + it('should have the property Action (base name: "Action")', function() { + // uncomment below and update the code to test the property Action + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + it('should have the property Dismissible (base name: "Dismissible")', function() { + // uncomment below and update the code to test the property Dismissible + //var instance = new Flipdish.HomeAction(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HomeStatistics.spec.js b/test/model/HomeStatistics.spec.js new file mode 100644 index 00000000..ac18d9d7 --- /dev/null +++ b/test/model/HomeStatistics.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HomeStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HomeStatistics', function() { + it('should create an instance of HomeStatistics', function() { + // uncomment below and update the code to test HomeStatistics + //var instane = new Flipdish.HomeStatistics(); + //expect(instance).to.be.a(Flipdish.HomeStatistics); + }); + + it('should have the property TotalMoneySaved (base name: "TotalMoneySaved")', function() { + // uncomment below and update the code to test the property TotalMoneySaved + //var instance = new Flipdish.HomeStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HttpPostedFileBase.spec.js b/test/model/HttpPostedFileBase.spec.js new file mode 100644 index 00000000..bbd8a65b --- /dev/null +++ b/test/model/HttpPostedFileBase.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HttpPostedFileBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HttpPostedFileBase', function() { + it('should create an instance of HttpPostedFileBase', function() { + // uncomment below and update the code to test HttpPostedFileBase + //var instane = new Flipdish.HttpPostedFileBase(); + //expect(instance).to.be.a(Flipdish.HttpPostedFileBase); + }); + + it('should have the property ContentLength (base name: "ContentLength")', function() { + // uncomment below and update the code to test the property ContentLength + //var instance = new Flipdish.HttpPostedFileBase(); + //expect(instance).to.be(); + }); + + it('should have the property ContentType (base name: "ContentType")', function() { + // uncomment below and update the code to test the property ContentType + //var instance = new Flipdish.HttpPostedFileBase(); + //expect(instance).to.be(); + }); + + it('should have the property FileName (base name: "FileName")', function() { + // uncomment below and update the code to test the property FileName + //var instance = new Flipdish.HttpPostedFileBase(); + //expect(instance).to.be(); + }); + + it('should have the property InputStream (base name: "InputStream")', function() { + // uncomment below and update the code to test the property InputStream + //var instance = new Flipdish.HttpPostedFileBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraAssignedEvent.spec.js b/test/model/HydraAssignedEvent.spec.js new file mode 100644 index 00000000..ba5b1977 --- /dev/null +++ b/test/model/HydraAssignedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraAssignedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraAssignedEvent', function() { + it('should create an instance of HydraAssignedEvent', function() { + // uncomment below and update the code to test HydraAssignedEvent + //var instane = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be.a(Flipdish.HydraAssignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property HydraStatus (base name: "HydraStatus")', function() { + // uncomment below and update the code to test the property HydraStatus + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.HydraAssignedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraConfig.spec.js b/test/model/HydraConfig.spec.js new file mode 100644 index 00000000..0970325e --- /dev/null +++ b/test/model/HydraConfig.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraConfig', function() { + it('should create an instance of HydraConfig', function() { + // uncomment below and update the code to test HydraConfig + //var instane = new Flipdish.HydraConfig(); + //expect(instance).to.be.a(Flipdish.HydraConfig); + }); + + it('should have the property MinimumVersion (base name: "MinimumVersion")', function() { + // uncomment below and update the code to test the property MinimumVersion + //var instance = new Flipdish.HydraConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentOptions (base name: "PaymentOptions")', function() { + // uncomment below and update the code to test the property PaymentOptions + //var instance = new Flipdish.HydraConfig(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceSettings (base name: "DeviceSettings")', function() { + // uncomment below and update the code to test the property DeviceSettings + //var instance = new Flipdish.HydraConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Version (base name: "Version")', function() { + // uncomment below and update the code to test the property Version + //var instance = new Flipdish.HydraConfig(); + //expect(instance).to.be(); + }); + + it('should have the property BuildNumber (base name: "BuildNumber")', function() { + // uncomment below and update the code to test the property BuildNumber + //var instance = new Flipdish.HydraConfig(); + //expect(instance).to.be(); + }); + + it('should have the property GitSha (base name: "GitSha")', function() { + // uncomment below and update the code to test the property GitSha + //var instance = new Flipdish.HydraConfig(); + //expect(instance).to.be(); + }); + + it('should have the property GitBranch (base name: "GitBranch")', function() { + // uncomment below and update the code to test the property GitBranch + //var instance = new Flipdish.HydraConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraConnectionStatusChangedEvent.spec.js b/test/model/HydraConnectionStatusChangedEvent.spec.js new file mode 100644 index 00000000..a92334a7 --- /dev/null +++ b/test/model/HydraConnectionStatusChangedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraConnectionStatusChangedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraConnectionStatusChangedEvent', function() { + it('should create an instance of HydraConnectionStatusChangedEvent', function() { + // uncomment below and update the code to test HydraConnectionStatusChangedEvent + //var instane = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be.a(Flipdish.HydraConnectionStatusChangedEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property HydraDeviceStatus (base name: "HydraDeviceStatus")', function() { + // uncomment below and update the code to test the property HydraDeviceStatus + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PollTime (base name: "PollTime")', function() { + // uncomment below and update the code to test the property PollTime + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.HydraConnectionStatusChangedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraDeviceDetails.spec.js b/test/model/HydraDeviceDetails.spec.js new file mode 100644 index 00000000..a06addfc --- /dev/null +++ b/test/model/HydraDeviceDetails.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraDeviceDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraDeviceDetails', function() { + it('should create an instance of HydraDeviceDetails', function() { + // uncomment below and update the code to test HydraDeviceDetails + //var instane = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be.a(Flipdish.HydraDeviceDetails); + }); + + it('should have the property HydraConfigId (base name: "HydraConfigId")', function() { + // uncomment below and update the code to test the property HydraConfigId + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property SerialNumber (base name: "SerialNumber")', function() { + // uncomment below and update the code to test the property SerialNumber + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceType (base name: "DeviceType")', function() { + // uncomment below and update the code to test the property DeviceType + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceName (base name: "DeviceName")', function() { + // uncomment below and update the code to test the property DeviceName + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property LastPollUtc (base name: "LastPollUtc")', function() { + // uncomment below and update the code to test the property LastPollUtc + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Version (base name: "Version")', function() { + // uncomment below and update the code to test the property Version + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property BuildNumber (base name: "BuildNumber")', function() { + // uncomment below and update the code to test the property BuildNumber + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property GitSha (base name: "GitSha")', function() { + // uncomment below and update the code to test the property GitSha + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property GitBranch (base name: "GitBranch")', function() { + // uncomment below and update the code to test the property GitBranch + //var instance = new Flipdish.HydraDeviceDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraRegistrationRequest.spec.js b/test/model/HydraRegistrationRequest.spec.js new file mode 100644 index 00000000..ea52a225 --- /dev/null +++ b/test/model/HydraRegistrationRequest.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraRegistrationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraRegistrationRequest', function() { + it('should create an instance of HydraRegistrationRequest', function() { + // uncomment below and update the code to test HydraRegistrationRequest + //var instane = new Flipdish.HydraRegistrationRequest(); + //expect(instance).to.be.a(Flipdish.HydraRegistrationRequest); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.HydraRegistrationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property DeviceName (base name: "DeviceName")', function() { + // uncomment below and update the code to test the property DeviceName + //var instance = new Flipdish.HydraRegistrationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property PinCode (base name: "PinCode")', function() { + // uncomment below and update the code to test the property PinCode + //var instance = new Flipdish.HydraRegistrationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraRequestResetEvent.spec.js b/test/model/HydraRequestResetEvent.spec.js new file mode 100644 index 00000000..f8697ab9 --- /dev/null +++ b/test/model/HydraRequestResetEvent.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraRequestResetEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraRequestResetEvent', function() { + it('should create an instance of HydraRequestResetEvent', function() { + // uncomment below and update the code to test HydraRequestResetEvent + //var instane = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be.a(Flipdish.HydraRequestResetEvent); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.HydraRequestResetEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraSettingChangedEvent.spec.js b/test/model/HydraSettingChangedEvent.spec.js new file mode 100644 index 00000000..b4db9d17 --- /dev/null +++ b/test/model/HydraSettingChangedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraSettingChangedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraSettingChangedEvent', function() { + it('should create an instance of HydraSettingChangedEvent', function() { + // uncomment below and update the code to test HydraSettingChangedEvent + //var instane = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be.a(Flipdish.HydraSettingChangedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property HydraConfig (base name: "HydraConfig")', function() { + // uncomment below and update the code to test the property HydraConfig + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.HydraSettingChangedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraStatus.spec.js b/test/model/HydraStatus.spec.js new file mode 100644 index 00000000..462d93fb --- /dev/null +++ b/test/model/HydraStatus.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraStatus', function() { + it('should create an instance of HydraStatus', function() { + // uncomment below and update the code to test HydraStatus + //var instane = new Flipdish.HydraStatus(); + //expect(instance).to.be.a(Flipdish.HydraStatus); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraStatus(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.HydraStatus(); + //expect(instance).to.be(); + }); + + it('should have the property IsRegistered (base name: "IsRegistered")', function() { + // uncomment below and update the code to test the property IsRegistered + //var instance = new Flipdish.HydraStatus(); + //expect(instance).to.be(); + }); + + it('should have the property PinCode (base name: "PinCode")', function() { + // uncomment below and update the code to test the property PinCode + //var instance = new Flipdish.HydraStatus(); + //expect(instance).to.be(); + }); + + it('should have the property Images (base name: "Images")', function() { + // uncomment below and update the code to test the property Images + //var instance = new Flipdish.HydraStatus(); + //expect(instance).to.be(); + }); + + it('should have the property UserType (base name: "UserType")', function() { + // uncomment below and update the code to test the property UserType + //var instance = new Flipdish.HydraStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraStoreAssignedEvent.spec.js b/test/model/HydraStoreAssignedEvent.spec.js new file mode 100644 index 00000000..e4c0ff42 --- /dev/null +++ b/test/model/HydraStoreAssignedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraStoreAssignedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraStoreAssignedEvent', function() { + it('should create an instance of HydraStoreAssignedEvent', function() { + // uncomment below and update the code to test HydraStoreAssignedEvent + //var instane = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be.a(Flipdish.HydraStoreAssignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.HydraStoreAssignedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraStoreData.spec.js b/test/model/HydraStoreData.spec.js new file mode 100644 index 00000000..30f61081 --- /dev/null +++ b/test/model/HydraStoreData.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraStoreData(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraStoreData', function() { + it('should create an instance of HydraStoreData', function() { + // uncomment below and update the code to test HydraStoreData + //var instane = new Flipdish.HydraStoreData(); + //expect(instance).to.be.a(Flipdish.HydraStoreData); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.HydraStoreData(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.HydraStoreData(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraStoreUnassignedEvent.spec.js b/test/model/HydraStoreUnassignedEvent.spec.js new file mode 100644 index 00000000..19dc6459 --- /dev/null +++ b/test/model/HydraStoreUnassignedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraStoreUnassignedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraStoreUnassignedEvent', function() { + it('should create an instance of HydraStoreUnassignedEvent', function() { + // uncomment below and update the code to test HydraStoreUnassignedEvent + //var instane = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be.a(Flipdish.HydraStoreUnassignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.HydraStoreUnassignedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HydraUnAssignedEvent.spec.js b/test/model/HydraUnAssignedEvent.spec.js new file mode 100644 index 00000000..e6448304 --- /dev/null +++ b/test/model/HydraUnAssignedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.HydraUnAssignedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HydraUnAssignedEvent', function() { + it('should create an instance of HydraUnAssignedEvent', function() { + // uncomment below and update the code to test HydraUnAssignedEvent + //var instane = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be.a(Flipdish.HydraUnAssignedEvent); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property HydraStatus (base name: "HydraStatus")', function() { + // uncomment below and update the code to test the property HydraStatus + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.HydraUnAssignedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/IndexPage.spec.js b/test/model/IndexPage.spec.js new file mode 100644 index 00000000..28510fc0 --- /dev/null +++ b/test/model/IndexPage.spec.js @@ -0,0 +1,155 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.IndexPage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('IndexPage', function() { + it('should create an instance of IndexPage', function() { + // uncomment below and update the code to test IndexPage + //var instane = new Flipdish.IndexPage(); + //expect(instance).to.be.a(Flipdish.IndexPage); + }); + + it('should have the property Testimonials (base name: "Testimonials")', function() { + // uncomment below and update the code to test the property Testimonials + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property Images (base name: "Images")', function() { + // uncomment below and update the code to test the property Images + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionEnabled (base name: "AboutSectionEnabled")', function() { + // uncomment below and update the code to test the property AboutSectionEnabled + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionTitle (base name: "AboutSectionTitle")', function() { + // uncomment below and update the code to test the property AboutSectionTitle + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionSubtitle (base name: "AboutSectionSubtitle")', function() { + // uncomment below and update the code to test the property AboutSectionSubtitle + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionLeftTitle (base name: "AboutSectionLeftTitle")', function() { + // uncomment below and update the code to test the property AboutSectionLeftTitle + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionLeftBody (base name: "AboutSectionLeftBody")', function() { + // uncomment below and update the code to test the property AboutSectionLeftBody + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionRightTitle (base name: "AboutSectionRightTitle")', function() { + // uncomment below and update the code to test the property AboutSectionRightTitle + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionRightBody (base name: "AboutSectionRightBody")', function() { + // uncomment below and update the code to test the property AboutSectionRightBody + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property OpeningHoursEnabled (base name: "OpeningHoursEnabled")', function() { + // uncomment below and update the code to test the property OpeningHoursEnabled + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property MenuPreviewEnabled (base name: "MenuPreviewEnabled")', function() { + // uncomment below and update the code to test the property MenuPreviewEnabled + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property GalleryEnabled (base name: "GalleryEnabled")', function() { + // uncomment below and update the code to test the property GalleryEnabled + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property TestimonialsEnabled (base name: "TestimonialsEnabled")', function() { + // uncomment below and update the code to test the property TestimonialsEnabled + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property ContactFormEnabled (base name: "ContactFormEnabled")', function() { + // uncomment below and update the code to test the property ContactFormEnabled + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property ContactFormEmail (base name: "ContactFormEmail")', function() { + // uncomment below and update the code to test the property ContactFormEmail + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + it('should have the property MapEnabled (base name: "MapEnabled")', function() { + // uncomment below and update the code to test the property MapEnabled + //var instance = new Flipdish.IndexPage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/IndexPageBase.spec.js b/test/model/IndexPageBase.spec.js new file mode 100644 index 00000000..64aa57da --- /dev/null +++ b/test/model/IndexPageBase.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.IndexPageBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('IndexPageBase', function() { + it('should create an instance of IndexPageBase', function() { + // uncomment below and update the code to test IndexPageBase + //var instane = new Flipdish.IndexPageBase(); + //expect(instance).to.be.a(Flipdish.IndexPageBase); + }); + + it('should have the property AboutSectionEnabled (base name: "AboutSectionEnabled")', function() { + // uncomment below and update the code to test the property AboutSectionEnabled + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionTitle (base name: "AboutSectionTitle")', function() { + // uncomment below and update the code to test the property AboutSectionTitle + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionSubtitle (base name: "AboutSectionSubtitle")', function() { + // uncomment below and update the code to test the property AboutSectionSubtitle + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionLeftTitle (base name: "AboutSectionLeftTitle")', function() { + // uncomment below and update the code to test the property AboutSectionLeftTitle + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionLeftBody (base name: "AboutSectionLeftBody")', function() { + // uncomment below and update the code to test the property AboutSectionLeftBody + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionRightTitle (base name: "AboutSectionRightTitle")', function() { + // uncomment below and update the code to test the property AboutSectionRightTitle + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property AboutSectionRightBody (base name: "AboutSectionRightBody")', function() { + // uncomment below and update the code to test the property AboutSectionRightBody + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property OpeningHoursEnabled (base name: "OpeningHoursEnabled")', function() { + // uncomment below and update the code to test the property OpeningHoursEnabled + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property MenuPreviewEnabled (base name: "MenuPreviewEnabled")', function() { + // uncomment below and update the code to test the property MenuPreviewEnabled + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property GalleryEnabled (base name: "GalleryEnabled")', function() { + // uncomment below and update the code to test the property GalleryEnabled + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property TestimonialsEnabled (base name: "TestimonialsEnabled")', function() { + // uncomment below and update the code to test the property TestimonialsEnabled + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property ContactFormEnabled (base name: "ContactFormEnabled")', function() { + // uncomment below and update the code to test the property ContactFormEnabled + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property ContactFormEmail (base name: "ContactFormEmail")', function() { + // uncomment below and update the code to test the property ContactFormEmail + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + it('should have the property MapEnabled (base name: "MapEnabled")', function() { + // uncomment below and update the code to test the property MapEnabled + //var instance = new Flipdish.IndexPageBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/IntercomUserHash.spec.js b/test/model/IntercomUserHash.spec.js new file mode 100644 index 00000000..c2dad429 --- /dev/null +++ b/test/model/IntercomUserHash.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.IntercomUserHash(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('IntercomUserHash', function() { + it('should create an instance of IntercomUserHash', function() { + // uncomment below and update the code to test IntercomUserHash + //var instane = new Flipdish.IntercomUserHash(); + //expect(instance).to.be.a(Flipdish.IntercomUserHash); + }); + + it('should have the property UserHash (base name: "UserHash")', function() { + // uncomment below and update the code to test the property UserHash + //var instance = new Flipdish.IntercomUserHash(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Invoice.spec.js b/test/model/Invoice.spec.js new file mode 100644 index 00000000..8c6aa8e5 --- /dev/null +++ b/test/model/Invoice.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Invoice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Invoice', function() { + it('should create an instance of Invoice', function() { + // uncomment below and update the code to test Invoice + //var instane = new Flipdish.Invoice(); + //expect(instance).to.be.a(Flipdish.Invoice); + }); + + it('should have the property InvoiceNumber (base name: "InvoiceNumber")', function() { + // uncomment below and update the code to test the property InvoiceNumber + //var instance = new Flipdish.Invoice(); + //expect(instance).to.be(); + }); + + it('should have the property StartDay (base name: "StartDay")', function() { + // uncomment below and update the code to test the property StartDay + //var instance = new Flipdish.Invoice(); + //expect(instance).to.be(); + }); + + it('should have the property EndDay (base name: "EndDay")', function() { + // uncomment below and update the code to test the property EndDay + //var instance = new Flipdish.Invoice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InvoiceDiscount.spec.js b/test/model/InvoiceDiscount.spec.js new file mode 100644 index 00000000..07c3921c --- /dev/null +++ b/test/model/InvoiceDiscount.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.InvoiceDiscount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InvoiceDiscount', function() { + it('should create an instance of InvoiceDiscount', function() { + // uncomment below and update the code to test InvoiceDiscount + //var instane = new Flipdish.InvoiceDiscount(); + //expect(instance).to.be.a(Flipdish.InvoiceDiscount); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.InvoiceDiscount(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.InvoiceDiscount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InvoiceItem.spec.js b/test/model/InvoiceItem.spec.js new file mode 100644 index 00000000..b0c44612 --- /dev/null +++ b/test/model/InvoiceItem.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.InvoiceItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InvoiceItem', function() { + it('should create an instance of InvoiceItem', function() { + // uncomment below and update the code to test InvoiceItem + //var instane = new Flipdish.InvoiceItem(); + //expect(instance).to.be.a(Flipdish.InvoiceItem); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.InvoiceItem(); + //expect(instance).to.be(); + }); + + it('should have the property Quantity (base name: "Quantity")', function() { + // uncomment below and update the code to test the property Quantity + //var instance = new Flipdish.InvoiceItem(); + //expect(instance).to.be(); + }); + + it('should have the property UnitAmountExcludingTax (base name: "UnitAmountExcludingTax")', function() { + // uncomment below and update the code to test the property UnitAmountExcludingTax + //var instance = new Flipdish.InvoiceItem(); + //expect(instance).to.be(); + }); + + it('should have the property Tax (base name: "Tax")', function() { + // uncomment below and update the code to test the property Tax + //var instance = new Flipdish.InvoiceItem(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.InvoiceItem(); + //expect(instance).to.be(); + }); + + it('should have the property Period (base name: "Period")', function() { + // uncomment below and update the code to test the property Period + //var instance = new Flipdish.InvoiceItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InvoicePeriod.spec.js b/test/model/InvoicePeriod.spec.js new file mode 100644 index 00000000..e249950f --- /dev/null +++ b/test/model/InvoicePeriod.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.InvoicePeriod(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InvoicePeriod', function() { + it('should create an instance of InvoicePeriod', function() { + // uncomment below and update the code to test InvoicePeriod + //var instane = new Flipdish.InvoicePeriod(); + //expect(instance).to.be.a(Flipdish.InvoicePeriod); + }); + + it('should have the property Start (base name: "Start")', function() { + // uncomment below and update the code to test the property Start + //var instance = new Flipdish.InvoicePeriod(); + //expect(instance).to.be(); + }); + + it('should have the property End (base name: "End")', function() { + // uncomment below and update the code to test the property End + //var instance = new Flipdish.InvoicePeriod(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ItemNutritionInfoAddUpdateModel.spec.js b/test/model/ItemNutritionInfoAddUpdateModel.spec.js new file mode 100644 index 00000000..5cbf28c1 --- /dev/null +++ b/test/model/ItemNutritionInfoAddUpdateModel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ItemNutritionInfoAddUpdateModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ItemNutritionInfoAddUpdateModel', function() { + it('should create an instance of ItemNutritionInfoAddUpdateModel', function() { + // uncomment below and update the code to test ItemNutritionInfoAddUpdateModel + //var instane = new Flipdish.ItemNutritionInfoAddUpdateModel(); + //expect(instance).to.be.a(Flipdish.ItemNutritionInfoAddUpdateModel); + }); + + it('should have the property Labels (base name: "Labels")', function() { + // uncomment below and update the code to test the property Labels + //var instance = new Flipdish.ItemNutritionInfoAddUpdateModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ItemNutritionInfoV2AddUpdateModel.spec.js b/test/model/ItemNutritionInfoV2AddUpdateModel.spec.js new file mode 100644 index 00000000..5c161f78 --- /dev/null +++ b/test/model/ItemNutritionInfoV2AddUpdateModel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ItemNutritionInfoV2AddUpdateModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ItemNutritionInfoV2AddUpdateModel', function() { + it('should create an instance of ItemNutritionInfoV2AddUpdateModel', function() { + // uncomment below and update the code to test ItemNutritionInfoV2AddUpdateModel + //var instane = new Flipdish.ItemNutritionInfoV2AddUpdateModel(); + //expect(instance).to.be.a(Flipdish.ItemNutritionInfoV2AddUpdateModel); + }); + + it('should have the property AllergenIds (base name: "AllergenIds")', function() { + // uncomment below and update the code to test the property AllergenIds + //var instance = new Flipdish.ItemNutritionInfoV2AddUpdateModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobAddress.spec.js b/test/model/JobAddress.spec.js new file mode 100644 index 00000000..4ea5449c --- /dev/null +++ b/test/model/JobAddress.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobAddress(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobAddress', function() { + it('should create an instance of JobAddress', function() { + // uncomment below and update the code to test JobAddress + //var instane = new Flipdish.JobAddress(); + //expect(instance).to.be.a(Flipdish.JobAddress); + }); + + it('should have the property Street (base name: "Street")', function() { + // uncomment below and update the code to test the property Street + //var instance = new Flipdish.JobAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Postcode (base name: "Postcode")', function() { + // uncomment below and update the code to test the property Postcode + //var instance = new Flipdish.JobAddress(); + //expect(instance).to.be(); + }); + + it('should have the property City (base name: "City")', function() { + // uncomment below and update the code to test the property City + //var instance = new Flipdish.JobAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Country (base name: "Country")', function() { + // uncomment below and update the code to test the property Country + //var instance = new Flipdish.JobAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Zone (base name: "Zone")', function() { + // uncomment below and update the code to test the property Zone + //var instance = new Flipdish.JobAddress(); + //expect(instance).to.be(); + }); + + it('should have the property FormattedAddress (base name: "FormattedAddress")', function() { + // uncomment below and update the code to test the property FormattedAddress + //var instance = new Flipdish.JobAddress(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobCancellation.spec.js b/test/model/JobCancellation.spec.js new file mode 100644 index 00000000..33ce08d6 --- /dev/null +++ b/test/model/JobCancellation.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobCancellation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobCancellation', function() { + it('should create an instance of JobCancellation', function() { + // uncomment below and update the code to test JobCancellation + //var instane = new Flipdish.JobCancellation(); + //expect(instance).to.be.a(Flipdish.JobCancellation); + }); + + it('should have the property CanceledBy (base name: "CanceledBy")', function() { + // uncomment below and update the code to test the property CanceledBy + //var instance = new Flipdish.JobCancellation(); + //expect(instance).to.be(); + }); + + it('should have the property ReasonKey (base name: "ReasonKey")', function() { + // uncomment below and update the code to test the property ReasonKey + //var instance = new Flipdish.JobCancellation(); + //expect(instance).to.be(); + }); + + it('should have the property Comment (base name: "Comment")', function() { + // uncomment below and update the code to test the property Comment + //var instance = new Flipdish.JobCancellation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobContact.spec.js b/test/model/JobContact.spec.js new file mode 100644 index 00000000..d14f4ab7 --- /dev/null +++ b/test/model/JobContact.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobContact(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobContact', function() { + it('should create an instance of JobContact', function() { + // uncomment below and update the code to test JobContact + //var instane = new Flipdish.JobContact(); + //expect(instance).to.be.a(Flipdish.JobContact); + }); + + it('should have the property Firstname (base name: "Firstname")', function() { + // uncomment below and update the code to test the property Firstname + //var instance = new Flipdish.JobContact(); + //expect(instance).to.be(); + }); + + it('should have the property Lastname (base name: "Lastname")', function() { + // uncomment below and update the code to test the property Lastname + //var instance = new Flipdish.JobContact(); + //expect(instance).to.be(); + }); + + it('should have the property Phone (base name: "Phone")', function() { + // uncomment below and update the code to test the property Phone + //var instance = new Flipdish.JobContact(); + //expect(instance).to.be(); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.JobContact(); + //expect(instance).to.be(); + }); + + it('should have the property Company (base name: "Company")', function() { + // uncomment below and update the code to test the property Company + //var instance = new Flipdish.JobContact(); + //expect(instance).to.be(); + }); + + it('should have the property CompanyName (base name: "CompanyName")', function() { + // uncomment below and update the code to test the property CompanyName + //var instance = new Flipdish.JobContact(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobDelivery.spec.js b/test/model/JobDelivery.spec.js new file mode 100644 index 00000000..9abb5da8 --- /dev/null +++ b/test/model/JobDelivery.spec.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobDelivery(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobDelivery', function() { + it('should create an instance of JobDelivery', function() { + // uncomment below and update the code to test JobDelivery + //var instane = new Flipdish.JobDelivery(); + //expect(instance).to.be.a(Flipdish.JobDelivery); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property PickedAt (base name: "PickedAt")', function() { + // uncomment below and update the code to test the property PickedAt + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveredAt (base name: "DeliveredAt")', function() { + // uncomment below and update the code to test the property DeliveredAt + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property TrackingUrl (base name: "TrackingUrl")', function() { + // uncomment below and update the code to test the property TrackingUrl + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property ClientReference (base name: "ClientReference")', function() { + // uncomment below and update the code to test the property ClientReference + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property PackageDescription (base name: "PackageDescription")', function() { + // uncomment below and update the code to test the property PackageDescription + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property PackageType (base name: "PackageType")', function() { + // uncomment below and update the code to test the property PackageType + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property Pickup (base name: "Pickup")', function() { + // uncomment below and update the code to test the property Pickup + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property Dropoff (base name: "Dropoff")', function() { + // uncomment below and update the code to test the property Dropoff + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property Eta (base name: "Eta")', function() { + // uncomment below and update the code to test the property Eta + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property Cancellation (base name: "Cancellation")', function() { + // uncomment below and update the code to test the property Cancellation + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + it('should have the property Proof (base name: "Proof")', function() { + // uncomment below and update the code to test the property Proof + //var instance = new Flipdish.JobDelivery(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobDeliveryDetail.spec.js b/test/model/JobDeliveryDetail.spec.js new file mode 100644 index 00000000..b6e4a973 --- /dev/null +++ b/test/model/JobDeliveryDetail.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobDeliveryDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobDeliveryDetail', function() { + it('should create an instance of JobDeliveryDetail', function() { + // uncomment below and update the code to test JobDeliveryDetail + //var instane = new Flipdish.JobDeliveryDetail(); + //expect(instance).to.be.a(Flipdish.JobDeliveryDetail); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.JobDeliveryDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // uncomment below and update the code to test the property Latitude + //var instance = new Flipdish.JobDeliveryDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // uncomment below and update the code to test the property Longitude + //var instance = new Flipdish.JobDeliveryDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Comment (base name: "Comment")', function() { + // uncomment below and update the code to test the property Comment + //var instance = new Flipdish.JobDeliveryDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Address (base name: "Address")', function() { + // uncomment below and update the code to test the property Address + //var instance = new Flipdish.JobDeliveryDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Contact (base name: "Contact")', function() { + // uncomment below and update the code to test the property Contact + //var instance = new Flipdish.JobDeliveryDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobDriver.spec.js b/test/model/JobDriver.spec.js new file mode 100644 index 00000000..d582a5a7 --- /dev/null +++ b/test/model/JobDriver.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobDriver(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobDriver', function() { + it('should create an instance of JobDriver', function() { + // uncomment below and update the code to test JobDriver + //var instane = new Flipdish.JobDriver(); + //expect(instance).to.be.a(Flipdish.JobDriver); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.JobDriver(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // uncomment below and update the code to test the property DisplayName + //var instance = new Flipdish.JobDriver(); + //expect(instance).to.be(); + }); + + it('should have the property Phone (base name: "Phone")', function() { + // uncomment below and update the code to test the property Phone + //var instance = new Flipdish.JobDriver(); + //expect(instance).to.be(); + }); + + it('should have the property PictureUrl (base name: "PictureUrl")', function() { + // uncomment below and update the code to test the property PictureUrl + //var instance = new Flipdish.JobDriver(); + //expect(instance).to.be(); + }); + + it('should have the property TransportType (base name: "TransportType")', function() { + // uncomment below and update the code to test the property TransportType + //var instance = new Flipdish.JobDriver(); + //expect(instance).to.be(); + }); + + it('should have the property Latitude (base name: "Latitude")', function() { + // uncomment below and update the code to test the property Latitude + //var instance = new Flipdish.JobDriver(); + //expect(instance).to.be(); + }); + + it('should have the property Longitude (base name: "Longitude")', function() { + // uncomment below and update the code to test the property Longitude + //var instance = new Flipdish.JobDriver(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobEta.spec.js b/test/model/JobEta.spec.js new file mode 100644 index 00000000..b2c1fa42 --- /dev/null +++ b/test/model/JobEta.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobEta(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobEta', function() { + it('should create an instance of JobEta', function() { + // uncomment below and update the code to test JobEta + //var instane = new Flipdish.JobEta(); + //expect(instance).to.be.a(Flipdish.JobEta); + }); + + it('should have the property Pickup (base name: "Pickup")', function() { + // uncomment below and update the code to test the property Pickup + //var instance = new Flipdish.JobEta(); + //expect(instance).to.be(); + }); + + it('should have the property Dropoff (base name: "Dropoff")', function() { + // uncomment below and update the code to test the property Dropoff + //var instance = new Flipdish.JobEta(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobPricing.spec.js b/test/model/JobPricing.spec.js new file mode 100644 index 00000000..9289c50c --- /dev/null +++ b/test/model/JobPricing.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobPricing(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobPricing', function() { + it('should create an instance of JobPricing', function() { + // uncomment below and update the code to test JobPricing + //var instane = new Flipdish.JobPricing(); + //expect(instance).to.be.a(Flipdish.JobPricing); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.JobPricing(); + //expect(instance).to.be(); + }); + + it('should have the property TaxPercentage (base name: "TaxPercentage")', function() { + // uncomment below and update the code to test the property TaxPercentage + //var instance = new Flipdish.JobPricing(); + //expect(instance).to.be(); + }); + + it('should have the property PriceTaxIncluded (base name: "PriceTaxIncluded")', function() { + // uncomment below and update the code to test the property PriceTaxIncluded + //var instance = new Flipdish.JobPricing(); + //expect(instance).to.be(); + }); + + it('should have the property PriceTaxExcluded (base name: "PriceTaxExcluded")', function() { + // uncomment below and update the code to test the property PriceTaxExcluded + //var instance = new Flipdish.JobPricing(); + //expect(instance).to.be(); + }); + + it('should have the property TaxAmount (base name: "TaxAmount")', function() { + // uncomment below and update the code to test the property TaxAmount + //var instance = new Flipdish.JobPricing(); + //expect(instance).to.be(); + }); + + it('should have the property InvoiceUrl (base name: "InvoiceUrl")', function() { + // uncomment below and update the code to test the property InvoiceUrl + //var instance = new Flipdish.JobPricing(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobProof.spec.js b/test/model/JobProof.spec.js new file mode 100644 index 00000000..d712c05a --- /dev/null +++ b/test/model/JobProof.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobProof(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobProof', function() { + it('should create an instance of JobProof', function() { + // uncomment below and update the code to test JobProof + //var instane = new Flipdish.JobProof(); + //expect(instance).to.be.a(Flipdish.JobProof); + }); + + it('should have the property SignatureUrl (base name: "SignatureUrl")', function() { + // uncomment below and update the code to test the property SignatureUrl + //var instance = new Flipdish.JobProof(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JobResponse.spec.js b/test/model/JobResponse.spec.js new file mode 100644 index 00000000..03a90d8a --- /dev/null +++ b/test/model/JobResponse.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.JobResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JobResponse', function() { + it('should create an instance of JobResponse', function() { + // uncomment below and update the code to test JobResponse + //var instane = new Flipdish.JobResponse(); + //expect(instance).to.be.a(Flipdish.JobResponse); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedAt (base name: "CreatedAt")', function() { + // uncomment below and update the code to test the property CreatedAt + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property PackageType (base name: "PackageType")', function() { + // uncomment below and update the code to test the property PackageType + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property TransportType (base name: "TransportType")', function() { + // uncomment below and update the code to test the property TransportType + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property AssignmentCode (base name: "AssignmentCode")', function() { + // uncomment below and update the code to test the property AssignmentCode + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property PickupAt (base name: "PickupAt")', function() { + // uncomment below and update the code to test the property PickupAt + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property DropoffAt (base name: "DropoffAt")', function() { + // uncomment below and update the code to test the property DropoffAt + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Comment (base name: "Comment")', function() { + // uncomment below and update the code to test the property Comment + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Distance (base name: "Distance")', function() { + // uncomment below and update the code to test the property Distance + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Duration (base name: "Duration")', function() { + // uncomment below and update the code to test the property Duration + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Deliveries (base name: "Deliveries")', function() { + // uncomment below and update the code to test the property Deliveries + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Pricing (base name: "Pricing")', function() { + // uncomment below and update the code to test the property Pricing + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Driver (base name: "Driver")', function() { + // uncomment below and update the code to test the property Driver + //var instance = new Flipdish.JobResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothInstallUpdateInitiateEvent.spec.js b/test/model/KioskBluetoothInstallUpdateInitiateEvent.spec.js new file mode 100644 index 00000000..ab7e608f --- /dev/null +++ b/test/model/KioskBluetoothInstallUpdateInitiateEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothInstallUpdateInitiateEvent', function() { + it('should create an instance of KioskBluetoothInstallUpdateInitiateEvent', function() { + // uncomment below and update the code to test KioskBluetoothInstallUpdateInitiateEvent + //var instane = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothInstallUpdateInitiateEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothInstallUpdateInitiateEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothPairingModeEvent.spec.js b/test/model/KioskBluetoothPairingModeEvent.spec.js new file mode 100644 index 00000000..fab5f983 --- /dev/null +++ b/test/model/KioskBluetoothPairingModeEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothPairingModeEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothPairingModeEvent', function() { + it('should create an instance of KioskBluetoothPairingModeEvent', function() { + // uncomment below and update the code to test KioskBluetoothPairingModeEvent + //var instane = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothPairingModeEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothPairingModeEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothTerminalCancelUpdateEvent.spec.js b/test/model/KioskBluetoothTerminalCancelUpdateEvent.spec.js new file mode 100644 index 00000000..d4d2b9f0 --- /dev/null +++ b/test/model/KioskBluetoothTerminalCancelUpdateEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothTerminalCancelUpdateEvent', function() { + it('should create an instance of KioskBluetoothTerminalCancelUpdateEvent', function() { + // uncomment below and update the code to test KioskBluetoothTerminalCancelUpdateEvent + //var instane = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalCancelUpdateEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothTerminalCancelUpdateEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothTerminalFirmwareVersionStatusEvent.spec.js b/test/model/KioskBluetoothTerminalFirmwareVersionStatusEvent.spec.js new file mode 100644 index 00000000..0cfc7309 --- /dev/null +++ b/test/model/KioskBluetoothTerminalFirmwareVersionStatusEvent.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothTerminalFirmwareVersionStatusEvent', function() { + it('should create an instance of KioskBluetoothTerminalFirmwareVersionStatusEvent', function() { + // uncomment below and update the code to test KioskBluetoothTerminalFirmwareVersionStatusEvent + //var instane = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property SerialNumber (base name: "SerialNumber")', function() { + // uncomment below and update the code to test the property SerialNumber + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property HasFirmwareUpdate (base name: "HasFirmwareUpdate")', function() { + // uncomment below and update the code to test the property HasFirmwareUpdate + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property HasConfigUpdate (base name: "HasConfigUpdate")', function() { + // uncomment below and update the code to test the property HasConfigUpdate + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property HasKeyUpdate (base name: "HasKeyUpdate")', function() { + // uncomment below and update the code to test the property HasKeyUpdate + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property UpdateTimeEstimate (base name: "UpdateTimeEstimate")', function() { + // uncomment below and update the code to test the property UpdateTimeEstimate + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property UserEventInfo (base name: "UserEventInfo")', function() { + // uncomment below and update the code to test the property UserEventInfo + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothTerminalFirmwareVersionStatusEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.spec.js b/test/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.spec.js new file mode 100644 index 00000000..e11d403a --- /dev/null +++ b/test/model/KioskBluetoothTerminalInitiateUpdateCheckEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothTerminalInitiateUpdateCheckEvent', function() { + it('should create an instance of KioskBluetoothTerminalInitiateUpdateCheckEvent', function() { + // uncomment below and update the code to test KioskBluetoothTerminalInitiateUpdateCheckEvent + //var instane = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothTerminalInitiateUpdateCheckEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothTerminalInstallationStatusEvent.spec.js b/test/model/KioskBluetoothTerminalInstallationStatusEvent.spec.js new file mode 100644 index 00000000..ce70904b --- /dev/null +++ b/test/model/KioskBluetoothTerminalInstallationStatusEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothTerminalInstallationStatusEvent', function() { + it('should create an instance of KioskBluetoothTerminalInstallationStatusEvent', function() { + // uncomment below and update the code to test KioskBluetoothTerminalInstallationStatusEvent + //var instane = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalInstallationStatusEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalSerialNumber (base name: "BluetoothTerminalSerialNumber")', function() { + // uncomment below and update the code to test the property BluetoothTerminalSerialNumber + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Progress (base name: "Progress")', function() { + // uncomment below and update the code to test the property Progress + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothTerminalInstallationStatusEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothTerminalUnpairedEvent.spec.js b/test/model/KioskBluetoothTerminalUnpairedEvent.spec.js new file mode 100644 index 00000000..cc921b3a --- /dev/null +++ b/test/model/KioskBluetoothTerminalUnpairedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothTerminalUnpairedEvent', function() { + it('should create an instance of KioskBluetoothTerminalUnpairedEvent', function() { + // uncomment below and update the code to test KioskBluetoothTerminalUnpairedEvent + //var instane = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalUnpairedEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothTerminalUnpairedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothTerminalUpdatedEvent.spec.js b/test/model/KioskBluetoothTerminalUpdatedEvent.spec.js new file mode 100644 index 00000000..4babdd8a --- /dev/null +++ b/test/model/KioskBluetoothTerminalUpdatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothTerminalUpdatedEvent', function() { + it('should create an instance of KioskBluetoothTerminalUpdatedEvent', function() { + // uncomment below and update the code to test KioskBluetoothTerminalUpdatedEvent + //var instane = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothTerminalUpdatedEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalSerialNumber (base name: "BluetoothTerminalSerialNumber")', function() { + // uncomment below and update the code to test the property BluetoothTerminalSerialNumber + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalStatus (base name: "BluetoothTerminalStatus")', function() { + // uncomment below and update the code to test the property BluetoothTerminalStatus + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothTerminalUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskBluetoothUnpairingModeEvent.spec.js b/test/model/KioskBluetoothUnpairingModeEvent.spec.js new file mode 100644 index 00000000..791762a4 --- /dev/null +++ b/test/model/KioskBluetoothUnpairingModeEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskBluetoothUnpairingModeEvent', function() { + it('should create an instance of KioskBluetoothUnpairingModeEvent', function() { + // uncomment below and update the code to test KioskBluetoothUnpairingModeEvent + //var instane = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be.a(Flipdish.KioskBluetoothUnpairingModeEvent); + }); + + it('should have the property DeviceId (base name: "DeviceId")', function() { + // uncomment below and update the code to test the property DeviceId + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskBluetoothUnpairingModeEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskCashPaymentSettings.spec.js b/test/model/KioskCashPaymentSettings.spec.js new file mode 100644 index 00000000..39ac3ee6 --- /dev/null +++ b/test/model/KioskCashPaymentSettings.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskCashPaymentSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskCashPaymentSettings', function() { + it('should create an instance of KioskCashPaymentSettings', function() { + // uncomment below and update the code to test KioskCashPaymentSettings + //var instane = new Flipdish.KioskCashPaymentSettings(); + //expect(instance).to.be.a(Flipdish.KioskCashPaymentSettings); + }); + + it('should have the property IsCashVisibleToCustomer (base name: "IsCashVisibleToCustomer")', function() { + // uncomment below and update the code to test the property IsCashVisibleToCustomer + //var instance = new Flipdish.KioskCashPaymentSettings(); + //expect(instance).to.be(); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.KioskCashPaymentSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskEntitlementsResult.spec.js b/test/model/KioskEntitlementsResult.spec.js new file mode 100644 index 00000000..45ece65c --- /dev/null +++ b/test/model/KioskEntitlementsResult.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskEntitlementsResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskEntitlementsResult', function() { + it('should create an instance of KioskEntitlementsResult', function() { + // uncomment below and update the code to test KioskEntitlementsResult + //var instane = new Flipdish.KioskEntitlementsResult(); + //expect(instance).to.be.a(Flipdish.KioskEntitlementsResult); + }); + + it('should have the property EntitledQuantity (base name: "EntitledQuantity")', function() { + // uncomment below and update the code to test the property EntitledQuantity + //var instance = new Flipdish.KioskEntitlementsResult(); + //expect(instance).to.be(); + }); + + it('should have the property UsedQuantity (base name: "UsedQuantity")', function() { + // uncomment below and update the code to test the property UsedQuantity + //var instance = new Flipdish.KioskEntitlementsResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskIotConnectionParameters.spec.js b/test/model/KioskIotConnectionParameters.spec.js new file mode 100644 index 00000000..b9978105 --- /dev/null +++ b/test/model/KioskIotConnectionParameters.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskIotConnectionParameters(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskIotConnectionParameters', function() { + it('should create an instance of KioskIotConnectionParameters', function() { + // uncomment below and update the code to test KioskIotConnectionParameters + //var instane = new Flipdish.KioskIotConnectionParameters(); + //expect(instance).to.be.a(Flipdish.KioskIotConnectionParameters); + }); + + it('should have the property ConnectionString (base name: "ConnectionString")', function() { + // uncomment below and update the code to test the property ConnectionString + //var instance = new Flipdish.KioskIotConnectionParameters(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskSettings.spec.js b/test/model/KioskSettings.spec.js new file mode 100644 index 00000000..c0b4ae61 --- /dev/null +++ b/test/model/KioskSettings.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskSettings', function() { + it('should create an instance of KioskSettings', function() { + // uncomment below and update the code to test KioskSettings + //var instane = new Flipdish.KioskSettings(); + //expect(instance).to.be.a(Flipdish.KioskSettings); + }); + + it('should have the property HideLogoFromFrontPage (base name: "HideLogoFromFrontPage")', function() { + // uncomment below and update the code to test the property HideLogoFromFrontPage + //var instance = new Flipdish.KioskSettings(); + //expect(instance).to.be(); + }); + + it('should have the property TwoColumnMenuLayout (base name: "TwoColumnMenuLayout")', function() { + // uncomment below and update the code to test the property TwoColumnMenuLayout + //var instance = new Flipdish.KioskSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KioskTerminalActionStateChangedEvent.spec.js b/test/model/KioskTerminalActionStateChangedEvent.spec.js new file mode 100644 index 00000000..7a3401fb --- /dev/null +++ b/test/model/KioskTerminalActionStateChangedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KioskTerminalActionStateChangedEvent', function() { + it('should create an instance of KioskTerminalActionStateChangedEvent', function() { + // uncomment below and update the code to test KioskTerminalActionStateChangedEvent + //var instane = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be.a(Flipdish.KioskTerminalActionStateChangedEvent); + }); + + it('should have the property ReaderId (base name: "ReaderId")', function() { + // uncomment below and update the code to test the property ReaderId + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BluetoothTerminalType (base name: "BluetoothTerminalType")', function() { + // uncomment below and update the code to test the property BluetoothTerminalType + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property ActionState (base name: "ActionState")', function() { + // uncomment below and update the code to test the property ActionState + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FailureCode (base name: "FailureCode")', function() { + // uncomment below and update the code to test the property FailureCode + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.KioskTerminalActionStateChangedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Language.spec.js b/test/model/Language.spec.js new file mode 100644 index 00000000..3cdde4ff --- /dev/null +++ b/test/model/Language.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Language(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Language', function() { + it('should create an instance of Language', function() { + // uncomment below and update the code to test Language + //var instane = new Flipdish.Language(); + //expect(instance).to.be.a(Flipdish.Language); + }); + + it('should have the property LanguageId (base name: "LanguageId")', function() { + // uncomment below and update the code to test the property LanguageId + //var instance = new Flipdish.Language(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.Language(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Language(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.Language(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LastPaymentError.spec.js b/test/model/LastPaymentError.spec.js new file mode 100644 index 00000000..c29e78eb --- /dev/null +++ b/test/model/LastPaymentError.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LastPaymentError(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LastPaymentError', function() { + it('should create an instance of LastPaymentError', function() { + // uncomment below and update the code to test LastPaymentError + //var instane = new Flipdish.LastPaymentError(); + //expect(instance).to.be.a(Flipdish.LastPaymentError); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.LastPaymentError(); + //expect(instance).to.be(); + }); + + it('should have the property DeclineCode (base name: "DeclineCode")', function() { + // uncomment below and update the code to test the property DeclineCode + //var instance = new Flipdish.LastPaymentError(); + //expect(instance).to.be(); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.LastPaymentError(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LeadTime.spec.js b/test/model/LeadTime.spec.js new file mode 100644 index 00000000..08c0c606 --- /dev/null +++ b/test/model/LeadTime.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LeadTime(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LeadTime', function() { + it('should create an instance of LeadTime', function() { + // uncomment below and update the code to test LeadTime + //var instane = new Flipdish.LeadTime(); + //expect(instance).to.be.a(Flipdish.LeadTime); + }); + + it('should have the property DispatchType (base name: "DispatchType")', function() { + // uncomment below and update the code to test the property DispatchType + //var instance = new Flipdish.LeadTime(); + //expect(instance).to.be(); + }); + + it('should have the property LeadTimeMinutes (base name: "LeadTimeMinutes")', function() { + // uncomment below and update the code to test the property LeadTimeMinutes + //var instance = new Flipdish.LeadTime(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LightspeedSettings.spec.js b/test/model/LightspeedSettings.spec.js new file mode 100644 index 00000000..e6aaa99f --- /dev/null +++ b/test/model/LightspeedSettings.spec.js @@ -0,0 +1,197 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LightspeedSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LightspeedSettings', function() { + it('should create an instance of LightspeedSettings', function() { + // uncomment below and update the code to test LightspeedSettings + //var instane = new Flipdish.LightspeedSettings(); + //expect(instance).to.be.a(Flipdish.LightspeedSettings); + }); + + it('should have the property CompanyId (base name: "CompanyId")', function() { + // uncomment below and update the code to test the property CompanyId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property UseOAuth (base name: "UseOAuth")', function() { + // uncomment below and update the code to test the property UseOAuth + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property EstimatedMinutesForDelivery (base name: "EstimatedMinutesForDelivery")', function() { + // uncomment below and update the code to test the property EstimatedMinutesForDelivery + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property EstimatedMinutesForCollection (base name: "EstimatedMinutesForCollection")', function() { + // uncomment below and update the code to test the property EstimatedMinutesForCollection + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property GeographicLocation (base name: "GeographicLocation")', function() { + // uncomment below and update the code to test the property GeographicLocation + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property Establishment (base name: "Establishment")', function() { + // uncomment below and update the code to test the property Establishment + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryFeeId (base name: "DeliveryFeeId")', function() { + // uncomment below and update the code to test the property DeliveryFeeId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property ProcessingFeeId (base name: "ProcessingFeeId")', function() { + // uncomment below and update the code to test the property ProcessingFeeId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property PriceType (base name: "PriceType")', function() { + // uncomment below and update the code to test the property PriceType + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionTableId (base name: "CollectionTableId")', function() { + // uncomment below and update the code to test the property CollectionTableId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryTableId (base name: "DeliveryTableId")', function() { + // uncomment below and update the code to test the property DeliveryTableId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionTableIds (base name: "CollectionTableIds")', function() { + // uncomment below and update the code to test the property CollectionTableIds + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryTableIds (base name: "DeliveryTableIds")', function() { + // uncomment below and update the code to test the property DeliveryTableIds + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property UseTaxInclusivePrices (base name: "UseTaxInclusivePrices")', function() { + // uncomment below and update the code to test the property UseTaxInclusivePrices + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property SkipStatusCheckAndAcceptOrderAfterSending (base name: "SkipStatusCheckAndAcceptOrderAfterSending")', function() { + // uncomment below and update the code to test the property SkipStatusCheckAndAcceptOrderAfterSending + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property SendTableNumberToTableId (base name: "SendTableNumberToTableId")', function() { + // uncomment below and update the code to test the property SendTableNumberToTableId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property AddChefNoteToProduct (base name: "AddChefNoteToProduct")', function() { + // uncomment below and update the code to test the property AddChefNoteToProduct + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property ChefNoteItemId (base name: "ChefNoteItemId")', function() { + // uncomment below and update the code to test the property ChefNoteItemId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property ChefNoteModifierId (base name: "ChefNoteModifierId")', function() { + // uncomment below and update the code to test the property ChefNoteModifierId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceChargeId (base name: "ServiceChargeId")', function() { + // uncomment below and update the code to test the property ServiceChargeId + //var instance = new Flipdish.LightspeedSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocalisedTimeZone.spec.js b/test/model/LocalisedTimeZone.spec.js new file mode 100644 index 00000000..62ec7ec1 --- /dev/null +++ b/test/model/LocalisedTimeZone.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocalisedTimeZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocalisedTimeZone', function() { + it('should create an instance of LocalisedTimeZone', function() { + // uncomment below and update the code to test LocalisedTimeZone + //var instane = new Flipdish.LocalisedTimeZone(); + //expect(instance).to.be.a(Flipdish.LocalisedTimeZone); + }); + + it('should have the property TimeZoneId (base name: "TimeZoneId")', function() { + // uncomment below and update the code to test the property TimeZoneId + //var instance = new Flipdish.LocalisedTimeZone(); + //expect(instance).to.be(); + }); + + it('should have the property IanaTimeZoneId (base name: "IanaTimeZoneId")', function() { + // uncomment below and update the code to test the property IanaTimeZoneId + //var instance = new Flipdish.LocalisedTimeZone(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayName (base name: "DisplayName")', function() { + // uncomment below and update the code to test the property DisplayName + //var instance = new Flipdish.LocalisedTimeZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocationArea.spec.js b/test/model/LocationArea.spec.js new file mode 100644 index 00000000..2304edca --- /dev/null +++ b/test/model/LocationArea.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationArea(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationArea', function() { + it('should create an instance of LocationArea', function() { + // uncomment below and update the code to test LocationArea + //var instane = new Flipdish.LocationArea(); + //expect(instance).to.be.a(Flipdish.LocationArea); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.LocationArea(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.LocationArea(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaName (base name: "LocationAreaName")', function() { + // uncomment below and update the code to test the property LocationAreaName + //var instance = new Flipdish.LocationArea(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocationAreaCreatedEvent.spec.js b/test/model/LocationAreaCreatedEvent.spec.js new file mode 100644 index 00000000..6ffc25e9 --- /dev/null +++ b/test/model/LocationAreaCreatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationAreaCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationAreaCreatedEvent', function() { + it('should create an instance of LocationAreaCreatedEvent', function() { + // uncomment below and update the code to test LocationAreaCreatedEvent + //var instane = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be.a(Flipdish.LocationAreaCreatedEvent); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaName (base name: "LocationAreaName")', function() { + // uncomment below and update the code to test the property LocationAreaName + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.LocationAreaCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocationAreaLocation.spec.js b/test/model/LocationAreaLocation.spec.js new file mode 100644 index 00000000..a39c272b --- /dev/null +++ b/test/model/LocationAreaLocation.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationAreaLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationAreaLocation', function() { + it('should create an instance of LocationAreaLocation', function() { + // uncomment below and update the code to test LocationAreaLocation + //var instane = new Flipdish.LocationAreaLocation(); + //expect(instance).to.be.a(Flipdish.LocationAreaLocation); + }); + + it('should have the property LocationId (base name: "LocationId")', function() { + // uncomment below and update the code to test the property LocationId + //var instance = new Flipdish.LocationAreaLocation(); + //expect(instance).to.be(); + }); + + it('should have the property LocationName (base name: "LocationName")', function() { + // uncomment below and update the code to test the property LocationName + //var instance = new Flipdish.LocationAreaLocation(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.LocationAreaLocation(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalLocationId (base name: "ExternalLocationId")', function() { + // uncomment below and update the code to test the property ExternalLocationId + //var instance = new Flipdish.LocationAreaLocation(); + //expect(instance).to.be(); + }); + + it('should have the property IsDeleted (base name: "IsDeleted")', function() { + // uncomment below and update the code to test the property IsDeleted + //var instance = new Flipdish.LocationAreaLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocationAreaUpdatedEvent.spec.js b/test/model/LocationAreaUpdatedEvent.spec.js new file mode 100644 index 00000000..94410906 --- /dev/null +++ b/test/model/LocationAreaUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationAreaUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationAreaUpdatedEvent', function() { + it('should create an instance of LocationAreaUpdatedEvent', function() { + // uncomment below and update the code to test LocationAreaUpdatedEvent + //var instane = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.LocationAreaUpdatedEvent); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaName (base name: "LocationAreaName")', function() { + // uncomment below and update the code to test the property LocationAreaName + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.LocationAreaUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocationAreaWithLocations.spec.js b/test/model/LocationAreaWithLocations.spec.js new file mode 100644 index 00000000..464075de --- /dev/null +++ b/test/model/LocationAreaWithLocations.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationAreaWithLocations(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationAreaWithLocations', function() { + it('should create an instance of LocationAreaWithLocations', function() { + // uncomment below and update the code to test LocationAreaWithLocations + //var instane = new Flipdish.LocationAreaWithLocations(); + //expect(instance).to.be.a(Flipdish.LocationAreaWithLocations); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.LocationAreaWithLocations(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.LocationAreaWithLocations(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaName (base name: "LocationAreaName")', function() { + // uncomment below and update the code to test the property LocationAreaName + //var instance = new Flipdish.LocationAreaWithLocations(); + //expect(instance).to.be(); + }); + + it('should have the property Locations (base name: "Locations")', function() { + // uncomment below and update the code to test the property Locations + //var instance = new Flipdish.LocationAreaWithLocations(); + //expect(instance).to.be(); + }); + + it('should have the property IsDeleted (base name: "IsDeleted")', function() { + // uncomment below and update the code to test the property IsDeleted + //var instance = new Flipdish.LocationAreaWithLocations(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocationCreatedEvent.spec.js b/test/model/LocationCreatedEvent.spec.js new file mode 100644 index 00000000..c8b8458a --- /dev/null +++ b/test/model/LocationCreatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationCreatedEvent', function() { + it('should create an instance of LocationCreatedEvent', function() { + // uncomment below and update the code to test LocationCreatedEvent + //var instane = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be.a(Flipdish.LocationCreatedEvent); + }); + + it('should have the property LocationId (base name: "LocationId")', function() { + // uncomment below and update the code to test the property LocationId + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LocationName (base name: "LocationName")', function() { + // uncomment below and update the code to test the property LocationName + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalLocationId (base name: "ExternalLocationId")', function() { + // uncomment below and update the code to test the property ExternalLocationId + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.LocationCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LocationDeletedEvent.spec.js b/test/model/LocationDeletedEvent.spec.js new file mode 100644 index 00000000..2e0160c7 --- /dev/null +++ b/test/model/LocationDeletedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LocationDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LocationDeletedEvent', function() { + it('should create an instance of LocationDeletedEvent', function() { + // uncomment below and update the code to test LocationDeletedEvent + //var instane = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be.a(Flipdish.LocationDeletedEvent); + }); + + it('should have the property LocationId (base name: "LocationId")', function() { + // uncomment below and update the code to test the property LocationId + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LocationName (base name: "LocationName")', function() { + // uncomment below and update the code to test the property LocationName + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalLocationId (base name: "ExternalLocationId")', function() { + // uncomment below and update the code to test the property ExternalLocationId + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.LocationDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoginModel.spec.js b/test/model/LoginModel.spec.js new file mode 100644 index 00000000..4298b619 --- /dev/null +++ b/test/model/LoginModel.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LoginModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoginModel', function() { + it('should create an instance of LoginModel', function() { + // uncomment below and update the code to test LoginModel + //var instane = new Flipdish.LoginModel(); + //expect(instance).to.be.a(Flipdish.LoginModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.LoginModel(); + //expect(instance).to.be(); + }); + + it('should have the property Password (base name: "Password")', function() { + // uncomment below and update the code to test the property Password + //var instance = new Flipdish.LoginModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoginWithPinModel.spec.js b/test/model/LoginWithPinModel.spec.js new file mode 100644 index 00000000..c65e7997 --- /dev/null +++ b/test/model/LoginWithPinModel.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LoginWithPinModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoginWithPinModel', function() { + it('should create an instance of LoginWithPinModel', function() { + // uncomment below and update the code to test LoginWithPinModel + //var instane = new Flipdish.LoginWithPinModel(); + //expect(instance).to.be.a(Flipdish.LoginWithPinModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.LoginWithPinModel(); + //expect(instance).to.be(); + }); + + it('should have the property Pin (base name: "Pin")', function() { + // uncomment below and update the code to test the property Pin + //var instance = new Flipdish.LoginWithPinModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoyaltyCampaign.spec.js b/test/model/LoyaltyCampaign.spec.js new file mode 100644 index 00000000..06157eb4 --- /dev/null +++ b/test/model/LoyaltyCampaign.spec.js @@ -0,0 +1,161 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaign(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoyaltyCampaign', function() { + it('should create an instance of LoyaltyCampaign', function() { + // uncomment below and update the code to test LoyaltyCampaign + //var instane = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be.a(Flipdish.LoyaltyCampaign); + }); + + it('should have the property CampaignId (base name: "CampaignId")', function() { + // uncomment below and update the code to test the property CampaignId + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property Statistics (base name: "Statistics")', function() { + // uncomment below and update the code to test the property Statistics + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property OrdersBeforeReceivingVoucher (base name: "OrdersBeforeReceivingVoucher")', function() { + // uncomment below and update the code to test the property OrdersBeforeReceivingVoucher + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // uncomment below and update the code to test the property PercentDiscountAmount + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property MaxDiscount (base name: "MaxDiscount")', function() { + // uncomment below and update the code to test the property MaxDiscount + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property RoundingStrategy (base name: "RoundingStrategy")', function() { + // uncomment below and update the code to test the property RoundingStrategy + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property ShouldIncludeOrdersWithLoyaltyVoucher (base name: "ShouldIncludeOrdersWithLoyaltyVoucher")', function() { + // uncomment below and update the code to test the property ShouldIncludeOrdersWithLoyaltyVoucher + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // uncomment below and update the code to test the property VoucherValidPeriodDays + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // uncomment below and update the code to test the property AutoApplyResultingVouchers + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // uncomment below and update the code to test the property IncludeExistingOrders + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.LoyaltyCampaign(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoyaltyCampaignBase.spec.js b/test/model/LoyaltyCampaignBase.spec.js new file mode 100644 index 00000000..588ba85a --- /dev/null +++ b/test/model/LoyaltyCampaignBase.spec.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoyaltyCampaignBase', function() { + it('should create an instance of LoyaltyCampaignBase', function() { + // uncomment below and update the code to test LoyaltyCampaignBase + //var instane = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be.a(Flipdish.LoyaltyCampaignBase); + }); + + it('should have the property OrdersBeforeReceivingVoucher (base name: "OrdersBeforeReceivingVoucher")', function() { + // uncomment below and update the code to test the property OrdersBeforeReceivingVoucher + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // uncomment below and update the code to test the property PercentDiscountAmount + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property MaxDiscount (base name: "MaxDiscount")', function() { + // uncomment below and update the code to test the property MaxDiscount + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property RoundingStrategy (base name: "RoundingStrategy")', function() { + // uncomment below and update the code to test the property RoundingStrategy + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property ShouldIncludeOrdersWithLoyaltyVoucher (base name: "ShouldIncludeOrdersWithLoyaltyVoucher")', function() { + // uncomment below and update the code to test the property ShouldIncludeOrdersWithLoyaltyVoucher + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // uncomment below and update the code to test the property VoucherValidPeriodDays + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // uncomment below and update the code to test the property AutoApplyResultingVouchers + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // uncomment below and update the code to test the property IncludeExistingOrders + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.LoyaltyCampaignBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoyaltyCampaignCreatedEvent.spec.js b/test/model/LoyaltyCampaignCreatedEvent.spec.js new file mode 100644 index 00000000..3d568c18 --- /dev/null +++ b/test/model/LoyaltyCampaignCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoyaltyCampaignCreatedEvent', function() { + it('should create an instance of LoyaltyCampaignCreatedEvent', function() { + // uncomment below and update the code to test LoyaltyCampaignCreatedEvent + //var instane = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be.a(Flipdish.LoyaltyCampaignCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LoyaltyCampaign (base name: "LoyaltyCampaign")', function() { + // uncomment below and update the code to test the property LoyaltyCampaign + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.LoyaltyCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoyaltyCampaignDeletedEvent.spec.js b/test/model/LoyaltyCampaignDeletedEvent.spec.js new file mode 100644 index 00000000..ea2da26c --- /dev/null +++ b/test/model/LoyaltyCampaignDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoyaltyCampaignDeletedEvent', function() { + it('should create an instance of LoyaltyCampaignDeletedEvent', function() { + // uncomment below and update the code to test LoyaltyCampaignDeletedEvent + //var instane = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be.a(Flipdish.LoyaltyCampaignDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LoyaltyCampaign (base name: "LoyaltyCampaign")', function() { + // uncomment below and update the code to test the property LoyaltyCampaign + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.LoyaltyCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LoyaltyCampaignUpdatedEvent.spec.js b/test/model/LoyaltyCampaignUpdatedEvent.spec.js new file mode 100644 index 00000000..359eeb71 --- /dev/null +++ b/test/model/LoyaltyCampaignUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LoyaltyCampaignUpdatedEvent', function() { + it('should create an instance of LoyaltyCampaignUpdatedEvent', function() { + // uncomment below and update the code to test LoyaltyCampaignUpdatedEvent + //var instane = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.LoyaltyCampaignUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LoyaltyCampaign (base name: "LoyaltyCampaign")', function() { + // uncomment below and update the code to test the property LoyaltyCampaign + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.LoyaltyCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LumpDiscountDetails.spec.js b/test/model/LumpDiscountDetails.spec.js new file mode 100644 index 00000000..5dffd78c --- /dev/null +++ b/test/model/LumpDiscountDetails.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.LumpDiscountDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LumpDiscountDetails', function() { + it('should create an instance of LumpDiscountDetails', function() { + // uncomment below and update the code to test LumpDiscountDetails + //var instane = new Flipdish.LumpDiscountDetails(); + //expect(instance).to.be.a(Flipdish.LumpDiscountDetails); + }); + + it('should have the property DiscountAmount (base name: "DiscountAmount")', function() { + // uncomment below and update the code to test the property DiscountAmount + //var instance = new Flipdish.LumpDiscountDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MappedLocation.spec.js b/test/model/MappedLocation.spec.js new file mode 100644 index 00000000..448a0af7 --- /dev/null +++ b/test/model/MappedLocation.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MappedLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MappedLocation', function() { + it('should create an instance of MappedLocation', function() { + // uncomment below and update the code to test MappedLocation + //var instane = new Flipdish.MappedLocation(); + //expect(instance).to.be.a(Flipdish.MappedLocation); + }); + + it('should have the property LocationId (base name: "LocationId")', function() { + // uncomment below and update the code to test the property LocationId + //var instance = new Flipdish.MappedLocation(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalLocationId (base name: "ExternalLocationId")', function() { + // uncomment below and update the code to test the property ExternalLocationId + //var instance = new Flipdish.MappedLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MaskedPhoneNumber.spec.js b/test/model/MaskedPhoneNumber.spec.js new file mode 100644 index 00000000..7caaa440 --- /dev/null +++ b/test/model/MaskedPhoneNumber.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MaskedPhoneNumber(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MaskedPhoneNumber', function() { + it('should create an instance of MaskedPhoneNumber', function() { + // uncomment below and update the code to test MaskedPhoneNumber + //var instane = new Flipdish.MaskedPhoneNumber(); + //expect(instance).to.be.a(Flipdish.MaskedPhoneNumber); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.MaskedPhoneNumber(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.MaskedPhoneNumber(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.MaskedPhoneNumber(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Menu.spec.js b/test/model/Menu.spec.js new file mode 100644 index 00000000..ad00ca80 --- /dev/null +++ b/test/model/Menu.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Menu(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Menu', function() { + it('should create an instance of Menu', function() { + // uncomment below and update the code to test Menu + //var instane = new Flipdish.Menu(); + //expect(instance).to.be.a(Flipdish.Menu); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property ModifiedTime (base name: "ModifiedTime")', function() { + // uncomment below and update the code to test the property ModifiedTime + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property VersionNumber (base name: "VersionNumber")', function() { + // uncomment below and update the code to test the property VersionNumber + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property Locked (base name: "Locked")', function() { + // uncomment below and update the code to test the property Locked + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSections (base name: "MenuSections")', function() { + // uncomment below and update the code to test the property MenuSections + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRates (base name: "TaxRates")', function() { + // uncomment below and update the code to test the property TaxRates + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property DisplaySectionLinks (base name: "DisplaySectionLinks")', function() { + // uncomment below and update the code to test the property DisplaySectionLinks + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { + // uncomment below and update the code to test the property MenuSectionBehaviour + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property TaxType (base name: "TaxType")', function() { + // uncomment below and update the code to test the property TaxType + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + it('should have the property IsIntegrated (base name: "IsIntegrated")', function() { + // uncomment below and update the code to test the property IsIntegrated + //var instance = new Flipdish.Menu(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuAsyncCreationCompletedEvent.spec.js b/test/model/MenuAsyncCreationCompletedEvent.spec.js new file mode 100644 index 00000000..e0bf7bd4 --- /dev/null +++ b/test/model/MenuAsyncCreationCompletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuAsyncCreationCompletedEvent', function() { + it('should create an instance of MenuAsyncCreationCompletedEvent', function() { + // uncomment below and update the code to test MenuAsyncCreationCompletedEvent + //var instane = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be.a(Flipdish.MenuAsyncCreationCompletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Menu (base name: "Menu")', function() { + // uncomment below and update the code to test the property Menu + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Success (base name: "Success")', function() { + // uncomment below and update the code to test the property Success + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuAsyncCreationCompletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuBase.spec.js b/test/model/MenuBase.spec.js new file mode 100644 index 00000000..ec2ca8c8 --- /dev/null +++ b/test/model/MenuBase.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuBase', function() { + it('should create an instance of MenuBase', function() { + // uncomment below and update the code to test MenuBase + //var instane = new Flipdish.MenuBase(); + //expect(instance).to.be.a(Flipdish.MenuBase); + }); + + it('should have the property DisplaySectionLinks (base name: "DisplaySectionLinks")', function() { + // uncomment below and update the code to test the property DisplaySectionLinks + //var instance = new Flipdish.MenuBase(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionBehaviour (base name: "MenuSectionBehaviour")', function() { + // uncomment below and update the code to test the property MenuSectionBehaviour + //var instance = new Flipdish.MenuBase(); + //expect(instance).to.be(); + }); + + it('should have the property TaxType (base name: "TaxType")', function() { + // uncomment below and update the code to test the property TaxType + //var instance = new Flipdish.MenuBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsIntegrated (base name: "IsIntegrated")', function() { + // uncomment below and update the code to test the property IsIntegrated + //var instance = new Flipdish.MenuBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuBulkEditEvent.spec.js b/test/model/MenuBulkEditEvent.spec.js new file mode 100644 index 00000000..fadd289d --- /dev/null +++ b/test/model/MenuBulkEditEvent.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuBulkEditEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuBulkEditEvent', function() { + it('should create an instance of MenuBulkEditEvent', function() { + // uncomment below and update the code to test MenuBulkEditEvent + //var instane = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be.a(Flipdish.MenuBulkEditEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuName (base name: "MenuName")', function() { + // uncomment below and update the code to test the property MenuName + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Item (base name: "Item")', function() { + // uncomment below and update the code to test the property Item + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property InstanceCount (base name: "InstanceCount")', function() { + // uncomment below and update the code to test the property InstanceCount + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuBulkEditEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuCatalogItem.spec.js b/test/model/MenuCatalogItem.spec.js new file mode 100644 index 00000000..137f6072 --- /dev/null +++ b/test/model/MenuCatalogItem.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuCatalogItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuCatalogItem', function() { + it('should create an instance of MenuCatalogItem', function() { + // uncomment below and update the code to test MenuCatalogItem + //var instane = new Flipdish.MenuCatalogItem(); + //expect(instance).to.be.a(Flipdish.MenuCatalogItem); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.MenuCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.MenuCatalogItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuCheckpoint.spec.js b/test/model/MenuCheckpoint.spec.js new file mode 100644 index 00000000..ef0287cd --- /dev/null +++ b/test/model/MenuCheckpoint.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuCheckpoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuCheckpoint', function() { + it('should create an instance of MenuCheckpoint', function() { + // uncomment below and update the code to test MenuCheckpoint + //var instane = new Flipdish.MenuCheckpoint(); + //expect(instance).to.be.a(Flipdish.MenuCheckpoint); + }); + + it('should have the property MenuCheckpointId (base name: "MenuCheckpointId")', function() { + // uncomment below and update the code to test the property MenuCheckpointId + //var instance = new Flipdish.MenuCheckpoint(); + //expect(instance).to.be(); + }); + + it('should have the property Time (base name: "Time")', function() { + // uncomment below and update the code to test the property Time + //var instance = new Flipdish.MenuCheckpoint(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuCheckpoint(); + //expect(instance).to.be(); + }); + + it('should have the property Url (base name: "Url")', function() { + // uncomment below and update the code to test the property Url + //var instance = new Flipdish.MenuCheckpoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuCheckpointCreatedEvent.spec.js b/test/model/MenuCheckpointCreatedEvent.spec.js new file mode 100644 index 00000000..d1621bea --- /dev/null +++ b/test/model/MenuCheckpointCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuCheckpointCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuCheckpointCreatedEvent', function() { + it('should create an instance of MenuCheckpointCreatedEvent', function() { + // uncomment below and update the code to test MenuCheckpointCreatedEvent + //var instane = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuCheckpointCreatedEvent); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Menu (base name: "Menu")', function() { + // uncomment below and update the code to test the property Menu + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuCheckpointCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuCreatedEvent.spec.js b/test/model/MenuCreatedEvent.spec.js new file mode 100644 index 00000000..f9ac864d --- /dev/null +++ b/test/model/MenuCreatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuCreatedEvent', function() { + it('should create an instance of MenuCreatedEvent', function() { + // uncomment below and update the code to test MenuCreatedEvent + //var instane = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Menu (base name: "Menu")', function() { + // uncomment below and update the code to test the property Menu + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuElementEditResponse.spec.js b/test/model/MenuElementEditResponse.spec.js new file mode 100644 index 00000000..d748fbef --- /dev/null +++ b/test/model/MenuElementEditResponse.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuElementEditResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuElementEditResponse', function() { + it('should create an instance of MenuElementEditResponse', function() { + // uncomment below and update the code to test MenuElementEditResponse + //var instane = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be.a(Flipdish.MenuElementEditResponse); + }); + + it('should have the property SectionName (base name: "SectionName")', function() { + // uncomment below and update the code to test the property SectionName + //var instance = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ItemName (base name: "ItemName")', function() { + // uncomment below and update the code to test the property ItemName + //var instance = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be(); + }); + + it('should have the property OptionSetName (base name: "OptionSetName")', function() { + // uncomment below and update the code to test the property OptionSetName + //var instance = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be(); + }); + + it('should have the property OptionSetItemName (base name: "OptionSetItemName")', function() { + // uncomment below and update the code to test the property OptionSetItemName + //var instance = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be(); + }); + + it('should have the property MenuElementId (base name: "MenuElementId")', function() { + // uncomment below and update the code to test the property MenuElementId + //var instance = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be(); + }); + + it('should have the property MenuElementType (base name: "MenuElementType")', function() { + // uncomment below and update the code to test the property MenuElementType + //var instance = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ValidationCode (base name: "ValidationCode")', function() { + // uncomment below and update the code to test the property ValidationCode + //var instance = new Flipdish.MenuElementEditResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuElementHide.spec.js b/test/model/MenuElementHide.spec.js new file mode 100644 index 00000000..d5500f1c --- /dev/null +++ b/test/model/MenuElementHide.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuElementHide(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuElementHide', function() { + it('should create an instance of MenuElementHide', function() { + // uncomment below and update the code to test MenuElementHide + //var instane = new Flipdish.MenuElementHide(); + //expect(instance).to.be.a(Flipdish.MenuElementHide); + }); + + it('should have the property MenuElementId (base name: "MenuElementId")', function() { + // uncomment below and update the code to test the property MenuElementId + //var instance = new Flipdish.MenuElementHide(); + //expect(instance).to.be(); + }); + + it('should have the property MenuElementType (base name: "MenuElementType")', function() { + // uncomment below and update the code to test the property MenuElementType + //var instance = new Flipdish.MenuElementHide(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuElementListItemResponse.spec.js b/test/model/MenuElementListItemResponse.spec.js new file mode 100644 index 00000000..0f921f8e --- /dev/null +++ b/test/model/MenuElementListItemResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuElementListItemResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuElementListItemResponse', function() { + it('should create an instance of MenuElementListItemResponse', function() { + // uncomment below and update the code to test MenuElementListItemResponse + //var instane = new Flipdish.MenuElementListItemResponse(); + //expect(instance).to.be.a(Flipdish.MenuElementListItemResponse); + }); + + it('should have the property MenuElementId (base name: "MenuElementId")', function() { + // uncomment below and update the code to test the property MenuElementId + //var instance = new Flipdish.MenuElementListItemResponse(); + //expect(instance).to.be(); + }); + + it('should have the property MenuElementType (base name: "MenuElementType")', function() { + // uncomment below and update the code to test the property MenuElementType + //var instance = new Flipdish.MenuElementListItemResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuElementListResponse.spec.js b/test/model/MenuElementListResponse.spec.js new file mode 100644 index 00000000..8b29ea91 --- /dev/null +++ b/test/model/MenuElementListResponse.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuElementListResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuElementListResponse', function() { + it('should create an instance of MenuElementListResponse', function() { + // uncomment below and update the code to test MenuElementListResponse + //var instane = new Flipdish.MenuElementListResponse(); + //expect(instance).to.be.a(Flipdish.MenuElementListResponse); + }); + + it('should have the property MenuName (base name: "MenuName")', function() { + // uncomment below and update the code to test the property MenuName + //var instance = new Flipdish.MenuElementListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property MenuElementName (base name: "MenuElementName")', function() { + // uncomment below and update the code to test the property MenuElementName + //var instance = new Flipdish.MenuElementListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property InstanceCount (base name: "InstanceCount")', function() { + // uncomment below and update the code to test the property InstanceCount + //var instance = new Flipdish.MenuElementListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuElementListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Items (base name: "Items")', function() { + // uncomment below and update the code to test the property Items + //var instance = new Flipdish.MenuElementListResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSet.spec.js b/test/model/MenuItemOptionSet.spec.js new file mode 100644 index 00000000..cb0d0bf0 --- /dev/null +++ b/test/model/MenuItemOptionSet.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSet(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSet', function() { + it('should create an instance of MenuItemOptionSet', function() { + // uncomment below and update the code to test MenuItemOptionSet + //var instane = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSet); + }); + + it('should have the property MenuItemOptionSetId (base name: "MenuItemOptionSetId")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetId + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItems (base name: "MenuItemOptionSetItems")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItems + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property IsMasterOptionSet (base name: "IsMasterOptionSet")', function() { + // uncomment below and update the code to test the property IsMasterOptionSet + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // uncomment below and update the code to test the property MinSelectCount + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // uncomment below and update the code to test the property MaxSelectCount + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.MenuItemOptionSet(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetBase.spec.js b/test/model/MenuItemOptionSetBase.spec.js new file mode 100644 index 00000000..f7c7821f --- /dev/null +++ b/test/model/MenuItemOptionSetBase.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetBase', function() { + it('should create an instance of MenuItemOptionSetBase', function() { + // uncomment below and update the code to test MenuItemOptionSetBase + //var instane = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsMasterOptionSet (base name: "IsMasterOptionSet")', function() { + // uncomment below and update the code to test the property IsMasterOptionSet + //var instance = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be(); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // uncomment below and update the code to test the property MinSelectCount + //var instance = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be(); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // uncomment below and update the code to test the property MaxSelectCount + //var instance = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuItemOptionSetBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetCreatedEvent.spec.js b/test/model/MenuItemOptionSetCreatedEvent.spec.js new file mode 100644 index 00000000..09ec680c --- /dev/null +++ b/test/model/MenuItemOptionSetCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetCreatedEvent', function() { + it('should create an instance of MenuItemOptionSetCreatedEvent', function() { + // uncomment below and update the code to test MenuItemOptionSetCreatedEvent + //var instane = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSet (base name: "MenuItemOptionSet")', function() { + // uncomment below and update the code to test the property MenuItemOptionSet + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuItemOptionSetCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetDeletedEvent.spec.js b/test/model/MenuItemOptionSetDeletedEvent.spec.js new file mode 100644 index 00000000..ba6740b4 --- /dev/null +++ b/test/model/MenuItemOptionSetDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetDeletedEvent', function() { + it('should create an instance of MenuItemOptionSetDeletedEvent', function() { + // uncomment below and update the code to test MenuItemOptionSetDeletedEvent + //var instane = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSet (base name: "MenuItemOptionSet")', function() { + // uncomment below and update the code to test the property MenuItemOptionSet + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuItemOptionSetDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetItem.spec.js b/test/model/MenuItemOptionSetItem.spec.js new file mode 100644 index 00000000..0bba345b --- /dev/null +++ b/test/model/MenuItemOptionSetItem.spec.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetItem', function() { + it('should create an instance of MenuItemOptionSetItem', function() { + // uncomment below and update the code to test MenuItemOptionSetItem + //var instane = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetItem); + }); + + it('should have the property MenuItemOptionSetItemId (base name: "MenuItemOptionSetItemId")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItemId + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property NextMenuItemOptionSetId (base name: "NextMenuItemOptionSetId")', function() { + // uncomment below and update the code to test the property NextMenuItemOptionSetId + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRateName (base name: "TaxRateName")', function() { + // uncomment below and update the code to test the property TaxRateName + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRateId (base name: "TaxRateId")', function() { + // uncomment below and update the code to test the property TaxRateId + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxValue (base name: "TaxValue")', function() { + // uncomment below and update the code to test the property TaxValue + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetItemBase.spec.js b/test/model/MenuItemOptionSetItemBase.spec.js new file mode 100644 index 00000000..9cd193ec --- /dev/null +++ b/test/model/MenuItemOptionSetItemBase.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItemBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetItemBase', function() { + it('should create an instance of MenuItemOptionSetItemBase', function() { + // uncomment below and update the code to test MenuItemOptionSetItemBase + //var instane = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuItemOptionSetItemBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetItemCreatedEvent.spec.js b/test/model/MenuItemOptionSetItemCreatedEvent.spec.js new file mode 100644 index 00000000..ed70d371 --- /dev/null +++ b/test/model/MenuItemOptionSetItemCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetItemCreatedEvent', function() { + it('should create an instance of MenuItemOptionSetItemCreatedEvent', function() { + // uncomment below and update the code to test MenuItemOptionSetItemCreatedEvent + //var instane = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItem (base name: "MenuItemOptionSetItem")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItem + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuItemOptionSetItemCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetItemDeletedEvent.spec.js b/test/model/MenuItemOptionSetItemDeletedEvent.spec.js new file mode 100644 index 00000000..24886c76 --- /dev/null +++ b/test/model/MenuItemOptionSetItemDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetItemDeletedEvent', function() { + it('should create an instance of MenuItemOptionSetItemDeletedEvent', function() { + // uncomment below and update the code to test MenuItemOptionSetItemDeletedEvent + //var instane = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItem (base name: "MenuItemOptionSetItem")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItem + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuItemOptionSetItemDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetItemUpdatedEvent.spec.js b/test/model/MenuItemOptionSetItemUpdatedEvent.spec.js new file mode 100644 index 00000000..d6a4a825 --- /dev/null +++ b/test/model/MenuItemOptionSetItemUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetItemUpdatedEvent', function() { + it('should create an instance of MenuItemOptionSetItemUpdatedEvent', function() { + // uncomment below and update the code to test MenuItemOptionSetItemUpdatedEvent + //var instane = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetItemUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItem (base name: "MenuItemOptionSetItem")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItem + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuItemOptionSetItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuItemOptionSetUpdatedEvent.spec.js b/test/model/MenuItemOptionSetUpdatedEvent.spec.js new file mode 100644 index 00000000..398aaf4a --- /dev/null +++ b/test/model/MenuItemOptionSetUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuItemOptionSetUpdatedEvent', function() { + it('should create an instance of MenuItemOptionSetUpdatedEvent', function() { + // uncomment below and update the code to test MenuItemOptionSetUpdatedEvent + //var instane = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuItemOptionSetUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSet (base name: "MenuItemOptionSet")', function() { + // uncomment below and update the code to test the property MenuItemOptionSet + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuItemOptionSetUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuNutritionInfoHeader.spec.js b/test/model/MenuNutritionInfoHeader.spec.js new file mode 100644 index 00000000..1593ff5f --- /dev/null +++ b/test/model/MenuNutritionInfoHeader.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuNutritionInfoHeader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuNutritionInfoHeader', function() { + it('should create an instance of MenuNutritionInfoHeader', function() { + // uncomment below and update the code to test MenuNutritionInfoHeader + //var instane = new Flipdish.MenuNutritionInfoHeader(); + //expect(instance).to.be.a(Flipdish.MenuNutritionInfoHeader); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuNutritionInfoHeader(); + //expect(instance).to.be(); + }); + + it('should have the property NutritionInfoVersionGuid (base name: "NutritionInfoVersionGuid")', function() { + // uncomment below and update the code to test the property NutritionInfoVersionGuid + //var instance = new Flipdish.MenuNutritionInfoHeader(); + //expect(instance).to.be(); + }); + + it('should have the property AbsoluteUrl (base name: "AbsoluteUrl")', function() { + // uncomment below and update the code to test the property AbsoluteUrl + //var instance = new Flipdish.MenuNutritionInfoHeader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuObjectDisplayOrders.spec.js b/test/model/MenuObjectDisplayOrders.spec.js new file mode 100644 index 00000000..787d4169 --- /dev/null +++ b/test/model/MenuObjectDisplayOrders.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuObjectDisplayOrders(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuObjectDisplayOrders', function() { + it('should create an instance of MenuObjectDisplayOrders', function() { + // uncomment below and update the code to test MenuObjectDisplayOrders + //var instane = new Flipdish.MenuObjectDisplayOrders(); + //expect(instance).to.be.a(Flipdish.MenuObjectDisplayOrders); + }); + + it('should have the property DisplayOrders (base name: "DisplayOrders")', function() { + // uncomment below and update the code to test the property DisplayOrders + //var instance = new Flipdish.MenuObjectDisplayOrders(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSection.spec.js b/test/model/MenuSection.spec.js new file mode 100644 index 00000000..20c2943d --- /dev/null +++ b/test/model/MenuSection.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSection(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSection', function() { + it('should create an instance of MenuSection', function() { + // uncomment below and update the code to test MenuSection + //var instane = new Flipdish.MenuSection(); + //expect(instance).to.be.a(Flipdish.MenuSection); + }); + + it('should have the property MenuSectionId (base name: "MenuSectionId")', function() { + // uncomment below and update the code to test the property MenuSectionId + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItems (base name: "MenuItems")', function() { + // uncomment below and update the code to test the property MenuItems + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionAvailability (base name: "MenuSectionAvailability")', function() { + // uncomment below and update the code to test the property MenuSectionAvailability + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property IsHiddenFromCustomers (base name: "IsHiddenFromCustomers")', function() { + // uncomment below and update the code to test the property IsHiddenFromCustomers + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuSection(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionAvailability.spec.js b/test/model/MenuSectionAvailability.spec.js new file mode 100644 index 00000000..af309ea7 --- /dev/null +++ b/test/model/MenuSectionAvailability.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionAvailability(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionAvailability', function() { + it('should create an instance of MenuSectionAvailability', function() { + // uncomment below and update the code to test MenuSectionAvailability + //var instane = new Flipdish.MenuSectionAvailability(); + //expect(instance).to.be.a(Flipdish.MenuSectionAvailability); + }); + + it('should have the property AvailableTimes (base name: "AvailableTimes")', function() { + // uncomment below and update the code to test the property AvailableTimes + //var instance = new Flipdish.MenuSectionAvailability(); + //expect(instance).to.be(); + }); + + it('should have the property AvailabilityMode (base name: "AvailabilityMode")', function() { + // uncomment below and update the code to test the property AvailabilityMode + //var instance = new Flipdish.MenuSectionAvailability(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionAvailabilityBase.spec.js b/test/model/MenuSectionAvailabilityBase.spec.js new file mode 100644 index 00000000..acf31b14 --- /dev/null +++ b/test/model/MenuSectionAvailabilityBase.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionAvailabilityBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionAvailabilityBase', function() { + it('should create an instance of MenuSectionAvailabilityBase', function() { + // uncomment below and update the code to test MenuSectionAvailabilityBase + //var instane = new Flipdish.MenuSectionAvailabilityBase(); + //expect(instance).to.be.a(Flipdish.MenuSectionAvailabilityBase); + }); + + it('should have the property AvailabilityMode (base name: "AvailabilityMode")', function() { + // uncomment below and update the code to test the property AvailabilityMode + //var instance = new Flipdish.MenuSectionAvailabilityBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionBase.spec.js b/test/model/MenuSectionBase.spec.js new file mode 100644 index 00000000..1bb820b6 --- /dev/null +++ b/test/model/MenuSectionBase.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionBase', function() { + it('should create an instance of MenuSectionBase', function() { + // uncomment below and update the code to test MenuSectionBase + //var instane = new Flipdish.MenuSectionBase(); + //expect(instance).to.be.a(Flipdish.MenuSectionBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsHiddenFromCustomers (base name: "IsHiddenFromCustomers")', function() { + // uncomment below and update the code to test the property IsHiddenFromCustomers + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionId (base name: "MenuSectionId")', function() { + // uncomment below and update the code to test the property MenuSectionId + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuSectionBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionCreatedEvent.spec.js b/test/model/MenuSectionCreatedEvent.spec.js new file mode 100644 index 00000000..b9166d9c --- /dev/null +++ b/test/model/MenuSectionCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionCreatedEvent', function() { + it('should create an instance of MenuSectionCreatedEvent', function() { + // uncomment below and update the code to test MenuSectionCreatedEvent + //var instane = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuSectionCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSection (base name: "MenuSection")', function() { + // uncomment below and update the code to test the property MenuSection + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuSectionCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionDeletedEvent.spec.js b/test/model/MenuSectionDeletedEvent.spec.js new file mode 100644 index 00000000..9aab7ca3 --- /dev/null +++ b/test/model/MenuSectionDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionDeletedEvent', function() { + it('should create an instance of MenuSectionDeletedEvent', function() { + // uncomment below and update the code to test MenuSectionDeletedEvent + //var instane = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be.a(Flipdish.MenuSectionDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSection (base name: "MenuSection")', function() { + // uncomment below and update the code to test the property MenuSection + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuSectionDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionItem.spec.js b/test/model/MenuSectionItem.spec.js new file mode 100644 index 00000000..baf13896 --- /dev/null +++ b/test/model/MenuSectionItem.spec.js @@ -0,0 +1,197 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionItem', function() { + it('should create an instance of MenuSectionItem', function() { + // uncomment below and update the code to test MenuSectionItem + //var instane = new Flipdish.MenuSectionItem(); + //expect(instance).to.be.a(Flipdish.MenuSectionItem); + }); + + it('should have the property ActualPrice (base name: "ActualPrice")', function() { + // uncomment below and update the code to test the property ActualPrice + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSets (base name: "MenuItemOptionSets")', function() { + // uncomment below and update the code to test the property MenuItemOptionSets + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property DailySpecialHours (base name: "DailySpecialHours")', function() { + // uncomment below and update the code to test the property DailySpecialHours + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRateName (base name: "TaxRateName")', function() { + // uncomment below and update the code to test the property TaxRateName + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRateId (base name: "TaxRateId")', function() { + // uncomment below and update the code to test the property TaxRateId + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxValue (base name: "TaxValue")', function() { + // uncomment below and update the code to test the property TaxValue + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property ExcludeFromVoucherDiscounting (base name: "ExcludeFromVoucherDiscounting")', function() { + // uncomment below and update the code to test the property ExcludeFromVoucherDiscounting + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property SpicinessRating (base name: "SpicinessRating")', function() { + // uncomment below and update the code to test the property SpicinessRating + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property DisableVouchers (base name: "DisableVouchers")', function() { + // uncomment below and update the code to test the property DisableVouchers + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemId (base name: "MenuItemId")', function() { + // uncomment below and update the code to test the property MenuItemId + //var instance = new Flipdish.MenuSectionItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionItemBase.spec.js b/test/model/MenuSectionItemBase.spec.js new file mode 100644 index 00000000..103acb66 --- /dev/null +++ b/test/model/MenuSectionItemBase.spec.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionItemBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionItemBase', function() { + it('should create an instance of MenuSectionItemBase', function() { + // uncomment below and update the code to test MenuSectionItemBase + //var instane = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be.a(Flipdish.MenuSectionItemBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property SpicinessRating (base name: "SpicinessRating")', function() { + // uncomment below and update the code to test the property SpicinessRating + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property CellLayoutType (base name: "CellLayoutType")', function() { + // uncomment below and update the code to test the property CellLayoutType + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property DisableVouchers (base name: "DisableVouchers")', function() { + // uncomment below and update the code to test the property DisableVouchers + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemId (base name: "MenuItemId")', function() { + // uncomment below and update the code to test the property MenuItemId + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property ExcludeFromVoucherDiscounting (base name: "ExcludeFromVoucherDiscounting")', function() { + // uncomment below and update the code to test the property ExcludeFromVoucherDiscounting + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.MenuSectionItemBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionItemCreatedEvent.spec.js b/test/model/MenuSectionItemCreatedEvent.spec.js new file mode 100644 index 00000000..f5497e9b --- /dev/null +++ b/test/model/MenuSectionItemCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionItemCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionItemCreatedEvent', function() { + it('should create an instance of MenuSectionItemCreatedEvent', function() { + // uncomment below and update the code to test MenuSectionItemCreatedEvent + //var instane = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuSectionItemCreatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionItem (base name: "MenuSectionItem")', function() { + // uncomment below and update the code to test the property MenuSectionItem + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuSectionItemCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionItemDeletedEvent.spec.js b/test/model/MenuSectionItemDeletedEvent.spec.js new file mode 100644 index 00000000..97bd3265 --- /dev/null +++ b/test/model/MenuSectionItemDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionItemDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionItemDeletedEvent', function() { + it('should create an instance of MenuSectionItemDeletedEvent', function() { + // uncomment below and update the code to test MenuSectionItemDeletedEvent + //var instane = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be.a(Flipdish.MenuSectionItemDeletedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionItem (base name: "MenuSectionItem")', function() { + // uncomment below and update the code to test the property MenuSectionItem + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuSectionItemDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionItemUpdatedEvent.spec.js b/test/model/MenuSectionItemUpdatedEvent.spec.js new file mode 100644 index 00000000..d85b002c --- /dev/null +++ b/test/model/MenuSectionItemUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionItemUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionItemUpdatedEvent', function() { + it('should create an instance of MenuSectionItemUpdatedEvent', function() { + // uncomment below and update the code to test MenuSectionItemUpdatedEvent + //var instane = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuSectionItemUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionItem (base name: "MenuSectionItem")', function() { + // uncomment below and update the code to test the property MenuSectionItem + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuSectionItemUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSectionUpdatedEvent.spec.js b/test/model/MenuSectionUpdatedEvent.spec.js new file mode 100644 index 00000000..383008c0 --- /dev/null +++ b/test/model/MenuSectionUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSectionUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSectionUpdatedEvent', function() { + it('should create an instance of MenuSectionUpdatedEvent', function() { + // uncomment below and update the code to test MenuSectionUpdatedEvent + //var instane = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuSectionUpdatedEvent); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSection (base name: "MenuSection")', function() { + // uncomment below and update the code to test the property MenuSection + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuSectionUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuStoreNames.spec.js b/test/model/MenuStoreNames.spec.js new file mode 100644 index 00000000..63d266e9 --- /dev/null +++ b/test/model/MenuStoreNames.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuStoreNames(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuStoreNames', function() { + it('should create an instance of MenuStoreNames', function() { + // uncomment below and update the code to test MenuStoreNames + //var instane = new Flipdish.MenuStoreNames(); + //expect(instance).to.be.a(Flipdish.MenuStoreNames); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.MenuStoreNames(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuSummary.spec.js b/test/model/MenuSummary.spec.js new file mode 100644 index 00000000..132f3fe4 --- /dev/null +++ b/test/model/MenuSummary.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuSummary', function() { + it('should create an instance of MenuSummary', function() { + // uncomment below and update the code to test MenuSummary + //var instane = new Flipdish.MenuSummary(); + //expect(instance).to.be.a(Flipdish.MenuSummary); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + it('should have the property ModifiedTime (base name: "ModifiedTime")', function() { + // uncomment below and update the code to test the property ModifiedTime + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + it('should have the property VersionNumber (base name: "VersionNumber")', function() { + // uncomment below and update the code to test the property VersionNumber + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + it('should have the property MenuUrl (base name: "MenuUrl")', function() { + // uncomment below and update the code to test the property MenuUrl + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Locked (base name: "Locked")', function() { + // uncomment below and update the code to test the property Locked + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + it('should have the property IsIntegrated (base name: "IsIntegrated")', function() { + // uncomment below and update the code to test the property IsIntegrated + //var instance = new Flipdish.MenuSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuTaxDetails.spec.js b/test/model/MenuTaxDetails.spec.js new file mode 100644 index 00000000..ab4d7da0 --- /dev/null +++ b/test/model/MenuTaxDetails.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuTaxDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuTaxDetails', function() { + it('should create an instance of MenuTaxDetails', function() { + // uncomment below and update the code to test MenuTaxDetails + //var instane = new Flipdish.MenuTaxDetails(); + //expect(instance).to.be.a(Flipdish.MenuTaxDetails); + }); + + it('should have the property TaxRates (base name: "TaxRates")', function() { + // uncomment below and update the code to test the property TaxRates + //var instance = new Flipdish.MenuTaxDetails(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayTax (base name: "DisplayTax")', function() { + // uncomment below and update the code to test the property DisplayTax + //var instance = new Flipdish.MenuTaxDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TaxType (base name: "TaxType")', function() { + // uncomment below and update the code to test the property TaxType + //var instance = new Flipdish.MenuTaxDetails(); + //expect(instance).to.be(); + }); + + it('should have the property ItemTaxes (base name: "ItemTaxes")', function() { + // uncomment below and update the code to test the property ItemTaxes + //var instance = new Flipdish.MenuTaxDetails(); + //expect(instance).to.be(); + }); + + it('should have the property SetItemTaxes (base name: "SetItemTaxes")', function() { + // uncomment below and update the code to test the property SetItemTaxes + //var instance = new Flipdish.MenuTaxDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuTaxRate.spec.js b/test/model/MenuTaxRate.spec.js new file mode 100644 index 00000000..159c24b0 --- /dev/null +++ b/test/model/MenuTaxRate.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuTaxRate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuTaxRate', function() { + it('should create an instance of MenuTaxRate', function() { + // uncomment below and update the code to test MenuTaxRate + //var instane = new Flipdish.MenuTaxRate(); + //expect(instance).to.be.a(Flipdish.MenuTaxRate); + }); + + it('should have the property TaxRateId (base name: "TaxRateId")', function() { + // uncomment below and update the code to test the property TaxRateId + //var instance = new Flipdish.MenuTaxRate(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuTaxRate(); + //expect(instance).to.be(); + }); + + it('should have the property Rate (base name: "Rate")', function() { + // uncomment below and update the code to test the property Rate + //var instance = new Flipdish.MenuTaxRate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuUpdatedEvent.spec.js b/test/model/MenuUpdatedEvent.spec.js new file mode 100644 index 00000000..96358c52 --- /dev/null +++ b/test/model/MenuUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuUpdatedEvent', function() { + it('should create an instance of MenuUpdatedEvent', function() { + // uncomment below and update the code to test MenuUpdatedEvent + //var instane = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.MenuUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Menu (base name: "Menu")', function() { + // uncomment below and update the code to test the property Menu + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuUploadedEvent.spec.js b/test/model/MenuUploadedEvent.spec.js new file mode 100644 index 00000000..a2ebf3b2 --- /dev/null +++ b/test/model/MenuUploadedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuUploadedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuUploadedEvent', function() { + it('should create an instance of MenuUploadedEvent', function() { + // uncomment below and update the code to test MenuUploadedEvent + //var instane = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be.a(Flipdish.MenuUploadedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Menu (base name: "Menu")', function() { + // uncomment below and update the code to test the property Menu + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property InstanceEventCount (base name: "InstanceEventCount")', function() { + // uncomment below and update the code to test the property InstanceEventCount + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MenuUploadedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MenuZone.spec.js b/test/model/MenuZone.spec.js new file mode 100644 index 00000000..47047d6a --- /dev/null +++ b/test/model/MenuZone.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MenuZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MenuZone', function() { + it('should create an instance of MenuZone', function() { + // uncomment below and update the code to test MenuZone + //var instane = new Flipdish.MenuZone(); + //expect(instance).to.be.a(Flipdish.MenuZone); + }); + + it('should have the property MenuZoneId (base name: "MenuZoneId")', function() { + // uncomment below and update the code to test the property MenuZoneId + //var instance = new Flipdish.MenuZone(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.MenuZone(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MenuZone(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MenuZone(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.MenuZone(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.MenuZone(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.MenuZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Metadata.spec.js b/test/model/Metadata.spec.js new file mode 100644 index 00000000..fc26da04 --- /dev/null +++ b/test/model/Metadata.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Metadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Metadata', function() { + it('should create an instance of Metadata', function() { + // uncomment below and update the code to test Metadata + //var instane = new Flipdish.Metadata(); + //expect(instance).to.be.a(Flipdish.Metadata); + }); + + it('should have the property MenuEntityId (base name: "MenuEntityId")', function() { + // uncomment below and update the code to test the property MenuEntityId + //var instance = new Flipdish.Metadata(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.Metadata(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.Metadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Metafield.spec.js b/test/model/Metafield.spec.js new file mode 100644 index 00000000..e5a961be --- /dev/null +++ b/test/model/Metafield.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Metafield(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Metafield', function() { + it('should create an instance of Metafield', function() { + // uncomment below and update the code to test Metafield + //var instane = new Flipdish.Metafield(); + //expect(instance).to.be.a(Flipdish.Metafield); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.Metafield(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.Metafield(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MetafieldDefinition.spec.js b/test/model/MetafieldDefinition.spec.js new file mode 100644 index 00000000..f09df101 --- /dev/null +++ b/test/model/MetafieldDefinition.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MetafieldDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MetafieldDefinition', function() { + it('should create an instance of MetafieldDefinition', function() { + // uncomment below and update the code to test MetafieldDefinition + //var instane = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be.a(Flipdish.MetafieldDefinition); + }); + + it('should have the property IsReadOnly (base name: "IsReadOnly")', function() { + // uncomment below and update the code to test the property IsReadOnly + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property OwnerEntity (base name: "OwnerEntity")', function() { + // uncomment below and update the code to test the property OwnerEntity + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property ValueType (base name: "ValueType")', function() { + // uncomment below and update the code to test the property ValueType + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Behaviors (base name: "Behaviors")', function() { + // uncomment below and update the code to test the property Behaviors + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property MetafieldDefinitionRecommendationId (base name: "MetafieldDefinitionRecommendationId")', function() { + // uncomment below and update the code to test the property MetafieldDefinitionRecommendationId + //var instance = new Flipdish.MetafieldDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MetafieldDefinitionRecommendation.spec.js b/test/model/MetafieldDefinitionRecommendation.spec.js new file mode 100644 index 00000000..1635c38c --- /dev/null +++ b/test/model/MetafieldDefinitionRecommendation.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MetafieldDefinitionRecommendation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MetafieldDefinitionRecommendation', function() { + it('should create an instance of MetafieldDefinitionRecommendation', function() { + // uncomment below and update the code to test MetafieldDefinitionRecommendation + //var instane = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be.a(Flipdish.MetafieldDefinitionRecommendation); + }); + + it('should have the property OwnerEntity (base name: "OwnerEntity")', function() { + // uncomment below and update the code to test the property OwnerEntity + //var instance = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property ValueType (base name: "ValueType")', function() { + // uncomment below and update the code to test the property ValueType + //var instance = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property Behaviors (base name: "Behaviors")', function() { + // uncomment below and update the code to test the property Behaviors + //var instance = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property MetafieldDefinitionRecommendationId (base name: "MetafieldDefinitionRecommendationId")', function() { + // uncomment below and update the code to test the property MetafieldDefinitionRecommendationId + //var instance = new Flipdish.MetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MobileAppsImage.spec.js b/test/model/MobileAppsImage.spec.js new file mode 100644 index 00000000..d540c558 --- /dev/null +++ b/test/model/MobileAppsImage.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsImage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsImage', function() { + it('should create an instance of MobileAppsImage', function() { + // uncomment below and update the code to test MobileAppsImage + //var instane = new Flipdish.MobileAppsImage(); + //expect(instance).to.be.a(Flipdish.MobileAppsImage); + }); + + it('should have the property ImageUri (base name: "ImageUri")', function() { + // uncomment below and update the code to test the property ImageUri + //var instance = new Flipdish.MobileAppsImage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MobileAppsStatistics.spec.js b/test/model/MobileAppsStatistics.spec.js new file mode 100644 index 00000000..a49f1b94 --- /dev/null +++ b/test/model/MobileAppsStatistics.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsStatistics', function() { + it('should create an instance of MobileAppsStatistics', function() { + // uncomment below and update the code to test MobileAppsStatistics + //var instane = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be.a(Flipdish.MobileAppsStatistics); + }); + + it('should have the property NumberDownload (base name: "NumberDownload")', function() { + // uncomment below and update the code to test the property NumberDownload + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property CurrentRate (base name: "CurrentRate")', function() { + // uncomment below and update the code to test the property CurrentRate + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property CurrentVersion (base name: "CurrentVersion")', function() { + // uncomment below and update the code to test the property CurrentVersion + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property PlayStoreLink (base name: "PlayStoreLink")', function() { + // uncomment below and update the code to test the property PlayStoreLink + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property AppBundleId (base name: "AppBundleId")', function() { + // uncomment below and update the code to test the property AppBundleId + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property LastUpdated (base name: "LastUpdated")', function() { + // uncomment below and update the code to test the property LastUpdated + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property Notes (base name: "Notes")', function() { + // uncomment below and update the code to test the property Notes + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property Published (base name: "Published")', function() { + // uncomment below and update the code to test the property Published + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property PlatformType (base name: "PlatformType")', function() { + // uncomment below and update the code to test the property PlatformType + //var instance = new Flipdish.MobileAppsStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MobileAppsSubmission.spec.js b/test/model/MobileAppsSubmission.spec.js new file mode 100644 index 00000000..8753779f --- /dev/null +++ b/test/model/MobileAppsSubmission.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsSubmission(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsSubmission', function() { + it('should create an instance of MobileAppsSubmission', function() { + // uncomment below and update the code to test MobileAppsSubmission + //var instane = new Flipdish.MobileAppsSubmission(); + //expect(instance).to.be.a(Flipdish.MobileAppsSubmission); + }); + + it('should have the property SubmissionId (base name: "SubmissionId")', function() { + // uncomment below and update the code to test the property SubmissionId + //var instance = new Flipdish.MobileAppsSubmission(); + //expect(instance).to.be(); + }); + + it('should have the property AppName (base name: "AppName")', function() { + // uncomment below and update the code to test the property AppName + //var instance = new Flipdish.MobileAppsSubmission(); + //expect(instance).to.be(); + }); + + it('should have the property AppDescription (base name: "AppDescription")', function() { + // uncomment below and update the code to test the property AppDescription + //var instance = new Flipdish.MobileAppsSubmission(); + //expect(instance).to.be(); + }); + + it('should have the property AppShortDescription (base name: "AppShortDescription")', function() { + // uncomment below and update the code to test the property AppShortDescription + //var instance = new Flipdish.MobileAppsSubmission(); + //expect(instance).to.be(); + }); + + it('should have the property Keywords (base name: "Keywords")', function() { + // uncomment below and update the code to test the property Keywords + //var instance = new Flipdish.MobileAppsSubmission(); + //expect(instance).to.be(); + }); + + it('should have the property AutoPublish (base name: "AutoPublish")', function() { + // uncomment below and update the code to test the property AutoPublish + //var instance = new Flipdish.MobileAppsSubmission(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MobileAppsSubmissionDetails.spec.js b/test/model/MobileAppsSubmissionDetails.spec.js new file mode 100644 index 00000000..24f24b2c --- /dev/null +++ b/test/model/MobileAppsSubmissionDetails.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsSubmissionDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsSubmissionDetails', function() { + it('should create an instance of MobileAppsSubmissionDetails', function() { + // uncomment below and update the code to test MobileAppsSubmissionDetails + //var instane = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be.a(Flipdish.MobileAppsSubmissionDetails); + }); + + it('should have the property MobileAppsSubmissionId (base name: "MobileAppsSubmissionId")', function() { + // uncomment below and update the code to test the property MobileAppsSubmissionId + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property AppName (base name: "AppName")', function() { + // uncomment below and update the code to test the property AppName + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property AppDescription (base name: "AppDescription")', function() { + // uncomment below and update the code to test the property AppDescription + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property AppShortDescription (base name: "AppShortDescription")', function() { + // uncomment below and update the code to test the property AppShortDescription + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Keywords (base name: "Keywords")', function() { + // uncomment below and update the code to test the property Keywords + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property AppLogoUrl (base name: "AppLogoUrl")', function() { + // uncomment below and update the code to test the property AppLogoUrl + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property AutoPublish (base name: "AutoPublish")', function() { + // uncomment below and update the code to test the property AutoPublish + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.MobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MobileAppsSubmissionStatus.spec.js b/test/model/MobileAppsSubmissionStatus.spec.js new file mode 100644 index 00000000..5c0f532f --- /dev/null +++ b/test/model/MobileAppsSubmissionStatus.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsSubmissionStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsSubmissionStatus', function() { + it('should create an instance of MobileAppsSubmissionStatus', function() { + // uncomment below and update the code to test MobileAppsSubmissionStatus + //var instane = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be.a(Flipdish.MobileAppsSubmissionStatus); + }); + + it('should have the property MobileAppsSubmissionStatusId (base name: "MobileAppsSubmissionStatusId")', function() { + // uncomment below and update the code to test the property MobileAppsSubmissionStatusId + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property MobileAppsSubmissionId (base name: "MobileAppsSubmissionId")', function() { + // uncomment below and update the code to test the property MobileAppsSubmissionId + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property AppStatus (base name: "AppStatus")', function() { + // uncomment below and update the code to test the property AppStatus + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property UpdateStatus (base name: "UpdateStatus")', function() { + // uncomment below and update the code to test the property UpdateStatus + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property LastUpdateStatusTime (base name: "LastUpdateStatusTime")', function() { + // uncomment below and update the code to test the property LastUpdateStatusTime + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property UpdateTime (base name: "UpdateTime")', function() { + // uncomment below and update the code to test the property UpdateTime + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property Notes (base name: "Notes")', function() { + // uncomment below and update the code to test the property Notes + //var instance = new Flipdish.MobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MobileAppsSubmissionStatusUpdatedEvent.spec.js b/test/model/MobileAppsSubmissionStatusUpdatedEvent.spec.js new file mode 100644 index 00000000..9104786b --- /dev/null +++ b/test/model/MobileAppsSubmissionStatusUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsSubmissionStatusUpdatedEvent', function() { + it('should create an instance of MobileAppsSubmissionStatusUpdatedEvent', function() { + // uncomment below and update the code to test MobileAppsSubmissionStatusUpdatedEvent + //var instane = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.MobileAppsSubmissionStatusUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MobileAppsSubmissionStatus (base name: "MobileAppsSubmissionStatus")', function() { + // uncomment below and update the code to test the property MobileAppsSubmissionStatus + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MobileAppsSubmissionStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MobileAppsSubmissionUpdatedEvent.spec.js b/test/model/MobileAppsSubmissionUpdatedEvent.spec.js new file mode 100644 index 00000000..afd62a7e --- /dev/null +++ b/test/model/MobileAppsSubmissionUpdatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MobileAppsSubmissionUpdatedEvent', function() { + it('should create an instance of MobileAppsSubmissionUpdatedEvent', function() { + // uncomment below and update the code to test MobileAppsSubmissionUpdatedEvent + //var instane = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.MobileAppsSubmissionUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.MobileAppsSubmissionUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NextStatusWithOrderType.spec.js b/test/model/NextStatusWithOrderType.spec.js new file mode 100644 index 00000000..213aea3c --- /dev/null +++ b/test/model/NextStatusWithOrderType.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NextStatusWithOrderType(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NextStatusWithOrderType', function() { + it('should create an instance of NextStatusWithOrderType', function() { + // uncomment below and update the code to test NextStatusWithOrderType + //var instane = new Flipdish.NextStatusWithOrderType(); + //expect(instance).to.be.a(Flipdish.NextStatusWithOrderType); + }); + + it('should have the property OrderType (base name: "OrderType")', function() { + // uncomment below and update the code to test the property OrderType + //var instance = new Flipdish.NextStatusWithOrderType(); + //expect(instance).to.be(); + }); + + it('should have the property NextStatus (base name: "NextStatus")', function() { + // uncomment below and update the code to test the property NextStatus + //var instance = new Flipdish.NextStatusWithOrderType(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfo.spec.js b/test/model/NutritionInfo.spec.js new file mode 100644 index 00000000..6c19b76f --- /dev/null +++ b/test/model/NutritionInfo.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfo', function() { + it('should create an instance of NutritionInfo', function() { + // uncomment below and update the code to test NutritionInfo + //var instane = new Flipdish.NutritionInfo(); + //expect(instance).to.be.a(Flipdish.NutritionInfo); + }); + + it('should have the property Version (base name: "Version")', function() { + // uncomment below and update the code to test the property Version + //var instance = new Flipdish.NutritionInfo(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItems (base name: "MenuItems")', function() { + // uncomment below and update the code to test the property MenuItems + //var instance = new Flipdish.NutritionInfo(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItems (base name: "MenuItemOptionSetItems")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItems + //var instance = new Flipdish.NutritionInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfoItemAddUpdateLabelModel.spec.js b/test/model/NutritionInfoItemAddUpdateLabelModel.spec.js new file mode 100644 index 00000000..f09ee249 --- /dev/null +++ b/test/model/NutritionInfoItemAddUpdateLabelModel.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfoItemAddUpdateLabelModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfoItemAddUpdateLabelModel', function() { + it('should create an instance of NutritionInfoItemAddUpdateLabelModel', function() { + // uncomment below and update the code to test NutritionInfoItemAddUpdateLabelModel + //var instane = new Flipdish.NutritionInfoItemAddUpdateLabelModel(); + //expect(instance).to.be.a(Flipdish.NutritionInfoItemAddUpdateLabelModel); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.NutritionInfoItemAddUpdateLabelModel(); + //expect(instance).to.be(); + }); + + it('should have the property Values (base name: "Values")', function() { + // uncomment below and update the code to test the property Values + //var instance = new Flipdish.NutritionInfoItemAddUpdateLabelModel(); + //expect(instance).to.be(); + }); + + it('should have the property IconUrl (base name: "IconUrl")', function() { + // uncomment below and update the code to test the property IconUrl + //var instance = new Flipdish.NutritionInfoItemAddUpdateLabelModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfoLabel.spec.js b/test/model/NutritionInfoLabel.spec.js new file mode 100644 index 00000000..06ad9cbe --- /dev/null +++ b/test/model/NutritionInfoLabel.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfoLabel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfoLabel', function() { + it('should create an instance of NutritionInfoLabel', function() { + // uncomment below and update the code to test NutritionInfoLabel + //var instane = new Flipdish.NutritionInfoLabel(); + //expect(instance).to.be.a(Flipdish.NutritionInfoLabel); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.NutritionInfoLabel(); + //expect(instance).to.be(); + }); + + it('should have the property Values (base name: "Values")', function() { + // uncomment below and update the code to test the property Values + //var instance = new Flipdish.NutritionInfoLabel(); + //expect(instance).to.be(); + }); + + it('should have the property IconUrl (base name: "IconUrl")', function() { + // uncomment below and update the code to test the property IconUrl + //var instance = new Flipdish.NutritionInfoLabel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfoMenuItem.spec.js b/test/model/NutritionInfoMenuItem.spec.js new file mode 100644 index 00000000..8669f7f7 --- /dev/null +++ b/test/model/NutritionInfoMenuItem.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfoMenuItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfoMenuItem', function() { + it('should create an instance of NutritionInfoMenuItem', function() { + // uncomment below and update the code to test NutritionInfoMenuItem + //var instane = new Flipdish.NutritionInfoMenuItem(); + //expect(instance).to.be.a(Flipdish.NutritionInfoMenuItem); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.NutritionInfoMenuItem(); + //expect(instance).to.be(); + }); + + it('should have the property Labels (base name: "Labels")', function() { + // uncomment below and update the code to test the property Labels + //var instance = new Flipdish.NutritionInfoMenuItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfoMenuOptionSetItem.spec.js b/test/model/NutritionInfoMenuOptionSetItem.spec.js new file mode 100644 index 00000000..6a858360 --- /dev/null +++ b/test/model/NutritionInfoMenuOptionSetItem.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfoMenuOptionSetItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfoMenuOptionSetItem', function() { + it('should create an instance of NutritionInfoMenuOptionSetItem', function() { + // uncomment below and update the code to test NutritionInfoMenuOptionSetItem + //var instane = new Flipdish.NutritionInfoMenuOptionSetItem(); + //expect(instance).to.be.a(Flipdish.NutritionInfoMenuOptionSetItem); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.NutritionInfoMenuOptionSetItem(); + //expect(instance).to.be(); + }); + + it('should have the property Labels (base name: "Labels")', function() { + // uncomment below and update the code to test the property Labels + //var instance = new Flipdish.NutritionInfoMenuOptionSetItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfoV2.spec.js b/test/model/NutritionInfoV2.spec.js new file mode 100644 index 00000000..f92b65ee --- /dev/null +++ b/test/model/NutritionInfoV2.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfoV2(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfoV2', function() { + it('should create an instance of NutritionInfoV2', function() { + // uncomment below and update the code to test NutritionInfoV2 + //var instane = new Flipdish.NutritionInfoV2(); + //expect(instance).to.be.a(Flipdish.NutritionInfoV2); + }); + + it('should have the property MenuItems (base name: "MenuItems")', function() { + // uncomment below and update the code to test the property MenuItems + //var instance = new Flipdish.NutritionInfoV2(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetItems (base name: "MenuItemOptionSetItems")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetItems + //var instance = new Flipdish.NutritionInfoV2(); + //expect(instance).to.be(); + }); + + it('should have the property ImageBaseUrl (base name: "ImageBaseUrl")', function() { + // uncomment below and update the code to test the property ImageBaseUrl + //var instance = new Flipdish.NutritionInfoV2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfoV2Allergen.spec.js b/test/model/NutritionInfoV2Allergen.spec.js new file mode 100644 index 00000000..cb9c6558 --- /dev/null +++ b/test/model/NutritionInfoV2Allergen.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfoV2Allergen(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfoV2Allergen', function() { + it('should create an instance of NutritionInfoV2Allergen', function() { + // uncomment below and update the code to test NutritionInfoV2Allergen + //var instane = new Flipdish.NutritionInfoV2Allergen(); + //expect(instance).to.be.a(Flipdish.NutritionInfoV2Allergen); + }); + + it('should have the property AllergenId (base name: "AllergenId")', function() { + // uncomment below and update the code to test the property AllergenId + //var instance = new Flipdish.NutritionInfoV2Allergen(); + //expect(instance).to.be(); + }); + + it('should have the property LocalizedName (base name: "LocalizedName")', function() { + // uncomment below and update the code to test the property LocalizedName + //var instance = new Flipdish.NutritionInfoV2Allergen(); + //expect(instance).to.be(); + }); + + it('should have the property ImageName (base name: "ImageName")', function() { + // uncomment below and update the code to test the property ImageName + //var instance = new Flipdish.NutritionInfoV2Allergen(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NutritionInfoV2Item.spec.js b/test/model/NutritionInfoV2Item.spec.js new file mode 100644 index 00000000..f29a7953 --- /dev/null +++ b/test/model/NutritionInfoV2Item.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.NutritionInfoV2Item(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NutritionInfoV2Item', function() { + it('should create an instance of NutritionInfoV2Item', function() { + // uncomment below and update the code to test NutritionInfoV2Item + //var instane = new Flipdish.NutritionInfoV2Item(); + //expect(instance).to.be.a(Flipdish.NutritionInfoV2Item); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.NutritionInfoV2Item(); + //expect(instance).to.be(); + }); + + it('should have the property Allergens (base name: "Allergens")', function() { + // uncomment below and update the code to test the property Allergens + //var instance = new Flipdish.NutritionInfoV2Item(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OAuthApp.spec.js b/test/model/OAuthApp.spec.js new file mode 100644 index 00000000..43d71bca --- /dev/null +++ b/test/model/OAuthApp.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OAuthApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OAuthApp', function() { + it('should create an instance of OAuthApp', function() { + // uncomment below and update the code to test OAuthApp + //var instane = new Flipdish.OAuthApp(); + //expect(instance).to.be.a(Flipdish.OAuthApp); + }); + + it('should have the property OauthAppId (base name: "OauthAppId")', function() { + // uncomment below and update the code to test the property OauthAppId + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + it('should have the property OauthAppName (base name: "OauthAppName")', function() { + // uncomment below and update the code to test the property OauthAppName + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + it('should have the property OwnerUserId (base name: "OwnerUserId")', function() { + // uncomment below and update the code to test the property OwnerUserId + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + it('should have the property LogoUri (base name: "LogoUri")', function() { + // uncomment below and update the code to test the property LogoUri + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + it('should have the property Flow (base name: "Flow")', function() { + // uncomment below and update the code to test the property Flow + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + it('should have the property RefreshTokenUsage (base name: "RefreshTokenUsage")', function() { + // uncomment below and update the code to test the property RefreshTokenUsage + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + it('should have the property AccessTokenLifetime (base name: "AccessTokenLifetime")', function() { + // uncomment below and update the code to test the property AccessTokenLifetime + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + it('should have the property AbsoluteRefreshTokenLifetime (base name: "AbsoluteRefreshTokenLifetime")', function() { + // uncomment below and update the code to test the property AbsoluteRefreshTokenLifetime + //var instance = new Flipdish.OAuthApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OAuthTokenModel.spec.js b/test/model/OAuthTokenModel.spec.js new file mode 100644 index 00000000..156d3f6e --- /dev/null +++ b/test/model/OAuthTokenModel.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OAuthTokenModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OAuthTokenModel', function() { + it('should create an instance of OAuthTokenModel', function() { + // uncomment below and update the code to test OAuthTokenModel + //var instane = new Flipdish.OAuthTokenModel(); + //expect(instance).to.be.a(Flipdish.OAuthTokenModel); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.OAuthTokenModel(); + //expect(instance).to.be(); + }); + + it('should have the property TokenType (base name: "TokenType")', function() { + // uncomment below and update the code to test the property TokenType + //var instance = new Flipdish.OAuthTokenModel(); + //expect(instance).to.be(); + }); + + it('should have the property SubjectId (base name: "SubjectId")', function() { + // uncomment below and update the code to test the property SubjectId + //var instance = new Flipdish.OAuthTokenModel(); + //expect(instance).to.be(); + }); + + it('should have the property ClientId (base name: "ClientId")', function() { + // uncomment below and update the code to test the property ClientId + //var instance = new Flipdish.OAuthTokenModel(); + //expect(instance).to.be(); + }); + + it('should have the property Expiry (base name: "Expiry")', function() { + // uncomment below and update the code to test the property Expiry + //var instance = new Flipdish.OAuthTokenModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OauthClientRedirectUri.spec.js b/test/model/OauthClientRedirectUri.spec.js new file mode 100644 index 00000000..89197d9e --- /dev/null +++ b/test/model/OauthClientRedirectUri.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OauthClientRedirectUri(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OauthClientRedirectUri', function() { + it('should create an instance of OauthClientRedirectUri', function() { + // uncomment below and update the code to test OauthClientRedirectUri + //var instane = new Flipdish.OauthClientRedirectUri(); + //expect(instance).to.be.a(Flipdish.OauthClientRedirectUri); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.OauthClientRedirectUri(); + //expect(instance).to.be(); + }); + + it('should have the property Uri (base name: "Uri")', function() { + // uncomment below and update the code to test the property Uri + //var instance = new Flipdish.OauthClientRedirectUri(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectDisplayOrder.spec.js b/test/model/ObjectDisplayOrder.spec.js new file mode 100644 index 00000000..4c2ad0dd --- /dev/null +++ b/test/model/ObjectDisplayOrder.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ObjectDisplayOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectDisplayOrder', function() { + it('should create an instance of ObjectDisplayOrder', function() { + // uncomment below and update the code to test ObjectDisplayOrder + //var instane = new Flipdish.ObjectDisplayOrder(); + //expect(instance).to.be.a(Flipdish.ObjectDisplayOrder); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.ObjectDisplayOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayOrder (base name: "DisplayOrder")', function() { + // uncomment below and update the code to test the property DisplayOrder + //var instance = new Flipdish.ObjectDisplayOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OktaPortalFeatureFlag.spec.js b/test/model/OktaPortalFeatureFlag.spec.js new file mode 100644 index 00000000..5885dd15 --- /dev/null +++ b/test/model/OktaPortalFeatureFlag.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OktaPortalFeatureFlag(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OktaPortalFeatureFlag', function() { + it('should create an instance of OktaPortalFeatureFlag', function() { + // uncomment below and update the code to test OktaPortalFeatureFlag + //var instane = new Flipdish.OktaPortalFeatureFlag(); + //expect(instance).to.be.a(Flipdish.OktaPortalFeatureFlag); + }); + + it('should have the property OktaPortalEnabled (base name: "OktaPortalEnabled")', function() { + // uncomment below and update the code to test the property OktaPortalEnabled + //var instance = new Flipdish.OktaPortalFeatureFlag(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OnboardingConfigUpdate.spec.js b/test/model/OnboardingConfigUpdate.spec.js new file mode 100644 index 00000000..752db962 --- /dev/null +++ b/test/model/OnboardingConfigUpdate.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OnboardingConfigUpdate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OnboardingConfigUpdate', function() { + it('should create an instance of OnboardingConfigUpdate', function() { + // uncomment below and update the code to test OnboardingConfigUpdate + //var instane = new Flipdish.OnboardingConfigUpdate(); + //expect(instance).to.be.a(Flipdish.OnboardingConfigUpdate); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.OnboardingConfigUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property IsWelcomeScreenEnabled (base name: "IsWelcomeScreenEnabled")', function() { + // uncomment below and update the code to test the property IsWelcomeScreenEnabled + //var instance = new Flipdish.OnboardingConfigUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigType (base name: "ConfigType")', function() { + // uncomment below and update the code to test the property ConfigType + //var instance = new Flipdish.OnboardingConfigUpdate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OnboardingItemUpdate.spec.js b/test/model/OnboardingItemUpdate.spec.js new file mode 100644 index 00000000..5a0041ef --- /dev/null +++ b/test/model/OnboardingItemUpdate.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OnboardingItemUpdate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OnboardingItemUpdate', function() { + it('should create an instance of OnboardingItemUpdate', function() { + // uncomment below and update the code to test OnboardingItemUpdate + //var instane = new Flipdish.OnboardingItemUpdate(); + //expect(instance).to.be.a(Flipdish.OnboardingItemUpdate); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.OnboardingItemUpdate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Order.spec.js b/test/model/Order.spec.js new file mode 100644 index 00000000..10c45d23 --- /dev/null +++ b/test/model/Order.spec.js @@ -0,0 +1,377 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Order(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Order', function() { + it('should create an instance of Order', function() { + // uncomment below and update the code to test Order + //var instane = new Flipdish.Order(); + //expect(instance).to.be.a(Flipdish.Order); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property Customer (base name: "Customer")', function() { + // uncomment below and update the code to test the property Customer + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // uncomment below and update the code to test the property Voucher + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property Fees (base name: "Fees")', function() { + // uncomment below and update the code to test the property Fees + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property OrderItems (base name: "OrderItems")', function() { + // uncomment below and update the code to test the property OrderItems + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryLocation (base name: "DeliveryLocation")', function() { + // uncomment below and update the code to test the property DeliveryLocation + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerLocation (base name: "CustomerLocation")', function() { + // uncomment below and update the code to test the property CustomerLocation + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property MaskedPhoneNumber (base name: "MaskedPhoneNumber")', function() { + // uncomment below and update the code to test the property MaskedPhoneNumber + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DropOffLocationId (base name: "DropOffLocationId")', function() { + // uncomment below and update the code to test the property DropOffLocationId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DropOffLocation (base name: "DropOffLocation")', function() { + // uncomment below and update the code to test the property DropOffLocation + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property AcceptedFor (base name: "AcceptedFor")', function() { + // uncomment below and update the code to test the property AcceptedFor + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property InFraudZone (base name: "InFraudZone")', function() { + // uncomment below and update the code to test the property InFraudZone + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property UnusualHighValueOrder (base name: "UnusualHighValueOrder")', function() { + // uncomment below and update the code to test the property UnusualHighValueOrder + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property RejectedByUserId (base name: "RejectedByUserId")', function() { + // uncomment below and update the code to test the property RejectedByUserId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelOrderId (base name: "ChannelOrderId")', function() { + // uncomment below and update the code to test the property ChannelOrderId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelOrderDisplayId (base name: "ChannelOrderDisplayId")', function() { + // uncomment below and update the code to test the property ChannelOrderDisplayId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property Channel (base name: "Channel")', function() { + // uncomment below and update the code to test the property Channel + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDropOffLocation (base name: "OrderDropOffLocation")', function() { + // uncomment below and update the code to test the property OrderDropOffLocation + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property FulfillmentStatus (base name: "FulfillmentStatus")', function() { + // uncomment below and update the code to test the property FulfillmentStatus + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property OrderBatchInfo (base name: "OrderBatchInfo")', function() { + // uncomment below and update the code to test the property OrderBatchInfo + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property TaxItems (base name: "TaxItems")', function() { + // uncomment below and update the code to test the property TaxItems + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedCampaignVoucherId (base name: "CreatedCampaignVoucherId")', function() { + // uncomment below and update the code to test the property CreatedCampaignVoucherId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property LocalOrderId (base name: "LocalOrderId")', function() { + // uncomment below and update the code to test the property LocalOrderId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // uncomment below and update the code to test the property DeliveryType + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property PickupLocationType (base name: "PickupLocationType")', function() { + // uncomment below and update the code to test the property PickupLocationType + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property TableServiceCatagory (base name: "TableServiceCatagory")', function() { + // uncomment below and update the code to test the property TableServiceCatagory + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property TipAmount (base name: "TipAmount")', function() { + // uncomment below and update the code to test the property TipAmount + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryAmount (base name: "DeliveryAmount")', function() { + // uncomment below and update the code to test the property DeliveryAmount + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property OrderItemsAmount (base name: "OrderItemsAmount")', function() { + // uncomment below and update the code to test the property OrderItemsAmount + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceChargeAmount (base name: "ServiceChargeAmount")', function() { + // uncomment below and update the code to test the property ServiceChargeAmount + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceChargePercentage (base name: "ServiceChargePercentage")', function() { + // uncomment below and update the code to test the property ServiceChargePercentage + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property ProcessingFee (base name: "ProcessingFee")', function() { + // uncomment below and update the code to test the property ProcessingFee + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // uncomment below and update the code to test the property PaymentAccountType + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccountDescription (base name: "PaymentAccountDescription")', function() { + // uncomment below and update the code to test the property PaymentAccountDescription + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property OrderState (base name: "OrderState")', function() { + // uncomment below and update the code to test the property OrderState + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property IsPreOrder (base name: "IsPreOrder")', function() { + // uncomment below and update the code to test the property IsPreOrder + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property PlacedTime (base name: "PlacedTime")', function() { + // uncomment below and update the code to test the property PlacedTime + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property RequestedForTime (base name: "RequestedForTime")', function() { + // uncomment below and update the code to test the property RequestedForTime + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property ChefNote (base name: "ChefNote")', function() { + // uncomment below and update the code to test the property ChefNote + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property AppType (base name: "AppType")', function() { + // uncomment below and update the code to test the property AppType + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property UserRating (base name: "UserRating")', function() { + // uncomment below and update the code to test the property UserRating + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentStatus (base name: "PaymentStatus")', function() { + // uncomment below and update the code to test the property PaymentStatus + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property RejectionReason (base name: "RejectionReason")', function() { + // uncomment below and update the code to test the property RejectionReason + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // uncomment below and update the code to test the property RefundedAmount + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryTrackingStatus (base name: "DeliveryTrackingStatus")', function() { + // uncomment below and update the code to test the property DeliveryTrackingStatus + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DriverId (base name: "DriverId")', function() { + // uncomment below and update the code to test the property DriverId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property TotalTax (base name: "TotalTax")', function() { + // uncomment below and update the code to test the property TotalTax + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property OrderTrackingCode (base name: "OrderTrackingCode")', function() { + // uncomment below and update the code to test the property OrderTrackingCode + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryFeeAreaId (base name: "DeliveryFeeAreaId")', function() { + // uncomment below and update the code to test the property DeliveryFeeAreaId + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property ReceiptCode (base name: "ReceiptCode")', function() { + // uncomment below and update the code to test the property ReceiptCode + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + it('should have the property TotalDepositReturnFeeAmount (base name: "TotalDepositReturnFeeAmount")', function() { + // uncomment below and update the code to test the property TotalDepositReturnFeeAmount + //var instance = new Flipdish.Order(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderAcceptedEvent.spec.js b/test/model/OrderAcceptedEvent.spec.js new file mode 100644 index 00000000..caa96a38 --- /dev/null +++ b/test/model/OrderAcceptedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderAcceptedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderAcceptedEvent', function() { + it('should create an instance of OrderAcceptedEvent', function() { + // uncomment below and update the code to test OrderAcceptedEvent + //var instane = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be.a(Flipdish.OrderAcceptedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderAcceptedTime (base name: "OrderAcceptedTime")', function() { + // uncomment below and update the code to test the property OrderAcceptedTime + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderAcceptedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderBatch.spec.js b/test/model/OrderBatch.spec.js new file mode 100644 index 00000000..7b11d33b --- /dev/null +++ b/test/model/OrderBatch.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderBatch(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderBatch', function() { + it('should create an instance of OrderBatch', function() { + // uncomment below and update the code to test OrderBatch + //var instane = new Flipdish.OrderBatch(); + //expect(instance).to.be.a(Flipdish.OrderBatch); + }); + + it('should have the property OrderIds (base name: "OrderIds")', function() { + // uncomment below and update the code to test the property OrderIds + //var instance = new Flipdish.OrderBatch(); + //expect(instance).to.be(); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.OrderBatch(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayCode (base name: "DisplayCode")', function() { + // uncomment below and update the code to test the property DisplayCode + //var instance = new Flipdish.OrderBatch(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderBatch(); + //expect(instance).to.be(); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // uncomment below and update the code to test the property IsPublished + //var instance = new Flipdish.OrderBatch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderBatchPublishedEvent.spec.js b/test/model/OrderBatchPublishedEvent.spec.js new file mode 100644 index 00000000..513ec1b5 --- /dev/null +++ b/test/model/OrderBatchPublishedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderBatchPublishedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderBatchPublishedEvent', function() { + it('should create an instance of OrderBatchPublishedEvent', function() { + // uncomment below and update the code to test OrderBatchPublishedEvent + //var instane = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be.a(Flipdish.OrderBatchPublishedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderBatchId (base name: "OrderBatchId")', function() { + // uncomment below and update the code to test the property OrderBatchId + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderIds (base name: "OrderIds")', function() { + // uncomment below and update the code to test the property OrderIds + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderBatchPublishedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderBatchSummary.spec.js b/test/model/OrderBatchSummary.spec.js new file mode 100644 index 00000000..2b1b1c77 --- /dev/null +++ b/test/model/OrderBatchSummary.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderBatchSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderBatchSummary', function() { + it('should create an instance of OrderBatchSummary', function() { + // uncomment below and update the code to test OrderBatchSummary + //var instane = new Flipdish.OrderBatchSummary(); + //expect(instance).to.be.a(Flipdish.OrderBatchSummary); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.OrderBatchSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayCode (base name: "DisplayCode")', function() { + // uncomment below and update the code to test the property DisplayCode + //var instance = new Flipdish.OrderBatchSummary(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderBatchSummary(); + //expect(instance).to.be(); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // uncomment below and update the code to test the property IsPublished + //var instance = new Flipdish.OrderBatchSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderBatchingConfiguration.spec.js b/test/model/OrderBatchingConfiguration.spec.js new file mode 100644 index 00000000..076e638f --- /dev/null +++ b/test/model/OrderBatchingConfiguration.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderBatchingConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderBatchingConfiguration', function() { + it('should create an instance of OrderBatchingConfiguration', function() { + // uncomment below and update the code to test OrderBatchingConfiguration + //var instane = new Flipdish.OrderBatchingConfiguration(); + //expect(instance).to.be.a(Flipdish.OrderBatchingConfiguration); + }); + + it('should have the property BatchIntervalInSeconds (base name: "BatchIntervalInSeconds")', function() { + // uncomment below and update the code to test the property BatchIntervalInSeconds + //var instance = new Flipdish.OrderBatchingConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.OrderBatchingConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderCapacityConfigUpdatedEvent.spec.js b/test/model/OrderCapacityConfigUpdatedEvent.spec.js new file mode 100644 index 00000000..b6ab0957 --- /dev/null +++ b/test/model/OrderCapacityConfigUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderCapacityConfigUpdatedEvent', function() { + it('should create an instance of OrderCapacityConfigUpdatedEvent', function() { + // uncomment below and update the code to test OrderCapacityConfigUpdatedEvent + //var instane = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.OrderCapacityConfigUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCapacityConfig (base name: "OrderCapacityConfig")', function() { + // uncomment below and update the code to test the property OrderCapacityConfig + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderCapacityConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderCreatedEvent.spec.js b/test/model/OrderCreatedEvent.spec.js new file mode 100644 index 00000000..662ae8a8 --- /dev/null +++ b/test/model/OrderCreatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderCreatedEvent', function() { + it('should create an instance of OrderCreatedEvent', function() { + // uncomment below and update the code to test OrderCreatedEvent + //var instane = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be.a(Flipdish.OrderCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCreatedTime (base name: "OrderCreatedTime")', function() { + // uncomment below and update the code to test the property OrderCreatedTime + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderCustomerTrackingCreatedEvent.spec.js b/test/model/OrderCustomerTrackingCreatedEvent.spec.js new file mode 100644 index 00000000..fb71cf36 --- /dev/null +++ b/test/model/OrderCustomerTrackingCreatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderCustomerTrackingCreatedEvent', function() { + it('should create an instance of OrderCustomerTrackingCreatedEvent', function() { + // uncomment below and update the code to test OrderCustomerTrackingCreatedEvent + //var instane = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be.a(Flipdish.OrderCustomerTrackingCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderCustomerTrackingCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderDeliveryInformation.spec.js b/test/model/OrderDeliveryInformation.spec.js new file mode 100644 index 00000000..bff03dd5 --- /dev/null +++ b/test/model/OrderDeliveryInformation.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderDeliveryInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderDeliveryInformation', function() { + it('should create an instance of OrderDeliveryInformation', function() { + // uncomment below and update the code to test OrderDeliveryInformation + //var instane = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be.a(Flipdish.OrderDeliveryInformation); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalReferenceId (base name: "ExternalReferenceId")', function() { + // uncomment below and update the code to test the property ExternalReferenceId + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + it('should have the property TrackUrl (base name: "TrackUrl")', function() { + // uncomment below and update the code to test the property TrackUrl + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryStatusNotes (base name: "DeliveryStatusNotes")', function() { + // uncomment below and update the code to test the property DeliveryStatusNotes + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + it('should have the property ErrorMessage (base name: "ErrorMessage")', function() { + // uncomment below and update the code to test the property ErrorMessage + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + it('should have the property IntegrationCode (base name: "IntegrationCode")', function() { + // uncomment below and update the code to test the property IntegrationCode + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + it('should have the property IntegrationName (base name: "IntegrationName")', function() { + // uncomment below and update the code to test the property IntegrationName + //var instance = new Flipdish.OrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderDeliveryInformationBase.spec.js b/test/model/OrderDeliveryInformationBase.spec.js new file mode 100644 index 00000000..726f3b88 --- /dev/null +++ b/test/model/OrderDeliveryInformationBase.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderDeliveryInformationBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderDeliveryInformationBase', function() { + it('should create an instance of OrderDeliveryInformationBase', function() { + // uncomment below and update the code to test OrderDeliveryInformationBase + //var instane = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be.a(Flipdish.OrderDeliveryInformationBase); + }); + + it('should have the property ExternalReferenceId (base name: "ExternalReferenceId")', function() { + // uncomment below and update the code to test the property ExternalReferenceId + //var instance = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be(); + }); + + it('should have the property TrackUrl (base name: "TrackUrl")', function() { + // uncomment below and update the code to test the property TrackUrl + //var instance = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryStatusNotes (base name: "DeliveryStatusNotes")', function() { + // uncomment below and update the code to test the property DeliveryStatusNotes + //var instance = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be(); + }); + + it('should have the property ErrorMessage (base name: "ErrorMessage")', function() { + // uncomment below and update the code to test the property ErrorMessage + //var instance = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be(); + }); + + it('should have the property IntegrationCode (base name: "IntegrationCode")', function() { + // uncomment below and update the code to test the property IntegrationCode + //var instance = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be(); + }); + + it('should have the property IntegrationName (base name: "IntegrationName")', function() { + // uncomment below and update the code to test the property IntegrationName + //var instance = new Flipdish.OrderDeliveryInformationBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderDeliveryTrackingStatusUpdatedEvent.spec.js b/test/model/OrderDeliveryTrackingStatusUpdatedEvent.spec.js new file mode 100644 index 00000000..7cbb426d --- /dev/null +++ b/test/model/OrderDeliveryTrackingStatusUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderDeliveryTrackingStatusUpdatedEvent', function() { + it('should create an instance of OrderDeliveryTrackingStatusUpdatedEvent', function() { + // uncomment below and update the code to test OrderDeliveryTrackingStatusUpdatedEvent + //var instane = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.OrderDeliveryTrackingStatusUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryIntegrationName (base name: "DeliveryIntegrationName")', function() { + // uncomment below and update the code to test the property DeliveryIntegrationName + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryErrorMessage (base name: "DeliveryErrorMessage")', function() { + // uncomment below and update the code to test the property DeliveryErrorMessage + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderDeliveryTrackingStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderDispatchedEvent.spec.js b/test/model/OrderDispatchedEvent.spec.js new file mode 100644 index 00000000..d774e0d0 --- /dev/null +++ b/test/model/OrderDispatchedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderDispatchedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderDispatchedEvent', function() { + it('should create an instance of OrderDispatchedEvent', function() { + // uncomment below and update the code to test OrderDispatchedEvent + //var instane = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be.a(Flipdish.OrderDispatchedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDispatchedTime (base name: "OrderDispatchedTime")', function() { + // uncomment below and update the code to test the property OrderDispatchedTime + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderDispatchedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderDropOffLocation.spec.js b/test/model/OrderDropOffLocation.spec.js new file mode 100644 index 00000000..a3b5336b --- /dev/null +++ b/test/model/OrderDropOffLocation.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderDropOffLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderDropOffLocation', function() { + it('should create an instance of OrderDropOffLocation', function() { + // uncomment below and update the code to test OrderDropOffLocation + //var instane = new Flipdish.OrderDropOffLocation(); + //expect(instance).to.be.a(Flipdish.OrderDropOffLocation); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderDropOffLocation(); + //expect(instance).to.be(); + }); + + it('should have the property LocationName (base name: "LocationName")', function() { + // uncomment below and update the code to test the property LocationName + //var instance = new Flipdish.OrderDropOffLocation(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaName (base name: "LocationAreaName")', function() { + // uncomment below and update the code to test the property LocationAreaName + //var instance = new Flipdish.OrderDropOffLocation(); + //expect(instance).to.be(); + }); + + it('should have the property LocationId (base name: "LocationId")', function() { + // uncomment below and update the code to test the property LocationId + //var instance = new Flipdish.OrderDropOffLocation(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.OrderDropOffLocation(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalLocationId (base name: "ExternalLocationId")', function() { + // uncomment below and update the code to test the property ExternalLocationId + //var instance = new Flipdish.OrderDropOffLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderFulfillmentStatus.spec.js b/test/model/OrderFulfillmentStatus.spec.js new file mode 100644 index 00000000..dffa81c1 --- /dev/null +++ b/test/model/OrderFulfillmentStatus.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderFulfillmentStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderFulfillmentStatus', function() { + it('should create an instance of OrderFulfillmentStatus', function() { + // uncomment below and update the code to test OrderFulfillmentStatus + //var instane = new Flipdish.OrderFulfillmentStatus(); + //expect(instance).to.be.a(Flipdish.OrderFulfillmentStatus); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderFulfillmentStatus(); + //expect(instance).to.be(); + }); + + it('should have the property StatusId (base name: "StatusId")', function() { + // uncomment below and update the code to test the property StatusId + //var instance = new Flipdish.OrderFulfillmentStatus(); + //expect(instance).to.be(); + }); + + it('should have the property StatusName (base name: "StatusName")', function() { + // uncomment below and update the code to test the property StatusName + //var instance = new Flipdish.OrderFulfillmentStatus(); + //expect(instance).to.be(); + }); + + it('should have the property Icon (base name: "Icon")', function() { + // uncomment below and update the code to test the property Icon + //var instance = new Flipdish.OrderFulfillmentStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderFulfillmentStatusBase.spec.js b/test/model/OrderFulfillmentStatusBase.spec.js new file mode 100644 index 00000000..aad99bec --- /dev/null +++ b/test/model/OrderFulfillmentStatusBase.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderFulfillmentStatusBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderFulfillmentStatusBase', function() { + it('should create an instance of OrderFulfillmentStatusBase', function() { + // uncomment below and update the code to test OrderFulfillmentStatusBase + //var instane = new Flipdish.OrderFulfillmentStatusBase(); + //expect(instance).to.be.a(Flipdish.OrderFulfillmentStatusBase); + }); + + it('should have the property StatusId (base name: "StatusId")', function() { + // uncomment below and update the code to test the property StatusId + //var instance = new Flipdish.OrderFulfillmentStatusBase(); + //expect(instance).to.be(); + }); + + it('should have the property StatusName (base name: "StatusName")', function() { + // uncomment below and update the code to test the property StatusName + //var instance = new Flipdish.OrderFulfillmentStatusBase(); + //expect(instance).to.be(); + }); + + it('should have the property Icon (base name: "Icon")', function() { + // uncomment below and update the code to test the property Icon + //var instance = new Flipdish.OrderFulfillmentStatusBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderFulfillmentStatusUpdate.spec.js b/test/model/OrderFulfillmentStatusUpdate.spec.js new file mode 100644 index 00000000..252c9688 --- /dev/null +++ b/test/model/OrderFulfillmentStatusUpdate.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderFulfillmentStatusUpdate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderFulfillmentStatusUpdate', function() { + it('should create an instance of OrderFulfillmentStatusUpdate', function() { + // uncomment below and update the code to test OrderFulfillmentStatusUpdate + //var instane = new Flipdish.OrderFulfillmentStatusUpdate(); + //expect(instance).to.be.a(Flipdish.OrderFulfillmentStatusUpdate); + }); + + it('should have the property StatusId (base name: "StatusId")', function() { + // uncomment below and update the code to test the property StatusId + //var instance = new Flipdish.OrderFulfillmentStatusUpdate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderFulfillmentStatusUpdatedEvent.spec.js b/test/model/OrderFulfillmentStatusUpdatedEvent.spec.js new file mode 100644 index 00000000..381c7d85 --- /dev/null +++ b/test/model/OrderFulfillmentStatusUpdatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderFulfillmentStatusUpdatedEvent', function() { + it('should create an instance of OrderFulfillmentStatusUpdatedEvent', function() { + // uncomment below and update the code to test OrderFulfillmentStatusUpdatedEvent + //var instane = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.OrderFulfillmentStatusUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StatusName (base name: "StatusName")', function() { + // uncomment below and update the code to test the property StatusName + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StatusId (base name: "StatusId")', function() { + // uncomment below and update the code to test the property StatusId + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderFulfillmentStatusUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderFulfillmentStatusWithConfigurationActions.spec.js b/test/model/OrderFulfillmentStatusWithConfigurationActions.spec.js new file mode 100644 index 00000000..cfe9dd6e --- /dev/null +++ b/test/model/OrderFulfillmentStatusWithConfigurationActions.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderFulfillmentStatusWithConfigurationActions', function() { + it('should create an instance of OrderFulfillmentStatusWithConfigurationActions', function() { + // uncomment below and update the code to test OrderFulfillmentStatusWithConfigurationActions + //var instane = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be.a(Flipdish.OrderFulfillmentStatusWithConfigurationActions); + }); + + it('should have the property DefaultNextStatus (base name: "DefaultNextStatus")', function() { + // uncomment below and update the code to test the property DefaultNextStatus + //var instance = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be(); + }); + + it('should have the property NextStatuses (base name: "NextStatuses")', function() { + // uncomment below and update the code to test the property NextStatuses + //var instance = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be(); + }); + + it('should have the property StatusId (base name: "StatusId")', function() { + // uncomment below and update the code to test the property StatusId + //var instance = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be(); + }); + + it('should have the property StatusName (base name: "StatusName")', function() { + // uncomment below and update the code to test the property StatusName + //var instance = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be(); + }); + + it('should have the property Icon (base name: "Icon")', function() { + // uncomment below and update the code to test the property Icon + //var instance = new Flipdish.OrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderItem.spec.js b/test/model/OrderItem.spec.js new file mode 100644 index 00000000..c01a8b85 --- /dev/null +++ b/test/model/OrderItem.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderItem', function() { + it('should create an instance of OrderItem', function() { + // uncomment below and update the code to test OrderItem + //var instane = new Flipdish.OrderItem(); + //expect(instance).to.be.a(Flipdish.OrderItem); + }); + + it('should have the property OrderItemOptions (base name: "OrderItemOptions")', function() { + // uncomment below and update the code to test the property OrderItemOptions + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemPublicId (base name: "MenuItemPublicId")', function() { + // uncomment below and update the code to test the property MenuItemPublicId + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionName (base name: "MenuSectionName")', function() { + // uncomment below and update the code to test the property MenuSectionName + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionDisplayOrder (base name: "MenuSectionDisplayOrder")', function() { + // uncomment below and update the code to test the property MenuSectionDisplayOrder + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxAmount (base name: "TaxAmount")', function() { + // uncomment below and update the code to test the property TaxAmount + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property PriceIncludingOptionSetItems (base name: "PriceIncludingOptionSetItems")', function() { + // uncomment below and update the code to test the property PriceIncludingOptionSetItems + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemId (base name: "MenuItemId")', function() { + // uncomment below and update the code to test the property MenuItemId + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemDisplayOrder (base name: "MenuItemDisplayOrder")', function() { + // uncomment below and update the code to test the property MenuItemDisplayOrder + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsAvailable (base name: "IsAvailable")', function() { + // uncomment below and update the code to test the property IsAvailable + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.OrderItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderItemOption.spec.js b/test/model/OrderItemOption.spec.js new file mode 100644 index 00000000..07270a4c --- /dev/null +++ b/test/model/OrderItemOption.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderItemOption(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderItemOption', function() { + it('should create an instance of OrderItemOption', function() { + // uncomment below and update the code to test OrderItemOption + //var instane = new Flipdish.OrderItemOption(); + //expect(instance).to.be.a(Flipdish.OrderItemOption); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionPublicId (base name: "MenuItemOptionPublicId")', function() { + // uncomment below and update the code to test the property MenuItemOptionPublicId + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionId (base name: "MenuItemOptionId")', function() { + // uncomment below and update the code to test the property MenuItemOptionId + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property IsMasterOptionSetItem (base name: "IsMasterOptionSetItem")', function() { + // uncomment below and update the code to test the property IsMasterOptionSetItem + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property TaxAmount (base name: "TaxAmount")', function() { + // uncomment below and update the code to test the property TaxAmount + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionDisplayOrder (base name: "MenuItemOptionDisplayOrder")', function() { + // uncomment below and update the code to test the property MenuItemOptionDisplayOrder + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemOptionSetDisplayOrder (base name: "MenuItemOptionSetDisplayOrder")', function() { + // uncomment below and update the code to test the property MenuItemOptionSetDisplayOrder + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.OrderItemOption(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderLeadTimes.spec.js b/test/model/OrderLeadTimes.spec.js new file mode 100644 index 00000000..d2a0fcbc --- /dev/null +++ b/test/model/OrderLeadTimes.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderLeadTimes(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderLeadTimes', function() { + it('should create an instance of OrderLeadTimes', function() { + // uncomment below and update the code to test OrderLeadTimes + //var instane = new Flipdish.OrderLeadTimes(); + //expect(instance).to.be.a(Flipdish.OrderLeadTimes); + }); + + it('should have the property LeadTimeMinutes (base name: "LeadTimeMinutes")', function() { + // uncomment below and update the code to test the property LeadTimeMinutes + //var instance = new Flipdish.OrderLeadTimes(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderList.spec.js b/test/model/OrderList.spec.js new file mode 100644 index 00000000..44cbba3d --- /dev/null +++ b/test/model/OrderList.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderList', function() { + it('should create an instance of OrderList', function() { + // uncomment below and update the code to test OrderList + //var instane = new Flipdish.OrderList(); + //expect(instance).to.be.a(Flipdish.OrderList); + }); + + it('should have the property Orders (base name: "Orders")', function() { + // uncomment below and update the code to test the property Orders + //var instance = new Flipdish.OrderList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderPaymentInformation.spec.js b/test/model/OrderPaymentInformation.spec.js new file mode 100644 index 00000000..6b4634b6 --- /dev/null +++ b/test/model/OrderPaymentInformation.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderPaymentInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderPaymentInformation', function() { + it('should create an instance of OrderPaymentInformation', function() { + // uncomment below and update the code to test OrderPaymentInformation + //var instane = new Flipdish.OrderPaymentInformation(); + //expect(instance).to.be.a(Flipdish.OrderPaymentInformation); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderPaymentInformation(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentRefundable (base name: "PaymentRefundable")', function() { + // uncomment below and update the code to test the property PaymentRefundable + //var instance = new Flipdish.OrderPaymentInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderRatingUpdatedEvent.spec.js b/test/model/OrderRatingUpdatedEvent.spec.js new file mode 100644 index 00000000..ffa5364e --- /dev/null +++ b/test/model/OrderRatingUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderRatingUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderRatingUpdatedEvent', function() { + it('should create an instance of OrderRatingUpdatedEvent', function() { + // uncomment below and update the code to test OrderRatingUpdatedEvent + //var instane = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.OrderRatingUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Rating (base name: "Rating")', function() { + // uncomment below and update the code to test the property Rating + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderRatingUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderReference.spec.js b/test/model/OrderReference.spec.js new file mode 100644 index 00000000..fdb787f0 --- /dev/null +++ b/test/model/OrderReference.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderReference', function() { + it('should create an instance of OrderReference', function() { + // uncomment below and update the code to test OrderReference + //var instane = new Flipdish.OrderReference(); + //expect(instance).to.be.a(Flipdish.OrderReference); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderRefundedEvent.spec.js b/test/model/OrderRefundedEvent.spec.js new file mode 100644 index 00000000..359461b0 --- /dev/null +++ b/test/model/OrderRefundedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderRefundedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderRefundedEvent', function() { + it('should create an instance of OrderRefundedEvent', function() { + // uncomment below and update the code to test OrderRefundedEvent + //var instane = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be.a(Flipdish.OrderRefundedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // uncomment below and update the code to test the property RefundedAmount + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderRefundedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderRejectedEvent.spec.js b/test/model/OrderRejectedEvent.spec.js new file mode 100644 index 00000000..b62db8e9 --- /dev/null +++ b/test/model/OrderRejectedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderRejectedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderRejectedEvent', function() { + it('should create an instance of OrderRejectedEvent', function() { + // uncomment below and update the code to test OrderRejectedEvent + //var instane = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be.a(Flipdish.OrderRejectedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderRejectedTime (base name: "OrderRejectedTime")', function() { + // uncomment below and update the code to test the property OrderRejectedTime + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Reason (base name: "Reason")', function() { + // uncomment below and update the code to test the property Reason + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderRejectedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderSummary.spec.js b/test/model/OrderSummary.spec.js new file mode 100644 index 00000000..4d0b571b --- /dev/null +++ b/test/model/OrderSummary.spec.js @@ -0,0 +1,227 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderSummary', function() { + it('should create an instance of OrderSummary', function() { + // uncomment below and update the code to test OrderSummary + //var instane = new Flipdish.OrderSummary(); + //expect(instance).to.be.a(Flipdish.OrderSummary); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // uncomment below and update the code to test the property DeliveryType + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PickupLocationType (base name: "PickupLocationType")', function() { + // uncomment below and update the code to test the property PickupLocationType + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property TableServiceCatagory (base name: "TableServiceCatagory")', function() { + // uncomment below and update the code to test the property TableServiceCatagory + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property OrderState (base name: "OrderState")', function() { + // uncomment below and update the code to test the property OrderState + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property RequestedForTime (base name: "RequestedForTime")', function() { + // uncomment below and update the code to test the property RequestedForTime + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIanaTimeZone (base name: "StoreIanaTimeZone")', function() { + // uncomment below and update the code to test the property StoreIanaTimeZone + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerName (base name: "CustomerName")', function() { + // uncomment below and update the code to test the property CustomerName + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerPhoneNumber (base name: "CustomerPhoneNumber")', function() { + // uncomment below and update the code to test the property CustomerPhoneNumber + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // uncomment below and update the code to test the property RefundedAmount + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // uncomment below and update the code to test the property PaymentAccountType + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentStatus (base name: "PaymentStatus")', function() { + // uncomment below and update the code to test the property PaymentStatus + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property AppType (base name: "AppType")', function() { + // uncomment below and update the code to test the property AppType + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property LocalOrderId (base name: "LocalOrderId")', function() { + // uncomment below and update the code to test the property LocalOrderId + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DropOffLocationId (base name: "DropOffLocationId")', function() { + // uncomment below and update the code to test the property DropOffLocationId + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DropOffLocation (base name: "DropOffLocation")', function() { + // uncomment below and update the code to test the property DropOffLocation + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property AcceptedFor (base name: "AcceptedFor")', function() { + // uncomment below and update the code to test the property AcceptedFor + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Channel (base name: "Channel")', function() { + // uncomment below and update the code to test the property Channel + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property InFraudZone (base name: "InFraudZone")', function() { + // uncomment below and update the code to test the property InFraudZone + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property UnusualHighValueOrder (base name: "UnusualHighValueOrder")', function() { + // uncomment below and update the code to test the property UnusualHighValueOrder + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelOrderId (base name: "ChannelOrderId")', function() { + // uncomment below and update the code to test the property ChannelOrderId + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelOrderDisplayId (base name: "ChannelOrderDisplayId")', function() { + // uncomment below and update the code to test the property ChannelOrderDisplayId + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDropOffLocation (base name: "OrderDropOffLocation")', function() { + // uncomment below and update the code to test the property OrderDropOffLocation + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property OrderBatchInfo (base name: "OrderBatchInfo")', function() { + // uncomment below and update the code to test the property OrderBatchInfo + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryLocation (base name: "DeliveryLocation")', function() { + // uncomment below and update the code to test the property DeliveryLocation + //var instance = new Flipdish.OrderSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderTipUpdatedEvent.spec.js b/test/model/OrderTipUpdatedEvent.spec.js new file mode 100644 index 00000000..18bf5eb0 --- /dev/null +++ b/test/model/OrderTipUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderTipUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderTipUpdatedEvent', function() { + it('should create an instance of OrderTipUpdatedEvent', function() { + // uncomment below and update the code to test OrderTipUpdatedEvent + //var instane = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.OrderTipUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property TipAmount (base name: "TipAmount")', function() { + // uncomment below and update the code to test the property TipAmount + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Order (base name: "Order")', function() { + // uncomment below and update the code to test the property Order + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.OrderTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrderVoucherSummary.spec.js b/test/model/OrderVoucherSummary.spec.js new file mode 100644 index 00000000..62bb8e8b --- /dev/null +++ b/test/model/OrderVoucherSummary.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OrderVoucherSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrderVoucherSummary', function() { + it('should create an instance of OrderVoucherSummary', function() { + // uncomment below and update the code to test OrderVoucherSummary + //var instane = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be.a(Flipdish.OrderVoucherSummary); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property SubType (base name: "SubType")', function() { + // uncomment below and update the code to test the property SubType + //var instance = new Flipdish.OrderVoucherSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OtherChargesDetails.spec.js b/test/model/OtherChargesDetails.spec.js new file mode 100644 index 00000000..14e0afb3 --- /dev/null +++ b/test/model/OtherChargesDetails.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OtherChargesDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OtherChargesDetails', function() { + it('should create an instance of OtherChargesDetails', function() { + // uncomment below and update the code to test OtherChargesDetails + //var instane = new Flipdish.OtherChargesDetails(); + //expect(instance).to.be.a(Flipdish.OtherChargesDetails); + }); + + it('should have the property TotalOtherCharges (base name: "TotalOtherCharges")', function() { + // uncomment below and update the code to test the property TotalOtherCharges + //var instance = new Flipdish.OtherChargesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property ChargesCount (base name: "ChargesCount")', function() { + // uncomment below and update the code to test the property ChargesCount + //var instance = new Flipdish.OtherChargesDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OwnerEntityConfiguration.spec.js b/test/model/OwnerEntityConfiguration.spec.js new file mode 100644 index 00000000..b1ac4ae4 --- /dev/null +++ b/test/model/OwnerEntityConfiguration.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OwnerEntityConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OwnerEntityConfiguration', function() { + it('should create an instance of OwnerEntityConfiguration', function() { + // uncomment below and update the code to test OwnerEntityConfiguration + //var instane = new Flipdish.OwnerEntityConfiguration(); + //expect(instance).to.be.a(Flipdish.OwnerEntityConfiguration); + }); + + it('should have the property OwnerEntity (base name: "OwnerEntity")', function() { + // uncomment below and update the code to test the property OwnerEntity + //var instance = new Flipdish.OwnerEntityConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AllowedBehaviors (base name: "AllowedBehaviors")', function() { + // uncomment below and update the code to test the property AllowedBehaviors + //var instance = new Flipdish.OwnerEntityConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OwnerEntityConfigurations.spec.js b/test/model/OwnerEntityConfigurations.spec.js new file mode 100644 index 00000000..0f1d85db --- /dev/null +++ b/test/model/OwnerEntityConfigurations.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.OwnerEntityConfigurations(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OwnerEntityConfigurations', function() { + it('should create an instance of OwnerEntityConfigurations', function() { + // uncomment below and update the code to test OwnerEntityConfigurations + //var instane = new Flipdish.OwnerEntityConfigurations(); + //expect(instance).to.be.a(Flipdish.OwnerEntityConfigurations); + }); + + it('should have the property Configurations (base name: "Configurations")', function() { + // uncomment below and update the code to test the property Configurations + //var instance = new Flipdish.OwnerEntityConfigurations(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PasswordResetModel.spec.js b/test/model/PasswordResetModel.spec.js new file mode 100644 index 00000000..76931659 --- /dev/null +++ b/test/model/PasswordResetModel.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PasswordResetModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PasswordResetModel', function() { + it('should create an instance of PasswordResetModel', function() { + // uncomment below and update the code to test PasswordResetModel + //var instane = new Flipdish.PasswordResetModel(); + //expect(instance).to.be.a(Flipdish.PasswordResetModel); + }); + + it('should have the property TokenId (base name: "TokenId")', function() { + // uncomment below and update the code to test the property TokenId + //var instance = new Flipdish.PasswordResetModel(); + //expect(instance).to.be(); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.PasswordResetModel(); + //expect(instance).to.be(); + }); + + it('should have the property Password (base name: "Password")', function() { + // uncomment below and update the code to test the property Password + //var instance = new Flipdish.PasswordResetModel(); + //expect(instance).to.be(); + }); + + it('should have the property PasswordConfirmation (base name: "PasswordConfirmation")', function() { + // uncomment below and update the code to test the property PasswordConfirmation + //var instance = new Flipdish.PasswordResetModel(); + //expect(instance).to.be(); + }); + + it('should have the property Token (base name: "Token")', function() { + // uncomment below and update the code to test the property Token + //var instance = new Flipdish.PasswordResetModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PaymentAccount.spec.js b/test/model/PaymentAccount.spec.js new file mode 100644 index 00000000..4428708d --- /dev/null +++ b/test/model/PaymentAccount.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PaymentAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PaymentAccount', function() { + it('should create an instance of PaymentAccount', function() { + // uncomment below and update the code to test PaymentAccount + //var instane = new Flipdish.PaymentAccount(); + //expect(instance).to.be.a(Flipdish.PaymentAccount); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccountId (base name: "PaymentAccountId")', function() { + // uncomment below and update the code to test the property PaymentAccountId + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property CanRemoveFromCustomerView (base name: "CanRemoveFromCustomerView")', function() { + // uncomment below and update the code to test the property CanRemoveFromCustomerView + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property Bin (base name: "Bin")', function() { + // uncomment below and update the code to test the property Bin + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property IsDefaultPaymentMethod (base name: "IsDefaultPaymentMethod")', function() { + // uncomment below and update the code to test the property IsDefaultPaymentMethod + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property IsVisibleToCustomer (base name: "IsVisibleToCustomer")', function() { + // uncomment below and update the code to test the property IsVisibleToCustomer + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // uncomment below and update the code to test the property PaymentAccountType + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerId (base name: "CustomerId")', function() { + // uncomment below and update the code to test the property CustomerId + //var instance = new Flipdish.PaymentAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PaymentIntent.spec.js b/test/model/PaymentIntent.spec.js new file mode 100644 index 00000000..e2df2603 --- /dev/null +++ b/test/model/PaymentIntent.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PaymentIntent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PaymentIntent', function() { + it('should create an instance of PaymentIntent', function() { + // uncomment below and update the code to test PaymentIntent + //var instane = new Flipdish.PaymentIntent(); + //expect(instance).to.be.a(Flipdish.PaymentIntent); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.PaymentIntent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PaymentIntent(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PaymentIntent(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.PaymentIntent(); + //expect(instance).to.be(); + }); + + it('should have the property Created (base name: "Created")', function() { + // uncomment below and update the code to test the property Created + //var instance = new Flipdish.PaymentIntent(); + //expect(instance).to.be(); + }); + + it('should have the property LastPaymentError (base name: "LastPaymentError")', function() { + // uncomment below and update the code to test the property LastPaymentError + //var instance = new Flipdish.PaymentIntent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PaymentTerminalDetails.spec.js b/test/model/PaymentTerminalDetails.spec.js new file mode 100644 index 00000000..0c88e584 --- /dev/null +++ b/test/model/PaymentTerminalDetails.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PaymentTerminalDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PaymentTerminalDetails', function() { + it('should create an instance of PaymentTerminalDetails', function() { + // uncomment below and update the code to test PaymentTerminalDetails + //var instane = new Flipdish.PaymentTerminalDetails(); + //expect(instance).to.be.a(Flipdish.PaymentTerminalDetails); + }); + + it('should have the property TerminalId (base name: "TerminalId")', function() { + // uncomment below and update the code to test the property TerminalId + //var instance = new Flipdish.PaymentTerminalDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.PaymentTerminalDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PaymentTerminalDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Uri (base name: "Uri")', function() { + // uncomment below and update the code to test the property Uri + //var instance = new Flipdish.PaymentTerminalDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PaymentTerminalTransactionDetails.spec.js b/test/model/PaymentTerminalTransactionDetails.spec.js new file mode 100644 index 00000000..bc7fca1c --- /dev/null +++ b/test/model/PaymentTerminalTransactionDetails.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PaymentTerminalTransactionDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PaymentTerminalTransactionDetails', function() { + it('should create an instance of PaymentTerminalTransactionDetails', function() { + // uncomment below and update the code to test PaymentTerminalTransactionDetails + //var instane = new Flipdish.PaymentTerminalTransactionDetails(); + //expect(instance).to.be.a(Flipdish.PaymentTerminalTransactionDetails); + }); + + it('should have the property CardSchemeName (base name: "CardSchemeName")', function() { + // uncomment below and update the code to test the property CardSchemeName + //var instance = new Flipdish.PaymentTerminalTransactionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property DateOfExpiry (base name: "DateOfExpiry")', function() { + // uncomment below and update the code to test the property DateOfExpiry + //var instance = new Flipdish.PaymentTerminalTransactionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property AuthCode (base name: "AuthCode")', function() { + // uncomment below and update the code to test the property AuthCode + //var instance = new Flipdish.PaymentTerminalTransactionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TransactionResult (base name: "TransactionResult")', function() { + // uncomment below and update the code to test the property TransactionResult + //var instance = new Flipdish.PaymentTerminalTransactionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PrimaryAccountNumber (base name: "PrimaryAccountNumber")', function() { + // uncomment below and update the code to test the property PrimaryAccountNumber + //var instance = new Flipdish.PaymentTerminalTransactionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property CardholderVerificationMethod (base name: "CardholderVerificationMethod")', function() { + // uncomment below and update the code to test the property CardholderVerificationMethod + //var instance = new Flipdish.PaymentTerminalTransactionDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Payout.spec.js b/test/model/Payout.spec.js new file mode 100644 index 00000000..0259202f --- /dev/null +++ b/test/model/Payout.spec.js @@ -0,0 +1,323 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Payout(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Payout', function() { + it('should create an instance of Payout', function() { + // uncomment below and update the code to test Payout + //var instane = new Flipdish.Payout(); + //expect(instance).to.be.a(Flipdish.Payout); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // uncomment below and update the code to test the property PayoutId + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PayeeBankAccountId (base name: "PayeeBankAccountId")', function() { + // uncomment below and update the code to test the property PayeeBankAccountId + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutStatus (base name: "PayoutStatus")', function() { + // uncomment below and update the code to test the property PayoutStatus + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedDate (base name: "CreatedDate")', function() { + // uncomment below and update the code to test the property CreatedDate + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodStartTime (base name: "PeriodStartTime")', function() { + // uncomment below and update the code to test the property PeriodStartTime + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodEndTime (base name: "PeriodEndTime")', function() { + // uncomment below and update the code to test the property PeriodEndTime + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property DestinationBank (base name: "DestinationBank")', function() { + // uncomment below and update the code to test the property DestinationBank + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property DestinationAccount (base name: "DestinationAccount")', function() { + // uncomment below and update the code to test the property DestinationAccount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutType (base name: "PayoutType")', function() { + // uncomment below and update the code to test the property PayoutType + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property CutoffDate (base name: "CutoffDate")', function() { + // uncomment below and update the code to test the property CutoffDate + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesAmount (base name: "OnlineSalesAmount")', function() { + // uncomment below and update the code to test the property OnlineSalesAmount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesDeliveryCharges (base name: "OnlineSalesDeliveryCharges")', function() { + // uncomment below and update the code to test the property OnlineSalesDeliveryCharges + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesTips (base name: "OnlineSalesTips")', function() { + // uncomment below and update the code to test the property OnlineSalesTips + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesServiceCharges (base name: "OnlineSalesServiceCharges")', function() { + // uncomment below and update the code to test the property OnlineSalesServiceCharges + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesRefundedFees (base name: "OnlineSalesRefundedFees")', function() { + // uncomment below and update the code to test the property OnlineSalesRefundedFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesFees (base name: "OnlineSalesFees")', function() { + // uncomment below and update the code to test the property OnlineSalesFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesFees (base name: "PosSalesFees")', function() { + // uncomment below and update the code to test the property PosSalesFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesRefundedAmount (base name: "OnlineSalesRefundedAmount")', function() { + // uncomment below and update the code to test the property OnlineSalesRefundedAmount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesRefundedAmount (base name: "PosSalesRefundedAmount")', function() { + // uncomment below and update the code to test the property PosSalesRefundedAmount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesTax (base name: "OnlineSalesTax")', function() { + // uncomment below and update the code to test the property OnlineSalesTax + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property TotalOnlineRevenue (base name: "TotalOnlineRevenue")', function() { + // uncomment below and update the code to test the property TotalOnlineRevenue + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesFees (base name: "CashSalesFees")', function() { + // uncomment below and update the code to test the property CashSalesFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesRefundedFees (base name: "CashSalesRefundedFees")', function() { + // uncomment below and update the code to test the property CashSalesRefundedFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerCashFees (base name: "CustomerCashFees")', function() { + // uncomment below and update the code to test the property CustomerCashFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property SalesFeesVat (base name: "SalesFeesVat")', function() { + // uncomment below and update the code to test the property SalesFeesVat + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property TotalFees (base name: "TotalFees")', function() { + // uncomment below and update the code to test the property TotalFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property TotalOnlineRevenueAdjustments (base name: "TotalOnlineRevenueAdjustments")', function() { + // uncomment below and update the code to test the property TotalOnlineRevenueAdjustments + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property ChargebackAmount (base name: "ChargebackAmount")', function() { + // uncomment below and update the code to test the property ChargebackAmount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesChargebackAmount (base name: "PosSalesChargebackAmount")', function() { + // uncomment below and update the code to test the property PosSalesChargebackAmount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property ChargebackRefundedFees (base name: "ChargebackRefundedFees")', function() { + // uncomment below and update the code to test the property ChargebackRefundedFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property TotalChargebackCost (base name: "TotalChargebackCost")', function() { + // uncomment below and update the code to test the property TotalChargebackCost + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property TotalOtherCharges (base name: "TotalOtherCharges")', function() { + // uncomment below and update the code to test the property TotalOtherCharges + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property OpeningBalance (base name: "OpeningBalance")', function() { + // uncomment below and update the code to test the property OpeningBalance + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property ClosingBalance (base name: "ClosingBalance")', function() { + // uncomment below and update the code to test the property ClosingBalance + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenSalesAmount (base name: "PayGreenSalesAmount")', function() { + // uncomment below and update the code to test the property PayGreenSalesAmount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryIntegrationFee (base name: "DeliveryIntegrationFee")', function() { + // uncomment below and update the code to test the property DeliveryIntegrationFee + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryIntegrationTipFee (base name: "DeliveryIntegrationTipFee")', function() { + // uncomment below and update the code to test the property DeliveryIntegrationTipFee + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property TotalThirdPartyFees (base name: "TotalThirdPartyFees")', function() { + // uncomment below and update the code to test the property TotalThirdPartyFees + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesAmount (base name: "PosSalesAmount")', function() { + // uncomment below and update the code to test the property PosSalesAmount + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesTax (base name: "PosSalesTax")', function() { + // uncomment below and update the code to test the property PosSalesTax + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + it('should have the property TipsOnPosSales (base name: "TipsOnPosSales")', function() { + // uncomment below and update the code to test the property TipsOnPosSales + //var instance = new Flipdish.Payout(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutChargeback.spec.js b/test/model/PayoutChargeback.spec.js new file mode 100644 index 00000000..95f4d30d --- /dev/null +++ b/test/model/PayoutChargeback.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutChargeback(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutChargeback', function() { + it('should create an instance of PayoutChargeback', function() { + // uncomment below and update the code to test PayoutChargeback + //var instane = new Flipdish.PayoutChargeback(); + //expect(instance).to.be.a(Flipdish.PayoutChargeback); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCurrency (base name: "OrderCurrency")', function() { + // uncomment below and update the code to test the property OrderCurrency + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // uncomment below and update the code to test the property PayoutId + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDate (base name: "OrderDate")', function() { + // uncomment below and update the code to test the property OrderDate + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property OrderType (base name: "OrderType")', function() { + // uncomment below and update the code to test the property OrderType + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property ChargebackDate (base name: "ChargebackDate")', function() { + // uncomment below and update the code to test the property ChargebackDate + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property ChargebackAmount (base name: "ChargebackAmount")', function() { + // uncomment below and update the code to test the property ChargebackAmount + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedFees (base name: "RefundedFees")', function() { + // uncomment below and update the code to test the property RefundedFees + //var instance = new Flipdish.PayoutChargeback(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutDetail.spec.js b/test/model/PayoutDetail.spec.js new file mode 100644 index 00000000..b13542c4 --- /dev/null +++ b/test/model/PayoutDetail.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutDetail', function() { + it('should create an instance of PayoutDetail', function() { + // uncomment below and update the code to test PayoutDetail + //var instane = new Flipdish.PayoutDetail(); + //expect(instance).to.be.a(Flipdish.PayoutDetail); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // uncomment below and update the code to test the property PayoutId + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountId (base name: "BankAccountId")', function() { + // uncomment below and update the code to test the property BankAccountId + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutStatus (base name: "PayoutStatus")', function() { + // uncomment below and update the code to test the property PayoutStatus + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedDate (base name: "CreatedDate")', function() { + // uncomment below and update the code to test the property CreatedDate + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodStartTime (base name: "PeriodStartTime")', function() { + // uncomment below and update the code to test the property PeriodStartTime + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodEndTime (base name: "PeriodEndTime")', function() { + // uncomment below and update the code to test the property PeriodEndTime + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property DestinationBank (base name: "DestinationBank")', function() { + // uncomment below and update the code to test the property DestinationBank + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property DestinationAccount (base name: "DestinationAccount")', function() { + // uncomment below and update the code to test the property DestinationAccount + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutType (base name: "PayoutType")', function() { + // uncomment below and update the code to test the property PayoutType + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutStores (base name: "PayoutStores")', function() { + // uncomment below and update the code to test the property PayoutStores + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CutoffDate (base name: "CutoffDate")', function() { + // uncomment below and update the code to test the property CutoffDate + //var instance = new Flipdish.PayoutDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutOrder.spec.js b/test/model/PayoutOrder.spec.js new file mode 100644 index 00000000..de0cb95e --- /dev/null +++ b/test/model/PayoutOrder.spec.js @@ -0,0 +1,191 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutOrder', function() { + it('should create an instance of PayoutOrder', function() { + // uncomment below and update the code to test PayoutOrder + //var instane = new Flipdish.PayoutOrder(); + //expect(instance).to.be.a(Flipdish.PayoutOrder); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // uncomment below and update the code to test the property PayoutId + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDate (base name: "OrderDate")', function() { + // uncomment below and update the code to test the property OrderDate + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property OrderType (base name: "OrderType")', function() { + // uncomment below and update the code to test the property OrderType + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCurrency (base name: "OrderCurrency")', function() { + // uncomment below and update the code to test the property OrderCurrency + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Sales (base name: "Sales")', function() { + // uncomment below and update the code to test the property Sales + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property SalesTax (base name: "SalesTax")', function() { + // uncomment below and update the code to test the property SalesTax + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryCharges (base name: "DeliveryCharges")', function() { + // uncomment below and update the code to test the property DeliveryCharges + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Tips (base name: "Tips")', function() { + // uncomment below and update the code to test the property Tips + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // uncomment below and update the code to test the property Voucher + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property FlatFeeExcludingVat (base name: "FlatFeeExcludingVat")', function() { + // uncomment below and update the code to test the property FlatFeeExcludingVat + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property FlatFeeExcludingVAT (base name: "FlatFeeExcludingVAT")', function() { + // uncomment below and update the code to test the property FlatFeeExcludingVAT + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property FlatFeeIncludingVat (base name: "FlatFeeIncludingVat")', function() { + // uncomment below and update the code to test the property FlatFeeIncludingVat + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PercentageFeeExcludingVat (base name: "PercentageFeeExcludingVat")', function() { + // uncomment below and update the code to test the property PercentageFeeExcludingVat + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PercentageFeeExcludingVAT (base name: "PercentageFeeExcludingVAT")', function() { + // uncomment below and update the code to test the property PercentageFeeExcludingVAT + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Vat (base name: "Vat")', function() { + // uncomment below and update the code to test the property Vat + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TotalFees (base name: "TotalFees")', function() { + // uncomment below and update the code to test the property TotalFees + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property CashFeeChargedToCustomer (base name: "CashFeeChargedToCustomer")', function() { + // uncomment below and update the code to test the property CashFeeChargedToCustomer + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property NetSales (base name: "NetSales")', function() { + // uncomment below and update the code to test the property NetSales + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceChargeAmount (base name: "ServiceChargeAmount")', function() { + // uncomment below and update the code to test the property ServiceChargeAmount + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceChargePercentage (base name: "ServiceChargePercentage")', function() { + // uncomment below and update the code to test the property ServiceChargePercentage + //var instance = new Flipdish.PayoutOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutOtherCharge.spec.js b/test/model/PayoutOtherCharge.spec.js new file mode 100644 index 00000000..9f305dd9 --- /dev/null +++ b/test/model/PayoutOtherCharge.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutOtherCharge(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutOtherCharge', function() { + it('should create an instance of PayoutOtherCharge', function() { + // uncomment below and update the code to test PayoutOtherCharge + //var instane = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be.a(Flipdish.PayoutOtherCharge); + }); + + it('should have the property ChargeId (base name: "ChargeId")', function() { + // uncomment below and update the code to test the property ChargeId + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // uncomment below and update the code to test the property PayoutId + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property ChargeDate (base name: "ChargeDate")', function() { + // uncomment below and update the code to test the property ChargeDate + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property ChargeType (base name: "ChargeType")', function() { + // uncomment below and update the code to test the property ChargeType + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property ChargeDescription (base name: "ChargeDescription")', function() { + // uncomment below and update the code to test the property ChargeDescription + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PayoutOtherCharge(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutRefund.spec.js b/test/model/PayoutRefund.spec.js new file mode 100644 index 00000000..aeb4a603 --- /dev/null +++ b/test/model/PayoutRefund.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutRefund(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutRefund', function() { + it('should create an instance of PayoutRefund', function() { + // uncomment below and update the code to test PayoutRefund + //var instane = new Flipdish.PayoutRefund(); + //expect(instance).to.be.a(Flipdish.PayoutRefund); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCurrency (base name: "OrderCurrency")', function() { + // uncomment below and update the code to test the property OrderCurrency + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // uncomment below and update the code to test the property PayoutId + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property OrderDate (base name: "OrderDate")', function() { + // uncomment below and update the code to test the property OrderDate + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property OrderType (base name: "OrderType")', function() { + // uncomment below and update the code to test the property OrderType + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property RefundDate (base name: "RefundDate")', function() { + // uncomment below and update the code to test the property RefundDate + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRefund (base name: "TotalRefund")', function() { + // uncomment below and update the code to test the property TotalRefund + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedFees (base name: "RefundedFees")', function() { + // uncomment below and update the code to test the property RefundedFees + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // uncomment below and update the code to test the property RefundedAmount + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property CashFeeRefundedToCustomer (base name: "CashFeeRefundedToCustomer")', function() { + // uncomment below and update the code to test the property CashFeeRefundedToCustomer + //var instance = new Flipdish.PayoutRefund(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3Details.spec.js b/test/model/PayoutReport3Details.spec.js new file mode 100644 index 00000000..92970555 --- /dev/null +++ b/test/model/PayoutReport3Details.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3Details(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3Details', function() { + it('should create an instance of PayoutReport3Details', function() { + // uncomment below and update the code to test PayoutReport3Details + //var instane = new Flipdish.PayoutReport3Details(); + //expect(instance).to.be.a(Flipdish.PayoutReport3Details); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.PayoutReport3Details(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PayoutReport3Details(); + //expect(instance).to.be(); + }); + + it('should have the property Summary (base name: "Summary")', function() { + // uncomment below and update the code to test the property Summary + //var instance = new Flipdish.PayoutReport3Details(); + //expect(instance).to.be(); + }); + + it('should have the property Revenue (base name: "Revenue")', function() { + // uncomment below and update the code to test the property Revenue + //var instance = new Flipdish.PayoutReport3Details(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishFees (base name: "FlipdishFees")', function() { + // uncomment below and update the code to test the property FlipdishFees + //var instance = new Flipdish.PayoutReport3Details(); + //expect(instance).to.be(); + }); + + it('should have the property Adjustments (base name: "Adjustments")', function() { + // uncomment below and update the code to test the property Adjustments + //var instance = new Flipdish.PayoutReport3Details(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3DetailsAdjustments.spec.js b/test/model/PayoutReport3DetailsAdjustments.spec.js new file mode 100644 index 00000000..79b26fdd --- /dev/null +++ b/test/model/PayoutReport3DetailsAdjustments.spec.js @@ -0,0 +1,185 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3DetailsAdjustments(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3DetailsAdjustments', function() { + it('should create an instance of PayoutReport3DetailsAdjustments', function() { + // uncomment below and update the code to test PayoutReport3DetailsAdjustments + //var instane = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be.a(Flipdish.PayoutReport3DetailsAdjustments); + }); + + it('should have the property OpeningBalanceDate (base name: "OpeningBalanceDate")', function() { + // uncomment below and update the code to test the property OpeningBalanceDate + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property ClosingBalanceDate (base name: "ClosingBalanceDate")', function() { + // uncomment below and update the code to test the property ClosingBalanceDate + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property OpeningBalance (base name: "OpeningBalance")', function() { + // uncomment below and update the code to test the property OpeningBalance + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property RefundsOnCardOrders (base name: "RefundsOnCardOrders")', function() { + // uncomment below and update the code to test the property RefundsOnCardOrders + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property RefundsOnCashOrders (base name: "RefundsOnCashOrders")', function() { + // uncomment below and update the code to test the property RefundsOnCashOrders + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property CashCustomerFees (base name: "CashCustomerFees")', function() { + // uncomment below and update the code to test the property CashCustomerFees + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property Chargebacks (base name: "Chargebacks")', function() { + // uncomment below and update the code to test the property Chargebacks + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property OtherTransactions (base name: "OtherTransactions")', function() { + // uncomment below and update the code to test the property OtherTransactions + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property ClosingBalance (base name: "ClosingBalance")', function() { + // uncomment below and update the code to test the property ClosingBalance + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property BalanceRepaid (base name: "BalanceRepaid")', function() { + // uncomment below and update the code to test the property BalanceRepaid + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property RefundsOnCardOrdersBracketsAmount (base name: "RefundsOnCardOrdersBracketsAmount")', function() { + // uncomment below and update the code to test the property RefundsOnCardOrdersBracketsAmount + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property RefundsOnCardOrdersBracketsOutOfAmount (base name: "RefundsOnCardOrdersBracketsOutOfAmount")', function() { + // uncomment below and update the code to test the property RefundsOnCardOrdersBracketsOutOfAmount + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property RefundsOnCashOrdersBracketsAmount (base name: "RefundsOnCashOrdersBracketsAmount")', function() { + // uncomment below and update the code to test the property RefundsOnCashOrdersBracketsAmount + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property RefundsOnCashOrdersBracketsOutOfAmount (base name: "RefundsOnCashOrdersBracketsOutOfAmount")', function() { + // uncomment below and update the code to test the property RefundsOnCashOrdersBracketsOutOfAmount + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property CashCustomerFeesBracketsAmount (base name: "CashCustomerFeesBracketsAmount")', function() { + // uncomment below and update the code to test the property CashCustomerFeesBracketsAmount + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property CashCustomerFeesBracketsOutOfAmount (base name: "CashCustomerFeesBracketsOutOfAmount")', function() { + // uncomment below and update the code to test the property CashCustomerFeesBracketsOutOfAmount + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property BalanceChange (base name: "BalanceChange")', function() { + // uncomment below and update the code to test the property BalanceChange + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property PreviousPayoutId (base name: "PreviousPayoutId")', function() { + // uncomment below and update the code to test the property PreviousPayoutId + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property NextPayoutId (base name: "NextPayoutId")', function() { + // uncomment below and update the code to test the property NextPayoutId + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedFeesOnChargebacks (base name: "RefundedFeesOnChargebacks")', function() { + // uncomment below and update the code to test the property RefundedFeesOnChargebacks + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + it('should have the property TotalChargebackCost (base name: "TotalChargebackCost")', function() { + // uncomment below and update the code to test the property TotalChargebackCost + //var instance = new Flipdish.PayoutReport3DetailsAdjustments(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3DetailsFlipdishFees.spec.js b/test/model/PayoutReport3DetailsFlipdishFees.spec.js new file mode 100644 index 00000000..04dbec01 --- /dev/null +++ b/test/model/PayoutReport3DetailsFlipdishFees.spec.js @@ -0,0 +1,233 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3DetailsFlipdishFees', function() { + it('should create an instance of PayoutReport3DetailsFlipdishFees', function() { + // uncomment below and update the code to test PayoutReport3DetailsFlipdishFees + //var instane = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be.a(Flipdish.PayoutReport3DetailsFlipdishFees); + }); + + it('should have the property WebAndAppCash (base name: "WebAndAppCash")', function() { + // uncomment below and update the code to test the property WebAndAppCash + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property WebAndAppCashRevenueIncludingTips (base name: "WebAndAppCashRevenueIncludingTips")', function() { + // uncomment below and update the code to test the property WebAndAppCashRevenueIncludingTips + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property WebAndAppCard (base name: "WebAndAppCard")', function() { + // uncomment below and update the code to test the property WebAndAppCard + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property WebAndAppCardRevenueIncludingTips (base name: "WebAndAppCardRevenueIncludingTips")', function() { + // uncomment below and update the code to test the property WebAndAppCardRevenueIncludingTips + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property KioskCash (base name: "KioskCash")', function() { + // uncomment below and update the code to test the property KioskCash + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property KioskCashRevenue (base name: "KioskCashRevenue")', function() { + // uncomment below and update the code to test the property KioskCashRevenue + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property KioskCard (base name: "KioskCard")', function() { + // uncomment below and update the code to test the property KioskCard + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property KioskCardRevenue (base name: "KioskCardRevenue")', function() { + // uncomment below and update the code to test the property KioskCardRevenue + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property QropCash (base name: "QropCash")', function() { + // uncomment below and update the code to test the property QropCash + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property QropCashRevenue (base name: "QropCashRevenue")', function() { + // uncomment below and update the code to test the property QropCashRevenue + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property QropCard (base name: "QropCard")', function() { + // uncomment below and update the code to test the property QropCard + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property QropCardRevenue (base name: "QropCardRevenue")', function() { + // uncomment below and update the code to test the property QropCardRevenue + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property PosCard (base name: "PosCard")', function() { + // uncomment below and update the code to test the property PosCard + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property PosCardRevenue (base name: "PosCardRevenue")', function() { + // uncomment below and update the code to test the property PosCardRevenue + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property PosCardOnFlipdishOrders (base name: "PosCardOnFlipdishOrders")', function() { + // uncomment below and update the code to test the property PosCardOnFlipdishOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property OtherIntegrationFees (base name: "OtherIntegrationFees")', function() { + // uncomment below and update the code to test the property OtherIntegrationFees + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property OtherIntegrationTips (base name: "OtherIntegrationTips")', function() { + // uncomment below and update the code to test the property OtherIntegrationTips + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedFeesOnRefundedSales (base name: "RefundedFeesOnRefundedSales")', function() { + // uncomment below and update the code to test the property RefundedFeesOnRefundedSales + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property Vat (base name: "Vat")', function() { + // uncomment below and update the code to test the property Vat + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedFeesOnPosSales (base name: "RefundedFeesOnPosSales")', function() { + // uncomment below and update the code to test the property RefundedFeesOnPosSales + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property Total (base name: "Total")', function() { + // uncomment below and update the code to test the property Total + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property ThirdPartyIntegrationFeesAndTips (base name: "ThirdPartyIntegrationFeesAndTips")', function() { + // uncomment below and update the code to test the property ThirdPartyIntegrationFeesAndTips + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property WebAndAppCardOnXOrders (base name: "WebAndAppCardOnXOrders")', function() { + // uncomment below and update the code to test the property WebAndAppCardOnXOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property WebAndAppCashOnXOrders (base name: "WebAndAppCashOnXOrders")', function() { + // uncomment below and update the code to test the property WebAndAppCashOnXOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property KioskCardOnXOrders (base name: "KioskCardOnXOrders")', function() { + // uncomment below and update the code to test the property KioskCardOnXOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property KioskCashOnXOrders (base name: "KioskCashOnXOrders")', function() { + // uncomment below and update the code to test the property KioskCashOnXOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property QropCardOnXOrders (base name: "QropCardOnXOrders")', function() { + // uncomment below and update the code to test the property QropCardOnXOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property QropCashOnXOrders (base name: "QropCashOnXOrders")', function() { + // uncomment below and update the code to test the property QropCashOnXOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + it('should have the property PosCardOnXOrders (base name: "PosCardOnXOrders")', function() { + // uncomment below and update the code to test the property PosCardOnXOrders + //var instance = new Flipdish.PayoutReport3DetailsFlipdishFees(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3DetailsRevenue.spec.js b/test/model/PayoutReport3DetailsRevenue.spec.js new file mode 100644 index 00000000..838eecc3 --- /dev/null +++ b/test/model/PayoutReport3DetailsRevenue.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3DetailsRevenue(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3DetailsRevenue', function() { + it('should create an instance of PayoutReport3DetailsRevenue', function() { + // uncomment below and update the code to test PayoutReport3DetailsRevenue + //var instane = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be.a(Flipdish.PayoutReport3DetailsRevenue); + }); + + it('should have the property GrossSales (base name: "GrossSales")', function() { + // uncomment below and update the code to test the property GrossSales + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + it('should have the property SalesTax (base name: "SalesTax")', function() { + // uncomment below and update the code to test the property SalesTax + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryCharges (base name: "DeliveryCharges")', function() { + // uncomment below and update the code to test the property DeliveryCharges + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + it('should have the property OtherCharges (base name: "OtherCharges")', function() { + // uncomment below and update the code to test the property OtherCharges + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + it('should have the property Tips (base name: "Tips")', function() { + // uncomment below and update the code to test the property Tips + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRevenue (base name: "TotalRevenue")', function() { + // uncomment below and update the code to test the property TotalRevenue + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + it('should have the property RevenueForFeeCalculations (base name: "RevenueForFeeCalculations")', function() { + // uncomment below and update the code to test the property RevenueForFeeCalculations + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + it('should have the property DrsCharges (base name: "DrsCharges")', function() { + // uncomment below and update the code to test the property DrsCharges + //var instance = new Flipdish.PayoutReport3DetailsRevenue(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3DetailsSalesLine.spec.js b/test/model/PayoutReport3DetailsSalesLine.spec.js new file mode 100644 index 00000000..b2863904 --- /dev/null +++ b/test/model/PayoutReport3DetailsSalesLine.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3DetailsSalesLine(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3DetailsSalesLine', function() { + it('should create an instance of PayoutReport3DetailsSalesLine', function() { + // uncomment below and update the code to test PayoutReport3DetailsSalesLine + //var instane = new Flipdish.PayoutReport3DetailsSalesLine(); + //expect(instance).to.be.a(Flipdish.PayoutReport3DetailsSalesLine); + }); + + it('should have the property Online (base name: "Online")', function() { + // uncomment below and update the code to test the property Online + //var instance = new Flipdish.PayoutReport3DetailsSalesLine(); + //expect(instance).to.be(); + }); + + it('should have the property Pos (base name: "Pos")', function() { + // uncomment below and update the code to test the property Pos + //var instance = new Flipdish.PayoutReport3DetailsSalesLine(); + //expect(instance).to.be(); + }); + + it('should have the property Other (base name: "Other")', function() { + // uncomment below and update the code to test the property Other + //var instance = new Flipdish.PayoutReport3DetailsSalesLine(); + //expect(instance).to.be(); + }); + + it('should have the property Total (base name: "Total")', function() { + // uncomment below and update the code to test the property Total + //var instance = new Flipdish.PayoutReport3DetailsSalesLine(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3DetailsSummary.spec.js b/test/model/PayoutReport3DetailsSummary.spec.js new file mode 100644 index 00000000..131dc009 --- /dev/null +++ b/test/model/PayoutReport3DetailsSummary.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3DetailsSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3DetailsSummary', function() { + it('should create an instance of PayoutReport3DetailsSummary', function() { + // uncomment below and update the code to test PayoutReport3DetailsSummary + //var instane = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be.a(Flipdish.PayoutReport3DetailsSummary); + }); + + it('should have the property Revenue (base name: "Revenue")', function() { + // uncomment below and update the code to test the property Revenue + //var instance = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be(); + }); + + it('should have the property RevenueOfWhichCash (base name: "RevenueOfWhichCash")', function() { + // uncomment below and update the code to test the property RevenueOfWhichCash + //var instance = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be(); + }); + + it('should have the property RevenueForFeeCalculations (base name: "RevenueForFeeCalculations")', function() { + // uncomment below and update the code to test the property RevenueForFeeCalculations + //var instance = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishFees (base name: "FlipdishFees")', function() { + // uncomment below and update the code to test the property FlipdishFees + //var instance = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Adjustments (base name: "Adjustments")', function() { + // uncomment below and update the code to test the property Adjustments + //var instance = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be(); + }); + + it('should have the property ThirdPartyIntegrationFeesAndTips (base name: "ThirdPartyIntegrationFeesAndTips")', function() { + // uncomment below and update the code to test the property ThirdPartyIntegrationFeesAndTips + //var instance = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Total (base name: "Total")', function() { + // uncomment below and update the code to test the property Total + //var instance = new Flipdish.PayoutReport3DetailsSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3Overview.spec.js b/test/model/PayoutReport3Overview.spec.js new file mode 100644 index 00000000..c5b2bcc0 --- /dev/null +++ b/test/model/PayoutReport3Overview.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3Overview(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3Overview', function() { + it('should create an instance of PayoutReport3Overview', function() { + // uncomment below and update the code to test PayoutReport3Overview + //var instane = new Flipdish.PayoutReport3Overview(); + //expect(instance).to.be.a(Flipdish.PayoutReport3Overview); + }); + + it('should have the property PayoutReport3OverviewHeader (base name: "PayoutReport3OverviewHeader")', function() { + // uncomment below and update the code to test the property PayoutReport3OverviewHeader + //var instance = new Flipdish.PayoutReport3Overview(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutStores (base name: "PayoutStores")', function() { + // uncomment below and update the code to test the property PayoutStores + //var instance = new Flipdish.PayoutReport3Overview(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3OverviewHeader.spec.js b/test/model/PayoutReport3OverviewHeader.spec.js new file mode 100644 index 00000000..e408cac9 --- /dev/null +++ b/test/model/PayoutReport3OverviewHeader.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3OverviewHeader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3OverviewHeader', function() { + it('should create an instance of PayoutReport3OverviewHeader', function() { + // uncomment below and update the code to test PayoutReport3OverviewHeader + //var instane = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be.a(Flipdish.PayoutReport3OverviewHeader); + }); + + it('should have the property PayoutId (base name: "PayoutId")', function() { + // uncomment below and update the code to test the property PayoutId + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountId (base name: "BankAccountId")', function() { + // uncomment below and update the code to test the property BankAccountId + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property IsManualPayout (base name: "IsManualPayout")', function() { + // uncomment below and update the code to test the property IsManualPayout + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property AccountName (base name: "AccountName")', function() { + // uncomment below and update the code to test the property AccountName + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutStatus (base name: "PayoutStatus")', function() { + // uncomment below and update the code to test the property PayoutStatus + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedDate (base name: "CreatedDate")', function() { + // uncomment below and update the code to test the property CreatedDate + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodStartTime (base name: "PeriodStartTime")', function() { + // uncomment below and update the code to test the property PeriodStartTime + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodEndTime (base name: "PeriodEndTime")', function() { + // uncomment below and update the code to test the property PeriodEndTime + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property DestinationBank (base name: "DestinationBank")', function() { + // uncomment below and update the code to test the property DestinationBank + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property DestinationAccount (base name: "DestinationAccount")', function() { + // uncomment below and update the code to test the property DestinationAccount + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PayoutReport3OverviewHeader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3RefundedOrder.spec.js b/test/model/PayoutReport3RefundedOrder.spec.js new file mode 100644 index 00000000..1ba6bf15 --- /dev/null +++ b/test/model/PayoutReport3RefundedOrder.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3RefundedOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3RefundedOrder', function() { + it('should create an instance of PayoutReport3RefundedOrder', function() { + // uncomment below and update the code to test PayoutReport3RefundedOrder + //var instane = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be.a(Flipdish.PayoutReport3RefundedOrder); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PlacedAtTime (base name: "PlacedAtTime")', function() { + // uncomment below and update the code to test the property PlacedAtTime + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property ModifiedAtTime (base name: "ModifiedAtTime")', function() { + // uncomment below and update the code to test the property ModifiedAtTime + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedAmount (base name: "RefundedAmount")', function() { + // uncomment below and update the code to test the property RefundedAmount + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property RefundedFees (base name: "RefundedFees")', function() { + // uncomment below and update the code to test the property RefundedFees + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property RefundType (base name: "RefundType")', function() { + // uncomment below and update the code to test the property RefundType + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property CashFeeRefundedToCustomer (base name: "CashFeeRefundedToCustomer")', function() { + // uncomment below and update the code to test the property CashFeeRefundedToCustomer + //var instance = new Flipdish.PayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutReport3Store.spec.js b/test/model/PayoutReport3Store.spec.js new file mode 100644 index 00000000..3fb91ee0 --- /dev/null +++ b/test/model/PayoutReport3Store.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutReport3Store(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutReport3Store', function() { + it('should create an instance of PayoutReport3Store', function() { + // uncomment below and update the code to test PayoutReport3Store + //var instane = new Flipdish.PayoutReport3Store(); + //expect(instance).to.be.a(Flipdish.PayoutReport3Store); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PayoutReport3Store(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.PayoutReport3Store(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutRequestIds.spec.js b/test/model/PayoutRequestIds.spec.js new file mode 100644 index 00000000..c3964353 --- /dev/null +++ b/test/model/PayoutRequestIds.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutRequestIds(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutRequestIds', function() { + it('should create an instance of PayoutRequestIds', function() { + // uncomment below and update the code to test PayoutRequestIds + //var instane = new Flipdish.PayoutRequestIds(); + //expect(instance).to.be.a(Flipdish.PayoutRequestIds); + }); + + it('should have the property BankAccountIds (base name: "BankAccountIds")', function() { + // uncomment below and update the code to test the property BankAccountIds + //var instance = new Flipdish.PayoutRequestIds(); + //expect(instance).to.be(); + }); + + it('should have the property States (base name: "States")', function() { + // uncomment below and update the code to test the property States + //var instance = new Flipdish.PayoutRequestIds(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutStore.spec.js b/test/model/PayoutStore.spec.js new file mode 100644 index 00000000..76d7300f --- /dev/null +++ b/test/model/PayoutStore.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutStore', function() { + it('should create an instance of PayoutStore', function() { + // uncomment below and update the code to test PayoutStore + //var instane = new Flipdish.PayoutStore(); + //expect(instance).to.be.a(Flipdish.PayoutStore); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineRevenue (base name: "OnlineRevenue")', function() { + // uncomment below and update the code to test the property OnlineRevenue + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property Revenue (base name: "Revenue")', function() { + // uncomment below and update the code to test the property Revenue + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property RevenueAdjustments (base name: "RevenueAdjustments")', function() { + // uncomment below and update the code to test the property RevenueAdjustments + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishFees (base name: "FlipdishFees")', function() { + // uncomment below and update the code to test the property FlipdishFees + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property Chargebacks (base name: "Chargebacks")', function() { + // uncomment below and update the code to test the property Chargebacks + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property OtherCharges (base name: "OtherCharges")', function() { + // uncomment below and update the code to test the property OtherCharges + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property Balance (base name: "Balance")', function() { + // uncomment below and update the code to test the property Balance + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property PosRevenue (base name: "PosRevenue")', function() { + // uncomment below and update the code to test the property PosRevenue + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + it('should have the property ThirdPartyFees (base name: "ThirdPartyFees")', function() { + // uncomment below and update the code to test the property ThirdPartyFees + //var instance = new Flipdish.PayoutStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PayoutSummary.spec.js b/test/model/PayoutSummary.spec.js new file mode 100644 index 00000000..e97198d1 --- /dev/null +++ b/test/model/PayoutSummary.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PayoutSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PayoutSummary', function() { + it('should create an instance of PayoutSummary', function() { + // uncomment below and update the code to test PayoutSummary + //var instane = new Flipdish.PayoutSummary(); + //expect(instance).to.be.a(Flipdish.PayoutSummary); + }); + + it('should have the property PayoutStatus (base name: "PayoutStatus")', function() { + // uncomment below and update the code to test the property PayoutStatus + //var instance = new Flipdish.PayoutSummary(); + //expect(instance).to.be(); + }); + + it('should have the property TotalAmount (base name: "TotalAmount")', function() { + // uncomment below and update the code to test the property TotalAmount + //var instance = new Flipdish.PayoutSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PayoutSummary(); + //expect(instance).to.be(); + }); + + it('should have the property TotalCount (base name: "TotalCount")', function() { + // uncomment below and update the code to test the property TotalCount + //var instance = new Flipdish.PayoutSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PendingInvitation.spec.js b/test/model/PendingInvitation.spec.js new file mode 100644 index 00000000..d038b223 --- /dev/null +++ b/test/model/PendingInvitation.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PendingInvitation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PendingInvitation', function() { + it('should create an instance of PendingInvitation', function() { + // uncomment below and update the code to test PendingInvitation + //var instane = new Flipdish.PendingInvitation(); + //expect(instance).to.be.a(Flipdish.PendingInvitation); + }); + + it('should have the property AppName (base name: "AppName")', function() { + // uncomment below and update the code to test the property AppName + //var instance = new Flipdish.PendingInvitation(); + //expect(instance).to.be(); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.PendingInvitation(); + //expect(instance).to.be(); + }); + + it('should have the property Otc (base name: "Otc")', function() { + // uncomment below and update the code to test the property Otc + //var instance = new Flipdish.PendingInvitation(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedAt (base name: "CreatedAt")', function() { + // uncomment below and update the code to test the property CreatedAt + //var instance = new Flipdish.PendingInvitation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PendingMenuChanges.spec.js b/test/model/PendingMenuChanges.spec.js new file mode 100644 index 00000000..98314b60 --- /dev/null +++ b/test/model/PendingMenuChanges.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PendingMenuChanges(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PendingMenuChanges', function() { + it('should create an instance of PendingMenuChanges', function() { + // uncomment below and update the code to test PendingMenuChanges + //var instane = new Flipdish.PendingMenuChanges(); + //expect(instance).to.be.a(Flipdish.PendingMenuChanges); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.PendingMenuChanges(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.PendingMenuChanges(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PendingMenuChangesSummaries.spec.js b/test/model/PendingMenuChangesSummaries.spec.js new file mode 100644 index 00000000..45593724 --- /dev/null +++ b/test/model/PendingMenuChangesSummaries.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PendingMenuChangesSummaries(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PendingMenuChangesSummaries', function() { + it('should create an instance of PendingMenuChangesSummaries', function() { + // uncomment below and update the code to test PendingMenuChangesSummaries + //var instane = new Flipdish.PendingMenuChangesSummaries(); + //expect(instance).to.be.a(Flipdish.PendingMenuChangesSummaries); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.PendingMenuChangesSummaries(); + //expect(instance).to.be(); + }); + + it('should have the property TotalPendingChanges (base name: "TotalPendingChanges")', function() { + // uncomment below and update the code to test the property TotalPendingChanges + //var instance = new Flipdish.PendingMenuChangesSummaries(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PercentDiscountDetails.spec.js b/test/model/PercentDiscountDetails.spec.js new file mode 100644 index 00000000..9d1a6ffc --- /dev/null +++ b/test/model/PercentDiscountDetails.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PercentDiscountDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PercentDiscountDetails', function() { + it('should create an instance of PercentDiscountDetails', function() { + // uncomment below and update the code to test PercentDiscountDetails + //var instane = new Flipdish.PercentDiscountDetails(); + //expect(instance).to.be.a(Flipdish.PercentDiscountDetails); + }); + + it('should have the property PercentageDiscount (base name: "PercentageDiscount")', function() { + // uncomment below and update the code to test the property PercentageDiscount + //var instance = new Flipdish.PercentDiscountDetails(); + //expect(instance).to.be(); + }); + + it('should have the property MaxDiscountAmount (base name: "MaxDiscountAmount")', function() { + // uncomment below and update the code to test the property MaxDiscountAmount + //var instance = new Flipdish.PercentDiscountDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PhoneCall.spec.js b/test/model/PhoneCall.spec.js new file mode 100644 index 00000000..47d5f5e4 --- /dev/null +++ b/test/model/PhoneCall.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PhoneCall(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PhoneCall', function() { + it('should create an instance of PhoneCall', function() { + // uncomment below and update the code to test PhoneCall + //var instane = new Flipdish.PhoneCall(); + //expect(instance).to.be.a(Flipdish.PhoneCall); + }); + + it('should have the property PhoneCallId (base name: "PhoneCallId")', function() { + // uncomment below and update the code to test the property PhoneCallId + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property TimeOfCall (base name: "TimeOfCall")', function() { + // uncomment below and update the code to test the property TimeOfCall + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property TimeOfCallLocal (base name: "TimeOfCallLocal")', function() { + // uncomment below and update the code to test the property TimeOfCallLocal + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property CallerName (base name: "CallerName")', function() { + // uncomment below and update the code to test the property CallerName + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property CallerUserId (base name: "CallerUserId")', function() { + // uncomment below and update the code to test the property CallerUserId + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property CallerNumber (base name: "CallerNumber")', function() { + // uncomment below and update the code to test the property CallerNumber + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property CallLengthInSeconds (base name: "CallLengthInSeconds")', function() { + // uncomment below and update the code to test the property CallLengthInSeconds + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property CallStatus (base name: "CallStatus")', function() { + // uncomment below and update the code to test the property CallStatus + //var instance = new Flipdish.PhoneCall(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PhoneCallEndedEvent.spec.js b/test/model/PhoneCallEndedEvent.spec.js new file mode 100644 index 00000000..bbfaab9b --- /dev/null +++ b/test/model/PhoneCallEndedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PhoneCallEndedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PhoneCallEndedEvent', function() { + it('should create an instance of PhoneCallEndedEvent', function() { + // uncomment below and update the code to test PhoneCallEndedEvent + //var instane = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be.a(Flipdish.PhoneCallEndedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneCall (base name: "PhoneCall")', function() { + // uncomment below and update the code to test the property PhoneCall + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PhoneCallEndedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PhoneCallStartedEvent.spec.js b/test/model/PhoneCallStartedEvent.spec.js new file mode 100644 index 00000000..81274cf6 --- /dev/null +++ b/test/model/PhoneCallStartedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PhoneCallStartedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PhoneCallStartedEvent', function() { + it('should create an instance of PhoneCallStartedEvent', function() { + // uncomment below and update the code to test PhoneCallStartedEvent + //var instane = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be.a(Flipdish.PhoneCallStartedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneCall (base name: "PhoneCall")', function() { + // uncomment below and update the code to test the property PhoneCall + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PhoneCallStartedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PosRevenueDetails.spec.js b/test/model/PosRevenueDetails.spec.js new file mode 100644 index 00000000..405ba5d5 --- /dev/null +++ b/test/model/PosRevenueDetails.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PosRevenueDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PosRevenueDetails', function() { + it('should create an instance of PosRevenueDetails', function() { + // uncomment below and update the code to test PosRevenueDetails + //var instane = new Flipdish.PosRevenueDetails(); + //expect(instance).to.be.a(Flipdish.PosRevenueDetails); + }); + + it('should have the property PosSalesAmount (base name: "PosSalesAmount")', function() { + // uncomment below and update the code to test the property PosSalesAmount + //var instance = new Flipdish.PosRevenueDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesTax (base name: "PosSalesTax")', function() { + // uncomment below and update the code to test the property PosSalesTax + //var instance = new Flipdish.PosRevenueDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesTips (base name: "PosSalesTips")', function() { + // uncomment below and update the code to test the property PosSalesTips + //var instance = new Flipdish.PosRevenueDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TotalPosRevenue (base name: "TotalPosRevenue")', function() { + // uncomment below and update the code to test the property TotalPosRevenue + //var instance = new Flipdish.PosRevenueDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PreOrderConfig.spec.js b/test/model/PreOrderConfig.spec.js new file mode 100644 index 00000000..434e12ec --- /dev/null +++ b/test/model/PreOrderConfig.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PreOrderConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PreOrderConfig', function() { + it('should create an instance of PreOrderConfig', function() { + // uncomment below and update the code to test PreOrderConfig + //var instane = new Flipdish.PreOrderConfig(); + //expect(instance).to.be.a(Flipdish.PreOrderConfig); + }); + + it('should have the property LeadTimeMinutes (base name: "LeadTimeMinutes")', function() { + // uncomment below and update the code to test the property LeadTimeMinutes + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property IntervalMinutes (base name: "IntervalMinutes")', function() { + // uncomment below and update the code to test the property IntervalMinutes + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property MaxOrderAheadDays (base name: "MaxOrderAheadDays")', function() { + // uncomment below and update the code to test the property MaxOrderAheadDays + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeAsap (base name: "IncludeAsap")', function() { + // uncomment below and update the code to test the property IncludeAsap + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeMoreGranularInitialTime (base name: "IncludeMoreGranularInitialTime")', function() { + // uncomment below and update the code to test the property IncludeMoreGranularInitialTime + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property CutOffTimePreviousDayBasic (base name: "CutOffTimePreviousDayBasic")', function() { + // uncomment below and update the code to test the property CutOffTimePreviousDayBasic + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property CutOffTimeCurrentDayBasic (base name: "CutOffTimeCurrentDayBasic")', function() { + // uncomment below and update the code to test the property CutOffTimeCurrentDayBasic + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PreOrderTimeDisplayType (base name: "PreOrderTimeDisplayType")', function() { + // uncomment below and update the code to test the property PreOrderTimeDisplayType + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property AlwaysAppearOpen (base name: "AlwaysAppearOpen")', function() { + // uncomment below and update the code to test the property AlwaysAppearOpen + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + it('should have the property RequireExplicitSelectAlways (base name: "RequireExplicitSelectAlways")', function() { + // uncomment below and update the code to test the property RequireExplicitSelectAlways + //var instance = new Flipdish.PreOrderConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PreOrderTime.spec.js b/test/model/PreOrderTime.spec.js new file mode 100644 index 00000000..db1c6b2a --- /dev/null +++ b/test/model/PreOrderTime.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PreOrderTime(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PreOrderTime', function() { + it('should create an instance of PreOrderTime', function() { + // uncomment below and update the code to test PreOrderTime + //var instane = new Flipdish.PreOrderTime(); + //expect(instance).to.be.a(Flipdish.PreOrderTime); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.PreOrderTime(); + //expect(instance).to.be(); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // uncomment below and update the code to test the property EndTime + //var instance = new Flipdish.PreOrderTime(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PredefinedAnswer.spec.js b/test/model/PredefinedAnswer.spec.js new file mode 100644 index 00000000..051c0d3e --- /dev/null +++ b/test/model/PredefinedAnswer.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PredefinedAnswer(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PredefinedAnswer', function() { + it('should create an instance of PredefinedAnswer', function() { + // uncomment below and update the code to test PredefinedAnswer + //var instane = new Flipdish.PredefinedAnswer(); + //expect(instance).to.be.a(Flipdish.PredefinedAnswer); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.PredefinedAnswer(); + //expect(instance).to.be(); + }); + + it('should have the property Text (base name: "Text")', function() { + // uncomment below and update the code to test the property Text + //var instance = new Flipdish.PredefinedAnswer(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PreviousOrder.spec.js b/test/model/PreviousOrder.spec.js new file mode 100644 index 00000000..09909340 --- /dev/null +++ b/test/model/PreviousOrder.spec.js @@ -0,0 +1,197 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PreviousOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PreviousOrder', function() { + it('should create an instance of PreviousOrder', function() { + // uncomment below and update the code to test PreviousOrder + //var instane = new Flipdish.PreviousOrder(); + //expect(instance).to.be.a(Flipdish.PreviousOrder); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // uncomment below and update the code to test the property DeliveryType + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryLocationAddressString (base name: "DeliveryLocationAddressString")', function() { + // uncomment below and update the code to test the property DeliveryLocationAddressString + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // uncomment below and update the code to test the property PaymentAccountType + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property RestaurantName (base name: "RestaurantName")', function() { + // uncomment below and update the code to test the property RestaurantName + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property LocalOrderId (base name: "LocalOrderId")', function() { + // uncomment below and update the code to test the property LocalOrderId + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TableServiceCategory (base name: "TableServiceCategory")', function() { + // uncomment below and update the code to test the property TableServiceCategory + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PickupLocationOptionValue (base name: "PickupLocationOptionValue")', function() { + // uncomment below and update the code to test the property PickupLocationOptionValue + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerName (base name: "CustomerName")', function() { + // uncomment below and update the code to test the property CustomerName + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumberInternationalFormatString (base name: "PhoneNumberInternationalFormatString")', function() { + // uncomment below and update the code to test the property PhoneNumberInternationalFormatString + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryInstructions (base name: "DeliveryInstructions")', function() { + // uncomment below and update the code to test the property DeliveryInstructions + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property ProcessingFee (base name: "ProcessingFee")', function() { + // uncomment below and update the code to test the property ProcessingFee + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceChargePercentage (base name: "ServiceChargePercentage")', function() { + // uncomment below and update the code to test the property ServiceChargePercentage + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceChargeAmount (base name: "ServiceChargeAmount")', function() { + // uncomment below and update the code to test the property ServiceChargeAmount + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TipAmount (base name: "TipAmount")', function() { + // uncomment below and update the code to test the property TipAmount + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryAmount (base name: "DeliveryAmount")', function() { + // uncomment below and update the code to test the property DeliveryAmount + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFeeAmount (base name: "DepositReturnFeeAmount")', function() { + // uncomment below and update the code to test the property DepositReturnFeeAmount + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TotalTax (base name: "TotalTax")', function() { + // uncomment below and update the code to test the property TotalTax + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TotalAmount (base name: "TotalAmount")', function() { + // uncomment below and update the code to test the property TotalAmount + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Items (base name: "Items")', function() { + // uncomment below and update the code to test the property Items + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRates (base name: "TaxRates")', function() { + // uncomment below and update the code to test the property TaxRates + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + it('should have the property WhiteLabelId (base name: "WhiteLabelId")', function() { + // uncomment below and update the code to test the property WhiteLabelId + //var instance = new Flipdish.PreviousOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PreviousOrderItem.spec.js b/test/model/PreviousOrderItem.spec.js new file mode 100644 index 00000000..859c1512 --- /dev/null +++ b/test/model/PreviousOrderItem.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PreviousOrderItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PreviousOrderItem', function() { + it('should create an instance of PreviousOrderItem', function() { + // uncomment below and update the code to test PreviousOrderItem + //var instane = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be.a(Flipdish.PreviousOrderItem); + }); + + it('should have the property MenuSectionDisplayOrder (base name: "MenuSectionDisplayOrder")', function() { + // uncomment below and update the code to test the property MenuSectionDisplayOrder + //var instance = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property MenuSectionName (base name: "MenuSectionName")', function() { + // uncomment below and update the code to test the property MenuSectionName + //var instance = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property PriceIncludingOptionSetItems (base name: "PriceIncludingOptionSetItems")', function() { + // uncomment below and update the code to test the property PriceIncludingOptionSetItems + //var instance = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property TaxAmount (base name: "TaxAmount")', function() { + // uncomment below and update the code to test the property TaxAmount + //var instance = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be(); + }); + + it('should have the property PreviousOrderItemOptions (base name: "PreviousOrderItemOptions")', function() { + // uncomment below and update the code to test the property PreviousOrderItemOptions + //var instance = new Flipdish.PreviousOrderItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PreviousOrderItemOption.spec.js b/test/model/PreviousOrderItemOption.spec.js new file mode 100644 index 00000000..bdb66cfe --- /dev/null +++ b/test/model/PreviousOrderItemOption.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PreviousOrderItemOption(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PreviousOrderItemOption', function() { + it('should create an instance of PreviousOrderItemOption', function() { + // uncomment below and update the code to test PreviousOrderItemOption + //var instane = new Flipdish.PreviousOrderItemOption(); + //expect(instance).to.be.a(Flipdish.PreviousOrderItemOption); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.PreviousOrderItemOption(); + //expect(instance).to.be(); + }); + + it('should have the property DepositReturnFee (base name: "DepositReturnFee")', function() { + // uncomment below and update the code to test the property DepositReturnFee + //var instance = new Flipdish.PreviousOrderItemOption(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Printer.spec.js b/test/model/Printer.spec.js new file mode 100644 index 00000000..38dcfc82 --- /dev/null +++ b/test/model/Printer.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Printer(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Printer', function() { + it('should create an instance of Printer', function() { + // uncomment below and update the code to test Printer + //var instane = new Flipdish.Printer(); + //expect(instance).to.be.a(Flipdish.Printer); + }); + + it('should have the property SerialNumber (base name: "SerialNumber")', function() { + // uncomment below and update the code to test the property SerialNumber + //var instance = new Flipdish.Printer(); + //expect(instance).to.be(); + }); + + it('should have the property LastPollTime (base name: "LastPollTime")', function() { + // uncomment below and update the code to test the property LastPollTime + //var instance = new Flipdish.Printer(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PrinterAssignedToStoreEvent.spec.js b/test/model/PrinterAssignedToStoreEvent.spec.js new file mode 100644 index 00000000..5d1926c8 --- /dev/null +++ b/test/model/PrinterAssignedToStoreEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PrinterAssignedToStoreEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PrinterAssignedToStoreEvent', function() { + it('should create an instance of PrinterAssignedToStoreEvent', function() { + // uncomment below and update the code to test PrinterAssignedToStoreEvent + //var instane = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be.a(Flipdish.PrinterAssignedToStoreEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // uncomment below and update the code to test the property Printer + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PrinterAssignedToStoreEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PrinterTurnedOffEvent.spec.js b/test/model/PrinterTurnedOffEvent.spec.js new file mode 100644 index 00000000..90c8cece --- /dev/null +++ b/test/model/PrinterTurnedOffEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PrinterTurnedOffEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PrinterTurnedOffEvent', function() { + it('should create an instance of PrinterTurnedOffEvent', function() { + // uncomment below and update the code to test PrinterTurnedOffEvent + //var instane = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be.a(Flipdish.PrinterTurnedOffEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // uncomment below and update the code to test the property Printer + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PrinterTurnedOffEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PrinterTurnedOnEvent.spec.js b/test/model/PrinterTurnedOnEvent.spec.js new file mode 100644 index 00000000..a4cf4ccf --- /dev/null +++ b/test/model/PrinterTurnedOnEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PrinterTurnedOnEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PrinterTurnedOnEvent', function() { + it('should create an instance of PrinterTurnedOnEvent', function() { + // uncomment below and update the code to test PrinterTurnedOnEvent + //var instane = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be.a(Flipdish.PrinterTurnedOnEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // uncomment below and update the code to test the property Printer + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PrinterTurnedOnEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PrinterUnassignedFromStoreEvent.spec.js b/test/model/PrinterUnassignedFromStoreEvent.spec.js new file mode 100644 index 00000000..7021778b --- /dev/null +++ b/test/model/PrinterUnassignedFromStoreEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PrinterUnassignedFromStoreEvent', function() { + it('should create an instance of PrinterUnassignedFromStoreEvent', function() { + // uncomment below and update the code to test PrinterUnassignedFromStoreEvent + //var instane = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be.a(Flipdish.PrinterUnassignedFromStoreEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Printer (base name: "Printer")', function() { + // uncomment below and update the code to test the property Printer + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PrinterUnassignedFromStoreEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ProcessPaymentIntentRequest.spec.js b/test/model/ProcessPaymentIntentRequest.spec.js new file mode 100644 index 00000000..27378398 --- /dev/null +++ b/test/model/ProcessPaymentIntentRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ProcessPaymentIntentRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ProcessPaymentIntentRequest', function() { + it('should create an instance of ProcessPaymentIntentRequest', function() { + // uncomment below and update the code to test ProcessPaymentIntentRequest + //var instane = new Flipdish.ProcessPaymentIntentRequest(); + //expect(instance).to.be.a(Flipdish.ProcessPaymentIntentRequest); + }); + + it('should have the property PaymentIntentId (base name: "PaymentIntentId")', function() { + // uncomment below and update the code to test the property PaymentIntentId + //var instance = new Flipdish.ProcessPaymentIntentRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ProcessingFeeConfig.spec.js b/test/model/ProcessingFeeConfig.spec.js new file mode 100644 index 00000000..960db489 --- /dev/null +++ b/test/model/ProcessingFeeConfig.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ProcessingFeeConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ProcessingFeeConfig', function() { + it('should create an instance of ProcessingFeeConfig', function() { + // uncomment below and update the code to test ProcessingFeeConfig + //var instane = new Flipdish.ProcessingFeeConfig(); + //expect(instance).to.be.a(Flipdish.ProcessingFeeConfig); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.ProcessingFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccountType (base name: "PaymentAccountType")', function() { + // uncomment below and update the code to test the property PaymentAccountType + //var instance = new Flipdish.ProcessingFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFee (base name: "PercentFee")', function() { + // uncomment below and update the code to test the property PercentFee + //var instance = new Flipdish.ProcessingFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFee (base name: "FixedFee")', function() { + // uncomment below and update the code to test the property FixedFee + //var instance = new Flipdish.ProcessingFeeConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Product.spec.js b/test/model/Product.spec.js new file mode 100644 index 00000000..0ede986e --- /dev/null +++ b/test/model/Product.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Product(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Product', function() { + it('should create an instance of Product', function() { + // uncomment below and update the code to test Product + //var instane = new Flipdish.Product(); + //expect(instance).to.be.a(Flipdish.Product); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // uncomment below and update the code to test the property IsArchived + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property Groups (base name: "Groups")', function() { + // uncomment below and update the code to test the property Groups + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property ProductType (base name: "ProductType")', function() { + // uncomment below and update the code to test the property ProductType + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.Product(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ProductReference.spec.js b/test/model/ProductReference.spec.js new file mode 100644 index 00000000..f79f26da --- /dev/null +++ b/test/model/ProductReference.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ProductReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ProductReference', function() { + it('should create an instance of ProductReference', function() { + // uncomment below and update the code to test ProductReference + //var instane = new Flipdish.ProductReference(); + //expect(instance).to.be.a(Flipdish.ProductReference); + }); + + it('should have the property Item (base name: "Item")', function() { + // uncomment below and update the code to test the property Item + //var instance = new Flipdish.ProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property Product (base name: "Product")', function() { + // uncomment below and update the code to test the property Product + //var instance = new Flipdish.ProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.ProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property ProductType (base name: "ProductType")', function() { + // uncomment below and update the code to test the property ProductType + //var instance = new Flipdish.ProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property PreselectedQuantity (base name: "PreselectedQuantity")', function() { + // uncomment below and update the code to test the property PreselectedQuantity + //var instance = new Flipdish.ProductReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PromotionAward.spec.js b/test/model/PromotionAward.spec.js new file mode 100644 index 00000000..2f704ed7 --- /dev/null +++ b/test/model/PromotionAward.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PromotionAward(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PromotionAward', function() { + it('should create an instance of PromotionAward', function() { + // uncomment below and update the code to test PromotionAward + //var instane = new Flipdish.PromotionAward(); + //expect(instance).to.be.a(Flipdish.PromotionAward); + }); + + it('should have the property PromotionAwardId (base name: "PromotionAwardId")', function() { + // uncomment below and update the code to test the property PromotionAwardId + //var instance = new Flipdish.PromotionAward(); + //expect(instance).to.be(); + }); + + it('should have the property MenuItemPublicId (base name: "MenuItemPublicId")', function() { + // uncomment below and update the code to test the property MenuItemPublicId + //var instance = new Flipdish.PromotionAward(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PromotionDetails.spec.js b/test/model/PromotionDetails.spec.js new file mode 100644 index 00000000..e0e48deb --- /dev/null +++ b/test/model/PromotionDetails.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PromotionDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PromotionDetails', function() { + it('should create an instance of PromotionDetails', function() { + // uncomment below and update the code to test PromotionDetails + //var instane = new Flipdish.PromotionDetails(); + //expect(instance).to.be.a(Flipdish.PromotionDetails); + }); + + it('should have the property PromotionId (base name: "PromotionId")', function() { + // uncomment below and update the code to test the property PromotionId + //var instance = new Flipdish.PromotionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.PromotionDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PromotionAwards (base name: "PromotionAwards")', function() { + // uncomment below and update the code to test the property PromotionAwards + //var instance = new Flipdish.PromotionDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PublishMenuChanges.spec.js b/test/model/PublishMenuChanges.spec.js new file mode 100644 index 00000000..c06545eb --- /dev/null +++ b/test/model/PublishMenuChanges.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PublishMenuChanges(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PublishMenuChanges', function() { + it('should create an instance of PublishMenuChanges', function() { + // uncomment below and update the code to test PublishMenuChanges + //var instane = new Flipdish.PublishMenuChanges(); + //expect(instance).to.be.a(Flipdish.PublishMenuChanges); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.PublishMenuChanges(); + //expect(instance).to.be(); + }); + + it('should have the property MenuIds (base name: "MenuIds")', function() { + // uncomment below and update the code to test the property MenuIds + //var instance = new Flipdish.PublishMenuChanges(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PushNotificationDeletedEvent.spec.js b/test/model/PushNotificationDeletedEvent.spec.js new file mode 100644 index 00000000..9407dc1a --- /dev/null +++ b/test/model/PushNotificationDeletedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PushNotificationDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PushNotificationDeletedEvent', function() { + it('should create an instance of PushNotificationDeletedEvent', function() { + // uncomment below and update the code to test PushNotificationDeletedEvent + //var instane = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be.a(Flipdish.PushNotificationDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PushNotification (base name: "PushNotification")', function() { + // uncomment below and update the code to test the property PushNotification + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PushNotificationDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PushNotificationRequest.spec.js b/test/model/PushNotificationRequest.spec.js new file mode 100644 index 00000000..30963e67 --- /dev/null +++ b/test/model/PushNotificationRequest.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PushNotificationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PushNotificationRequest', function() { + it('should create an instance of PushNotificationRequest', function() { + // uncomment below and update the code to test PushNotificationRequest + //var instane = new Flipdish.PushNotificationRequest(); + //expect(instance).to.be.a(Flipdish.PushNotificationRequest); + }); + + it('should have the property ScheduledTime (base name: "ScheduledTime")', function() { + // uncomment below and update the code to test the property ScheduledTime + //var instance = new Flipdish.PushNotificationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Title (base name: "Title")', function() { + // uncomment below and update the code to test the property Title + //var instance = new Flipdish.PushNotificationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.PushNotificationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PushNotificationResponse.spec.js b/test/model/PushNotificationResponse.spec.js new file mode 100644 index 00000000..b1b73a6d --- /dev/null +++ b/test/model/PushNotificationResponse.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PushNotificationResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PushNotificationResponse', function() { + it('should create an instance of PushNotificationResponse', function() { + // uncomment below and update the code to test PushNotificationResponse + //var instane = new Flipdish.PushNotificationResponse(); + //expect(instance).to.be.a(Flipdish.PushNotificationResponse); + }); + + it('should have the property Sent (base name: "Sent")', function() { + // uncomment below and update the code to test the property Sent + //var instance = new Flipdish.PushNotificationResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ScheduledPushNotificationId (base name: "ScheduledPushNotificationId")', function() { + // uncomment below and update the code to test the property ScheduledPushNotificationId + //var instance = new Flipdish.PushNotificationResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ScheduledTime (base name: "ScheduledTime")', function() { + // uncomment below and update the code to test the property ScheduledTime + //var instance = new Flipdish.PushNotificationResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Title (base name: "Title")', function() { + // uncomment below and update the code to test the property Title + //var instance = new Flipdish.PushNotificationResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.PushNotificationResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PushNotificationScheduledEvent.spec.js b/test/model/PushNotificationScheduledEvent.spec.js new file mode 100644 index 00000000..382be812 --- /dev/null +++ b/test/model/PushNotificationScheduledEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PushNotificationScheduledEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PushNotificationScheduledEvent', function() { + it('should create an instance of PushNotificationScheduledEvent', function() { + // uncomment below and update the code to test PushNotificationScheduledEvent + //var instane = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be.a(Flipdish.PushNotificationScheduledEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PushNotification (base name: "PushNotification")', function() { + // uncomment below and update the code to test the property PushNotification + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PushNotificationScheduledEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PushNotificationSentEvent.spec.js b/test/model/PushNotificationSentEvent.spec.js new file mode 100644 index 00000000..0f1bb0d6 --- /dev/null +++ b/test/model/PushNotificationSentEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.PushNotificationSentEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PushNotificationSentEvent', function() { + it('should create an instance of PushNotificationSentEvent', function() { + // uncomment below and update the code to test PushNotificationSentEvent + //var instane = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be.a(Flipdish.PushNotificationSentEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PushNotification (base name: "PushNotification")', function() { + // uncomment below and update the code to test the property PushNotification + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.PushNotificationSentEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Range.spec.js b/test/model/Range.spec.js new file mode 100644 index 00000000..9c1f6ae3 --- /dev/null +++ b/test/model/Range.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Range(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Range', function() { + it('should create an instance of Range', function() { + // uncomment below and update the code to test Range + //var instane = new Flipdish.Range(); + //expect(instance).to.be.a(Flipdish.Range); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.Range(); + //expect(instance).to.be(); + }); + + it('should have the property Period (base name: "Period")', function() { + // uncomment below and update the code to test the property Period + //var instance = new Flipdish.Range(); + //expect(instance).to.be(); + }); + + it('should have the property DayOfWeek (base name: "DayOfWeek")', function() { + // uncomment below and update the code to test the property DayOfWeek + //var instance = new Flipdish.Range(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ReaderActionStateInfo.spec.js b/test/model/ReaderActionStateInfo.spec.js new file mode 100644 index 00000000..d55bc1c9 --- /dev/null +++ b/test/model/ReaderActionStateInfo.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ReaderActionStateInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ReaderActionStateInfo', function() { + it('should create an instance of ReaderActionStateInfo', function() { + // uncomment below and update the code to test ReaderActionStateInfo + //var instane = new Flipdish.ReaderActionStateInfo(); + //expect(instance).to.be.a(Flipdish.ReaderActionStateInfo); + }); + + it('should have the property ActionState (base name: "ActionState")', function() { + // uncomment below and update the code to test the property ActionState + //var instance = new Flipdish.ReaderActionStateInfo(); + //expect(instance).to.be(); + }); + + it('should have the property FailureCode (base name: "FailureCode")', function() { + // uncomment below and update the code to test the property FailureCode + //var instance = new Flipdish.ReaderActionStateInfo(); + //expect(instance).to.be(); + }); + + it('should have the property FailureMessage (base name: "FailureMessage")', function() { + // uncomment below and update the code to test the property FailureMessage + //var instance = new Flipdish.ReaderActionStateInfo(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.ReaderActionStateInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RedeemInvitationResult.spec.js b/test/model/RedeemInvitationResult.spec.js new file mode 100644 index 00000000..d7be4539 --- /dev/null +++ b/test/model/RedeemInvitationResult.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RedeemInvitationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RedeemInvitationResult', function() { + it('should create an instance of RedeemInvitationResult', function() { + // uncomment below and update the code to test RedeemInvitationResult + //var instane = new Flipdish.RedeemInvitationResult(); + //expect(instance).to.be.a(Flipdish.RedeemInvitationResult); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.RedeemInvitationResult(); + //expect(instance).to.be(); + }); + + it('should have the property InvitationStatus (base name: "InvitationStatus")', function() { + // uncomment below and update the code to test the property InvitationStatus + //var instance = new Flipdish.RedeemInvitationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Refund.spec.js b/test/model/Refund.spec.js new file mode 100644 index 00000000..ef3dc521 --- /dev/null +++ b/test/model/Refund.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Refund(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Refund', function() { + it('should create an instance of Refund', function() { + // uncomment below and update the code to test Refund + //var instane = new Flipdish.Refund(); + //expect(instance).to.be.a(Flipdish.Refund); + }); + + it('should have the property RefundReason (base name: "RefundReason")', function() { + // uncomment below and update the code to test the property RefundReason + //var instance = new Flipdish.Refund(); + //expect(instance).to.be(); + }); + + it('should have the property RefundAmount (base name: "RefundAmount")', function() { + // uncomment below and update the code to test the property RefundAmount + //var instance = new Flipdish.Refund(); + //expect(instance).to.be(); + }); + + it('should have the property NotifyCustomer (base name: "NotifyCustomer")', function() { + // uncomment below and update the code to test the property NotifyCustomer + //var instance = new Flipdish.Refund(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Reject.spec.js b/test/model/Reject.spec.js new file mode 100644 index 00000000..9e182bfa --- /dev/null +++ b/test/model/Reject.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Reject(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Reject', function() { + it('should create an instance of Reject', function() { + // uncomment below and update the code to test Reject + //var instane = new Flipdish.Reject(); + //expect(instance).to.be.a(Flipdish.Reject); + }); + + it('should have the property RejectReason (base name: "RejectReason")', function() { + // uncomment below and update the code to test the property RejectReason + //var instance = new Flipdish.Reject(); + //expect(instance).to.be(); + }); + + it('should have the property DoNotNotifyCustomer (base name: "DoNotNotifyCustomer")', function() { + // uncomment below and update the code to test the property DoNotNotifyCustomer + //var instance = new Flipdish.Reject(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RequestLoginPinModel.spec.js b/test/model/RequestLoginPinModel.spec.js new file mode 100644 index 00000000..25ab90e9 --- /dev/null +++ b/test/model/RequestLoginPinModel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RequestLoginPinModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RequestLoginPinModel', function() { + it('should create an instance of RequestLoginPinModel', function() { + // uncomment below and update the code to test RequestLoginPinModel + //var instane = new Flipdish.RequestLoginPinModel(); + //expect(instance).to.be.a(Flipdish.RequestLoginPinModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.RequestLoginPinModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RequestLoginPinResponse.spec.js b/test/model/RequestLoginPinResponse.spec.js new file mode 100644 index 00000000..90ebd783 --- /dev/null +++ b/test/model/RequestLoginPinResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RequestLoginPinResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RequestLoginPinResponse', function() { + it('should create an instance of RequestLoginPinResponse', function() { + // uncomment below and update the code to test RequestLoginPinResponse + //var instane = new Flipdish.RequestLoginPinResponse(); + //expect(instance).to.be.a(Flipdish.RequestLoginPinResponse); + }); + + it('should have the property LoginPinSentViaEmail (base name: "LoginPinSentViaEmail")', function() { + // uncomment below and update the code to test the property LoginPinSentViaEmail + //var instance = new Flipdish.RequestLoginPinResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ForceOktaLogin (base name: "ForceOktaLogin")', function() { + // uncomment below and update the code to test the property ForceOktaLogin + //var instance = new Flipdish.RequestLoginPinResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RequestPasswordResetModel.spec.js b/test/model/RequestPasswordResetModel.spec.js new file mode 100644 index 00000000..417f496a --- /dev/null +++ b/test/model/RequestPasswordResetModel.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RequestPasswordResetModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RequestPasswordResetModel', function() { + it('should create an instance of RequestPasswordResetModel', function() { + // uncomment below and update the code to test RequestPasswordResetModel + //var instane = new Flipdish.RequestPasswordResetModel(); + //expect(instance).to.be.a(Flipdish.RequestPasswordResetModel); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.RequestPasswordResetModel(); + //expect(instance).to.be(); + }); + + it('should have the property RecaptchaToken (base name: "RecaptchaToken")', function() { + // uncomment below and update the code to test the property RecaptchaToken + //var instance = new Flipdish.RequestPasswordResetModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RequestPasswordResetPinResponse.spec.js b/test/model/RequestPasswordResetPinResponse.spec.js new file mode 100644 index 00000000..18ba45e1 --- /dev/null +++ b/test/model/RequestPasswordResetPinResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RequestPasswordResetPinResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RequestPasswordResetPinResponse', function() { + it('should create an instance of RequestPasswordResetPinResponse', function() { + // uncomment below and update the code to test RequestPasswordResetPinResponse + //var instane = new Flipdish.RequestPasswordResetPinResponse(); + //expect(instance).to.be.a(Flipdish.RequestPasswordResetPinResponse); + }); + + it('should have the property PasswordResetPinSentViaEmail (base name: "PasswordResetPinSentViaEmail")', function() { + // uncomment below and update the code to test the property PasswordResetPinSentViaEmail + //var instance = new Flipdish.RequestPasswordResetPinResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Response.spec.js b/test/model/Response.spec.js new file mode 100644 index 00000000..51c43819 --- /dev/null +++ b/test/model/Response.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Response(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Response', function() { + it('should create an instance of Response', function() { + // uncomment below and update the code to test Response + //var instane = new Flipdish.Response(); + //expect(instance).to.be.a(Flipdish.Response); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.Response(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultAllMetadataResult.spec.js b/test/model/RestApiArrayResultAllMetadataResult.spec.js new file mode 100644 index 00000000..5283806b --- /dev/null +++ b/test/model/RestApiArrayResultAllMetadataResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultAllMetadataResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultAllMetadataResult', function() { + it('should create an instance of RestApiArrayResultAllMetadataResult', function() { + // uncomment below and update the code to test RestApiArrayResultAllMetadataResult + //var instane = new Flipdish.RestApiArrayResultAllMetadataResult(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultAllMetadataResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultAllMetadataResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultAllergen.spec.js b/test/model/RestApiArrayResultAllergen.spec.js new file mode 100644 index 00000000..a26db6fc --- /dev/null +++ b/test/model/RestApiArrayResultAllergen.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultAllergen(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultAllergen', function() { + it('should create an instance of RestApiArrayResultAllergen', function() { + // uncomment below and update the code to test RestApiArrayResultAllergen + //var instane = new Flipdish.RestApiArrayResultAllergen(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultAllergen); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultAllergen(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultApmCurrencyDataPoint.spec.js b/test/model/RestApiArrayResultApmCurrencyDataPoint.spec.js new file mode 100644 index 00000000..5e6589ff --- /dev/null +++ b/test/model/RestApiArrayResultApmCurrencyDataPoint.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultApmCurrencyDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultApmCurrencyDataPoint', function() { + it('should create an instance of RestApiArrayResultApmCurrencyDataPoint', function() { + // uncomment below and update the code to test RestApiArrayResultApmCurrencyDataPoint + //var instane = new Flipdish.RestApiArrayResultApmCurrencyDataPoint(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultApmCurrencyDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultApmCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultApmDataPoint.spec.js b/test/model/RestApiArrayResultApmDataPoint.spec.js new file mode 100644 index 00000000..487c06ee --- /dev/null +++ b/test/model/RestApiArrayResultApmDataPoint.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultApmDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultApmDataPoint', function() { + it('should create an instance of RestApiArrayResultApmDataPoint', function() { + // uncomment below and update the code to test RestApiArrayResultApmDataPoint + //var instane = new Flipdish.RestApiArrayResultApmDataPoint(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultApmDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultApmDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultApmHourlyDataPoint.spec.js b/test/model/RestApiArrayResultApmHourlyDataPoint.spec.js new file mode 100644 index 00000000..508c2e99 --- /dev/null +++ b/test/model/RestApiArrayResultApmHourlyDataPoint.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultApmHourlyDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultApmHourlyDataPoint', function() { + it('should create an instance of RestApiArrayResultApmHourlyDataPoint', function() { + // uncomment below and update the code to test RestApiArrayResultApmHourlyDataPoint + //var instane = new Flipdish.RestApiArrayResultApmHourlyDataPoint(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultApmHourlyDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultApmHourlyDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultAppStoreAppConfigurationSummary.spec.js b/test/model/RestApiArrayResultAppStoreAppConfigurationSummary.spec.js new file mode 100644 index 00000000..f86847e3 --- /dev/null +++ b/test/model/RestApiArrayResultAppStoreAppConfigurationSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultAppStoreAppConfigurationSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultAppStoreAppConfigurationSummary', function() { + it('should create an instance of RestApiArrayResultAppStoreAppConfigurationSummary', function() { + // uncomment below and update the code to test RestApiArrayResultAppStoreAppConfigurationSummary + //var instane = new Flipdish.RestApiArrayResultAppStoreAppConfigurationSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultAppStoreAppConfigurationSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultAppStoreAppConfigurationSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultAppStoreAppSummary.spec.js b/test/model/RestApiArrayResultAppStoreAppSummary.spec.js new file mode 100644 index 00000000..e1423183 --- /dev/null +++ b/test/model/RestApiArrayResultAppStoreAppSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultAppStoreAppSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultAppStoreAppSummary', function() { + it('should create an instance of RestApiArrayResultAppStoreAppSummary', function() { + // uncomment below and update the code to test RestApiArrayResultAppStoreAppSummary + //var instane = new Flipdish.RestApiArrayResultAppStoreAppSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultAppStoreAppSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultAppStoreAppSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultBankAccountSummary.spec.js b/test/model/RestApiArrayResultBankAccountSummary.spec.js new file mode 100644 index 00000000..9361bf53 --- /dev/null +++ b/test/model/RestApiArrayResultBankAccountSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultBankAccountSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultBankAccountSummary', function() { + it('should create an instance of RestApiArrayResultBankAccountSummary', function() { + // uncomment below and update the code to test RestApiArrayResultBankAccountSummary + //var instane = new Flipdish.RestApiArrayResultBankAccountSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultBankAccountSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultBankAccountSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultBusinessHoursPeriod.spec.js b/test/model/RestApiArrayResultBusinessHoursPeriod.spec.js new file mode 100644 index 00000000..aaf56c2c --- /dev/null +++ b/test/model/RestApiArrayResultBusinessHoursPeriod.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultBusinessHoursPeriod(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultBusinessHoursPeriod', function() { + it('should create an instance of RestApiArrayResultBusinessHoursPeriod', function() { + // uncomment below and update the code to test RestApiArrayResultBusinessHoursPeriod + //var instane = new Flipdish.RestApiArrayResultBusinessHoursPeriod(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultBusinessHoursPeriod); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultBusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultChannel.spec.js b/test/model/RestApiArrayResultChannel.spec.js new file mode 100644 index 00000000..b433eae1 --- /dev/null +++ b/test/model/RestApiArrayResultChannel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultChannel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultChannel', function() { + it('should create an instance of RestApiArrayResultChannel', function() { + // uncomment below and update the code to test RestApiArrayResultChannel + //var instane = new Flipdish.RestApiArrayResultChannel(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultChannel); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultChannel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultClientDeviceSummary.spec.js b/test/model/RestApiArrayResultClientDeviceSummary.spec.js new file mode 100644 index 00000000..14d30762 --- /dev/null +++ b/test/model/RestApiArrayResultClientDeviceSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultClientDeviceSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultClientDeviceSummary', function() { + it('should create an instance of RestApiArrayResultClientDeviceSummary', function() { + // uncomment below and update the code to test RestApiArrayResultClientDeviceSummary + //var instane = new Flipdish.RestApiArrayResultClientDeviceSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultClientDeviceSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultClientDeviceSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.spec.js b/test/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..4fa2d5e3 --- /dev/null +++ b/test/model/RestApiArrayResultCountryWithAccountFieldsDefinitions.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultCountryWithAccountFieldsDefinitions', function() { + it('should create an instance of RestApiArrayResultCountryWithAccountFieldsDefinitions', function() { + // uncomment below and update the code to test RestApiArrayResultCountryWithAccountFieldsDefinitions + //var instane = new Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultCountryWithAccountFieldsDefinitions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultDeliveryZone.spec.js b/test/model/RestApiArrayResultDeliveryZone.spec.js new file mode 100644 index 00000000..3e3220f0 --- /dev/null +++ b/test/model/RestApiArrayResultDeliveryZone.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultDeliveryZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultDeliveryZone', function() { + it('should create an instance of RestApiArrayResultDeliveryZone', function() { + // uncomment below and update the code to test RestApiArrayResultDeliveryZone + //var instane = new Flipdish.RestApiArrayResultDeliveryZone(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultDeliveryZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultDeliveryZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultEmvTerminalWithAssignments.spec.js b/test/model/RestApiArrayResultEmvTerminalWithAssignments.spec.js new file mode 100644 index 00000000..c0a1b0a8 --- /dev/null +++ b/test/model/RestApiArrayResultEmvTerminalWithAssignments.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultEmvTerminalWithAssignments(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultEmvTerminalWithAssignments', function() { + it('should create an instance of RestApiArrayResultEmvTerminalWithAssignments', function() { + // uncomment below and update the code to test RestApiArrayResultEmvTerminalWithAssignments + //var instane = new Flipdish.RestApiArrayResultEmvTerminalWithAssignments(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultEmvTerminalWithAssignments); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultEmvTerminalWithAssignments(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultFulfillmentStatesConfigurationSummary.spec.js b/test/model/RestApiArrayResultFulfillmentStatesConfigurationSummary.spec.js new file mode 100644 index 00000000..ddb86db3 --- /dev/null +++ b/test/model/RestApiArrayResultFulfillmentStatesConfigurationSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultFulfillmentStatesConfigurationSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultFulfillmentStatesConfigurationSummary', function() { + it('should create an instance of RestApiArrayResultFulfillmentStatesConfigurationSummary', function() { + // uncomment below and update the code to test RestApiArrayResultFulfillmentStatesConfigurationSummary + //var instane = new Flipdish.RestApiArrayResultFulfillmentStatesConfigurationSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultFulfillmentStatesConfigurationSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultFulfillmentStatesConfigurationSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultHomeAction.spec.js b/test/model/RestApiArrayResultHomeAction.spec.js new file mode 100644 index 00000000..2e2f369b --- /dev/null +++ b/test/model/RestApiArrayResultHomeAction.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultHomeAction(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultHomeAction', function() { + it('should create an instance of RestApiArrayResultHomeAction', function() { + // uncomment below and update the code to test RestApiArrayResultHomeAction + //var instane = new Flipdish.RestApiArrayResultHomeAction(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultHomeAction); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultHomeAction(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultKioskCashPaymentSettings.spec.js b/test/model/RestApiArrayResultKioskCashPaymentSettings.spec.js new file mode 100644 index 00000000..52baa475 --- /dev/null +++ b/test/model/RestApiArrayResultKioskCashPaymentSettings.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultKioskCashPaymentSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultKioskCashPaymentSettings', function() { + it('should create an instance of RestApiArrayResultKioskCashPaymentSettings', function() { + // uncomment below and update the code to test RestApiArrayResultKioskCashPaymentSettings + //var instane = new Flipdish.RestApiArrayResultKioskCashPaymentSettings(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultKioskCashPaymentSettings); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultKioskCashPaymentSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultLocalisedTimeZone.spec.js b/test/model/RestApiArrayResultLocalisedTimeZone.spec.js new file mode 100644 index 00000000..7de09cd9 --- /dev/null +++ b/test/model/RestApiArrayResultLocalisedTimeZone.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultLocalisedTimeZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultLocalisedTimeZone', function() { + it('should create an instance of RestApiArrayResultLocalisedTimeZone', function() { + // uncomment below and update the code to test RestApiArrayResultLocalisedTimeZone + //var instane = new Flipdish.RestApiArrayResultLocalisedTimeZone(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultLocalisedTimeZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultLocalisedTimeZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultLocationAreaLocation.spec.js b/test/model/RestApiArrayResultLocationAreaLocation.spec.js new file mode 100644 index 00000000..d5837588 --- /dev/null +++ b/test/model/RestApiArrayResultLocationAreaLocation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultLocationAreaLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultLocationAreaLocation', function() { + it('should create an instance of RestApiArrayResultLocationAreaLocation', function() { + // uncomment below and update the code to test RestApiArrayResultLocationAreaLocation + //var instane = new Flipdish.RestApiArrayResultLocationAreaLocation(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultLocationAreaLocation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultLocationAreaLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultLocationAreaWithLocations.spec.js b/test/model/RestApiArrayResultLocationAreaWithLocations.spec.js new file mode 100644 index 00000000..2f27cdbc --- /dev/null +++ b/test/model/RestApiArrayResultLocationAreaWithLocations.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultLocationAreaWithLocations(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultLocationAreaWithLocations', function() { + it('should create an instance of RestApiArrayResultLocationAreaWithLocations', function() { + // uncomment below and update the code to test RestApiArrayResultLocationAreaWithLocations + //var instane = new Flipdish.RestApiArrayResultLocationAreaWithLocations(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultLocationAreaWithLocations); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultLocationAreaWithLocations(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultLoyaltyCampaign.spec.js b/test/model/RestApiArrayResultLoyaltyCampaign.spec.js new file mode 100644 index 00000000..72d97e00 --- /dev/null +++ b/test/model/RestApiArrayResultLoyaltyCampaign.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultLoyaltyCampaign(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultLoyaltyCampaign', function() { + it('should create an instance of RestApiArrayResultLoyaltyCampaign', function() { + // uncomment below and update the code to test RestApiArrayResultLoyaltyCampaign + //var instane = new Flipdish.RestApiArrayResultLoyaltyCampaign(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultLoyaltyCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultLoyaltyCampaign(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuCheckpoint.spec.js b/test/model/RestApiArrayResultMenuCheckpoint.spec.js new file mode 100644 index 00000000..52bc05f0 --- /dev/null +++ b/test/model/RestApiArrayResultMenuCheckpoint.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuCheckpoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuCheckpoint', function() { + it('should create an instance of RestApiArrayResultMenuCheckpoint', function() { + // uncomment below and update the code to test RestApiArrayResultMenuCheckpoint + //var instane = new Flipdish.RestApiArrayResultMenuCheckpoint(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuCheckpoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuCheckpoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuElementEditResponse.spec.js b/test/model/RestApiArrayResultMenuElementEditResponse.spec.js new file mode 100644 index 00000000..235c85b3 --- /dev/null +++ b/test/model/RestApiArrayResultMenuElementEditResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuElementEditResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuElementEditResponse', function() { + it('should create an instance of RestApiArrayResultMenuElementEditResponse', function() { + // uncomment below and update the code to test RestApiArrayResultMenuElementEditResponse + //var instane = new Flipdish.RestApiArrayResultMenuElementEditResponse(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuElementEditResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuElementEditResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuElementListResponse.spec.js b/test/model/RestApiArrayResultMenuElementListResponse.spec.js new file mode 100644 index 00000000..64a3e30c --- /dev/null +++ b/test/model/RestApiArrayResultMenuElementListResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuElementListResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuElementListResponse', function() { + it('should create an instance of RestApiArrayResultMenuElementListResponse', function() { + // uncomment below and update the code to test RestApiArrayResultMenuElementListResponse + //var instane = new Flipdish.RestApiArrayResultMenuElementListResponse(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuElementListResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuElementListResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuItemOptionSet.spec.js b/test/model/RestApiArrayResultMenuItemOptionSet.spec.js new file mode 100644 index 00000000..d272862e --- /dev/null +++ b/test/model/RestApiArrayResultMenuItemOptionSet.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuItemOptionSet(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuItemOptionSet', function() { + it('should create an instance of RestApiArrayResultMenuItemOptionSet', function() { + // uncomment below and update the code to test RestApiArrayResultMenuItemOptionSet + //var instane = new Flipdish.RestApiArrayResultMenuItemOptionSet(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuItemOptionSet); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuItemOptionSetItem.spec.js b/test/model/RestApiArrayResultMenuItemOptionSetItem.spec.js new file mode 100644 index 00000000..ff82b28c --- /dev/null +++ b/test/model/RestApiArrayResultMenuItemOptionSetItem.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuItemOptionSetItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuItemOptionSetItem', function() { + it('should create an instance of RestApiArrayResultMenuItemOptionSetItem', function() { + // uncomment below and update the code to test RestApiArrayResultMenuItemOptionSetItem + //var instane = new Flipdish.RestApiArrayResultMenuItemOptionSetItem(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuItemOptionSetItem); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuSection.spec.js b/test/model/RestApiArrayResultMenuSection.spec.js new file mode 100644 index 00000000..e8355302 --- /dev/null +++ b/test/model/RestApiArrayResultMenuSection.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuSection(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuSection', function() { + it('should create an instance of RestApiArrayResultMenuSection', function() { + // uncomment below and update the code to test RestApiArrayResultMenuSection + //var instane = new Flipdish.RestApiArrayResultMenuSection(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuSection); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuSection(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuSectionItem.spec.js b/test/model/RestApiArrayResultMenuSectionItem.spec.js new file mode 100644 index 00000000..ca765041 --- /dev/null +++ b/test/model/RestApiArrayResultMenuSectionItem.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuSectionItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuSectionItem', function() { + it('should create an instance of RestApiArrayResultMenuSectionItem', function() { + // uncomment below and update the code to test RestApiArrayResultMenuSectionItem + //var instane = new Flipdish.RestApiArrayResultMenuSectionItem(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuSectionItem); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuSectionItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuStoreNames.spec.js b/test/model/RestApiArrayResultMenuStoreNames.spec.js new file mode 100644 index 00000000..e960649a --- /dev/null +++ b/test/model/RestApiArrayResultMenuStoreNames.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuStoreNames(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuStoreNames', function() { + it('should create an instance of RestApiArrayResultMenuStoreNames', function() { + // uncomment below and update the code to test RestApiArrayResultMenuStoreNames + //var instane = new Flipdish.RestApiArrayResultMenuStoreNames(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuStoreNames); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuStoreNames(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuSummary.spec.js b/test/model/RestApiArrayResultMenuSummary.spec.js new file mode 100644 index 00000000..16f5778a --- /dev/null +++ b/test/model/RestApiArrayResultMenuSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuSummary', function() { + it('should create an instance of RestApiArrayResultMenuSummary', function() { + // uncomment below and update the code to test RestApiArrayResultMenuSummary + //var instane = new Flipdish.RestApiArrayResultMenuSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuTaxDetails.spec.js b/test/model/RestApiArrayResultMenuTaxDetails.spec.js new file mode 100644 index 00000000..92660015 --- /dev/null +++ b/test/model/RestApiArrayResultMenuTaxDetails.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuTaxDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuTaxDetails', function() { + it('should create an instance of RestApiArrayResultMenuTaxDetails', function() { + // uncomment below and update the code to test RestApiArrayResultMenuTaxDetails + //var instane = new Flipdish.RestApiArrayResultMenuTaxDetails(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuTaxDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuTaxDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMenuZone.spec.js b/test/model/RestApiArrayResultMenuZone.spec.js new file mode 100644 index 00000000..63ae762c --- /dev/null +++ b/test/model/RestApiArrayResultMenuZone.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMenuZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMenuZone', function() { + it('should create an instance of RestApiArrayResultMenuZone', function() { + // uncomment below and update the code to test RestApiArrayResultMenuZone + //var instane = new Flipdish.RestApiArrayResultMenuZone(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMenuZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMenuZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMetadata.spec.js b/test/model/RestApiArrayResultMetadata.spec.js new file mode 100644 index 00000000..a1f89977 --- /dev/null +++ b/test/model/RestApiArrayResultMetadata.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMetadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMetadata', function() { + it('should create an instance of RestApiArrayResultMetadata', function() { + // uncomment below and update the code to test RestApiArrayResultMetadata + //var instane = new Flipdish.RestApiArrayResultMetadata(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMetadata); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMetadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultMobileAppsStatistics.spec.js b/test/model/RestApiArrayResultMobileAppsStatistics.spec.js new file mode 100644 index 00000000..aaabc333 --- /dev/null +++ b/test/model/RestApiArrayResultMobileAppsStatistics.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultMobileAppsStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultMobileAppsStatistics', function() { + it('should create an instance of RestApiArrayResultMobileAppsStatistics', function() { + // uncomment below and update the code to test RestApiArrayResultMobileAppsStatistics + //var instane = new Flipdish.RestApiArrayResultMobileAppsStatistics(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultMobileAppsStatistics); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultMobileAppsStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultOAuthApp.spec.js b/test/model/RestApiArrayResultOAuthApp.spec.js new file mode 100644 index 00000000..cd892d2e --- /dev/null +++ b/test/model/RestApiArrayResultOAuthApp.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultOAuthApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultOAuthApp', function() { + it('should create an instance of RestApiArrayResultOAuthApp', function() { + // uncomment below and update the code to test RestApiArrayResultOAuthApp + //var instane = new Flipdish.RestApiArrayResultOAuthApp(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultOAuthApp); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultOAuthApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultOauthClientRedirectUri.spec.js b/test/model/RestApiArrayResultOauthClientRedirectUri.spec.js new file mode 100644 index 00000000..2461d221 --- /dev/null +++ b/test/model/RestApiArrayResultOauthClientRedirectUri.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultOauthClientRedirectUri(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultOauthClientRedirectUri', function() { + it('should create an instance of RestApiArrayResultOauthClientRedirectUri', function() { + // uncomment below and update the code to test RestApiArrayResultOauthClientRedirectUri + //var instane = new Flipdish.RestApiArrayResultOauthClientRedirectUri(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultOauthClientRedirectUri); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultOauthClientRedirectUri(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultOrderBatch.spec.js b/test/model/RestApiArrayResultOrderBatch.spec.js new file mode 100644 index 00000000..de447d58 --- /dev/null +++ b/test/model/RestApiArrayResultOrderBatch.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultOrderBatch(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultOrderBatch', function() { + it('should create an instance of RestApiArrayResultOrderBatch', function() { + // uncomment below and update the code to test RestApiArrayResultOrderBatch + //var instane = new Flipdish.RestApiArrayResultOrderBatch(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultOrderBatch); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultOrderBatch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultOrderFulfillmentStatus.spec.js b/test/model/RestApiArrayResultOrderFulfillmentStatus.spec.js new file mode 100644 index 00000000..a6f0ea21 --- /dev/null +++ b/test/model/RestApiArrayResultOrderFulfillmentStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultOrderFulfillmentStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultOrderFulfillmentStatus', function() { + it('should create an instance of RestApiArrayResultOrderFulfillmentStatus', function() { + // uncomment below and update the code to test RestApiArrayResultOrderFulfillmentStatus + //var instane = new Flipdish.RestApiArrayResultOrderFulfillmentStatus(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultOrderFulfillmentStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultOrderFulfillmentStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultPayoutSummary.spec.js b/test/model/RestApiArrayResultPayoutSummary.spec.js new file mode 100644 index 00000000..eb6fd6f3 --- /dev/null +++ b/test/model/RestApiArrayResultPayoutSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultPayoutSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultPayoutSummary', function() { + it('should create an instance of RestApiArrayResultPayoutSummary', function() { + // uncomment below and update the code to test RestApiArrayResultPayoutSummary + //var instane = new Flipdish.RestApiArrayResultPayoutSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultPayoutSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultPayoutSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultPendingInvitation.spec.js b/test/model/RestApiArrayResultPendingInvitation.spec.js new file mode 100644 index 00000000..be3632a8 --- /dev/null +++ b/test/model/RestApiArrayResultPendingInvitation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultPendingInvitation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultPendingInvitation', function() { + it('should create an instance of RestApiArrayResultPendingInvitation', function() { + // uncomment below and update the code to test RestApiArrayResultPendingInvitation + //var instane = new Flipdish.RestApiArrayResultPendingInvitation(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultPendingInvitation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultPendingInvitation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultPendingMenuChangesSummaries.spec.js b/test/model/RestApiArrayResultPendingMenuChangesSummaries.spec.js new file mode 100644 index 00000000..69dfa337 --- /dev/null +++ b/test/model/RestApiArrayResultPendingMenuChangesSummaries.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultPendingMenuChangesSummaries(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultPendingMenuChangesSummaries', function() { + it('should create an instance of RestApiArrayResultPendingMenuChangesSummaries', function() { + // uncomment below and update the code to test RestApiArrayResultPendingMenuChangesSummaries + //var instane = new Flipdish.RestApiArrayResultPendingMenuChangesSummaries(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultPendingMenuChangesSummaries); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultPendingMenuChangesSummaries(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultPreOrderTime.spec.js b/test/model/RestApiArrayResultPreOrderTime.spec.js new file mode 100644 index 00000000..4ef81fd0 --- /dev/null +++ b/test/model/RestApiArrayResultPreOrderTime.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultPreOrderTime(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultPreOrderTime', function() { + it('should create an instance of RestApiArrayResultPreOrderTime', function() { + // uncomment below and update the code to test RestApiArrayResultPreOrderTime + //var instane = new Flipdish.RestApiArrayResultPreOrderTime(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultPreOrderTime); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultPreOrderTime(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultProcessingFeeConfig.spec.js b/test/model/RestApiArrayResultProcessingFeeConfig.spec.js new file mode 100644 index 00000000..7793693b --- /dev/null +++ b/test/model/RestApiArrayResultProcessingFeeConfig.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultProcessingFeeConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultProcessingFeeConfig', function() { + it('should create an instance of RestApiArrayResultProcessingFeeConfig', function() { + // uncomment below and update the code to test RestApiArrayResultProcessingFeeConfig + //var instane = new Flipdish.RestApiArrayResultProcessingFeeConfig(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultProcessingFeeConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultProcessingFeeConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultRedeemInvitationResult.spec.js b/test/model/RestApiArrayResultRedeemInvitationResult.spec.js new file mode 100644 index 00000000..a1ccaa31 --- /dev/null +++ b/test/model/RestApiArrayResultRedeemInvitationResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRedeemInvitationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultRedeemInvitationResult', function() { + it('should create an instance of RestApiArrayResultRedeemInvitationResult', function() { + // uncomment below and update the code to test RestApiArrayResultRedeemInvitationResult + //var instane = new Flipdish.RestApiArrayResultRedeemInvitationResult(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultRedeemInvitationResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultRedeemInvitationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultRestApiDefaultResponse.spec.js b/test/model/RestApiArrayResultRestApiDefaultResponse.spec.js new file mode 100644 index 00000000..61940859 --- /dev/null +++ b/test/model/RestApiArrayResultRestApiDefaultResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRestApiDefaultResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultRestApiDefaultResponse', function() { + it('should create an instance of RestApiArrayResultRestApiDefaultResponse', function() { + // uncomment below and update the code to test RestApiArrayResultRestApiDefaultResponse + //var instane = new Flipdish.RestApiArrayResultRestApiDefaultResponse(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultRestApiDefaultResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultRestApiDefaultResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultRestaurantVoucherEligibleStore.spec.js b/test/model/RestApiArrayResultRestaurantVoucherEligibleStore.spec.js new file mode 100644 index 00000000..5586b43a --- /dev/null +++ b/test/model/RestApiArrayResultRestaurantVoucherEligibleStore.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRestaurantVoucherEligibleStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultRestaurantVoucherEligibleStore', function() { + it('should create an instance of RestApiArrayResultRestaurantVoucherEligibleStore', function() { + // uncomment below and update the code to test RestApiArrayResultRestaurantVoucherEligibleStore + //var instane = new Flipdish.RestApiArrayResultRestaurantVoucherEligibleStore(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultRestaurantVoucherEligibleStore); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultRestaurantVoucherEligibleStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.spec.js b/test/model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.spec.js new file mode 100644 index 00000000..64314891 --- /dev/null +++ b/test/model/RestApiArrayResultRestaurantVoucherPayGreenConfiguration.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultRestaurantVoucherPayGreenConfiguration', function() { + it('should create an instance of RestApiArrayResultRestaurantVoucherPayGreenConfiguration', function() { + // uncomment below and update the code to test RestApiArrayResultRestaurantVoucherPayGreenConfiguration + //var instane = new Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfiguration); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.spec.js b/test/model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.spec.js new file mode 100644 index 00000000..8e373a15 --- /dev/null +++ b/test/model/RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary', function() { + it('should create an instance of RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary', function() { + // uncomment below and update the code to test RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary + //var instane = new Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultRestaurantVoucherPayGreenConfigurationSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultRetentionCampaign.spec.js b/test/model/RestApiArrayResultRetentionCampaign.spec.js new file mode 100644 index 00000000..c471f7af --- /dev/null +++ b/test/model/RestApiArrayResultRetentionCampaign.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultRetentionCampaign(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultRetentionCampaign', function() { + it('should create an instance of RestApiArrayResultRetentionCampaign', function() { + // uncomment below and update the code to test RestApiArrayResultRetentionCampaign + //var instane = new Flipdish.RestApiArrayResultRetentionCampaign(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultRetentionCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultRetentionCampaign(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultSmsProviderCredential.spec.js b/test/model/RestApiArrayResultSmsProviderCredential.spec.js new file mode 100644 index 00000000..4b11693c --- /dev/null +++ b/test/model/RestApiArrayResultSmsProviderCredential.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultSmsProviderCredential(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultSmsProviderCredential', function() { + it('should create an instance of RestApiArrayResultSmsProviderCredential', function() { + // uncomment below and update the code to test RestApiArrayResultSmsProviderCredential + //var instane = new Flipdish.RestApiArrayResultSmsProviderCredential(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultSmsProviderCredential); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultSmsProviderCredential(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultStoreChannelAssignment.spec.js b/test/model/RestApiArrayResultStoreChannelAssignment.spec.js new file mode 100644 index 00000000..048c5d2c --- /dev/null +++ b/test/model/RestApiArrayResultStoreChannelAssignment.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultStoreChannelAssignment(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultStoreChannelAssignment', function() { + it('should create an instance of RestApiArrayResultStoreChannelAssignment', function() { + // uncomment below and update the code to test RestApiArrayResultStoreChannelAssignment + //var instane = new Flipdish.RestApiArrayResultStoreChannelAssignment(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultStoreChannelAssignment); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultStoreChannelAssignment(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultStoreDeliveryZoneFeeConfig.spec.js b/test/model/RestApiArrayResultStoreDeliveryZoneFeeConfig.spec.js new file mode 100644 index 00000000..b2b75395 --- /dev/null +++ b/test/model/RestApiArrayResultStoreDeliveryZoneFeeConfig.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultStoreDeliveryZoneFeeConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultStoreDeliveryZoneFeeConfig', function() { + it('should create an instance of RestApiArrayResultStoreDeliveryZoneFeeConfig', function() { + // uncomment below and update the code to test RestApiArrayResultStoreDeliveryZoneFeeConfig + //var instane = new Flipdish.RestApiArrayResultStoreDeliveryZoneFeeConfig(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultStoreDeliveryZoneFeeConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultStoreDeliveryZoneFeeConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultStoreListItem.spec.js b/test/model/RestApiArrayResultStoreListItem.spec.js new file mode 100644 index 00000000..23a139ae --- /dev/null +++ b/test/model/RestApiArrayResultStoreListItem.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultStoreListItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultStoreListItem', function() { + it('should create an instance of RestApiArrayResultStoreListItem', function() { + // uncomment below and update the code to test RestApiArrayResultStoreListItem + //var instane = new Flipdish.RestApiArrayResultStoreListItem(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultStoreListItem); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultStoreListItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultStoreStatistics.spec.js b/test/model/RestApiArrayResultStoreStatistics.spec.js new file mode 100644 index 00000000..3a1a9cc4 --- /dev/null +++ b/test/model/RestApiArrayResultStoreStatistics.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultStoreStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultStoreStatistics', function() { + it('should create an instance of RestApiArrayResultStoreStatistics', function() { + // uncomment below and update the code to test RestApiArrayResultStoreStatistics + //var instane = new Flipdish.RestApiArrayResultStoreStatistics(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultStoreStatistics); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultStoreStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultStripeCustomConnectedAccount.spec.js b/test/model/RestApiArrayResultStripeCustomConnectedAccount.spec.js new file mode 100644 index 00000000..7f1a25d9 --- /dev/null +++ b/test/model/RestApiArrayResultStripeCustomConnectedAccount.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultStripeCustomConnectedAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultStripeCustomConnectedAccount', function() { + it('should create an instance of RestApiArrayResultStripeCustomConnectedAccount', function() { + // uncomment below and update the code to test RestApiArrayResultStripeCustomConnectedAccount + //var instane = new Flipdish.RestApiArrayResultStripeCustomConnectedAccount(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultStripeCustomConnectedAccount); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultStripeCustomConnectedAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultSubscriptionSummary.spec.js b/test/model/RestApiArrayResultSubscriptionSummary.spec.js new file mode 100644 index 00000000..907ac17a --- /dev/null +++ b/test/model/RestApiArrayResultSubscriptionSummary.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultSubscriptionSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultSubscriptionSummary', function() { + it('should create an instance of RestApiArrayResultSubscriptionSummary', function() { + // uncomment below and update the code to test RestApiArrayResultSubscriptionSummary + //var instane = new Flipdish.RestApiArrayResultSubscriptionSummary(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultSubscriptionSummary); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultSubscriptionSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultSupportedCountry.spec.js b/test/model/RestApiArrayResultSupportedCountry.spec.js new file mode 100644 index 00000000..32b6480a --- /dev/null +++ b/test/model/RestApiArrayResultSupportedCountry.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultSupportedCountry(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultSupportedCountry', function() { + it('should create an instance of RestApiArrayResultSupportedCountry', function() { + // uncomment below and update the code to test RestApiArrayResultSupportedCountry + //var instane = new Flipdish.RestApiArrayResultSupportedCountry(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultSupportedCountry); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultSupportedCountry(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultTeammate.spec.js b/test/model/RestApiArrayResultTeammate.spec.js new file mode 100644 index 00000000..37c04219 --- /dev/null +++ b/test/model/RestApiArrayResultTeammate.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultTeammate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultTeammate', function() { + it('should create an instance of RestApiArrayResultTeammate', function() { + // uncomment below and update the code to test RestApiArrayResultTeammate + //var instane = new Flipdish.RestApiArrayResultTeammate(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultTeammate); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultTeammate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultUserFlipdishAccount.spec.js b/test/model/RestApiArrayResultUserFlipdishAccount.spec.js new file mode 100644 index 00000000..b7f4fd47 --- /dev/null +++ b/test/model/RestApiArrayResultUserFlipdishAccount.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultUserFlipdishAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultUserFlipdishAccount', function() { + it('should create an instance of RestApiArrayResultUserFlipdishAccount', function() { + // uncomment below and update the code to test RestApiArrayResultUserFlipdishAccount + //var instane = new Flipdish.RestApiArrayResultUserFlipdishAccount(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultUserFlipdishAccount); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultUserFlipdishAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultUserNote.spec.js b/test/model/RestApiArrayResultUserNote.spec.js new file mode 100644 index 00000000..2ed448af --- /dev/null +++ b/test/model/RestApiArrayResultUserNote.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultUserNote(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultUserNote', function() { + it('should create an instance of RestApiArrayResultUserNote', function() { + // uncomment below and update the code to test RestApiArrayResultUserNote + //var instane = new Flipdish.RestApiArrayResultUserNote(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultUserNote); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultUserNote(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultUserStoreInfo.spec.js b/test/model/RestApiArrayResultUserStoreInfo.spec.js new file mode 100644 index 00000000..0091a9fb --- /dev/null +++ b/test/model/RestApiArrayResultUserStoreInfo.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultUserStoreInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultUserStoreInfo', function() { + it('should create an instance of RestApiArrayResultUserStoreInfo', function() { + // uncomment below and update the code to test RestApiArrayResultUserStoreInfo + //var instane = new Flipdish.RestApiArrayResultUserStoreInfo(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultUserStoreInfo); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultUserStoreInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiArrayResultVoucherDataPoint.spec.js b/test/model/RestApiArrayResultVoucherDataPoint.spec.js new file mode 100644 index 00000000..f6c4d625 --- /dev/null +++ b/test/model/RestApiArrayResultVoucherDataPoint.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiArrayResultVoucherDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiArrayResultVoucherDataPoint', function() { + it('should create an instance of RestApiArrayResultVoucherDataPoint', function() { + // uncomment below and update the code to test RestApiArrayResultVoucherDataPoint + //var instane = new Flipdish.RestApiArrayResultVoucherDataPoint(); + //expect(instance).to.be.a(Flipdish.RestApiArrayResultVoucherDataPoint); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiArrayResultVoucherDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiDefaultResponse.spec.js b/test/model/RestApiDefaultResponse.spec.js new file mode 100644 index 00000000..9e28e25e --- /dev/null +++ b/test/model/RestApiDefaultResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiDefaultResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiDefaultResponse', function() { + it('should create an instance of RestApiDefaultResponse', function() { + // uncomment below and update the code to test RestApiDefaultResponse + //var instane = new Flipdish.RestApiDefaultResponse(); + //expect(instance).to.be.a(Flipdish.RestApiDefaultResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiDefaultResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiErrorResult.spec.js b/test/model/RestApiErrorResult.spec.js new file mode 100644 index 00000000..e98aa2f7 --- /dev/null +++ b/test/model/RestApiErrorResult.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiErrorResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiErrorResult', function() { + it('should create an instance of RestApiErrorResult', function() { + // uncomment below and update the code to test RestApiErrorResult + //var instane = new Flipdish.RestApiErrorResult(); + //expect(instance).to.be.a(Flipdish.RestApiErrorResult); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.RestApiErrorResult(); + //expect(instance).to.be(); + }); + + it('should have the property ErrorCode (base name: "ErrorCode")', function() { + // uncomment below and update the code to test the property ErrorCode + //var instance = new Flipdish.RestApiErrorResult(); + //expect(instance).to.be(); + }); + + it('should have the property StackTrace (base name: "StackTrace")', function() { + // uncomment below and update the code to test the property StackTrace + //var instance = new Flipdish.RestApiErrorResult(); + //expect(instance).to.be(); + }); + + it('should have the property Errors (base name: "Errors")', function() { + // uncomment below and update the code to test the property Errors + //var instance = new Flipdish.RestApiErrorResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiEventSearchPaginationResult.spec.js b/test/model/RestApiEventSearchPaginationResult.spec.js new file mode 100644 index 00000000..caf2f250 --- /dev/null +++ b/test/model/RestApiEventSearchPaginationResult.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiEventSearchPaginationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiEventSearchPaginationResult', function() { + it('should create an instance of RestApiEventSearchPaginationResult', function() { + // uncomment below and update the code to test RestApiEventSearchPaginationResult + //var instane = new Flipdish.RestApiEventSearchPaginationResult(); + //expect(instance).to.be.a(Flipdish.RestApiEventSearchPaginationResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiEventSearchPaginationResult(); + //expect(instance).to.be(); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiEventSearchPaginationResult(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiEventSearchPaginationResult(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiEventSearchPaginationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiFinanceSearchPaginationResultInvoice.spec.js b/test/model/RestApiFinanceSearchPaginationResultInvoice.spec.js new file mode 100644 index 00000000..6dcee6e0 --- /dev/null +++ b/test/model/RestApiFinanceSearchPaginationResultInvoice.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiFinanceSearchPaginationResultInvoice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiFinanceSearchPaginationResultInvoice', function() { + it('should create an instance of RestApiFinanceSearchPaginationResultInvoice', function() { + // uncomment below and update the code to test RestApiFinanceSearchPaginationResultInvoice + //var instane = new Flipdish.RestApiFinanceSearchPaginationResultInvoice(); + //expect(instance).to.be.a(Flipdish.RestApiFinanceSearchPaginationResultInvoice); + }); + + it('should have the property NextPage (base name: "NextPage")', function() { + // uncomment below and update the code to test the property NextPage + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultInvoice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.spec.js b/test/model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.spec.js new file mode 100644 index 00000000..a558f4f2 --- /dev/null +++ b/test/model/RestApiFinanceSearchPaginationResultSubscriptionInvoice.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiFinanceSearchPaginationResultSubscriptionInvoice', function() { + it('should create an instance of RestApiFinanceSearchPaginationResultSubscriptionInvoice', function() { + // uncomment below and update the code to test RestApiFinanceSearchPaginationResultSubscriptionInvoice + //var instane = new Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice(); + //expect(instance).to.be.a(Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice); + }); + + it('should have the property NextPage (base name: "NextPage")', function() { + // uncomment below and update the code to test the property NextPage + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiFinanceSearchPaginationResultSubscriptionInvoice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiForbiddenResult.spec.js b/test/model/RestApiForbiddenResult.spec.js new file mode 100644 index 00000000..c55b6889 --- /dev/null +++ b/test/model/RestApiForbiddenResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiForbiddenResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiForbiddenResult', function() { + it('should create an instance of RestApiForbiddenResult', function() { + // uncomment below and update the code to test RestApiForbiddenResult + //var instane = new Flipdish.RestApiForbiddenResult(); + //expect(instance).to.be.a(Flipdish.RestApiForbiddenResult); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.RestApiForbiddenResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiIntegerResult.spec.js b/test/model/RestApiIntegerResult.spec.js new file mode 100644 index 00000000..e00b9c4e --- /dev/null +++ b/test/model/RestApiIntegerResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiIntegerResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiIntegerResult', function() { + it('should create an instance of RestApiIntegerResult', function() { + // uncomment below and update the code to test RestApiIntegerResult + //var instane = new Flipdish.RestApiIntegerResult(); + //expect(instance).to.be.a(Flipdish.RestApiIntegerResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiIntegerResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultApp.spec.js b/test/model/RestApiPaginationResultApp.spec.js new file mode 100644 index 00000000..97e7b2ae --- /dev/null +++ b/test/model/RestApiPaginationResultApp.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultApp', function() { + it('should create an instance of RestApiPaginationResultApp', function() { + // uncomment below and update the code to test RestApiPaginationResultApp + //var instane = new Flipdish.RestApiPaginationResultApp(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultApp); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultApp(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultApp(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultApp(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultAppStoreAppSummary.spec.js b/test/model/RestApiPaginationResultAppStoreAppSummary.spec.js new file mode 100644 index 00000000..f3ff85ae --- /dev/null +++ b/test/model/RestApiPaginationResultAppStoreAppSummary.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultAppStoreAppSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultAppStoreAppSummary', function() { + it('should create an instance of RestApiPaginationResultAppStoreAppSummary', function() { + // uncomment below and update the code to test RestApiPaginationResultAppStoreAppSummary + //var instane = new Flipdish.RestApiPaginationResultAppStoreAppSummary(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultAppStoreAppSummary); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultAppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultAppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultAppStoreAppSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultAppStoreAppSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultBusinessHoursOverride.spec.js b/test/model/RestApiPaginationResultBusinessHoursOverride.spec.js new file mode 100644 index 00000000..d9b27539 --- /dev/null +++ b/test/model/RestApiPaginationResultBusinessHoursOverride.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultBusinessHoursOverride(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultBusinessHoursOverride', function() { + it('should create an instance of RestApiPaginationResultBusinessHoursOverride', function() { + // uncomment below and update the code to test RestApiPaginationResultBusinessHoursOverride + //var instane = new Flipdish.RestApiPaginationResultBusinessHoursOverride(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultBusinessHoursOverride); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultBusinessHoursOverride(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultBusinessHoursOverride(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultBusinessHoursOverride(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultBusinessHoursOverride(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultCatalogItem.spec.js b/test/model/RestApiPaginationResultCatalogItem.spec.js new file mode 100644 index 00000000..4d882eb0 --- /dev/null +++ b/test/model/RestApiPaginationResultCatalogItem.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultCatalogItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultCatalogItem', function() { + it('should create an instance of RestApiPaginationResultCatalogItem', function() { + // uncomment below and update the code to test RestApiPaginationResultCatalogItem + //var instane = new Flipdish.RestApiPaginationResultCatalogItem(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultCatalogItem); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultCatalogItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultGroup.spec.js b/test/model/RestApiPaginationResultGroup.spec.js new file mode 100644 index 00000000..e46c7ef9 --- /dev/null +++ b/test/model/RestApiPaginationResultGroup.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultGroup', function() { + it('should create an instance of RestApiPaginationResultGroup', function() { + // uncomment below and update the code to test RestApiPaginationResultGroup + //var instane = new Flipdish.RestApiPaginationResultGroup(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultGroup); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultGroup(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultHydraDeviceDetails.spec.js b/test/model/RestApiPaginationResultHydraDeviceDetails.spec.js new file mode 100644 index 00000000..44c557cc --- /dev/null +++ b/test/model/RestApiPaginationResultHydraDeviceDetails.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultHydraDeviceDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultHydraDeviceDetails', function() { + it('should create an instance of RestApiPaginationResultHydraDeviceDetails', function() { + // uncomment below and update the code to test RestApiPaginationResultHydraDeviceDetails + //var instane = new Flipdish.RestApiPaginationResultHydraDeviceDetails(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultHydraDeviceDetails); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultHydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultHydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultHydraDeviceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultHydraDeviceDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultMetafieldDefinition.spec.js b/test/model/RestApiPaginationResultMetafieldDefinition.spec.js new file mode 100644 index 00000000..9af43bfc --- /dev/null +++ b/test/model/RestApiPaginationResultMetafieldDefinition.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultMetafieldDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultMetafieldDefinition', function() { + it('should create an instance of RestApiPaginationResultMetafieldDefinition', function() { + // uncomment below and update the code to test RestApiPaginationResultMetafieldDefinition + //var instane = new Flipdish.RestApiPaginationResultMetafieldDefinition(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultMetafieldDefinition); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultMetafieldDefinitionRecommendation.spec.js b/test/model/RestApiPaginationResultMetafieldDefinitionRecommendation.spec.js new file mode 100644 index 00000000..a33f2f44 --- /dev/null +++ b/test/model/RestApiPaginationResultMetafieldDefinitionRecommendation.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultMetafieldDefinitionRecommendation', function() { + it('should create an instance of RestApiPaginationResultMetafieldDefinitionRecommendation', function() { + // uncomment below and update the code to test RestApiPaginationResultMetafieldDefinitionRecommendation + //var instane = new Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultMetafieldDefinitionRecommendation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultOAuthTokenModel.spec.js b/test/model/RestApiPaginationResultOAuthTokenModel.spec.js new file mode 100644 index 00000000..8a6e2ed3 --- /dev/null +++ b/test/model/RestApiPaginationResultOAuthTokenModel.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultOAuthTokenModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultOAuthTokenModel', function() { + it('should create an instance of RestApiPaginationResultOAuthTokenModel', function() { + // uncomment below and update the code to test RestApiPaginationResultOAuthTokenModel + //var instane = new Flipdish.RestApiPaginationResultOAuthTokenModel(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultOAuthTokenModel); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultOAuthTokenModel(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultOAuthTokenModel(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultOAuthTokenModel(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultOAuthTokenModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultOrder.spec.js b/test/model/RestApiPaginationResultOrder.spec.js new file mode 100644 index 00000000..20464899 --- /dev/null +++ b/test/model/RestApiPaginationResultOrder.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultOrder', function() { + it('should create an instance of RestApiPaginationResultOrder', function() { + // uncomment below and update the code to test RestApiPaginationResultOrder + //var instane = new Flipdish.RestApiPaginationResultOrder(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultOrder); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultOrderSummary.spec.js b/test/model/RestApiPaginationResultOrderSummary.spec.js new file mode 100644 index 00000000..5a4de90e --- /dev/null +++ b/test/model/RestApiPaginationResultOrderSummary.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultOrderSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultOrderSummary', function() { + it('should create an instance of RestApiPaginationResultOrderSummary', function() { + // uncomment below and update the code to test RestApiPaginationResultOrderSummary + //var instane = new Flipdish.RestApiPaginationResultOrderSummary(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultOrderSummary); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultOrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultOrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultOrderSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultOrderSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPayout.spec.js b/test/model/RestApiPaginationResultPayout.spec.js new file mode 100644 index 00000000..4cc3e91f --- /dev/null +++ b/test/model/RestApiPaginationResultPayout.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayout(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPayout', function() { + it('should create an instance of RestApiPaginationResultPayout', function() { + // uncomment below and update the code to test RestApiPaginationResultPayout + //var instane = new Flipdish.RestApiPaginationResultPayout(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayout); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPayout(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPayout(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPayout(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPayout(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutChargeback.spec.js b/test/model/RestApiPaginationResultPayoutChargeback.spec.js new file mode 100644 index 00000000..c54c6e06 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutChargeback.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutChargeback(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPayoutChargeback', function() { + it('should create an instance of RestApiPaginationResultPayoutChargeback', function() { + // uncomment below and update the code to test RestApiPaginationResultPayoutChargeback + //var instane = new Flipdish.RestApiPaginationResultPayoutChargeback(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutChargeback); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPayoutChargeback(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPayoutChargeback(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutOrder.spec.js b/test/model/RestApiPaginationResultPayoutOrder.spec.js new file mode 100644 index 00000000..73aa997f --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutOrder.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPayoutOrder', function() { + it('should create an instance of RestApiPaginationResultPayoutOrder', function() { + // uncomment below and update the code to test RestApiPaginationResultPayoutOrder + //var instane = new Flipdish.RestApiPaginationResultPayoutOrder(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutOrder); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPayoutOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPayoutOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutOtherCharge.spec.js b/test/model/RestApiPaginationResultPayoutOtherCharge.spec.js new file mode 100644 index 00000000..0492ecf0 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutOtherCharge.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutOtherCharge(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPayoutOtherCharge', function() { + it('should create an instance of RestApiPaginationResultPayoutOtherCharge', function() { + // uncomment below and update the code to test RestApiPaginationResultPayoutOtherCharge + //var instane = new Flipdish.RestApiPaginationResultPayoutOtherCharge(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutOtherCharge); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPayoutOtherCharge(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPayoutOtherCharge(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutRefund.spec.js b/test/model/RestApiPaginationResultPayoutRefund.spec.js new file mode 100644 index 00000000..557a3fa4 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutRefund.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutRefund(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPayoutRefund', function() { + it('should create an instance of RestApiPaginationResultPayoutRefund', function() { + // uncomment below and update the code to test RestApiPaginationResultPayoutRefund + //var instane = new Flipdish.RestApiPaginationResultPayoutRefund(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutRefund); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPayoutRefund(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPayoutRefund(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPayoutReport3RefundedOrder.spec.js b/test/model/RestApiPaginationResultPayoutReport3RefundedOrder.spec.js new file mode 100644 index 00000000..869f3386 --- /dev/null +++ b/test/model/RestApiPaginationResultPayoutReport3RefundedOrder.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPayoutReport3RefundedOrder', function() { + it('should create an instance of RestApiPaginationResultPayoutReport3RefundedOrder', function() { + // uncomment below and update the code to test RestApiPaginationResultPayoutReport3RefundedOrder + //var instane = new Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPayoutReport3RefundedOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPendingMenuChanges.spec.js b/test/model/RestApiPaginationResultPendingMenuChanges.spec.js new file mode 100644 index 00000000..a9f407bd --- /dev/null +++ b/test/model/RestApiPaginationResultPendingMenuChanges.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPendingMenuChanges(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPendingMenuChanges', function() { + it('should create an instance of RestApiPaginationResultPendingMenuChanges', function() { + // uncomment below and update the code to test RestApiPaginationResultPendingMenuChanges + //var instane = new Flipdish.RestApiPaginationResultPendingMenuChanges(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPendingMenuChanges); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPendingMenuChanges(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPendingMenuChanges(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPendingMenuChanges(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPendingMenuChanges(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPhoneCall.spec.js b/test/model/RestApiPaginationResultPhoneCall.spec.js new file mode 100644 index 00000000..13247d12 --- /dev/null +++ b/test/model/RestApiPaginationResultPhoneCall.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPhoneCall(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPhoneCall', function() { + it('should create an instance of RestApiPaginationResultPhoneCall', function() { + // uncomment below and update the code to test RestApiPaginationResultPhoneCall + //var instane = new Flipdish.RestApiPaginationResultPhoneCall(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPhoneCall); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPhoneCall(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPhoneCall(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultProduct.spec.js b/test/model/RestApiPaginationResultProduct.spec.js new file mode 100644 index 00000000..8a3dbe96 --- /dev/null +++ b/test/model/RestApiPaginationResultProduct.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultProduct(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultProduct', function() { + it('should create an instance of RestApiPaginationResultProduct', function() { + // uncomment below and update the code to test RestApiPaginationResultProduct + //var instane = new Flipdish.RestApiPaginationResultProduct(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultProduct); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultProduct(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultProduct(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultPushNotificationResponse.spec.js b/test/model/RestApiPaginationResultPushNotificationResponse.spec.js new file mode 100644 index 00000000..071cd6ee --- /dev/null +++ b/test/model/RestApiPaginationResultPushNotificationResponse.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultPushNotificationResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultPushNotificationResponse', function() { + it('should create an instance of RestApiPaginationResultPushNotificationResponse', function() { + // uncomment below and update the code to test RestApiPaginationResultPushNotificationResponse + //var instane = new Flipdish.RestApiPaginationResultPushNotificationResponse(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultPushNotificationResponse); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultPushNotificationResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultPushNotificationResponse(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultPushNotificationResponse(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultPushNotificationResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultRestaurant.spec.js b/test/model/RestApiPaginationResultRestaurant.spec.js new file mode 100644 index 00000000..3d5c048a --- /dev/null +++ b/test/model/RestApiPaginationResultRestaurant.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultRestaurant(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultRestaurant', function() { + it('should create an instance of RestApiPaginationResultRestaurant', function() { + // uncomment below and update the code to test RestApiPaginationResultRestaurant + //var instane = new Flipdish.RestApiPaginationResultRestaurant(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultRestaurant); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultRestaurant(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultRestaurant(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultRestaurant(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultRestaurant(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultStore.spec.js b/test/model/RestApiPaginationResultStore.spec.js new file mode 100644 index 00000000..76263ccb --- /dev/null +++ b/test/model/RestApiPaginationResultStore.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultStore', function() { + it('should create an instance of RestApiPaginationResultStore', function() { + // uncomment below and update the code to test RestApiPaginationResultStore + //var instane = new Flipdish.RestApiPaginationResultStore(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultStore); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultStore(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultStore(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultStore(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultStoreGroup.spec.js b/test/model/RestApiPaginationResultStoreGroup.spec.js new file mode 100644 index 00000000..b981f8ae --- /dev/null +++ b/test/model/RestApiPaginationResultStoreGroup.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStoreGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultStoreGroup', function() { + it('should create an instance of RestApiPaginationResultStoreGroup', function() { + // uncomment below and update the code to test RestApiPaginationResultStoreGroup + //var instane = new Flipdish.RestApiPaginationResultStoreGroup(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultStoreGroup); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultStoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultStoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultStoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultStoreGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultStoreGroupExtended.spec.js b/test/model/RestApiPaginationResultStoreGroupExtended.spec.js new file mode 100644 index 00000000..848ab8f0 --- /dev/null +++ b/test/model/RestApiPaginationResultStoreGroupExtended.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStoreGroupExtended(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultStoreGroupExtended', function() { + it('should create an instance of RestApiPaginationResultStoreGroupExtended', function() { + // uncomment below and update the code to test RestApiPaginationResultStoreGroupExtended + //var instane = new Flipdish.RestApiPaginationResultStoreGroupExtended(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultStoreGroupExtended); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultStoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultStoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultStoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultStoreGroupExtended(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultStoreHeader.spec.js b/test/model/RestApiPaginationResultStoreHeader.spec.js new file mode 100644 index 00000000..89a591ee --- /dev/null +++ b/test/model/RestApiPaginationResultStoreHeader.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStoreHeader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultStoreHeader', function() { + it('should create an instance of RestApiPaginationResultStoreHeader', function() { + // uncomment below and update the code to test RestApiPaginationResultStoreHeader + //var instane = new Flipdish.RestApiPaginationResultStoreHeader(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultStoreHeader); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultStoreHeader(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultStoreHeader(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultStoreHeader(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultStoreHeader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultStoreValidationConfig.spec.js b/test/model/RestApiPaginationResultStoreValidationConfig.spec.js new file mode 100644 index 00000000..62913d1e --- /dev/null +++ b/test/model/RestApiPaginationResultStoreValidationConfig.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultStoreValidationConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultStoreValidationConfig', function() { + it('should create an instance of RestApiPaginationResultStoreValidationConfig', function() { + // uncomment below and update the code to test RestApiPaginationResultStoreValidationConfig + //var instane = new Flipdish.RestApiPaginationResultStoreValidationConfig(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultStoreValidationConfig); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultStoreValidationConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultStoreValidationConfig(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultStoreValidationConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultStoreValidationConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultUserSearch.spec.js b/test/model/RestApiPaginationResultUserSearch.spec.js new file mode 100644 index 00000000..f732ea91 --- /dev/null +++ b/test/model/RestApiPaginationResultUserSearch.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultUserSearch(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultUserSearch', function() { + it('should create an instance of RestApiPaginationResultUserSearch', function() { + // uncomment below and update the code to test RestApiPaginationResultUserSearch + //var instane = new Flipdish.RestApiPaginationResultUserSearch(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultUserSearch); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultUserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultUserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultUserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultUserSearch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultVoucherSummary.spec.js b/test/model/RestApiPaginationResultVoucherSummary.spec.js new file mode 100644 index 00000000..df5b7f87 --- /dev/null +++ b/test/model/RestApiPaginationResultVoucherSummary.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultVoucherSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultVoucherSummary', function() { + it('should create an instance of RestApiPaginationResultVoucherSummary', function() { + // uncomment below and update the code to test RestApiPaginationResultVoucherSummary + //var instane = new Flipdish.RestApiPaginationResultVoucherSummary(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultVoucherSummary); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultVoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultVoucherSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultWebhookLog.spec.js b/test/model/RestApiPaginationResultWebhookLog.spec.js new file mode 100644 index 00000000..ee03f5c9 --- /dev/null +++ b/test/model/RestApiPaginationResultWebhookLog.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultWebhookLog(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultWebhookLog', function() { + it('should create an instance of RestApiPaginationResultWebhookLog', function() { + // uncomment below and update the code to test RestApiPaginationResultWebhookLog + //var instane = new Flipdish.RestApiPaginationResultWebhookLog(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultWebhookLog); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultWebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultWebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultWebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultWebhookLog(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiPaginationResultWebhookSubscription.spec.js b/test/model/RestApiPaginationResultWebhookSubscription.spec.js new file mode 100644 index 00000000..fab6ec21 --- /dev/null +++ b/test/model/RestApiPaginationResultWebhookSubscription.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiPaginationResultWebhookSubscription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiPaginationResultWebhookSubscription', function() { + it('should create an instance of RestApiPaginationResultWebhookSubscription', function() { + // uncomment below and update the code to test RestApiPaginationResultWebhookSubscription + //var instane = new Flipdish.RestApiPaginationResultWebhookSubscription(); + //expect(instance).to.be.a(Flipdish.RestApiPaginationResultWebhookSubscription); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.RestApiPaginationResultWebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.RestApiPaginationResultWebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property TotalRecordCount (base name: "TotalRecordCount")', function() { + // uncomment below and update the code to test the property TotalRecordCount + //var instance = new Flipdish.RestApiPaginationResultWebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiPaginationResultWebhookSubscription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAcceptInvitationResult.spec.js b/test/model/RestApiResultAcceptInvitationResult.spec.js new file mode 100644 index 00000000..5093a411 --- /dev/null +++ b/test/model/RestApiResultAcceptInvitationResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAcceptInvitationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAcceptInvitationResult', function() { + it('should create an instance of RestApiResultAcceptInvitationResult', function() { + // uncomment below and update the code to test RestApiResultAcceptInvitationResult + //var instane = new Flipdish.RestApiResultAcceptInvitationResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultAcceptInvitationResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAcceptInvitationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAccountDetail.spec.js b/test/model/RestApiResultAccountDetail.spec.js new file mode 100644 index 00000000..eb18c211 --- /dev/null +++ b/test/model/RestApiResultAccountDetail.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAccountDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAccountDetail', function() { + it('should create an instance of RestApiResultAccountDetail', function() { + // uncomment below and update the code to test RestApiResultAccountDetail + //var instane = new Flipdish.RestApiResultAccountDetail(); + //expect(instance).to.be.a(Flipdish.RestApiResultAccountDetail); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAccountDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAccountFieldsDefinitions.spec.js b/test/model/RestApiResultAccountFieldsDefinitions.spec.js new file mode 100644 index 00000000..82393e7f --- /dev/null +++ b/test/model/RestApiResultAccountFieldsDefinitions.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAccountFieldsDefinitions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAccountFieldsDefinitions', function() { + it('should create an instance of RestApiResultAccountFieldsDefinitions', function() { + // uncomment below and update the code to test RestApiResultAccountFieldsDefinitions + //var instane = new Flipdish.RestApiResultAccountFieldsDefinitions(); + //expect(instance).to.be.a(Flipdish.RestApiResultAccountFieldsDefinitions); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAccountFieldsDefinitions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAddressFormResponse.spec.js b/test/model/RestApiResultAddressFormResponse.spec.js new file mode 100644 index 00000000..336e556f --- /dev/null +++ b/test/model/RestApiResultAddressFormResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAddressFormResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAddressFormResponse', function() { + it('should create an instance of RestApiResultAddressFormResponse', function() { + // uncomment below and update the code to test RestApiResultAddressFormResponse + //var instane = new Flipdish.RestApiResultAddressFormResponse(); + //expect(instance).to.be.a(Flipdish.RestApiResultAddressFormResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAddressFormResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultApmStatistics.spec.js b/test/model/RestApiResultApmStatistics.spec.js new file mode 100644 index 00000000..c7b5030b --- /dev/null +++ b/test/model/RestApiResultApmStatistics.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultApmStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultApmStatistics', function() { + it('should create an instance of RestApiResultApmStatistics', function() { + // uncomment below and update the code to test RestApiResultApmStatistics + //var instane = new Flipdish.RestApiResultApmStatistics(); + //expect(instance).to.be.a(Flipdish.RestApiResultApmStatistics); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultApmStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultApmStatus.spec.js b/test/model/RestApiResultApmStatus.spec.js new file mode 100644 index 00000000..0b3ff492 --- /dev/null +++ b/test/model/RestApiResultApmStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultApmStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultApmStatus', function() { + it('should create an instance of RestApiResultApmStatus', function() { + // uncomment below and update the code to test RestApiResultApmStatus + //var instane = new Flipdish.RestApiResultApmStatus(); + //expect(instance).to.be.a(Flipdish.RestApiResultApmStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultApmStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultApp.spec.js b/test/model/RestApiResultApp.spec.js new file mode 100644 index 00000000..4b233d7d --- /dev/null +++ b/test/model/RestApiResultApp.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultApp', function() { + it('should create an instance of RestApiResultApp', function() { + // uncomment below and update the code to test RestApiResultApp + //var instane = new Flipdish.RestApiResultApp(); + //expect(instance).to.be.a(Flipdish.RestApiResultApp); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAppChannelAssignment.spec.js b/test/model/RestApiResultAppChannelAssignment.spec.js new file mode 100644 index 00000000..83dcb129 --- /dev/null +++ b/test/model/RestApiResultAppChannelAssignment.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAppChannelAssignment(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAppChannelAssignment', function() { + it('should create an instance of RestApiResultAppChannelAssignment', function() { + // uncomment below and update the code to test RestApiResultAppChannelAssignment + //var instane = new Flipdish.RestApiResultAppChannelAssignment(); + //expect(instance).to.be.a(Flipdish.RestApiResultAppChannelAssignment); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAppChannelAssignment(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAppCompliance.spec.js b/test/model/RestApiResultAppCompliance.spec.js new file mode 100644 index 00000000..8803e405 --- /dev/null +++ b/test/model/RestApiResultAppCompliance.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAppCompliance(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAppCompliance', function() { + it('should create an instance of RestApiResultAppCompliance', function() { + // uncomment below and update the code to test RestApiResultAppCompliance + //var instane = new Flipdish.RestApiResultAppCompliance(); + //expect(instance).to.be.a(Flipdish.RestApiResultAppCompliance); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAppCompliance(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAppConfigSalesChannel.spec.js b/test/model/RestApiResultAppConfigSalesChannel.spec.js new file mode 100644 index 00000000..7e4a823f --- /dev/null +++ b/test/model/RestApiResultAppConfigSalesChannel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAppConfigSalesChannel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAppConfigSalesChannel', function() { + it('should create an instance of RestApiResultAppConfigSalesChannel', function() { + // uncomment below and update the code to test RestApiResultAppConfigSalesChannel + //var instane = new Flipdish.RestApiResultAppConfigSalesChannel(); + //expect(instance).to.be.a(Flipdish.RestApiResultAppConfigSalesChannel); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAppConfigSalesChannel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAppStoreApp.spec.js b/test/model/RestApiResultAppStoreApp.spec.js new file mode 100644 index 00000000..b9401c85 --- /dev/null +++ b/test/model/RestApiResultAppStoreApp.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAppStoreApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAppStoreApp', function() { + it('should create an instance of RestApiResultAppStoreApp', function() { + // uncomment below and update the code to test RestApiResultAppStoreApp + //var instane = new Flipdish.RestApiResultAppStoreApp(); + //expect(instance).to.be.a(Flipdish.RestApiResultAppStoreApp); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAppStoreApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAppStoreAppConfiguration.spec.js b/test/model/RestApiResultAppStoreAppConfiguration.spec.js new file mode 100644 index 00000000..3472d115 --- /dev/null +++ b/test/model/RestApiResultAppStoreAppConfiguration.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAppStoreAppConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAppStoreAppConfiguration', function() { + it('should create an instance of RestApiResultAppStoreAppConfiguration', function() { + // uncomment below and update the code to test RestApiResultAppStoreAppConfiguration + //var instane = new Flipdish.RestApiResultAppStoreAppConfiguration(); + //expect(instance).to.be.a(Flipdish.RestApiResultAppStoreAppConfiguration); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAppStoreAppEntitlements.spec.js b/test/model/RestApiResultAppStoreAppEntitlements.spec.js new file mode 100644 index 00000000..07db5180 --- /dev/null +++ b/test/model/RestApiResultAppStoreAppEntitlements.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAppStoreAppEntitlements(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAppStoreAppEntitlements', function() { + it('should create an instance of RestApiResultAppStoreAppEntitlements', function() { + // uncomment below and update the code to test RestApiResultAppStoreAppEntitlements + //var instane = new Flipdish.RestApiResultAppStoreAppEntitlements(); + //expect(instance).to.be.a(Flipdish.RestApiResultAppStoreAppEntitlements); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAppStoreAppEntitlements(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultAssignedBankAccount.spec.js b/test/model/RestApiResultAssignedBankAccount.spec.js new file mode 100644 index 00000000..c998bbea --- /dev/null +++ b/test/model/RestApiResultAssignedBankAccount.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultAssignedBankAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultAssignedBankAccount', function() { + it('should create an instance of RestApiResultAssignedBankAccount', function() { + // uncomment below and update the code to test RestApiResultAssignedBankAccount + //var instane = new Flipdish.RestApiResultAssignedBankAccount(); + //expect(instance).to.be.a(Flipdish.RestApiResultAssignedBankAccount); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultAssignedBankAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultBankAccountDetail.spec.js b/test/model/RestApiResultBankAccountDetail.spec.js new file mode 100644 index 00000000..f5f36d43 --- /dev/null +++ b/test/model/RestApiResultBankAccountDetail.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultBankAccountDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultBankAccountDetail', function() { + it('should create an instance of RestApiResultBankAccountDetail', function() { + // uncomment below and update the code to test RestApiResultBankAccountDetail + //var instane = new Flipdish.RestApiResultBankAccountDetail(); + //expect(instance).to.be.a(Flipdish.RestApiResultBankAccountDetail); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultBankAccountDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultBluetoothTerminalStatus.spec.js b/test/model/RestApiResultBluetoothTerminalStatus.spec.js new file mode 100644 index 00000000..61b30615 --- /dev/null +++ b/test/model/RestApiResultBluetoothTerminalStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultBluetoothTerminalStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultBluetoothTerminalStatus', function() { + it('should create an instance of RestApiResultBluetoothTerminalStatus', function() { + // uncomment below and update the code to test RestApiResultBluetoothTerminalStatus + //var instane = new Flipdish.RestApiResultBluetoothTerminalStatus(); + //expect(instance).to.be.a(Flipdish.RestApiResultBluetoothTerminalStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultBluetoothTerminalStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultBusinessHoursOverride.spec.js b/test/model/RestApiResultBusinessHoursOverride.spec.js new file mode 100644 index 00000000..330e336e --- /dev/null +++ b/test/model/RestApiResultBusinessHoursOverride.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultBusinessHoursOverride(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultBusinessHoursOverride', function() { + it('should create an instance of RestApiResultBusinessHoursOverride', function() { + // uncomment below and update the code to test RestApiResultBusinessHoursOverride + //var instane = new Flipdish.RestApiResultBusinessHoursOverride(); + //expect(instance).to.be.a(Flipdish.RestApiResultBusinessHoursOverride); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultBusinessHoursOverride(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultBusinessHoursPeriod.spec.js b/test/model/RestApiResultBusinessHoursPeriod.spec.js new file mode 100644 index 00000000..afce686e --- /dev/null +++ b/test/model/RestApiResultBusinessHoursPeriod.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultBusinessHoursPeriod(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultBusinessHoursPeriod', function() { + it('should create an instance of RestApiResultBusinessHoursPeriod', function() { + // uncomment below and update the code to test RestApiResultBusinessHoursPeriod + //var instane = new Flipdish.RestApiResultBusinessHoursPeriod(); + //expect(instance).to.be.a(Flipdish.RestApiResultBusinessHoursPeriod); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultBusinessHoursPeriod(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCardReader.spec.js b/test/model/RestApiResultCardReader.spec.js new file mode 100644 index 00000000..7cad388a --- /dev/null +++ b/test/model/RestApiResultCardReader.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCardReader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCardReader', function() { + it('should create an instance of RestApiResultCardReader', function() { + // uncomment below and update the code to test RestApiResultCardReader + //var instane = new Flipdish.RestApiResultCardReader(); + //expect(instance).to.be.a(Flipdish.RestApiResultCardReader); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCardReader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCatalogItem.spec.js b/test/model/RestApiResultCatalogItem.spec.js new file mode 100644 index 00000000..048bbe1b --- /dev/null +++ b/test/model/RestApiResultCatalogItem.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCatalogItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCatalogItem', function() { + it('should create an instance of RestApiResultCatalogItem', function() { + // uncomment below and update the code to test RestApiResultCatalogItem + //var instane = new Flipdish.RestApiResultCatalogItem(); + //expect(instance).to.be.a(Flipdish.RestApiResultCatalogItem); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCatalogItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultChannel.spec.js b/test/model/RestApiResultChannel.spec.js new file mode 100644 index 00000000..30725deb --- /dev/null +++ b/test/model/RestApiResultChannel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultChannel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultChannel', function() { + it('should create an instance of RestApiResultChannel', function() { + // uncomment below and update the code to test RestApiResultChannel + //var instane = new Flipdish.RestApiResultChannel(); + //expect(instance).to.be.a(Flipdish.RestApiResultChannel); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultChannel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultClientDevice.spec.js b/test/model/RestApiResultClientDevice.spec.js new file mode 100644 index 00000000..e289e58a --- /dev/null +++ b/test/model/RestApiResultClientDevice.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultClientDevice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultClientDevice', function() { + it('should create an instance of RestApiResultClientDevice', function() { + // uncomment below and update the code to test RestApiResultClientDevice + //var instane = new Flipdish.RestApiResultClientDevice(); + //expect(instance).to.be.a(Flipdish.RestApiResultClientDevice); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultClientDevice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultClientDeviceEnrollmentResult.spec.js b/test/model/RestApiResultClientDeviceEnrollmentResult.spec.js new file mode 100644 index 00000000..1afbfae7 --- /dev/null +++ b/test/model/RestApiResultClientDeviceEnrollmentResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultClientDeviceEnrollmentResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultClientDeviceEnrollmentResult', function() { + it('should create an instance of RestApiResultClientDeviceEnrollmentResult', function() { + // uncomment below and update the code to test RestApiResultClientDeviceEnrollmentResult + //var instane = new Flipdish.RestApiResultClientDeviceEnrollmentResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultClientDeviceEnrollmentResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultClientDeviceEnrollmentResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCoordinates.spec.js b/test/model/RestApiResultCoordinates.spec.js new file mode 100644 index 00000000..047edeab --- /dev/null +++ b/test/model/RestApiResultCoordinates.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCoordinates(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCoordinates', function() { + it('should create an instance of RestApiResultCoordinates', function() { + // uncomment below and update the code to test RestApiResultCoordinates + //var instane = new Flipdish.RestApiResultCoordinates(); + //expect(instance).to.be.a(Flipdish.RestApiResultCoordinates); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCoordinates(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCountryFormResponse.spec.js b/test/model/RestApiResultCountryFormResponse.spec.js new file mode 100644 index 00000000..f2e1e5de --- /dev/null +++ b/test/model/RestApiResultCountryFormResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCountryFormResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCountryFormResponse', function() { + it('should create an instance of RestApiResultCountryFormResponse', function() { + // uncomment below and update the code to test RestApiResultCountryFormResponse + //var instane = new Flipdish.RestApiResultCountryFormResponse(); + //expect(instance).to.be.a(Flipdish.RestApiResultCountryFormResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCountryFormResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCreatedMenuSectionItems.spec.js b/test/model/RestApiResultCreatedMenuSectionItems.spec.js new file mode 100644 index 00000000..c5033af9 --- /dev/null +++ b/test/model/RestApiResultCreatedMenuSectionItems.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCreatedMenuSectionItems(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCreatedMenuSectionItems', function() { + it('should create an instance of RestApiResultCreatedMenuSectionItems', function() { + // uncomment below and update the code to test RestApiResultCreatedMenuSectionItems + //var instane = new Flipdish.RestApiResultCreatedMenuSectionItems(); + //expect(instance).to.be.a(Flipdish.RestApiResultCreatedMenuSectionItems); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCreatedMenuSectionItems(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCrossSellMenuItems.spec.js b/test/model/RestApiResultCrossSellMenuItems.spec.js new file mode 100644 index 00000000..fe33b71d --- /dev/null +++ b/test/model/RestApiResultCrossSellMenuItems.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCrossSellMenuItems(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCrossSellMenuItems', function() { + it('should create an instance of RestApiResultCrossSellMenuItems', function() { + // uncomment below and update the code to test RestApiResultCrossSellMenuItems + //var instane = new Flipdish.RestApiResultCrossSellMenuItems(); + //expect(instance).to.be.a(Flipdish.RestApiResultCrossSellMenuItems); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCrossSellMenuItems(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCustomer.spec.js b/test/model/RestApiResultCustomer.spec.js new file mode 100644 index 00000000..408c0750 --- /dev/null +++ b/test/model/RestApiResultCustomer.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCustomer(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCustomer', function() { + it('should create an instance of RestApiResultCustomer', function() { + // uncomment below and update the code to test RestApiResultCustomer + //var instane = new Flipdish.RestApiResultCustomer(); + //expect(instance).to.be.a(Flipdish.RestApiResultCustomer); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCustomer(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultCustomers.spec.js b/test/model/RestApiResultCustomers.spec.js new file mode 100644 index 00000000..8e9133e1 --- /dev/null +++ b/test/model/RestApiResultCustomers.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultCustomers(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultCustomers', function() { + it('should create an instance of RestApiResultCustomers', function() { + // uncomment below and update the code to test RestApiResultCustomers + //var instane = new Flipdish.RestApiResultCustomers(); + //expect(instance).to.be.a(Flipdish.RestApiResultCustomers); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultCustomers(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultDeliveryZone.spec.js b/test/model/RestApiResultDeliveryZone.spec.js new file mode 100644 index 00000000..9959f11f --- /dev/null +++ b/test/model/RestApiResultDeliveryZone.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultDeliveryZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultDeliveryZone', function() { + it('should create an instance of RestApiResultDeliveryZone', function() { + // uncomment below and update the code to test RestApiResultDeliveryZone + //var instane = new Flipdish.RestApiResultDeliveryZone(); + //expect(instance).to.be.a(Flipdish.RestApiResultDeliveryZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultDeliveryZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultDnsRecordInformation.spec.js b/test/model/RestApiResultDnsRecordInformation.spec.js new file mode 100644 index 00000000..98421d3b --- /dev/null +++ b/test/model/RestApiResultDnsRecordInformation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultDnsRecordInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultDnsRecordInformation', function() { + it('should create an instance of RestApiResultDnsRecordInformation', function() { + // uncomment below and update the code to test RestApiResultDnsRecordInformation + //var instane = new Flipdish.RestApiResultDnsRecordInformation(); + //expect(instance).to.be.a(Flipdish.RestApiResultDnsRecordInformation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultDnsRecordInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultExecuteConfigurationActionResult.spec.js b/test/model/RestApiResultExecuteConfigurationActionResult.spec.js new file mode 100644 index 00000000..32d3a9fb --- /dev/null +++ b/test/model/RestApiResultExecuteConfigurationActionResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultExecuteConfigurationActionResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultExecuteConfigurationActionResult', function() { + it('should create an instance of RestApiResultExecuteConfigurationActionResult', function() { + // uncomment below and update the code to test RestApiResultExecuteConfigurationActionResult + //var instane = new Flipdish.RestApiResultExecuteConfigurationActionResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultExecuteConfigurationActionResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultExecuteConfigurationActionResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultFileCreationResult.spec.js b/test/model/RestApiResultFileCreationResult.spec.js new file mode 100644 index 00000000..bfd4d9af --- /dev/null +++ b/test/model/RestApiResultFileCreationResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultFileCreationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultFileCreationResult', function() { + it('should create an instance of RestApiResultFileCreationResult', function() { + // uncomment below and update the code to test RestApiResultFileCreationResult + //var instane = new Flipdish.RestApiResultFileCreationResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultFileCreationResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultFileCreationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultFileDownloadResult.spec.js b/test/model/RestApiResultFileDownloadResult.spec.js new file mode 100644 index 00000000..fc3350f7 --- /dev/null +++ b/test/model/RestApiResultFileDownloadResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultFileDownloadResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultFileDownloadResult', function() { + it('should create an instance of RestApiResultFileDownloadResult', function() { + // uncomment below and update the code to test RestApiResultFileDownloadResult + //var instane = new Flipdish.RestApiResultFileDownloadResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultFileDownloadResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultFileDownloadResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultFulfillmentStatesConfiguration.spec.js b/test/model/RestApiResultFulfillmentStatesConfiguration.spec.js new file mode 100644 index 00000000..cbdc25d3 --- /dev/null +++ b/test/model/RestApiResultFulfillmentStatesConfiguration.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultFulfillmentStatesConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultFulfillmentStatesConfiguration', function() { + it('should create an instance of RestApiResultFulfillmentStatesConfiguration', function() { + // uncomment below and update the code to test RestApiResultFulfillmentStatesConfiguration + //var instane = new Flipdish.RestApiResultFulfillmentStatesConfiguration(); + //expect(instance).to.be.a(Flipdish.RestApiResultFulfillmentStatesConfiguration); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultGroup.spec.js b/test/model/RestApiResultGroup.spec.js new file mode 100644 index 00000000..b80d4595 --- /dev/null +++ b/test/model/RestApiResultGroup.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultGroup', function() { + it('should create an instance of RestApiResultGroup', function() { + // uncomment below and update the code to test RestApiResultGroup + //var instane = new Flipdish.RestApiResultGroup(); + //expect(instance).to.be.a(Flipdish.RestApiResultGroup); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultHasPaymentMethodResponse.spec.js b/test/model/RestApiResultHasPaymentMethodResponse.spec.js new file mode 100644 index 00000000..44e288b8 --- /dev/null +++ b/test/model/RestApiResultHasPaymentMethodResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultHasPaymentMethodResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultHasPaymentMethodResponse', function() { + it('should create an instance of RestApiResultHasPaymentMethodResponse', function() { + // uncomment below and update the code to test RestApiResultHasPaymentMethodResponse + //var instane = new Flipdish.RestApiResultHasPaymentMethodResponse(); + //expect(instance).to.be.a(Flipdish.RestApiResultHasPaymentMethodResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultHasPaymentMethodResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultHomeStatistics.spec.js b/test/model/RestApiResultHomeStatistics.spec.js new file mode 100644 index 00000000..1d1e594e --- /dev/null +++ b/test/model/RestApiResultHomeStatistics.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultHomeStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultHomeStatistics', function() { + it('should create an instance of RestApiResultHomeStatistics', function() { + // uncomment below and update the code to test RestApiResultHomeStatistics + //var instane = new Flipdish.RestApiResultHomeStatistics(); + //expect(instance).to.be.a(Flipdish.RestApiResultHomeStatistics); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultHomeStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultHydraConfig.spec.js b/test/model/RestApiResultHydraConfig.spec.js new file mode 100644 index 00000000..609d7edd --- /dev/null +++ b/test/model/RestApiResultHydraConfig.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultHydraConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultHydraConfig', function() { + it('should create an instance of RestApiResultHydraConfig', function() { + // uncomment below and update the code to test RestApiResultHydraConfig + //var instane = new Flipdish.RestApiResultHydraConfig(); + //expect(instance).to.be.a(Flipdish.RestApiResultHydraConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultHydraConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultHydraDeviceDetails.spec.js b/test/model/RestApiResultHydraDeviceDetails.spec.js new file mode 100644 index 00000000..7b0aaf1b --- /dev/null +++ b/test/model/RestApiResultHydraDeviceDetails.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultHydraDeviceDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultHydraDeviceDetails', function() { + it('should create an instance of RestApiResultHydraDeviceDetails', function() { + // uncomment below and update the code to test RestApiResultHydraDeviceDetails + //var instane = new Flipdish.RestApiResultHydraDeviceDetails(); + //expect(instance).to.be.a(Flipdish.RestApiResultHydraDeviceDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultHydraDeviceDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultHydraStatus.spec.js b/test/model/RestApiResultHydraStatus.spec.js new file mode 100644 index 00000000..7f469276 --- /dev/null +++ b/test/model/RestApiResultHydraStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultHydraStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultHydraStatus', function() { + it('should create an instance of RestApiResultHydraStatus', function() { + // uncomment below and update the code to test RestApiResultHydraStatus + //var instane = new Flipdish.RestApiResultHydraStatus(); + //expect(instance).to.be.a(Flipdish.RestApiResultHydraStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultHydraStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultIndexPage.spec.js b/test/model/RestApiResultIndexPage.spec.js new file mode 100644 index 00000000..46923093 --- /dev/null +++ b/test/model/RestApiResultIndexPage.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultIndexPage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultIndexPage', function() { + it('should create an instance of RestApiResultIndexPage', function() { + // uncomment below and update the code to test RestApiResultIndexPage + //var instane = new Flipdish.RestApiResultIndexPage(); + //expect(instance).to.be.a(Flipdish.RestApiResultIndexPage); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultIndexPage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultIndexPageBase.spec.js b/test/model/RestApiResultIndexPageBase.spec.js new file mode 100644 index 00000000..d7af16a6 --- /dev/null +++ b/test/model/RestApiResultIndexPageBase.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultIndexPageBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultIndexPageBase', function() { + it('should create an instance of RestApiResultIndexPageBase', function() { + // uncomment below and update the code to test RestApiResultIndexPageBase + //var instane = new Flipdish.RestApiResultIndexPageBase(); + //expect(instance).to.be.a(Flipdish.RestApiResultIndexPageBase); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultIndexPageBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultIntercomUserHash.spec.js b/test/model/RestApiResultIntercomUserHash.spec.js new file mode 100644 index 00000000..449a4d9f --- /dev/null +++ b/test/model/RestApiResultIntercomUserHash.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultIntercomUserHash(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultIntercomUserHash', function() { + it('should create an instance of RestApiResultIntercomUserHash', function() { + // uncomment below and update the code to test RestApiResultIntercomUserHash + //var instane = new Flipdish.RestApiResultIntercomUserHash(); + //expect(instance).to.be.a(Flipdish.RestApiResultIntercomUserHash); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultIntercomUserHash(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultJobResponse.spec.js b/test/model/RestApiResultJobResponse.spec.js new file mode 100644 index 00000000..fdc6f4e8 --- /dev/null +++ b/test/model/RestApiResultJobResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultJobResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultJobResponse', function() { + it('should create an instance of RestApiResultJobResponse', function() { + // uncomment below and update the code to test RestApiResultJobResponse + //var instane = new Flipdish.RestApiResultJobResponse(); + //expect(instance).to.be.a(Flipdish.RestApiResultJobResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultJobResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultKioskEntitlementsResult.spec.js b/test/model/RestApiResultKioskEntitlementsResult.spec.js new file mode 100644 index 00000000..acd9c782 --- /dev/null +++ b/test/model/RestApiResultKioskEntitlementsResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultKioskEntitlementsResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultKioskEntitlementsResult', function() { + it('should create an instance of RestApiResultKioskEntitlementsResult', function() { + // uncomment below and update the code to test RestApiResultKioskEntitlementsResult + //var instane = new Flipdish.RestApiResultKioskEntitlementsResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultKioskEntitlementsResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultKioskEntitlementsResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultKioskIotConnectionParameters.spec.js b/test/model/RestApiResultKioskIotConnectionParameters.spec.js new file mode 100644 index 00000000..5a26fd26 --- /dev/null +++ b/test/model/RestApiResultKioskIotConnectionParameters.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultKioskIotConnectionParameters(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultKioskIotConnectionParameters', function() { + it('should create an instance of RestApiResultKioskIotConnectionParameters', function() { + // uncomment below and update the code to test RestApiResultKioskIotConnectionParameters + //var instane = new Flipdish.RestApiResultKioskIotConnectionParameters(); + //expect(instance).to.be.a(Flipdish.RestApiResultKioskIotConnectionParameters); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultKioskIotConnectionParameters(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultKioskSettings.spec.js b/test/model/RestApiResultKioskSettings.spec.js new file mode 100644 index 00000000..8eef01da --- /dev/null +++ b/test/model/RestApiResultKioskSettings.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultKioskSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultKioskSettings', function() { + it('should create an instance of RestApiResultKioskSettings', function() { + // uncomment below and update the code to test RestApiResultKioskSettings + //var instane = new Flipdish.RestApiResultKioskSettings(); + //expect(instance).to.be.a(Flipdish.RestApiResultKioskSettings); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultKioskSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultLightspeedSettings.spec.js b/test/model/RestApiResultLightspeedSettings.spec.js new file mode 100644 index 00000000..04f8a418 --- /dev/null +++ b/test/model/RestApiResultLightspeedSettings.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultLightspeedSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultLightspeedSettings', function() { + it('should create an instance of RestApiResultLightspeedSettings', function() { + // uncomment below and update the code to test RestApiResultLightspeedSettings + //var instane = new Flipdish.RestApiResultLightspeedSettings(); + //expect(instance).to.be.a(Flipdish.RestApiResultLightspeedSettings); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultLightspeedSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultLocationArea.spec.js b/test/model/RestApiResultLocationArea.spec.js new file mode 100644 index 00000000..5b7368c1 --- /dev/null +++ b/test/model/RestApiResultLocationArea.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultLocationArea(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultLocationArea', function() { + it('should create an instance of RestApiResultLocationArea', function() { + // uncomment below and update the code to test RestApiResultLocationArea + //var instane = new Flipdish.RestApiResultLocationArea(); + //expect(instance).to.be.a(Flipdish.RestApiResultLocationArea); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultLocationArea(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultLocationAreaLocation.spec.js b/test/model/RestApiResultLocationAreaLocation.spec.js new file mode 100644 index 00000000..915f5993 --- /dev/null +++ b/test/model/RestApiResultLocationAreaLocation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultLocationAreaLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultLocationAreaLocation', function() { + it('should create an instance of RestApiResultLocationAreaLocation', function() { + // uncomment below and update the code to test RestApiResultLocationAreaLocation + //var instane = new Flipdish.RestApiResultLocationAreaLocation(); + //expect(instance).to.be.a(Flipdish.RestApiResultLocationAreaLocation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultLocationAreaLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultLocationAreaWithLocations.spec.js b/test/model/RestApiResultLocationAreaWithLocations.spec.js new file mode 100644 index 00000000..1bd257a9 --- /dev/null +++ b/test/model/RestApiResultLocationAreaWithLocations.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultLocationAreaWithLocations(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultLocationAreaWithLocations', function() { + it('should create an instance of RestApiResultLocationAreaWithLocations', function() { + // uncomment below and update the code to test RestApiResultLocationAreaWithLocations + //var instane = new Flipdish.RestApiResultLocationAreaWithLocations(); + //expect(instance).to.be.a(Flipdish.RestApiResultLocationAreaWithLocations); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultLocationAreaWithLocations(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultLoyaltyCampaign.spec.js b/test/model/RestApiResultLoyaltyCampaign.spec.js new file mode 100644 index 00000000..548a2087 --- /dev/null +++ b/test/model/RestApiResultLoyaltyCampaign.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultLoyaltyCampaign(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultLoyaltyCampaign', function() { + it('should create an instance of RestApiResultLoyaltyCampaign', function() { + // uncomment below and update the code to test RestApiResultLoyaltyCampaign + //var instane = new Flipdish.RestApiResultLoyaltyCampaign(); + //expect(instance).to.be.a(Flipdish.RestApiResultLoyaltyCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultLoyaltyCampaign(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMappedLocation.spec.js b/test/model/RestApiResultMappedLocation.spec.js new file mode 100644 index 00000000..f41039a3 --- /dev/null +++ b/test/model/RestApiResultMappedLocation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMappedLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMappedLocation', function() { + it('should create an instance of RestApiResultMappedLocation', function() { + // uncomment below and update the code to test RestApiResultMappedLocation + //var instane = new Flipdish.RestApiResultMappedLocation(); + //expect(instance).to.be.a(Flipdish.RestApiResultMappedLocation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMappedLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenu.spec.js b/test/model/RestApiResultMenu.spec.js new file mode 100644 index 00000000..3ea97379 --- /dev/null +++ b/test/model/RestApiResultMenu.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenu(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenu', function() { + it('should create an instance of RestApiResultMenu', function() { + // uncomment below and update the code to test RestApiResultMenu + //var instane = new Flipdish.RestApiResultMenu(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenu); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenu(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenuItemOptionSet.spec.js b/test/model/RestApiResultMenuItemOptionSet.spec.js new file mode 100644 index 00000000..06a5642d --- /dev/null +++ b/test/model/RestApiResultMenuItemOptionSet.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuItemOptionSet(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenuItemOptionSet', function() { + it('should create an instance of RestApiResultMenuItemOptionSet', function() { + // uncomment below and update the code to test RestApiResultMenuItemOptionSet + //var instane = new Flipdish.RestApiResultMenuItemOptionSet(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenuItemOptionSet); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenuItemOptionSet(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenuItemOptionSetItem.spec.js b/test/model/RestApiResultMenuItemOptionSetItem.spec.js new file mode 100644 index 00000000..7787be6b --- /dev/null +++ b/test/model/RestApiResultMenuItemOptionSetItem.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuItemOptionSetItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenuItemOptionSetItem', function() { + it('should create an instance of RestApiResultMenuItemOptionSetItem', function() { + // uncomment below and update the code to test RestApiResultMenuItemOptionSetItem + //var instane = new Flipdish.RestApiResultMenuItemOptionSetItem(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenuItemOptionSetItem); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenuItemOptionSetItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenuNutritionInfoHeader.spec.js b/test/model/RestApiResultMenuNutritionInfoHeader.spec.js new file mode 100644 index 00000000..1ccac30b --- /dev/null +++ b/test/model/RestApiResultMenuNutritionInfoHeader.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuNutritionInfoHeader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenuNutritionInfoHeader', function() { + it('should create an instance of RestApiResultMenuNutritionInfoHeader', function() { + // uncomment below and update the code to test RestApiResultMenuNutritionInfoHeader + //var instane = new Flipdish.RestApiResultMenuNutritionInfoHeader(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenuNutritionInfoHeader); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenuNutritionInfoHeader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenuSection.spec.js b/test/model/RestApiResultMenuSection.spec.js new file mode 100644 index 00000000..9162415e --- /dev/null +++ b/test/model/RestApiResultMenuSection.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuSection(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenuSection', function() { + it('should create an instance of RestApiResultMenuSection', function() { + // uncomment below and update the code to test RestApiResultMenuSection + //var instane = new Flipdish.RestApiResultMenuSection(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenuSection); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenuSection(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenuSectionAvailability.spec.js b/test/model/RestApiResultMenuSectionAvailability.spec.js new file mode 100644 index 00000000..0e66738a --- /dev/null +++ b/test/model/RestApiResultMenuSectionAvailability.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuSectionAvailability(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenuSectionAvailability', function() { + it('should create an instance of RestApiResultMenuSectionAvailability', function() { + // uncomment below and update the code to test RestApiResultMenuSectionAvailability + //var instane = new Flipdish.RestApiResultMenuSectionAvailability(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenuSectionAvailability); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenuSectionAvailability(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenuSectionItem.spec.js b/test/model/RestApiResultMenuSectionItem.spec.js new file mode 100644 index 00000000..f3ce1a81 --- /dev/null +++ b/test/model/RestApiResultMenuSectionItem.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuSectionItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenuSectionItem', function() { + it('should create an instance of RestApiResultMenuSectionItem', function() { + // uncomment below and update the code to test RestApiResultMenuSectionItem + //var instane = new Flipdish.RestApiResultMenuSectionItem(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenuSectionItem); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenuSectionItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMenuZone.spec.js b/test/model/RestApiResultMenuZone.spec.js new file mode 100644 index 00000000..cbaaec02 --- /dev/null +++ b/test/model/RestApiResultMenuZone.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMenuZone(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMenuZone', function() { + it('should create an instance of RestApiResultMenuZone', function() { + // uncomment below and update the code to test RestApiResultMenuZone + //var instane = new Flipdish.RestApiResultMenuZone(); + //expect(instance).to.be.a(Flipdish.RestApiResultMenuZone); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMenuZone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMetadata.spec.js b/test/model/RestApiResultMetadata.spec.js new file mode 100644 index 00000000..c3036c24 --- /dev/null +++ b/test/model/RestApiResultMetadata.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMetadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMetadata', function() { + it('should create an instance of RestApiResultMetadata', function() { + // uncomment below and update the code to test RestApiResultMetadata + //var instane = new Flipdish.RestApiResultMetadata(); + //expect(instance).to.be.a(Flipdish.RestApiResultMetadata); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMetadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMetafieldDefinition.spec.js b/test/model/RestApiResultMetafieldDefinition.spec.js new file mode 100644 index 00000000..13681cd9 --- /dev/null +++ b/test/model/RestApiResultMetafieldDefinition.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMetafieldDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMetafieldDefinition', function() { + it('should create an instance of RestApiResultMetafieldDefinition', function() { + // uncomment below and update the code to test RestApiResultMetafieldDefinition + //var instane = new Flipdish.RestApiResultMetafieldDefinition(); + //expect(instance).to.be.a(Flipdish.RestApiResultMetafieldDefinition); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMetafieldDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMobileAppsImage.spec.js b/test/model/RestApiResultMobileAppsImage.spec.js new file mode 100644 index 00000000..46244fdd --- /dev/null +++ b/test/model/RestApiResultMobileAppsImage.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMobileAppsImage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMobileAppsImage', function() { + it('should create an instance of RestApiResultMobileAppsImage', function() { + // uncomment below and update the code to test RestApiResultMobileAppsImage + //var instane = new Flipdish.RestApiResultMobileAppsImage(); + //expect(instance).to.be.a(Flipdish.RestApiResultMobileAppsImage); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMobileAppsImage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMobileAppsSubmission.spec.js b/test/model/RestApiResultMobileAppsSubmission.spec.js new file mode 100644 index 00000000..704ecf65 --- /dev/null +++ b/test/model/RestApiResultMobileAppsSubmission.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMobileAppsSubmission(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMobileAppsSubmission', function() { + it('should create an instance of RestApiResultMobileAppsSubmission', function() { + // uncomment below and update the code to test RestApiResultMobileAppsSubmission + //var instane = new Flipdish.RestApiResultMobileAppsSubmission(); + //expect(instance).to.be.a(Flipdish.RestApiResultMobileAppsSubmission); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMobileAppsSubmission(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMobileAppsSubmissionDetails.spec.js b/test/model/RestApiResultMobileAppsSubmissionDetails.spec.js new file mode 100644 index 00000000..389a285d --- /dev/null +++ b/test/model/RestApiResultMobileAppsSubmissionDetails.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMobileAppsSubmissionDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMobileAppsSubmissionDetails', function() { + it('should create an instance of RestApiResultMobileAppsSubmissionDetails', function() { + // uncomment below and update the code to test RestApiResultMobileAppsSubmissionDetails + //var instane = new Flipdish.RestApiResultMobileAppsSubmissionDetails(); + //expect(instance).to.be.a(Flipdish.RestApiResultMobileAppsSubmissionDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMobileAppsSubmissionDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultMobileAppsSubmissionStatus.spec.js b/test/model/RestApiResultMobileAppsSubmissionStatus.spec.js new file mode 100644 index 00000000..18e1fc34 --- /dev/null +++ b/test/model/RestApiResultMobileAppsSubmissionStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultMobileAppsSubmissionStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultMobileAppsSubmissionStatus', function() { + it('should create an instance of RestApiResultMobileAppsSubmissionStatus', function() { + // uncomment below and update the code to test RestApiResultMobileAppsSubmissionStatus + //var instane = new Flipdish.RestApiResultMobileAppsSubmissionStatus(); + //expect(instance).to.be.a(Flipdish.RestApiResultMobileAppsSubmissionStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultModelBase.spec.js b/test/model/RestApiResultModelBase.spec.js new file mode 100644 index 00000000..74e7d101 --- /dev/null +++ b/test/model/RestApiResultModelBase.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultModelBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultModelBase', function() { + it('should create an instance of RestApiResultModelBase', function() { + // uncomment below and update the code to test RestApiResultModelBase + //var instane = new Flipdish.RestApiResultModelBase(); + //expect(instance).to.be.a(Flipdish.RestApiResultModelBase); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultModelBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultNutritionInfo.spec.js b/test/model/RestApiResultNutritionInfo.spec.js new file mode 100644 index 00000000..ff0c4837 --- /dev/null +++ b/test/model/RestApiResultNutritionInfo.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultNutritionInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultNutritionInfo', function() { + it('should create an instance of RestApiResultNutritionInfo', function() { + // uncomment below and update the code to test RestApiResultNutritionInfo + //var instane = new Flipdish.RestApiResultNutritionInfo(); + //expect(instance).to.be.a(Flipdish.RestApiResultNutritionInfo); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultNutritionInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultNutritionInfoV2.spec.js b/test/model/RestApiResultNutritionInfoV2.spec.js new file mode 100644 index 00000000..b9871fff --- /dev/null +++ b/test/model/RestApiResultNutritionInfoV2.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultNutritionInfoV2(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultNutritionInfoV2', function() { + it('should create an instance of RestApiResultNutritionInfoV2', function() { + // uncomment below and update the code to test RestApiResultNutritionInfoV2 + //var instane = new Flipdish.RestApiResultNutritionInfoV2(); + //expect(instance).to.be.a(Flipdish.RestApiResultNutritionInfoV2); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultNutritionInfoV2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOAuthApp.spec.js b/test/model/RestApiResultOAuthApp.spec.js new file mode 100644 index 00000000..fafa9a58 --- /dev/null +++ b/test/model/RestApiResultOAuthApp.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOAuthApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOAuthApp', function() { + it('should create an instance of RestApiResultOAuthApp', function() { + // uncomment below and update the code to test RestApiResultOAuthApp + //var instane = new Flipdish.RestApiResultOAuthApp(); + //expect(instance).to.be.a(Flipdish.RestApiResultOAuthApp); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOAuthApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOauthClientRedirectUri.spec.js b/test/model/RestApiResultOauthClientRedirectUri.spec.js new file mode 100644 index 00000000..77047a8d --- /dev/null +++ b/test/model/RestApiResultOauthClientRedirectUri.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOauthClientRedirectUri(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOauthClientRedirectUri', function() { + it('should create an instance of RestApiResultOauthClientRedirectUri', function() { + // uncomment below and update the code to test RestApiResultOauthClientRedirectUri + //var instane = new Flipdish.RestApiResultOauthClientRedirectUri(); + //expect(instance).to.be.a(Flipdish.RestApiResultOauthClientRedirectUri); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOauthClientRedirectUri(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOktaPortalFeatureFlag.spec.js b/test/model/RestApiResultOktaPortalFeatureFlag.spec.js new file mode 100644 index 00000000..81987f1f --- /dev/null +++ b/test/model/RestApiResultOktaPortalFeatureFlag.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOktaPortalFeatureFlag(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOktaPortalFeatureFlag', function() { + it('should create an instance of RestApiResultOktaPortalFeatureFlag', function() { + // uncomment below and update the code to test RestApiResultOktaPortalFeatureFlag + //var instane = new Flipdish.RestApiResultOktaPortalFeatureFlag(); + //expect(instance).to.be.a(Flipdish.RestApiResultOktaPortalFeatureFlag); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOktaPortalFeatureFlag(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrder.spec.js b/test/model/RestApiResultOrder.spec.js new file mode 100644 index 00000000..ded354fe --- /dev/null +++ b/test/model/RestApiResultOrder.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrder(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrder', function() { + it('should create an instance of RestApiResultOrder', function() { + // uncomment below and update the code to test RestApiResultOrder + //var instane = new Flipdish.RestApiResultOrder(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrder); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrder(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrderBatch.spec.js b/test/model/RestApiResultOrderBatch.spec.js new file mode 100644 index 00000000..7262b883 --- /dev/null +++ b/test/model/RestApiResultOrderBatch.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderBatch(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrderBatch', function() { + it('should create an instance of RestApiResultOrderBatch', function() { + // uncomment below and update the code to test RestApiResultOrderBatch + //var instane = new Flipdish.RestApiResultOrderBatch(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrderBatch); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrderBatch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrderBatchingConfiguration.spec.js b/test/model/RestApiResultOrderBatchingConfiguration.spec.js new file mode 100644 index 00000000..a84d4fc4 --- /dev/null +++ b/test/model/RestApiResultOrderBatchingConfiguration.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderBatchingConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrderBatchingConfiguration', function() { + it('should create an instance of RestApiResultOrderBatchingConfiguration', function() { + // uncomment below and update the code to test RestApiResultOrderBatchingConfiguration + //var instane = new Flipdish.RestApiResultOrderBatchingConfiguration(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrderBatchingConfiguration); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrderBatchingConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrderDeliveryInformation.spec.js b/test/model/RestApiResultOrderDeliveryInformation.spec.js new file mode 100644 index 00000000..ca879625 --- /dev/null +++ b/test/model/RestApiResultOrderDeliveryInformation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderDeliveryInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrderDeliveryInformation', function() { + it('should create an instance of RestApiResultOrderDeliveryInformation', function() { + // uncomment below and update the code to test RestApiResultOrderDeliveryInformation + //var instane = new Flipdish.RestApiResultOrderDeliveryInformation(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrderDeliveryInformation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrderDeliveryInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrderFulfillmentStatus.spec.js b/test/model/RestApiResultOrderFulfillmentStatus.spec.js new file mode 100644 index 00000000..5f6b7125 --- /dev/null +++ b/test/model/RestApiResultOrderFulfillmentStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderFulfillmentStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrderFulfillmentStatus', function() { + it('should create an instance of RestApiResultOrderFulfillmentStatus', function() { + // uncomment below and update the code to test RestApiResultOrderFulfillmentStatus + //var instane = new Flipdish.RestApiResultOrderFulfillmentStatus(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrderFulfillmentStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrderFulfillmentStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.spec.js b/test/model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.spec.js new file mode 100644 index 00000000..a9cbf70e --- /dev/null +++ b/test/model/RestApiResultOrderFulfillmentStatusWithConfigurationActions.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderFulfillmentStatusWithConfigurationActions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrderFulfillmentStatusWithConfigurationActions', function() { + it('should create an instance of RestApiResultOrderFulfillmentStatusWithConfigurationActions', function() { + // uncomment below and update the code to test RestApiResultOrderFulfillmentStatusWithConfigurationActions + //var instane = new Flipdish.RestApiResultOrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrderFulfillmentStatusWithConfigurationActions); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrderFulfillmentStatusWithConfigurationActions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrderLeadTimes.spec.js b/test/model/RestApiResultOrderLeadTimes.spec.js new file mode 100644 index 00000000..f4ebfb7e --- /dev/null +++ b/test/model/RestApiResultOrderLeadTimes.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderLeadTimes(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrderLeadTimes', function() { + it('should create an instance of RestApiResultOrderLeadTimes', function() { + // uncomment below and update the code to test RestApiResultOrderLeadTimes + //var instane = new Flipdish.RestApiResultOrderLeadTimes(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrderLeadTimes); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrderLeadTimes(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultOrderPaymentInformation.spec.js b/test/model/RestApiResultOrderPaymentInformation.spec.js new file mode 100644 index 00000000..b701f6cd --- /dev/null +++ b/test/model/RestApiResultOrderPaymentInformation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultOrderPaymentInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultOrderPaymentInformation', function() { + it('should create an instance of RestApiResultOrderPaymentInformation', function() { + // uncomment below and update the code to test RestApiResultOrderPaymentInformation + //var instane = new Flipdish.RestApiResultOrderPaymentInformation(); + //expect(instance).to.be.a(Flipdish.RestApiResultOrderPaymentInformation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultOrderPaymentInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultPaymentIntent.spec.js b/test/model/RestApiResultPaymentIntent.spec.js new file mode 100644 index 00000000..360da707 --- /dev/null +++ b/test/model/RestApiResultPaymentIntent.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultPaymentIntent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultPaymentIntent', function() { + it('should create an instance of RestApiResultPaymentIntent', function() { + // uncomment below and update the code to test RestApiResultPaymentIntent + //var instane = new Flipdish.RestApiResultPaymentIntent(); + //expect(instance).to.be.a(Flipdish.RestApiResultPaymentIntent); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultPaymentIntent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultPaymentTerminalDetails.spec.js b/test/model/RestApiResultPaymentTerminalDetails.spec.js new file mode 100644 index 00000000..70f76e87 --- /dev/null +++ b/test/model/RestApiResultPaymentTerminalDetails.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultPaymentTerminalDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultPaymentTerminalDetails', function() { + it('should create an instance of RestApiResultPaymentTerminalDetails', function() { + // uncomment below and update the code to test RestApiResultPaymentTerminalDetails + //var instane = new Flipdish.RestApiResultPaymentTerminalDetails(); + //expect(instance).to.be.a(Flipdish.RestApiResultPaymentTerminalDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultPaymentTerminalDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultPaymentTerminalTransactionDetails.spec.js b/test/model/RestApiResultPaymentTerminalTransactionDetails.spec.js new file mode 100644 index 00000000..e62ad851 --- /dev/null +++ b/test/model/RestApiResultPaymentTerminalTransactionDetails.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultPaymentTerminalTransactionDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultPaymentTerminalTransactionDetails', function() { + it('should create an instance of RestApiResultPaymentTerminalTransactionDetails', function() { + // uncomment below and update the code to test RestApiResultPaymentTerminalTransactionDetails + //var instane = new Flipdish.RestApiResultPaymentTerminalTransactionDetails(); + //expect(instance).to.be.a(Flipdish.RestApiResultPaymentTerminalTransactionDetails); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultPaymentTerminalTransactionDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultPayoutReport3Details.spec.js b/test/model/RestApiResultPayoutReport3Details.spec.js new file mode 100644 index 00000000..207815b0 --- /dev/null +++ b/test/model/RestApiResultPayoutReport3Details.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultPayoutReport3Details(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultPayoutReport3Details', function() { + it('should create an instance of RestApiResultPayoutReport3Details', function() { + // uncomment below and update the code to test RestApiResultPayoutReport3Details + //var instane = new Flipdish.RestApiResultPayoutReport3Details(); + //expect(instance).to.be.a(Flipdish.RestApiResultPayoutReport3Details); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultPayoutReport3Details(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultPayoutReport3Overview.spec.js b/test/model/RestApiResultPayoutReport3Overview.spec.js new file mode 100644 index 00000000..e37e98b8 --- /dev/null +++ b/test/model/RestApiResultPayoutReport3Overview.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultPayoutReport3Overview(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultPayoutReport3Overview', function() { + it('should create an instance of RestApiResultPayoutReport3Overview', function() { + // uncomment below and update the code to test RestApiResultPayoutReport3Overview + //var instane = new Flipdish.RestApiResultPayoutReport3Overview(); + //expect(instance).to.be.a(Flipdish.RestApiResultPayoutReport3Overview); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultPayoutReport3Overview(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultPreOrderConfig.spec.js b/test/model/RestApiResultPreOrderConfig.spec.js new file mode 100644 index 00000000..69f02143 --- /dev/null +++ b/test/model/RestApiResultPreOrderConfig.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultPreOrderConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultPreOrderConfig', function() { + it('should create an instance of RestApiResultPreOrderConfig', function() { + // uncomment below and update the code to test RestApiResultPreOrderConfig + //var instane = new Flipdish.RestApiResultPreOrderConfig(); + //expect(instance).to.be.a(Flipdish.RestApiResultPreOrderConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultPreOrderConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultProcessingFeeConfig.spec.js b/test/model/RestApiResultProcessingFeeConfig.spec.js new file mode 100644 index 00000000..1aabb617 --- /dev/null +++ b/test/model/RestApiResultProcessingFeeConfig.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultProcessingFeeConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultProcessingFeeConfig', function() { + it('should create an instance of RestApiResultProcessingFeeConfig', function() { + // uncomment below and update the code to test RestApiResultProcessingFeeConfig + //var instane = new Flipdish.RestApiResultProcessingFeeConfig(); + //expect(instance).to.be.a(Flipdish.RestApiResultProcessingFeeConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultProcessingFeeConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultProduct.spec.js b/test/model/RestApiResultProduct.spec.js new file mode 100644 index 00000000..73599b0f --- /dev/null +++ b/test/model/RestApiResultProduct.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultProduct(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultProduct', function() { + it('should create an instance of RestApiResultProduct', function() { + // uncomment below and update the code to test RestApiResultProduct + //var instane = new Flipdish.RestApiResultProduct(); + //expect(instance).to.be.a(Flipdish.RestApiResultProduct); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultProduct(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultPushNotificationResponse.spec.js b/test/model/RestApiResultPushNotificationResponse.spec.js new file mode 100644 index 00000000..4bcaaf18 --- /dev/null +++ b/test/model/RestApiResultPushNotificationResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultPushNotificationResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultPushNotificationResponse', function() { + it('should create an instance of RestApiResultPushNotificationResponse', function() { + // uncomment below and update the code to test RestApiResultPushNotificationResponse + //var instane = new Flipdish.RestApiResultPushNotificationResponse(); + //expect(instance).to.be.a(Flipdish.RestApiResultPushNotificationResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultPushNotificationResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultRedeemInvitationResult.spec.js b/test/model/RestApiResultRedeemInvitationResult.spec.js new file mode 100644 index 00000000..16187740 --- /dev/null +++ b/test/model/RestApiResultRedeemInvitationResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultRedeemInvitationResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultRedeemInvitationResult', function() { + it('should create an instance of RestApiResultRedeemInvitationResult', function() { + // uncomment below and update the code to test RestApiResultRedeemInvitationResult + //var instane = new Flipdish.RestApiResultRedeemInvitationResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultRedeemInvitationResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultRedeemInvitationResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultRestApiDefaultResponse.spec.js b/test/model/RestApiResultRestApiDefaultResponse.spec.js new file mode 100644 index 00000000..e1722788 --- /dev/null +++ b/test/model/RestApiResultRestApiDefaultResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultRestApiDefaultResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultRestApiDefaultResponse', function() { + it('should create an instance of RestApiResultRestApiDefaultResponse', function() { + // uncomment below and update the code to test RestApiResultRestApiDefaultResponse + //var instane = new Flipdish.RestApiResultRestApiDefaultResponse(); + //expect(instance).to.be.a(Flipdish.RestApiResultRestApiDefaultResponse); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultRestApiDefaultResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultRestApiIntegerResult.spec.js b/test/model/RestApiResultRestApiIntegerResult.spec.js new file mode 100644 index 00000000..a607ad68 --- /dev/null +++ b/test/model/RestApiResultRestApiIntegerResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultRestApiIntegerResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultRestApiIntegerResult', function() { + it('should create an instance of RestApiResultRestApiIntegerResult', function() { + // uncomment below and update the code to test RestApiResultRestApiIntegerResult + //var instane = new Flipdish.RestApiResultRestApiIntegerResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultRestApiIntegerResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultRestApiIntegerResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultRestaurantVoucherPayGreenConfiguration.spec.js b/test/model/RestApiResultRestaurantVoucherPayGreenConfiguration.spec.js new file mode 100644 index 00000000..2623964e --- /dev/null +++ b/test/model/RestApiResultRestaurantVoucherPayGreenConfiguration.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultRestaurantVoucherPayGreenConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultRestaurantVoucherPayGreenConfiguration', function() { + it('should create an instance of RestApiResultRestaurantVoucherPayGreenConfiguration', function() { + // uncomment below and update the code to test RestApiResultRestaurantVoucherPayGreenConfiguration + //var instane = new Flipdish.RestApiResultRestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be.a(Flipdish.RestApiResultRestaurantVoucherPayGreenConfiguration); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultRestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.spec.js b/test/model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.spec.js new file mode 100644 index 00000000..7102f062 --- /dev/null +++ b/test/model/RestApiResultRestaurantVoucherPayGreenStoreConfiguration.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultRestaurantVoucherPayGreenStoreConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultRestaurantVoucherPayGreenStoreConfiguration', function() { + it('should create an instance of RestApiResultRestaurantVoucherPayGreenStoreConfiguration', function() { + // uncomment below and update the code to test RestApiResultRestaurantVoucherPayGreenStoreConfiguration + //var instane = new Flipdish.RestApiResultRestaurantVoucherPayGreenStoreConfiguration(); + //expect(instance).to.be.a(Flipdish.RestApiResultRestaurantVoucherPayGreenStoreConfiguration); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultRestaurantVoucherPayGreenStoreConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultRetentionCampaign.spec.js b/test/model/RestApiResultRetentionCampaign.spec.js new file mode 100644 index 00000000..1832491a --- /dev/null +++ b/test/model/RestApiResultRetentionCampaign.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultRetentionCampaign(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultRetentionCampaign', function() { + it('should create an instance of RestApiResultRetentionCampaign', function() { + // uncomment below and update the code to test RestApiResultRetentionCampaign + //var instane = new Flipdish.RestApiResultRetentionCampaign(); + //expect(instance).to.be.a(Flipdish.RestApiResultRetentionCampaign); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultRetentionCampaign(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultServiceCharge.spec.js b/test/model/RestApiResultServiceCharge.spec.js new file mode 100644 index 00000000..8696ef72 --- /dev/null +++ b/test/model/RestApiResultServiceCharge.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultServiceCharge(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultServiceCharge', function() { + it('should create an instance of RestApiResultServiceCharge', function() { + // uncomment below and update the code to test RestApiResultServiceCharge + //var instane = new Flipdish.RestApiResultServiceCharge(); + //expect(instance).to.be.a(Flipdish.RestApiResultServiceCharge); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultServiceCharge(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultSmsProviderCredential.spec.js b/test/model/RestApiResultSmsProviderCredential.spec.js new file mode 100644 index 00000000..90d40f1e --- /dev/null +++ b/test/model/RestApiResultSmsProviderCredential.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultSmsProviderCredential(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultSmsProviderCredential', function() { + it('should create an instance of RestApiResultSmsProviderCredential', function() { + // uncomment below and update the code to test RestApiResultSmsProviderCredential + //var instane = new Flipdish.RestApiResultSmsProviderCredential(); + //expect(instance).to.be.a(Flipdish.RestApiResultSmsProviderCredential); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultSmsProviderCredential(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStore.spec.js b/test/model/RestApiResultStore.spec.js new file mode 100644 index 00000000..b664694d --- /dev/null +++ b/test/model/RestApiResultStore.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStore', function() { + it('should create an instance of RestApiResultStore', function() { + // uncomment below and update the code to test RestApiResultStore + //var instane = new Flipdish.RestApiResultStore(); + //expect(instance).to.be.a(Flipdish.RestApiResultStore); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStoreAddress.spec.js b/test/model/RestApiResultStoreAddress.spec.js new file mode 100644 index 00000000..605e3ed0 --- /dev/null +++ b/test/model/RestApiResultStoreAddress.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreAddress(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStoreAddress', function() { + it('should create an instance of RestApiResultStoreAddress', function() { + // uncomment below and update the code to test RestApiResultStoreAddress + //var instane = new Flipdish.RestApiResultStoreAddress(); + //expect(instance).to.be.a(Flipdish.RestApiResultStoreAddress); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStoreAddress(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStoreChannelAssignment.spec.js b/test/model/RestApiResultStoreChannelAssignment.spec.js new file mode 100644 index 00000000..2586af3e --- /dev/null +++ b/test/model/RestApiResultStoreChannelAssignment.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreChannelAssignment(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStoreChannelAssignment', function() { + it('should create an instance of RestApiResultStoreChannelAssignment', function() { + // uncomment below and update the code to test RestApiResultStoreChannelAssignment + //var instane = new Flipdish.RestApiResultStoreChannelAssignment(); + //expect(instance).to.be.a(Flipdish.RestApiResultStoreChannelAssignment); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStoreChannelAssignment(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStoreEndOfDayReport.spec.js b/test/model/RestApiResultStoreEndOfDayReport.spec.js new file mode 100644 index 00000000..05e8bdfd --- /dev/null +++ b/test/model/RestApiResultStoreEndOfDayReport.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreEndOfDayReport(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStoreEndOfDayReport', function() { + it('should create an instance of RestApiResultStoreEndOfDayReport', function() { + // uncomment below and update the code to test RestApiResultStoreEndOfDayReport + //var instane = new Flipdish.RestApiResultStoreEndOfDayReport(); + //expect(instance).to.be.a(Flipdish.RestApiResultStoreEndOfDayReport); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStoreGroup.spec.js b/test/model/RestApiResultStoreGroup.spec.js new file mode 100644 index 00000000..7276d40a --- /dev/null +++ b/test/model/RestApiResultStoreGroup.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStoreGroup', function() { + it('should create an instance of RestApiResultStoreGroup', function() { + // uncomment below and update the code to test RestApiResultStoreGroup + //var instane = new Flipdish.RestApiResultStoreGroup(); + //expect(instance).to.be.a(Flipdish.RestApiResultStoreGroup); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStoreGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStoreGroupBase.spec.js b/test/model/RestApiResultStoreGroupBase.spec.js new file mode 100644 index 00000000..9c3c5663 --- /dev/null +++ b/test/model/RestApiResultStoreGroupBase.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreGroupBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStoreGroupBase', function() { + it('should create an instance of RestApiResultStoreGroupBase', function() { + // uncomment below and update the code to test RestApiResultStoreGroupBase + //var instane = new Flipdish.RestApiResultStoreGroupBase(); + //expect(instance).to.be.a(Flipdish.RestApiResultStoreGroupBase); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStoreGroupBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStoreOrderCapacityConfig.spec.js b/test/model/RestApiResultStoreOrderCapacityConfig.spec.js new file mode 100644 index 00000000..08a0f087 --- /dev/null +++ b/test/model/RestApiResultStoreOrderCapacityConfig.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStoreOrderCapacityConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStoreOrderCapacityConfig', function() { + it('should create an instance of RestApiResultStoreOrderCapacityConfig', function() { + // uncomment below and update the code to test RestApiResultStoreOrderCapacityConfig + //var instane = new Flipdish.RestApiResultStoreOrderCapacityConfig(); + //expect(instance).to.be.a(Flipdish.RestApiResultStoreOrderCapacityConfig); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStoreOrderCapacityConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStripeConnectedAccount.spec.js b/test/model/RestApiResultStripeConnectedAccount.spec.js new file mode 100644 index 00000000..cbc5db38 --- /dev/null +++ b/test/model/RestApiResultStripeConnectedAccount.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStripeConnectedAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStripeConnectedAccount', function() { + it('should create an instance of RestApiResultStripeConnectedAccount', function() { + // uncomment below and update the code to test RestApiResultStripeConnectedAccount + //var instane = new Flipdish.RestApiResultStripeConnectedAccount(); + //expect(instance).to.be.a(Flipdish.RestApiResultStripeConnectedAccount); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStripeConnectedAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStripeTerminalConnectionToken.spec.js b/test/model/RestApiResultStripeTerminalConnectionToken.spec.js new file mode 100644 index 00000000..ee64a6cc --- /dev/null +++ b/test/model/RestApiResultStripeTerminalConnectionToken.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStripeTerminalConnectionToken(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStripeTerminalConnectionToken', function() { + it('should create an instance of RestApiResultStripeTerminalConnectionToken', function() { + // uncomment below and update the code to test RestApiResultStripeTerminalConnectionToken + //var instane = new Flipdish.RestApiResultStripeTerminalConnectionToken(); + //expect(instance).to.be.a(Flipdish.RestApiResultStripeTerminalConnectionToken); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStripeTerminalConnectionToken(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStripeTerminalLocation.spec.js b/test/model/RestApiResultStripeTerminalLocation.spec.js new file mode 100644 index 00000000..4d01393e --- /dev/null +++ b/test/model/RestApiResultStripeTerminalLocation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStripeTerminalLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStripeTerminalLocation', function() { + it('should create an instance of RestApiResultStripeTerminalLocation', function() { + // uncomment below and update the code to test RestApiResultStripeTerminalLocation + //var instane = new Flipdish.RestApiResultStripeTerminalLocation(); + //expect(instance).to.be.a(Flipdish.RestApiResultStripeTerminalLocation); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStripeTerminalLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultStuartSettings.spec.js b/test/model/RestApiResultStuartSettings.spec.js new file mode 100644 index 00000000..37d7a88e --- /dev/null +++ b/test/model/RestApiResultStuartSettings.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultStuartSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultStuartSettings', function() { + it('should create an instance of RestApiResultStuartSettings', function() { + // uncomment below and update the code to test RestApiResultStuartSettings + //var instane = new Flipdish.RestApiResultStuartSettings(); + //expect(instance).to.be.a(Flipdish.RestApiResultStuartSettings); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultStuartSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultSubscription.spec.js b/test/model/RestApiResultSubscription.spec.js new file mode 100644 index 00000000..1a4a6ff0 --- /dev/null +++ b/test/model/RestApiResultSubscription.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultSubscription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultSubscription', function() { + it('should create an instance of RestApiResultSubscription', function() { + // uncomment below and update the code to test RestApiResultSubscription + //var instane = new Flipdish.RestApiResultSubscription(); + //expect(instance).to.be.a(Flipdish.RestApiResultSubscription); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultSubscription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultTeammate.spec.js b/test/model/RestApiResultTeammate.spec.js new file mode 100644 index 00000000..6413999c --- /dev/null +++ b/test/model/RestApiResultTeammate.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultTeammate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultTeammate', function() { + it('should create an instance of RestApiResultTeammate', function() { + // uncomment below and update the code to test RestApiResultTeammate + //var instane = new Flipdish.RestApiResultTeammate(); + //expect(instance).to.be.a(Flipdish.RestApiResultTeammate); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultTeammate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultTelemetrySeriesResult.spec.js b/test/model/RestApiResultTelemetrySeriesResult.spec.js new file mode 100644 index 00000000..c4d7b73d --- /dev/null +++ b/test/model/RestApiResultTelemetrySeriesResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultTelemetrySeriesResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultTelemetrySeriesResult', function() { + it('should create an instance of RestApiResultTelemetrySeriesResult', function() { + // uncomment below and update the code to test RestApiResultTelemetrySeriesResult + //var instane = new Flipdish.RestApiResultTelemetrySeriesResult(); + //expect(instance).to.be.a(Flipdish.RestApiResultTelemetrySeriesResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultTelemetrySeriesResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultTipConfiguration.spec.js b/test/model/RestApiResultTipConfiguration.spec.js new file mode 100644 index 00000000..54e891d6 --- /dev/null +++ b/test/model/RestApiResultTipConfiguration.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultTipConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultTipConfiguration', function() { + it('should create an instance of RestApiResultTipConfiguration', function() { + // uncomment below and update the code to test RestApiResultTipConfiguration + //var instane = new Flipdish.RestApiResultTipConfiguration(); + //expect(instance).to.be.a(Flipdish.RestApiResultTipConfiguration); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultTipConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultUpdateMobileAppsSubmissionStatus.spec.js b/test/model/RestApiResultUpdateMobileAppsSubmissionStatus.spec.js new file mode 100644 index 00000000..79f7828b --- /dev/null +++ b/test/model/RestApiResultUpdateMobileAppsSubmissionStatus.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultUpdateMobileAppsSubmissionStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultUpdateMobileAppsSubmissionStatus', function() { + it('should create an instance of RestApiResultUpdateMobileAppsSubmissionStatus', function() { + // uncomment below and update the code to test RestApiResultUpdateMobileAppsSubmissionStatus + //var instane = new Flipdish.RestApiResultUpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be.a(Flipdish.RestApiResultUpdateMobileAppsSubmissionStatus); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultUpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultUserInfo.spec.js b/test/model/RestApiResultUserInfo.spec.js new file mode 100644 index 00000000..59ee71e4 --- /dev/null +++ b/test/model/RestApiResultUserInfo.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultUserInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultUserInfo', function() { + it('should create an instance of RestApiResultUserInfo', function() { + // uncomment below and update the code to test RestApiResultUserInfo + //var instane = new Flipdish.RestApiResultUserInfo(); + //expect(instance).to.be.a(Flipdish.RestApiResultUserInfo); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultUserInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultUserRole.spec.js b/test/model/RestApiResultUserRole.spec.js new file mode 100644 index 00000000..2362b045 --- /dev/null +++ b/test/model/RestApiResultUserRole.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultUserRole(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultUserRole', function() { + it('should create an instance of RestApiResultUserRole', function() { + // uncomment below and update the code to test RestApiResultUserRole + //var instane = new Flipdish.RestApiResultUserRole(); + //expect(instance).to.be.a(Flipdish.RestApiResultUserRole); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultUserRole(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultVoucher.spec.js b/test/model/RestApiResultVoucher.spec.js new file mode 100644 index 00000000..cf204756 --- /dev/null +++ b/test/model/RestApiResultVoucher.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultVoucher(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultVoucher', function() { + it('should create an instance of RestApiResultVoucher', function() { + // uncomment below and update the code to test RestApiResultVoucher + //var instane = new Flipdish.RestApiResultVoucher(); + //expect(instance).to.be.a(Flipdish.RestApiResultVoucher); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultVoucher(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultVoucherWithStats.spec.js b/test/model/RestApiResultVoucherWithStats.spec.js new file mode 100644 index 00000000..7a81612e --- /dev/null +++ b/test/model/RestApiResultVoucherWithStats.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultVoucherWithStats(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultVoucherWithStats', function() { + it('should create an instance of RestApiResultVoucherWithStats', function() { + // uncomment below and update the code to test RestApiResultVoucherWithStats + //var instane = new Flipdish.RestApiResultVoucherWithStats(); + //expect(instance).to.be.a(Flipdish.RestApiResultVoucherWithStats); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultVoucherWithStats(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultWebsiteImage.spec.js b/test/model/RestApiResultWebsiteImage.spec.js new file mode 100644 index 00000000..a3d8ac3b --- /dev/null +++ b/test/model/RestApiResultWebsiteImage.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultWebsiteImage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultWebsiteImage', function() { + it('should create an instance of RestApiResultWebsiteImage', function() { + // uncomment below and update the code to test RestApiResultWebsiteImage + //var instane = new Flipdish.RestApiResultWebsiteImage(); + //expect(instance).to.be.a(Flipdish.RestApiResultWebsiteImage); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultWebsiteImage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiResultWebsiteTestimonial.spec.js b/test/model/RestApiResultWebsiteTestimonial.spec.js new file mode 100644 index 00000000..758cd5b9 --- /dev/null +++ b/test/model/RestApiResultWebsiteTestimonial.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiResultWebsiteTestimonial(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiResultWebsiteTestimonial', function() { + it('should create an instance of RestApiResultWebsiteTestimonial', function() { + // uncomment below and update the code to test RestApiResultWebsiteTestimonial + //var instane = new Flipdish.RestApiResultWebsiteTestimonial(); + //expect(instance).to.be.a(Flipdish.RestApiResultWebsiteTestimonial); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiResultWebsiteTestimonial(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiStringArrayResult.spec.js b/test/model/RestApiStringArrayResult.spec.js new file mode 100644 index 00000000..897d019f --- /dev/null +++ b/test/model/RestApiStringArrayResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiStringArrayResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiStringArrayResult', function() { + it('should create an instance of RestApiStringArrayResult', function() { + // uncomment below and update the code to test RestApiStringArrayResult + //var instane = new Flipdish.RestApiStringArrayResult(); + //expect(instance).to.be.a(Flipdish.RestApiStringArrayResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiStringArrayResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiStringResult.spec.js b/test/model/RestApiStringResult.spec.js new file mode 100644 index 00000000..617bded2 --- /dev/null +++ b/test/model/RestApiStringResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiStringResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiStringResult', function() { + it('should create an instance of RestApiStringResult', function() { + // uncomment below and update the code to test RestApiStringResult + //var instane = new Flipdish.RestApiStringResult(); + //expect(instance).to.be.a(Flipdish.RestApiStringResult); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.RestApiStringResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestApiUnauthorizedResult.spec.js b/test/model/RestApiUnauthorizedResult.spec.js new file mode 100644 index 00000000..5dc8e2e4 --- /dev/null +++ b/test/model/RestApiUnauthorizedResult.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestApiUnauthorizedResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestApiUnauthorizedResult', function() { + it('should create an instance of RestApiUnauthorizedResult', function() { + // uncomment below and update the code to test RestApiUnauthorizedResult + //var instane = new Flipdish.RestApiUnauthorizedResult(); + //expect(instance).to.be.a(Flipdish.RestApiUnauthorizedResult); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.RestApiUnauthorizedResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Restaurant.spec.js b/test/model/Restaurant.spec.js new file mode 100644 index 00000000..a6da7027 --- /dev/null +++ b/test/model/Restaurant.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Restaurant(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Restaurant', function() { + it('should create an instance of Restaurant', function() { + // uncomment below and update the code to test Restaurant + //var instane = new Flipdish.Restaurant(); + //expect(instance).to.be.a(Flipdish.Restaurant); + }); + + it('should have the property WhiteLabelConfigs (base name: "WhiteLabelConfigs")', function() { + // uncomment below and update the code to test the property WhiteLabelConfigs + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property VirtualRestaurantId (base name: "VirtualRestaurantId")', function() { + // uncomment below and update the code to test the property VirtualRestaurantId + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property VirtualRestaurantName (base name: "VirtualRestaurantName")', function() { + // uncomment below and update the code to test the property VirtualRestaurantName + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property VirtualRestaurantUrl (base name: "VirtualRestaurantUrl")', function() { + // uncomment below and update the code to test the property VirtualRestaurantUrl + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property PhysicalRestaurantId (base name: "PhysicalRestaurantId")', function() { + // uncomment below and update the code to test the property PhysicalRestaurantId + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property PhysicalRestaurantName (base name: "PhysicalRestaurantName")', function() { + // uncomment below and update the code to test the property PhysicalRestaurantName + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property PhysicalRestaurantAddress (base name: "PhysicalRestaurantAddress")', function() { + // uncomment below and update the code to test the property PhysicalRestaurantAddress + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // uncomment below and update the code to test the property IsArchived + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // uncomment below and update the code to test the property IsPublished + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishStripeCustomConnectedAccounts (base name: "FlipdishStripeCustomConnectedAccounts")', function() { + // uncomment below and update the code to test the property FlipdishStripeCustomConnectedAccounts + //var instance = new Flipdish.Restaurant(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestaurantVoucherAssignedStore.spec.js b/test/model/RestaurantVoucherAssignedStore.spec.js new file mode 100644 index 00000000..47db60ac --- /dev/null +++ b/test/model/RestaurantVoucherAssignedStore.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestaurantVoucherAssignedStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestaurantVoucherAssignedStore', function() { + it('should create an instance of RestaurantVoucherAssignedStore', function() { + // uncomment below and update the code to test RestaurantVoucherAssignedStore + //var instane = new Flipdish.RestaurantVoucherAssignedStore(); + //expect(instance).to.be.a(Flipdish.RestaurantVoucherAssignedStore); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.RestaurantVoucherAssignedStore(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.RestaurantVoucherAssignedStore(); + //expect(instance).to.be(); + }); + + it('should have the property Active (base name: "Active")', function() { + // uncomment below and update the code to test the property Active + //var instance = new Flipdish.RestaurantVoucherAssignedStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestaurantVoucherEligibleStore.spec.js b/test/model/RestaurantVoucherEligibleStore.spec.js new file mode 100644 index 00000000..df8eb70e --- /dev/null +++ b/test/model/RestaurantVoucherEligibleStore.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestaurantVoucherEligibleStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestaurantVoucherEligibleStore', function() { + it('should create an instance of RestaurantVoucherEligibleStore', function() { + // uncomment below and update the code to test RestaurantVoucherEligibleStore + //var instane = new Flipdish.RestaurantVoucherEligibleStore(); + //expect(instance).to.be.a(Flipdish.RestaurantVoucherEligibleStore); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.RestaurantVoucherEligibleStore(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.RestaurantVoucherEligibleStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestaurantVoucherPayGreenConfiguration.spec.js b/test/model/RestaurantVoucherPayGreenConfiguration.spec.js new file mode 100644 index 00000000..3e849bf2 --- /dev/null +++ b/test/model/RestaurantVoucherPayGreenConfiguration.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestaurantVoucherPayGreenConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestaurantVoucherPayGreenConfiguration', function() { + it('should create an instance of RestaurantVoucherPayGreenConfiguration', function() { + // uncomment below and update the code to test RestaurantVoucherPayGreenConfiguration + //var instane = new Flipdish.RestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be.a(Flipdish.RestaurantVoucherPayGreenConfiguration); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.RestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenId (base name: "PayGreenId")', function() { + // uncomment below and update the code to test the property PayGreenId + //var instance = new Flipdish.RestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenConfigurationId (base name: "PayGreenConfigurationId")', function() { + // uncomment below and update the code to test the property PayGreenConfigurationId + //var instance = new Flipdish.RestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AssignedStores (base name: "AssignedStores")', function() { + // uncomment below and update the code to test the property AssignedStores + //var instance = new Flipdish.RestaurantVoucherPayGreenConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestaurantVoucherPayGreenConfigurationSummary.spec.js b/test/model/RestaurantVoucherPayGreenConfigurationSummary.spec.js new file mode 100644 index 00000000..0ec95e03 --- /dev/null +++ b/test/model/RestaurantVoucherPayGreenConfigurationSummary.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestaurantVoucherPayGreenConfigurationSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestaurantVoucherPayGreenConfigurationSummary', function() { + it('should create an instance of RestaurantVoucherPayGreenConfigurationSummary', function() { + // uncomment below and update the code to test RestaurantVoucherPayGreenConfigurationSummary + //var instane = new Flipdish.RestaurantVoucherPayGreenConfigurationSummary(); + //expect(instance).to.be.a(Flipdish.RestaurantVoucherPayGreenConfigurationSummary); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.RestaurantVoucherPayGreenConfigurationSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenConfigurationId (base name: "PayGreenConfigurationId")', function() { + // uncomment below and update the code to test the property PayGreenConfigurationId + //var instance = new Flipdish.RestaurantVoucherPayGreenConfigurationSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestaurantVoucherPayGreenStoreConfiguration.spec.js b/test/model/RestaurantVoucherPayGreenStoreConfiguration.spec.js new file mode 100644 index 00000000..bf19a03e --- /dev/null +++ b/test/model/RestaurantVoucherPayGreenStoreConfiguration.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RestaurantVoucherPayGreenStoreConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestaurantVoucherPayGreenStoreConfiguration', function() { + it('should create an instance of RestaurantVoucherPayGreenStoreConfiguration', function() { + // uncomment below and update the code to test RestaurantVoucherPayGreenStoreConfiguration + //var instane = new Flipdish.RestaurantVoucherPayGreenStoreConfiguration(); + //expect(instance).to.be.a(Flipdish.RestaurantVoucherPayGreenStoreConfiguration); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.RestaurantVoucherPayGreenStoreConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Active (base name: "Active")', function() { + // uncomment below and update the code to test the property Active + //var instance = new Flipdish.RestaurantVoucherPayGreenStoreConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenId (base name: "PayGreenId")', function() { + // uncomment below and update the code to test the property PayGreenId + //var instance = new Flipdish.RestaurantVoucherPayGreenStoreConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenConfigurationId (base name: "PayGreenConfigurationId")', function() { + // uncomment below and update the code to test the property PayGreenConfigurationId + //var instance = new Flipdish.RestaurantVoucherPayGreenStoreConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RetentionCampaign.spec.js b/test/model/RetentionCampaign.spec.js new file mode 100644 index 00000000..6450b121 --- /dev/null +++ b/test/model/RetentionCampaign.spec.js @@ -0,0 +1,155 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RetentionCampaign(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RetentionCampaign', function() { + it('should create an instance of RetentionCampaign', function() { + // uncomment below and update the code to test RetentionCampaign + //var instane = new Flipdish.RetentionCampaign(); + //expect(instance).to.be.a(Flipdish.RetentionCampaign); + }); + + it('should have the property CampaignId (base name: "CampaignId")', function() { + // uncomment below and update the code to test the property CampaignId + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property Statistics (base name: "Statistics")', function() { + // uncomment below and update the code to test the property Statistics + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property PublicId (base name: "PublicId")', function() { + // uncomment below and update the code to test the property PublicId + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property NotifyCustomerAfterMinutes (base name: "NotifyCustomerAfterMinutes")', function() { + // uncomment below and update the code to test the property NotifyCustomerAfterMinutes + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // uncomment below and update the code to test the property PercentDiscountAmount + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property MaxDiscount (base name: "MaxDiscount")', function() { + // uncomment below and update the code to test the property MaxDiscount + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property LumpDiscountAmount (base name: "LumpDiscountAmount")', function() { + // uncomment below and update the code to test the property LumpDiscountAmount + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // uncomment below and update the code to test the property VoucherValidPeriodDays + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // uncomment below and update the code to test the property AutoApplyResultingVouchers + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // uncomment below and update the code to test the property IncludeExistingOrders + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.RetentionCampaign(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RetentionCampaignBase.spec.js b/test/model/RetentionCampaignBase.spec.js new file mode 100644 index 00000000..305ca11e --- /dev/null +++ b/test/model/RetentionCampaignBase.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RetentionCampaignBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RetentionCampaignBase', function() { + it('should create an instance of RetentionCampaignBase', function() { + // uncomment below and update the code to test RetentionCampaignBase + //var instane = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be.a(Flipdish.RetentionCampaignBase); + }); + + it('should have the property NotifyCustomerAfterMinutes (base name: "NotifyCustomerAfterMinutes")', function() { + // uncomment below and update the code to test the property NotifyCustomerAfterMinutes + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property PercentDiscountAmount (base name: "PercentDiscountAmount")', function() { + // uncomment below and update the code to test the property PercentDiscountAmount + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property MaxDiscount (base name: "MaxDiscount")', function() { + // uncomment below and update the code to test the property MaxDiscount + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property LumpDiscountAmount (base name: "LumpDiscountAmount")', function() { + // uncomment below and update the code to test the property LumpDiscountAmount + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherValidPeriodDays (base name: "VoucherValidPeriodDays")', function() { + // uncomment below and update the code to test the property VoucherValidPeriodDays + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property AutoApplyResultingVouchers (base name: "AutoApplyResultingVouchers")', function() { + // uncomment below and update the code to test the property AutoApplyResultingVouchers + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeExistingOrders (base name: "IncludeExistingOrders")', function() { + // uncomment below and update the code to test the property IncludeExistingOrders + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.RetentionCampaignBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RetentionCampaignCreatedEvent.spec.js b/test/model/RetentionCampaignCreatedEvent.spec.js new file mode 100644 index 00000000..ec91ce5d --- /dev/null +++ b/test/model/RetentionCampaignCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RetentionCampaignCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RetentionCampaignCreatedEvent', function() { + it('should create an instance of RetentionCampaignCreatedEvent', function() { + // uncomment below and update the code to test RetentionCampaignCreatedEvent + //var instane = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be.a(Flipdish.RetentionCampaignCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property RetentionCampaign (base name: "RetentionCampaign")', function() { + // uncomment below and update the code to test the property RetentionCampaign + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.RetentionCampaignCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RetentionCampaignDeletedEvent.spec.js b/test/model/RetentionCampaignDeletedEvent.spec.js new file mode 100644 index 00000000..60c1b86f --- /dev/null +++ b/test/model/RetentionCampaignDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RetentionCampaignDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RetentionCampaignDeletedEvent', function() { + it('should create an instance of RetentionCampaignDeletedEvent', function() { + // uncomment below and update the code to test RetentionCampaignDeletedEvent + //var instane = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be.a(Flipdish.RetentionCampaignDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property RetentionCampaign (base name: "RetentionCampaign")', function() { + // uncomment below and update the code to test the property RetentionCampaign + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.RetentionCampaignDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RetentionCampaignUpdatedEvent.spec.js b/test/model/RetentionCampaignUpdatedEvent.spec.js new file mode 100644 index 00000000..0522cd0f --- /dev/null +++ b/test/model/RetentionCampaignUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RetentionCampaignUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RetentionCampaignUpdatedEvent', function() { + it('should create an instance of RetentionCampaignUpdatedEvent', function() { + // uncomment below and update the code to test RetentionCampaignUpdatedEvent + //var instane = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.RetentionCampaignUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property RetentionCampaign (base name: "RetentionCampaign")', function() { + // uncomment below and update the code to test the property RetentionCampaign + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.RetentionCampaignUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RevenueAdjustmentsDetails.spec.js b/test/model/RevenueAdjustmentsDetails.spec.js new file mode 100644 index 00000000..6b1d7d2d --- /dev/null +++ b/test/model/RevenueAdjustmentsDetails.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RevenueAdjustmentsDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RevenueAdjustmentsDetails', function() { + it('should create an instance of RevenueAdjustmentsDetails', function() { + // uncomment below and update the code to test RevenueAdjustmentsDetails + //var instane = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be.a(Flipdish.RevenueAdjustmentsDetails); + }); + + it('should have the property OnlineSalesRefundedAmount (base name: "OnlineSalesRefundedAmount")', function() { + // uncomment below and update the code to test the property OnlineSalesRefundedAmount + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PosSalesRefundedAmount (base name: "PosSalesRefundedAmount")', function() { + // uncomment below and update the code to test the property PosSalesRefundedAmount + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesRefundedAmount (base name: "CashSalesRefundedAmount")', function() { + // uncomment below and update the code to test the property CashSalesRefundedAmount + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerCashFees (base name: "CustomerCashFees")', function() { + // uncomment below and update the code to test the property CustomerCashFees + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + it('should have the property RefundsCount (base name: "RefundsCount")', function() { + // uncomment below and update the code to test the property RefundsCount + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenSalesAmount (base name: "PayGreenSalesAmount")', function() { + // uncomment below and update the code to test the property PayGreenSalesAmount + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenProcessingFees (base name: "PayGreenProcessingFees")', function() { + // uncomment below and update the code to test the property PayGreenProcessingFees + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TotalOnlineRevenueAdjustments (base name: "TotalOnlineRevenueAdjustments")', function() { + // uncomment below and update the code to test the property TotalOnlineRevenueAdjustments + //var instance = new Flipdish.RevenueAdjustmentsDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RevenueDetail.spec.js b/test/model/RevenueDetail.spec.js new file mode 100644 index 00000000..2ef5b924 --- /dev/null +++ b/test/model/RevenueDetail.spec.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.RevenueDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RevenueDetail', function() { + it('should create an instance of RevenueDetail', function() { + // uncomment below and update the code to test RevenueDetail + //var instane = new Flipdish.RevenueDetail(); + //expect(instance).to.be.a(Flipdish.RevenueDetail); + }); + + it('should have the property OnlineSalesAmount (base name: "OnlineSalesAmount")', function() { + // uncomment below and update the code to test the property OnlineSalesAmount + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesTax (base name: "OnlineSalesTax")', function() { + // uncomment below and update the code to test the property OnlineSalesTax + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesIncludingTax (base name: "OnlineSalesIncludingTax")', function() { + // uncomment below and update the code to test the property OnlineSalesIncludingTax + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesFeesBaseAmount (base name: "OnlineSalesFeesBaseAmount")', function() { + // uncomment below and update the code to test the property OnlineSalesFeesBaseAmount + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesAmount (base name: "CashSalesAmount")', function() { + // uncomment below and update the code to test the property CashSalesAmount + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesTax (base name: "CashSalesTax")', function() { + // uncomment below and update the code to test the property CashSalesTax + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesIncludingTax (base name: "CashSalesIncludingTax")', function() { + // uncomment below and update the code to test the property CashSalesIncludingTax + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property CashSalesFeesBaseAmount (base name: "CashSalesFeesBaseAmount")', function() { + // uncomment below and update the code to test the property CashSalesFeesBaseAmount + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property TotalSalesIncludingTax (base name: "TotalSalesIncludingTax")', function() { + // uncomment below and update the code to test the property TotalSalesIncludingTax + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesDeliveryCharges (base name: "OnlineSalesDeliveryCharges")', function() { + // uncomment below and update the code to test the property OnlineSalesDeliveryCharges + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesTips (base name: "OnlineSalesTips")', function() { + // uncomment below and update the code to test the property OnlineSalesTips + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property TotalOnlineRevenue (base name: "TotalOnlineRevenue")', function() { + // uncomment below and update the code to test the property TotalOnlineRevenue + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + it('should have the property OnlineSalesServiceCharges (base name: "OnlineSalesServiceCharges")', function() { + // uncomment below and update the code to test the property OnlineSalesServiceCharges + //var instance = new Flipdish.RevenueDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SafeWaitHandle.spec.js b/test/model/SafeWaitHandle.spec.js new file mode 100644 index 00000000..2fd2acaa --- /dev/null +++ b/test/model/SafeWaitHandle.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SafeWaitHandle(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SafeWaitHandle', function() { + it('should create an instance of SafeWaitHandle', function() { + // uncomment below and update the code to test SafeWaitHandle + //var instane = new Flipdish.SafeWaitHandle(); + //expect(instance).to.be.a(Flipdish.SafeWaitHandle); + }); + + it('should have the property IsInvalid (base name: "IsInvalid")', function() { + // uncomment below and update the code to test the property IsInvalid + //var instance = new Flipdish.SafeWaitHandle(); + //expect(instance).to.be(); + }); + + it('should have the property IsClosed (base name: "IsClosed")', function() { + // uncomment below and update the code to test the property IsClosed + //var instance = new Flipdish.SafeWaitHandle(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SearchCriteria.spec.js b/test/model/SearchCriteria.spec.js new file mode 100644 index 00000000..c4d81ae1 --- /dev/null +++ b/test/model/SearchCriteria.spec.js @@ -0,0 +1,155 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SearchCriteria(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SearchCriteria', function() { + it('should create an instance of SearchCriteria', function() { + // uncomment below and update the code to test SearchCriteria + //var instane = new Flipdish.SearchCriteria(); + //expect(instance).to.be.a(Flipdish.SearchCriteria); + }); + + it('should have the property Limit (base name: "Limit")', function() { + // uncomment below and update the code to test the property Limit + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property Page (base name: "Page")', function() { + // uncomment below and update the code to test the property Page + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property Start (base name: "Start")', function() { + // uncomment below and update the code to test the property Start + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property End (base name: "End")', function() { + // uncomment below and update the code to test the property End + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIdList (base name: "StoreIdList")', function() { + // uncomment below and update the code to test the property StoreIdList + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property CampaignId (base name: "CampaignId")', function() { + // uncomment below and update the code to test the property CampaignId + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property UserEmail (base name: "UserEmail")', function() { + // uncomment below and update the code to test the property UserEmail + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property UserName (base name: "UserName")', function() { + // uncomment below and update the code to test the property UserName + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherCode (base name: "VoucherCode")', function() { + // uncomment below and update the code to test the property VoucherCode + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property EventType (base name: "EventType")', function() { + // uncomment below and update the code to test the property EventType + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.SearchCriteria(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ServiceCharge.spec.js b/test/model/ServiceCharge.spec.js new file mode 100644 index 00000000..0a50ff1a --- /dev/null +++ b/test/model/ServiceCharge.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ServiceCharge(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ServiceCharge', function() { + it('should create an instance of ServiceCharge', function() { + // uncomment below and update the code to test ServiceCharge + //var instane = new Flipdish.ServiceCharge(); + //expect(instance).to.be.a(Flipdish.ServiceCharge); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.ServiceCharge(); + //expect(instance).to.be(); + }); + + it('should have the property PercentageValue (base name: "PercentageValue")', function() { + // uncomment below and update the code to test the property PercentageValue + //var instance = new Flipdish.ServiceCharge(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.ServiceCharge(); + //expect(instance).to.be(); + }); + + it('should have the property IsOptional (base name: "IsOptional")', function() { + // uncomment below and update the code to test the property IsOptional + //var instance = new Flipdish.ServiceCharge(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayWithProcessingFee (base name: "DisplayWithProcessingFee")', function() { + // uncomment below and update the code to test the property DisplayWithProcessingFee + //var instance = new Flipdish.ServiceCharge(); + //expect(instance).to.be(); + }); + + it('should have the property IncludesVouchers (base name: "IncludesVouchers")', function() { + // uncomment below and update the code to test the property IncludesVouchers + //var instance = new Flipdish.ServiceCharge(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SetOrderBatchingConfiguration.spec.js b/test/model/SetOrderBatchingConfiguration.spec.js new file mode 100644 index 00000000..42f9aa38 --- /dev/null +++ b/test/model/SetOrderBatchingConfiguration.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SetOrderBatchingConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SetOrderBatchingConfiguration', function() { + it('should create an instance of SetOrderBatchingConfiguration', function() { + // uncomment below and update the code to test SetOrderBatchingConfiguration + //var instane = new Flipdish.SetOrderBatchingConfiguration(); + //expect(instance).to.be.a(Flipdish.SetOrderBatchingConfiguration); + }); + + it('should have the property BatchIntervalInSeconds (base name: "BatchIntervalInSeconds")', function() { + // uncomment below and update the code to test the property BatchIntervalInSeconds + //var instance = new Flipdish.SetOrderBatchingConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.SetOrderBatchingConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SetPasswordWithPinModel.spec.js b/test/model/SetPasswordWithPinModel.spec.js new file mode 100644 index 00000000..a263ed27 --- /dev/null +++ b/test/model/SetPasswordWithPinModel.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SetPasswordWithPinModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SetPasswordWithPinModel', function() { + it('should create an instance of SetPasswordWithPinModel', function() { + // uncomment below and update the code to test SetPasswordWithPinModel + //var instane = new Flipdish.SetPasswordWithPinModel(); + //expect(instance).to.be.a(Flipdish.SetPasswordWithPinModel); + }); + + it('should have the property Pin (base name: "Pin")', function() { + // uncomment below and update the code to test the property Pin + //var instance = new Flipdish.SetPasswordWithPinModel(); + //expect(instance).to.be(); + }); + + it('should have the property NewPassword (base name: "NewPassword")', function() { + // uncomment below and update the code to test the property NewPassword + //var instance = new Flipdish.SetPasswordWithPinModel(); + //expect(instance).to.be(); + }); + + it('should have the property RecaptchaToken (base name: "RecaptchaToken")', function() { + // uncomment below and update the code to test the property RecaptchaToken + //var instance = new Flipdish.SetPasswordWithPinModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SetVoucherValidityPeriodsSimplifiedRequest.spec.js b/test/model/SetVoucherValidityPeriodsSimplifiedRequest.spec.js new file mode 100644 index 00000000..7afc47d1 --- /dev/null +++ b/test/model/SetVoucherValidityPeriodsSimplifiedRequest.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SetVoucherValidityPeriodsSimplifiedRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SetVoucherValidityPeriodsSimplifiedRequest', function() { + it('should create an instance of SetVoucherValidityPeriodsSimplifiedRequest', function() { + // uncomment below and update the code to test SetVoucherValidityPeriodsSimplifiedRequest + //var instane = new Flipdish.SetVoucherValidityPeriodsSimplifiedRequest(); + //expect(instance).to.be.a(Flipdish.SetVoucherValidityPeriodsSimplifiedRequest); + }); + + it('should have the property DaysOfWeek (base name: "DaysOfWeek")', function() { + // uncomment below and update the code to test the property DaysOfWeek + //var instance = new Flipdish.SetVoucherValidityPeriodsSimplifiedRequest(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.SetVoucherValidityPeriodsSimplifiedRequest(); + //expect(instance).to.be(); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // uncomment below and update the code to test the property EndTime + //var instance = new Flipdish.SetVoucherValidityPeriodsSimplifiedRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Setting.spec.js b/test/model/Setting.spec.js new file mode 100644 index 00000000..20894ab5 --- /dev/null +++ b/test/model/Setting.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Setting(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Setting', function() { + it('should create an instance of Setting', function() { + // uncomment below and update the code to test Setting + //var instane = new Flipdish.Setting(); + //expect(instance).to.be.a(Flipdish.Setting); + }); + + it('should have the property Key (base name: "Key")', function() { + // uncomment below and update the code to test the property Key + //var instance = new Flipdish.Setting(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.Setting(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SignupStep.spec.js b/test/model/SignupStep.spec.js new file mode 100644 index 00000000..71a7e4d4 --- /dev/null +++ b/test/model/SignupStep.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SignupStep(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SignupStep', function() { + it('should create an instance of SignupStep', function() { + // uncomment below and update the code to test SignupStep + //var instane = new Flipdish.SignupStep(); + //expect(instance).to.be.a(Flipdish.SignupStep); + }); + + it('should have the property Action (base name: "Action")', function() { + // uncomment below and update the code to test the property Action + //var instance = new Flipdish.SignupStep(); + //expect(instance).to.be(); + }); + + it('should have the property Question (base name: "Question")', function() { + // uncomment below and update the code to test the property Question + //var instance = new Flipdish.SignupStep(); + //expect(instance).to.be(); + }); + + it('should have the property PredefinedAnswers (base name: "PredefinedAnswers")', function() { + // uncomment below and update the code to test the property PredefinedAnswers + //var instance = new Flipdish.SignupStep(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SmsInfo.spec.js b/test/model/SmsInfo.spec.js new file mode 100644 index 00000000..5601139c --- /dev/null +++ b/test/model/SmsInfo.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SmsInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SmsInfo', function() { + it('should create an instance of SmsInfo', function() { + // uncomment below and update the code to test SmsInfo + //var instane = new Flipdish.SmsInfo(); + //expect(instance).to.be.a(Flipdish.SmsInfo); + }); + + it('should have the property From (base name: "From")', function() { + // uncomment below and update the code to test the property From + //var instance = new Flipdish.SmsInfo(); + //expect(instance).to.be(); + }); + + it('should have the property To (base name: "To")', function() { + // uncomment below and update the code to test the property To + //var instance = new Flipdish.SmsInfo(); + //expect(instance).to.be(); + }); + + it('should have the property Text (base name: "Text")', function() { + // uncomment below and update the code to test the property Text + //var instance = new Flipdish.SmsInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SmsProviderCredential.spec.js b/test/model/SmsProviderCredential.spec.js new file mode 100644 index 00000000..afc0b042 --- /dev/null +++ b/test/model/SmsProviderCredential.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SmsProviderCredential(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SmsProviderCredential', function() { + it('should create an instance of SmsProviderCredential', function() { + // uncomment below and update the code to test SmsProviderCredential + //var instane = new Flipdish.SmsProviderCredential(); + //expect(instance).to.be.a(Flipdish.SmsProviderCredential); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.SmsProviderCredential(); + //expect(instance).to.be(); + }); + + it('should have the property BrandId (base name: "BrandId")', function() { + // uncomment below and update the code to test the property BrandId + //var instance = new Flipdish.SmsProviderCredential(); + //expect(instance).to.be(); + }); + + it('should have the property SmsServiceType (base name: "SmsServiceType")', function() { + // uncomment below and update the code to test the property SmsServiceType + //var instance = new Flipdish.SmsProviderCredential(); + //expect(instance).to.be(); + }); + + it('should have the property SenderId (base name: "SenderId")', function() { + // uncomment below and update the code to test the property SenderId + //var instance = new Flipdish.SmsProviderCredential(); + //expect(instance).to.be(); + }); + + it('should have the property Username (base name: "Username")', function() { + // uncomment below and update the code to test the property Username + //var instance = new Flipdish.SmsProviderCredential(); + //expect(instance).to.be(); + }); + + it('should have the property AuthToken (base name: "AuthToken")', function() { + // uncomment below and update the code to test the property AuthToken + //var instance = new Flipdish.SmsProviderCredential(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SmsProviderCredentialUpdateRequest.spec.js b/test/model/SmsProviderCredentialUpdateRequest.spec.js new file mode 100644 index 00000000..695910ec --- /dev/null +++ b/test/model/SmsProviderCredentialUpdateRequest.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SmsProviderCredentialUpdateRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SmsProviderCredentialUpdateRequest', function() { + it('should create an instance of SmsProviderCredentialUpdateRequest', function() { + // uncomment below and update the code to test SmsProviderCredentialUpdateRequest + //var instane = new Flipdish.SmsProviderCredentialUpdateRequest(); + //expect(instance).to.be.a(Flipdish.SmsProviderCredentialUpdateRequest); + }); + + it('should have the property SenderId (base name: "SenderId")', function() { + // uncomment below and update the code to test the property SenderId + //var instance = new Flipdish.SmsProviderCredentialUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Username (base name: "Username")', function() { + // uncomment below and update the code to test the property Username + //var instance = new Flipdish.SmsProviderCredentialUpdateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property AuthToken (base name: "AuthToken")', function() { + // uncomment below and update the code to test the property AuthToken + //var instance = new Flipdish.SmsProviderCredentialUpdateRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SmsReceivedEvent.spec.js b/test/model/SmsReceivedEvent.spec.js new file mode 100644 index 00000000..df5d5c0b --- /dev/null +++ b/test/model/SmsReceivedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SmsReceivedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SmsReceivedEvent', function() { + it('should create an instance of SmsReceivedEvent', function() { + // uncomment below and update the code to test SmsReceivedEvent + //var instane = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be.a(Flipdish.SmsReceivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property SmsInfo (base name: "SmsInfo")', function() { + // uncomment below and update the code to test the property SmsInfo + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.SmsReceivedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StatisticsCurrencyDataPoint.spec.js b/test/model/StatisticsCurrencyDataPoint.spec.js new file mode 100644 index 00000000..8ec83108 --- /dev/null +++ b/test/model/StatisticsCurrencyDataPoint.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StatisticsCurrencyDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StatisticsCurrencyDataPoint', function() { + it('should create an instance of StatisticsCurrencyDataPoint', function() { + // uncomment below and update the code to test StatisticsCurrencyDataPoint + //var instane = new Flipdish.StatisticsCurrencyDataPoint(); + //expect(instance).to.be.a(Flipdish.StatisticsCurrencyDataPoint); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.StatisticsCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property UserCount (base name: "UserCount")', function() { + // uncomment below and update the code to test the property UserCount + //var instance = new Flipdish.StatisticsCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCount (base name: "OrderCount")', function() { + // uncomment below and update the code to test the property OrderCount + //var instance = new Flipdish.StatisticsCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property OrderValue (base name: "OrderValue")', function() { + // uncomment below and update the code to test the property OrderValue + //var instance = new Flipdish.StatisticsCurrencyDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Store.spec.js b/test/model/Store.spec.js new file mode 100644 index 00000000..0794fb99 --- /dev/null +++ b/test/model/Store.spec.js @@ -0,0 +1,371 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Store(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Store', function() { + it('should create an instance of Store', function() { + // uncomment below and update the code to test Store + //var instane = new Flipdish.Store(); + //expect(instance).to.be.a(Flipdish.Store); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property Address (base name: "Address")', function() { + // uncomment below and update the code to test the property Address + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryZones (base name: "DeliveryZones")', function() { + // uncomment below and update the code to test the property DeliveryZones + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property ApmPhoneNumber (base name: "ApmPhoneNumber")', function() { + // uncomment below and update the code to test the property ApmPhoneNumber + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PickupHours (base name: "PickupHours")', function() { + // uncomment below and update the code to test the property PickupHours + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryHours (base name: "DeliveryHours")', function() { + // uncomment below and update the code to test the property DeliveryHours + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property OrderConfirmationMessageOverrideDelivery (base name: "OrderConfirmationMessageOverrideDelivery")', function() { + // uncomment below and update the code to test the property OrderConfirmationMessageOverrideDelivery + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property OrderConfirmationMessageOverridePickup (base name: "OrderConfirmationMessageOverridePickup")', function() { + // uncomment below and update the code to test the property OrderConfirmationMessageOverridePickup + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PrintoutLayoutType (base name: "PrintoutLayoutType")', function() { + // uncomment below and update the code to test the property PrintoutLayoutType + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNotes (base name: "StoreNotes")', function() { + // uncomment below and update the code to test the property StoreNotes + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property MicrosoftTimeZone (base name: "MicrosoftTimeZone")', function() { + // uncomment below and update the code to test the property MicrosoftTimeZone + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property IanaTimeZone (base name: "IanaTimeZone")', function() { + // uncomment below and update the code to test the property IanaTimeZone + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PreOrderDeliveryEnabled (base name: "PreOrderDeliveryEnabled")', function() { + // uncomment below and update the code to test the property PreOrderDeliveryEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PreOrderPickupEnabled (base name: "PreOrderPickupEnabled")', function() { + // uncomment below and update the code to test the property PreOrderPickupEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property LogoUrl (base name: "LogoUrl")', function() { + // uncomment below and update the code to test the property LogoUrl + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property FraudPreventionStrategy (base name: "FraudPreventionStrategy")', function() { + // uncomment below and update the code to test the property FraudPreventionStrategy + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property AppIds (base name: "AppIds")', function() { + // uncomment below and update the code to test the property AppIds + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PropertyId (base name: "PropertyId")', function() { + // uncomment below and update the code to test the property PropertyId + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property AlwaysAppearOpen (base name: "AlwaysAppearOpen")', function() { + // uncomment below and update the code to test the property AlwaysAppearOpen + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PreOrderEnabled (base name: "PreOrderEnabled")', function() { + // uncomment below and update the code to test the property PreOrderEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property TakeOutEnabled (base name: "TakeOutEnabled")', function() { + // uncomment below and update the code to test the property TakeOutEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property TableServiceEnabled (base name: "TableServiceEnabled")', function() { + // uncomment below and update the code to test the property TableServiceEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property DineInEnabled (base name: "DineInEnabled")', function() { + // uncomment below and update the code to test the property DineInEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property AllowPreOrdersAndTableService (base name: "AllowPreOrdersAndTableService")', function() { + // uncomment below and update the code to test the property AllowPreOrdersAndTableService + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property PickupEnabled (base name: "PickupEnabled")', function() { + // uncomment below and update the code to test the property PickupEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryEnabled (base name: "DeliveryEnabled")', function() { + // uncomment below and update the code to test the property DeliveryEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property CardOrderDeliveryEnabled (base name: "CardOrderDeliveryEnabled")', function() { + // uncomment below and update the code to test the property CardOrderDeliveryEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrdersDeliveryEnabled (base name: "CashOrdersDeliveryEnabled")', function() { + // uncomment below and update the code to test the property CashOrdersDeliveryEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property CardOrdersPickupEnabled (base name: "CardOrdersPickupEnabled")', function() { + // uncomment below and update the code to test the property CardOrdersPickupEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrdersPickupEnabled (base name: "CashOrdersPickupEnabled")', function() { + // uncomment below and update the code to test the property CashOrdersPickupEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property TipsEnabled (base name: "TipsEnabled")', function() { + // uncomment below and update the code to test the property TipsEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property AutomaticallyAcceptOrders (base name: "AutomaticallyAcceptOrders")', function() { + // uncomment below and update the code to test the property AutomaticallyAcceptOrders + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property OpenForDelivery (base name: "OpenForDelivery")', function() { + // uncomment below and update the code to test the property OpenForDelivery + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property OpenForPickup (base name: "OpenForPickup")', function() { + // uncomment below and update the code to test the property OpenForPickup + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property MinimumPickupOrderAmount (base name: "MinimumPickupOrderAmount")', function() { + // uncomment below and update the code to test the property MinimumPickupOrderAmount + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property RequireCustomerNameForPickup (base name: "RequireCustomerNameForPickup")', function() { + // uncomment below and update the code to test the property RequireCustomerNameForPickup + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property GdprCustomerPhoneNumbers (base name: "GdprCustomerPhoneNumbers")', function() { + // uncomment below and update the code to test the property GdprCustomerPhoneNumbers + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property RequireCustomerNameForDelivery (base name: "RequireCustomerNameForDelivery")', function() { + // uncomment below and update the code to test the property RequireCustomerNameForDelivery + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property AllowChefNotes (base name: "AllowChefNotes")', function() { + // uncomment below and update the code to test the property AllowChefNotes + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property EtaInPickupConfirmationSmsEnabled (base name: "EtaInPickupConfirmationSmsEnabled")', function() { + // uncomment below and update the code to test the property EtaInPickupConfirmationSmsEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property EtaInDeliveryConfirmationSmsEnabled (base name: "EtaInDeliveryConfirmationSmsEnabled")', function() { + // uncomment below and update the code to test the property EtaInDeliveryConfirmationSmsEnabled + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // uncomment below and update the code to test the property IsArchived + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // uncomment below and update the code to test the property IsPublished + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // uncomment below and update the code to test the property EmailAddress + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property StaffLanguage (base name: "StaffLanguage")', function() { + // uncomment below and update the code to test the property StaffLanguage + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property SalesChannelTypes (base name: "SalesChannelTypes")', function() { + // uncomment below and update the code to test the property SalesChannelTypes + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + it('should have the property InheritanceConfigTypes (base name: "InheritanceConfigTypes")', function() { + // uncomment below and update the code to test the property InheritanceConfigTypes + //var instance = new Flipdish.Store(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreAddress.spec.js b/test/model/StoreAddress.spec.js new file mode 100644 index 00000000..5ed8ccdd --- /dev/null +++ b/test/model/StoreAddress.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreAddress(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreAddress', function() { + it('should create an instance of StoreAddress', function() { + // uncomment below and update the code to test StoreAddress + //var instane = new Flipdish.StoreAddress(); + //expect(instance).to.be.a(Flipdish.StoreAddress); + }); + + it('should have the property AddressId (base name: "AddressId")', function() { + // uncomment below and update the code to test the property AddressId + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Coordinates (base name: "Coordinates")', function() { + // uncomment below and update the code to test the property Coordinates + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Line1 (base name: "Line1")', function() { + // uncomment below and update the code to test the property Line1 + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property Postcode (base name: "Postcode")', function() { + // uncomment below and update the code to test the property Postcode + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property City (base name: "City")', function() { + // uncomment below and update the code to test the property City + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // uncomment below and update the code to test the property CountryCode + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayForCustomer (base name: "DisplayForCustomer")', function() { + // uncomment below and update the code to test the property DisplayForCustomer + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property AddressFields (base name: "AddressFields")', function() { + // uncomment below and update the code to test the property AddressFields + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property SingleLineDisplay (base name: "SingleLineDisplay")', function() { + // uncomment below and update the code to test the property SingleLineDisplay + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + it('should have the property TwoLinesDisplay (base name: "TwoLinesDisplay")', function() { + // uncomment below and update the code to test the property TwoLinesDisplay + //var instance = new Flipdish.StoreAddress(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreAddressBase.spec.js b/test/model/StoreAddressBase.spec.js new file mode 100644 index 00000000..b2e9c430 --- /dev/null +++ b/test/model/StoreAddressBase.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreAddressBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreAddressBase', function() { + it('should create an instance of StoreAddressBase', function() { + // uncomment below and update the code to test StoreAddressBase + //var instane = new Flipdish.StoreAddressBase(); + //expect(instance).to.be.a(Flipdish.StoreAddressBase); + }); + + it('should have the property Line1 (base name: "Line1")', function() { + // uncomment below and update the code to test the property Line1 + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + it('should have the property Postcode (base name: "Postcode")', function() { + // uncomment below and update the code to test the property Postcode + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + it('should have the property City (base name: "City")', function() { + // uncomment below and update the code to test the property City + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // uncomment below and update the code to test the property CountryCode + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + it('should have the property DisplayForCustomer (base name: "DisplayForCustomer")', function() { + // uncomment below and update the code to test the property DisplayForCustomer + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + it('should have the property AddressFields (base name: "AddressFields")', function() { + // uncomment below and update the code to test the property AddressFields + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + it('should have the property SingleLineDisplay (base name: "SingleLineDisplay")', function() { + // uncomment below and update the code to test the property SingleLineDisplay + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + it('should have the property TwoLinesDisplay (base name: "TwoLinesDisplay")', function() { + // uncomment below and update the code to test the property TwoLinesDisplay + //var instance = new Flipdish.StoreAddressBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreAddressForm.spec.js b/test/model/StoreAddressForm.spec.js new file mode 100644 index 00000000..6901243b --- /dev/null +++ b/test/model/StoreAddressForm.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreAddressForm(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreAddressForm', function() { + it('should create an instance of StoreAddressForm', function() { + // uncomment below and update the code to test StoreAddressForm + //var instane = new Flipdish.StoreAddressForm(); + //expect(instance).to.be.a(Flipdish.StoreAddressForm); + }); + + it('should have the property AddressFields (base name: "AddressFields")', function() { + // uncomment below and update the code to test the property AddressFields + //var instance = new Flipdish.StoreAddressForm(); + //expect(instance).to.be(); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // uncomment below and update the code to test the property CountryCode + //var instance = new Flipdish.StoreAddressForm(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreAddressUpdatedEvent.spec.js b/test/model/StoreAddressUpdatedEvent.spec.js new file mode 100644 index 00000000..f688257a --- /dev/null +++ b/test/model/StoreAddressUpdatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreAddressUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreAddressUpdatedEvent', function() { + it('should create an instance of StoreAddressUpdatedEvent', function() { + // uncomment below and update the code to test StoreAddressUpdatedEvent + //var instane = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreAddressUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreAddress (base name: "StoreAddress")', function() { + // uncomment below and update the code to test the property StoreAddress + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreAddressUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreArchivedEvent.spec.js b/test/model/StoreArchivedEvent.spec.js new file mode 100644 index 00000000..c86d8c42 --- /dev/null +++ b/test/model/StoreArchivedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreArchivedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreArchivedEvent', function() { + it('should create an instance of StoreArchivedEvent', function() { + // uncomment below and update the code to test StoreArchivedEvent + //var instane = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be.a(Flipdish.StoreArchivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreArchivedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreBase.spec.js b/test/model/StoreBase.spec.js new file mode 100644 index 00000000..f3233309 --- /dev/null +++ b/test/model/StoreBase.spec.js @@ -0,0 +1,245 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreBase', function() { + it('should create an instance of StoreBase', function() { + // uncomment below and update the code to test StoreBase + //var instane = new Flipdish.StoreBase(); + //expect(instance).to.be.a(Flipdish.StoreBase); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property AlwaysAppearOpen (base name: "AlwaysAppearOpen")', function() { + // uncomment below and update the code to test the property AlwaysAppearOpen + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property PreOrderEnabled (base name: "PreOrderEnabled")', function() { + // uncomment below and update the code to test the property PreOrderEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property TakeOutEnabled (base name: "TakeOutEnabled")', function() { + // uncomment below and update the code to test the property TakeOutEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property TableServiceEnabled (base name: "TableServiceEnabled")', function() { + // uncomment below and update the code to test the property TableServiceEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property DineInEnabled (base name: "DineInEnabled")', function() { + // uncomment below and update the code to test the property DineInEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property AllowPreOrdersAndTableService (base name: "AllowPreOrdersAndTableService")', function() { + // uncomment below and update the code to test the property AllowPreOrdersAndTableService + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property PickupEnabled (base name: "PickupEnabled")', function() { + // uncomment below and update the code to test the property PickupEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryEnabled (base name: "DeliveryEnabled")', function() { + // uncomment below and update the code to test the property DeliveryEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property CardOrderDeliveryEnabled (base name: "CardOrderDeliveryEnabled")', function() { + // uncomment below and update the code to test the property CardOrderDeliveryEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrdersDeliveryEnabled (base name: "CashOrdersDeliveryEnabled")', function() { + // uncomment below and update the code to test the property CashOrdersDeliveryEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property CardOrdersPickupEnabled (base name: "CardOrdersPickupEnabled")', function() { + // uncomment below and update the code to test the property CardOrdersPickupEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrdersPickupEnabled (base name: "CashOrdersPickupEnabled")', function() { + // uncomment below and update the code to test the property CashOrdersPickupEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property TipsEnabled (base name: "TipsEnabled")', function() { + // uncomment below and update the code to test the property TipsEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property AutomaticallyAcceptOrders (base name: "AutomaticallyAcceptOrders")', function() { + // uncomment below and update the code to test the property AutomaticallyAcceptOrders + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property OpenForDelivery (base name: "OpenForDelivery")', function() { + // uncomment below and update the code to test the property OpenForDelivery + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property OpenForPickup (base name: "OpenForPickup")', function() { + // uncomment below and update the code to test the property OpenForPickup + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property MinimumPickupOrderAmount (base name: "MinimumPickupOrderAmount")', function() { + // uncomment below and update the code to test the property MinimumPickupOrderAmount + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property RequireCustomerNameForPickup (base name: "RequireCustomerNameForPickup")', function() { + // uncomment below and update the code to test the property RequireCustomerNameForPickup + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property GdprCustomerPhoneNumbers (base name: "GdprCustomerPhoneNumbers")', function() { + // uncomment below and update the code to test the property GdprCustomerPhoneNumbers + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property RequireCustomerNameForDelivery (base name: "RequireCustomerNameForDelivery")', function() { + // uncomment below and update the code to test the property RequireCustomerNameForDelivery + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property AllowChefNotes (base name: "AllowChefNotes")', function() { + // uncomment below and update the code to test the property AllowChefNotes + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property EtaInPickupConfirmationSmsEnabled (base name: "EtaInPickupConfirmationSmsEnabled")', function() { + // uncomment below and update the code to test the property EtaInPickupConfirmationSmsEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property EtaInDeliveryConfirmationSmsEnabled (base name: "EtaInDeliveryConfirmationSmsEnabled")', function() { + // uncomment below and update the code to test the property EtaInDeliveryConfirmationSmsEnabled + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsArchived (base name: "IsArchived")', function() { + // uncomment below and update the code to test the property IsArchived + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // uncomment below and update the code to test the property IsPublished + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // uncomment below and update the code to test the property EmailAddress + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property StaffLanguage (base name: "StaffLanguage")', function() { + // uncomment below and update the code to test the property StaffLanguage + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property SalesChannelTypes (base name: "SalesChannelTypes")', function() { + // uncomment below and update the code to test the property SalesChannelTypes + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + it('should have the property InheritanceConfigTypes (base name: "InheritanceConfigTypes")', function() { + // uncomment below and update the code to test the property InheritanceConfigTypes + //var instance = new Flipdish.StoreBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreBusinessHoursOverrideCreatedEvent.spec.js b/test/model/StoreBusinessHoursOverrideCreatedEvent.spec.js new file mode 100644 index 00000000..3d10eb25 --- /dev/null +++ b/test/model/StoreBusinessHoursOverrideCreatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreBusinessHoursOverrideCreatedEvent', function() { + it('should create an instance of StoreBusinessHoursOverrideCreatedEvent', function() { + // uncomment below and update the code to test StoreBusinessHoursOverrideCreatedEvent + //var instane = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreBusinessHoursOverrideCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessHoursOverride (base name: "BusinessHoursOverride")', function() { + // uncomment below and update the code to test the property BusinessHoursOverride + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreBusinessHoursOverrideCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreBusinessHoursOverrideDeletedEvent.spec.js b/test/model/StoreBusinessHoursOverrideDeletedEvent.spec.js new file mode 100644 index 00000000..7de99a7e --- /dev/null +++ b/test/model/StoreBusinessHoursOverrideDeletedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreBusinessHoursOverrideDeletedEvent', function() { + it('should create an instance of StoreBusinessHoursOverrideDeletedEvent', function() { + // uncomment below and update the code to test StoreBusinessHoursOverrideDeletedEvent + //var instane = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be.a(Flipdish.StoreBusinessHoursOverrideDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessHoursOverride (base name: "BusinessHoursOverride")', function() { + // uncomment below and update the code to test the property BusinessHoursOverride + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreBusinessHoursOverrideDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreCampaignStartTime.spec.js b/test/model/StoreCampaignStartTime.spec.js new file mode 100644 index 00000000..2849c2f6 --- /dev/null +++ b/test/model/StoreCampaignStartTime.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreCampaignStartTime(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreCampaignStartTime', function() { + it('should create an instance of StoreCampaignStartTime', function() { + // uncomment below and update the code to test StoreCampaignStartTime + //var instane = new Flipdish.StoreCampaignStartTime(); + //expect(instance).to.be.a(Flipdish.StoreCampaignStartTime); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreCampaignStartTime(); + //expect(instance).to.be(); + }); + + it('should have the property TsStart (base name: "TsStart")', function() { + // uncomment below and update the code to test the property TsStart + //var instance = new Flipdish.StoreCampaignStartTime(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreChannelAssignment.spec.js b/test/model/StoreChannelAssignment.spec.js new file mode 100644 index 00000000..7ee72c86 --- /dev/null +++ b/test/model/StoreChannelAssignment.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreChannelAssignment(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreChannelAssignment', function() { + it('should create an instance of StoreChannelAssignment', function() { + // uncomment below and update the code to test StoreChannelAssignment + //var instane = new Flipdish.StoreChannelAssignment(); + //expect(instance).to.be.a(Flipdish.StoreChannelAssignment); + }); + + it('should have the property ChannelId (base name: "ChannelId")', function() { + // uncomment below and update the code to test the property ChannelId + //var instance = new Flipdish.StoreChannelAssignment(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreChannelAssignment(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.StoreChannelAssignment(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreCloneSettings.spec.js b/test/model/StoreCloneSettings.spec.js new file mode 100644 index 00000000..003b093f --- /dev/null +++ b/test/model/StoreCloneSettings.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreCloneSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreCloneSettings', function() { + it('should create an instance of StoreCloneSettings', function() { + // uncomment below and update the code to test StoreCloneSettings + //var instane = new Flipdish.StoreCloneSettings(); + //expect(instance).to.be.a(Flipdish.StoreCloneSettings); + }); + + it('should have the property TargetStoreGroupId (base name: "TargetStoreGroupId")', function() { + // uncomment below and update the code to test the property TargetStoreGroupId + //var instance = new Flipdish.StoreCloneSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreCollectionSettings.spec.js b/test/model/StoreCollectionSettings.spec.js new file mode 100644 index 00000000..a6f7bbd3 --- /dev/null +++ b/test/model/StoreCollectionSettings.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreCollectionSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreCollectionSettings', function() { + it('should create an instance of StoreCollectionSettings', function() { + // uncomment below and update the code to test StoreCollectionSettings + //var instane = new Flipdish.StoreCollectionSettings(); + //expect(instance).to.be.a(Flipdish.StoreCollectionSettings); + }); + + it('should have the property PickupEnabled (base name: "PickupEnabled")', function() { + // uncomment below and update the code to test the property PickupEnabled + //var instance = new Flipdish.StoreCollectionSettings(); + //expect(instance).to.be(); + }); + + it('should have the property MinimumPickupOrderAmount (base name: "MinimumPickupOrderAmount")', function() { + // uncomment below and update the code to test the property MinimumPickupOrderAmount + //var instance = new Flipdish.StoreCollectionSettings(); + //expect(instance).to.be(); + }); + + it('should have the property RequireCustomerNameForPickup (base name: "RequireCustomerNameForPickup")', function() { + // uncomment below and update the code to test the property RequireCustomerNameForPickup + //var instance = new Flipdish.StoreCollectionSettings(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrdersPickupEnabled (base name: "CashOrdersPickupEnabled")', function() { + // uncomment below and update the code to test the property CashOrdersPickupEnabled + //var instance = new Flipdish.StoreCollectionSettings(); + //expect(instance).to.be(); + }); + + it('should have the property LeadTimeMinutes (base name: "LeadTimeMinutes")', function() { + // uncomment below and update the code to test the property LeadTimeMinutes + //var instance = new Flipdish.StoreCollectionSettings(); + //expect(instance).to.be(); + }); + + it('should have the property EtaInPickupConfirmationSmsEnabled (base name: "EtaInPickupConfirmationSmsEnabled")', function() { + // uncomment below and update the code to test the property EtaInPickupConfirmationSmsEnabled + //var instance = new Flipdish.StoreCollectionSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreConfig.spec.js b/test/model/StoreConfig.spec.js new file mode 100644 index 00000000..7f165074 --- /dev/null +++ b/test/model/StoreConfig.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreConfig', function() { + it('should create an instance of StoreConfig', function() { + // uncomment below and update the code to test StoreConfig + //var instane = new Flipdish.StoreConfig(); + //expect(instance).to.be.a(Flipdish.StoreConfig); + }); + + it('should have the property PickupEnabled (base name: "PickupEnabled")', function() { + // uncomment below and update the code to test the property PickupEnabled + //var instance = new Flipdish.StoreConfig(); + //expect(instance).to.be(); + }); + + it('should have the property BankAccountAttached (base name: "BankAccountAttached")', function() { + // uncomment below and update the code to test the property BankAccountAttached + //var instance = new Flipdish.StoreConfig(); + //expect(instance).to.be(); + }); + + it('should have the property MenuAssigned (base name: "MenuAssigned")', function() { + // uncomment below and update the code to test the property MenuAssigned + //var instance = new Flipdish.StoreConfig(); + //expect(instance).to.be(); + }); + + it('should have the property HasFullAddress (base name: "HasFullAddress")', function() { + // uncomment below and update the code to test the property HasFullAddress + //var instance = new Flipdish.StoreConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PickupHours (base name: "PickupHours")', function() { + // uncomment below and update the code to test the property PickupHours + //var instance = new Flipdish.StoreConfig(); + //expect(instance).to.be(); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // uncomment below and update the code to test the property IsPublished + //var instance = new Flipdish.StoreConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreCreateBase.spec.js b/test/model/StoreCreateBase.spec.js new file mode 100644 index 00000000..e96b9b6c --- /dev/null +++ b/test/model/StoreCreateBase.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreCreateBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreCreateBase', function() { + it('should create an instance of StoreCreateBase', function() { + // uncomment below and update the code to test StoreCreateBase + //var instane = new Flipdish.StoreCreateBase(); + //expect(instance).to.be.a(Flipdish.StoreCreateBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreCreateBase(); + //expect(instance).to.be(); + }); + + it('should have the property EmailAddress (base name: "EmailAddress")', function() { + // uncomment below and update the code to test the property EmailAddress + //var instance = new Flipdish.StoreCreateBase(); + //expect(instance).to.be(); + }); + + it('should have the property StaffLanguage (base name: "StaffLanguage")', function() { + // uncomment below and update the code to test the property StaffLanguage + //var instance = new Flipdish.StoreCreateBase(); + //expect(instance).to.be(); + }); + + it('should have the property SalesChannelType (base name: "SalesChannelType")', function() { + // uncomment below and update the code to test the property SalesChannelType + //var instance = new Flipdish.StoreCreateBase(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.StoreCreateBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreCreatedEvent.spec.js b/test/model/StoreCreatedEvent.spec.js new file mode 100644 index 00000000..1715e97a --- /dev/null +++ b/test/model/StoreCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreCreatedEvent', function() { + it('should create an instance of StoreCreatedEvent', function() { + // uncomment below and update the code to test StoreCreatedEvent + //var instane = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreDataPoint.spec.js b/test/model/StoreDataPoint.spec.js new file mode 100644 index 00000000..f50b875f --- /dev/null +++ b/test/model/StoreDataPoint.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreDataPoint', function() { + it('should create an instance of StoreDataPoint', function() { + // uncomment below and update the code to test StoreDataPoint + //var instane = new Flipdish.StoreDataPoint(); + //expect(instance).to.be.a(Flipdish.StoreDataPoint); + }); + + it('should have the property Day (base name: "Day")', function() { + // uncomment below and update the code to test the property Day + //var instance = new Flipdish.StoreDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.StoreDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreDeletedEvent.spec.js b/test/model/StoreDeletedEvent.spec.js new file mode 100644 index 00000000..57679704 --- /dev/null +++ b/test/model/StoreDeletedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreDeletedEvent', function() { + it('should create an instance of StoreDeletedEvent', function() { + // uncomment below and update the code to test StoreDeletedEvent + //var instane = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be.a(Flipdish.StoreDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreDeliveryZoneFeeConfig.spec.js b/test/model/StoreDeliveryZoneFeeConfig.spec.js new file mode 100644 index 00000000..74327d81 --- /dev/null +++ b/test/model/StoreDeliveryZoneFeeConfig.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreDeliveryZoneFeeConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreDeliveryZoneFeeConfig', function() { + it('should create an instance of StoreDeliveryZoneFeeConfig', function() { + // uncomment below and update the code to test StoreDeliveryZoneFeeConfig + //var instane = new Flipdish.StoreDeliveryZoneFeeConfig(); + //expect(instance).to.be.a(Flipdish.StoreDeliveryZoneFeeConfig); + }); + + it('should have the property DeliveryZoneId (base name: "DeliveryZoneId")', function() { + // uncomment below and update the code to test the property DeliveryZoneId + //var instance = new Flipdish.StoreDeliveryZoneFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Fee (base name: "Fee")', function() { + // uncomment below and update the code to test the property Fee + //var instance = new Flipdish.StoreDeliveryZoneFeeConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreDeliveryZoneFeeConfigUpdateRequest.spec.js b/test/model/StoreDeliveryZoneFeeConfigUpdateRequest.spec.js new file mode 100644 index 00000000..b075ad27 --- /dev/null +++ b/test/model/StoreDeliveryZoneFeeConfigUpdateRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreDeliveryZoneFeeConfigUpdateRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreDeliveryZoneFeeConfigUpdateRequest', function() { + it('should create an instance of StoreDeliveryZoneFeeConfigUpdateRequest', function() { + // uncomment below and update the code to test StoreDeliveryZoneFeeConfigUpdateRequest + //var instane = new Flipdish.StoreDeliveryZoneFeeConfigUpdateRequest(); + //expect(instance).to.be.a(Flipdish.StoreDeliveryZoneFeeConfigUpdateRequest); + }); + + it('should have the property DeliveryZoneFees (base name: "DeliveryZoneFees")', function() { + // uncomment below and update the code to test the property DeliveryZoneFees + //var instance = new Flipdish.StoreDeliveryZoneFeeConfigUpdateRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreEndOfDayReport.spec.js b/test/model/StoreEndOfDayReport.spec.js new file mode 100644 index 00000000..b5740656 --- /dev/null +++ b/test/model/StoreEndOfDayReport.spec.js @@ -0,0 +1,215 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreEndOfDayReport(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreEndOfDayReport', function() { + it('should create an instance of StoreEndOfDayReport', function() { + // uncomment below and update the code to test StoreEndOfDayReport + //var instane = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be.a(Flipdish.StoreEndOfDayReport); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCount (base name: "OrderCount")', function() { + // uncomment below and update the code to test the property OrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property OrderValue (base name: "OrderValue")', function() { + // uncomment below and update the code to test the property OrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property OrderValueExcludingDeliveryFees (base name: "OrderValueExcludingDeliveryFees")', function() { + // uncomment below and update the code to test the property OrderValueExcludingDeliveryFees + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionOrderCount (base name: "CollectionOrderCount")', function() { + // uncomment below and update the code to test the property CollectionOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionCashOrderCount (base name: "CollectionCashOrderCount")', function() { + // uncomment below and update the code to test the property CollectionCashOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionPaidOnlineOrderCount (base name: "CollectionPaidOnlineOrderCount")', function() { + // uncomment below and update the code to test the property CollectionPaidOnlineOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionOrderValue (base name: "CollectionOrderValue")', function() { + // uncomment below and update the code to test the property CollectionOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionCashOrderValue (base name: "CollectionCashOrderValue")', function() { + // uncomment below and update the code to test the property CollectionCashOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CollectionPaidOnlineOrderValue (base name: "CollectionPaidOnlineOrderValue")', function() { + // uncomment below and update the code to test the property CollectionPaidOnlineOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryOrderCount (base name: "DeliveryOrderCount")', function() { + // uncomment below and update the code to test the property DeliveryOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryCashOrderCount (base name: "DeliveryCashOrderCount")', function() { + // uncomment below and update the code to test the property DeliveryCashOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryPaidOnlineOrderCount (base name: "DeliveryPaidOnlineOrderCount")', function() { + // uncomment below and update the code to test the property DeliveryPaidOnlineOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryOrderValue (base name: "DeliveryOrderValue")', function() { + // uncomment below and update the code to test the property DeliveryOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryCashOrderValue (base name: "DeliveryCashOrderValue")', function() { + // uncomment below and update the code to test the property DeliveryCashOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryPaidOnlineOrderValue (base name: "DeliveryPaidOnlineOrderValue")', function() { + // uncomment below and update the code to test the property DeliveryPaidOnlineOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property PaidOnlineOrderCount (base name: "PaidOnlineOrderCount")', function() { + // uncomment below and update the code to test the property PaidOnlineOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrderCount (base name: "CashOrderCount")', function() { + // uncomment below and update the code to test the property CashOrderCount + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property PaidOnlineOrderValue (base name: "PaidOnlineOrderValue")', function() { + // uncomment below and update the code to test the property PaidOnlineOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrderValue (base name: "CashOrderValue")', function() { + // uncomment below and update the code to test the property CashOrderValue + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property PaidOnlineOrderValueExcludingDeliveryFees (base name: "PaidOnlineOrderValueExcludingDeliveryFees")', function() { + // uncomment below and update the code to test the property PaidOnlineOrderValueExcludingDeliveryFees + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property CashOrderValueExcludingDeliveryFees (base name: "CashOrderValueExcludingDeliveryFees")', function() { + // uncomment below and update the code to test the property CashOrderValueExcludingDeliveryFees + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // uncomment below and update the code to test the property EndTime + //var instance = new Flipdish.StoreEndOfDayReport(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreFeeConfig.spec.js b/test/model/StoreFeeConfig.spec.js new file mode 100644 index 00000000..c58c3fbd --- /dev/null +++ b/test/model/StoreFeeConfig.spec.js @@ -0,0 +1,329 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreFeeConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreFeeConfig', function() { + it('should create an instance of StoreFeeConfig', function() { + // uncomment below and update the code to test StoreFeeConfig + //var instane = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be.a(Flipdish.StoreFeeConfig); + }); + + it('should have the property FeeConfigId (base name: "FeeConfigId")', function() { + // uncomment below and update the code to test the property FeeConfigId + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrders (base name: "PercentFeeCardOrders")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrders + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrders (base name: "PercentFeeCashOrders")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrders + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrdersWeb (base name: "PercentFeeCardOrdersWeb")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrdersWeb + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrdersWeb (base name: "PercentFeeCashOrdersWeb")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrdersWeb + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrdersKiosk (base name: "PercentFeeCardOrdersKiosk")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrdersKiosk + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrdersKiosk (base name: "PercentFeeCashOrdersKiosk")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrdersKiosk + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardOrdersKiosk (base name: "FixedFeeCardOrdersKiosk")', function() { + // uncomment below and update the code to test the property FixedFeeCardOrdersKiosk + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCashOrdersKiosk (base name: "FixedFeeCashOrdersKiosk")', function() { + // uncomment below and update the code to test the property FixedFeeCashOrdersKiosk + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrdersKioskChargedToCustomerIncludingVat (base name: "PercentFeeCardOrdersKioskChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrdersKioskChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardOrdersKioskChargedToCustomerIncludingVat (base name: "FixedFeeCardOrdersKioskChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property FixedFeeCardOrdersKioskChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrdersKioskChargedToCustomerIncludingVat (base name: "PercentFeeCashOrdersKioskChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrdersKioskChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCashOrdersKioskChargedToCustomerIncludingVat (base name: "FixedFeeCashOrdersKioskChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property FixedFeeCashOrdersKioskChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardOrders (base name: "FixedFeeCardOrders")', function() { + // uncomment below and update the code to test the property FixedFeeCardOrders + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCashOrders (base name: "FixedFeeCashOrders")', function() { + // uncomment below and update the code to test the property FixedFeeCashOrders + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrdersChargedToCustomerIncludingVat (base name: "PercentFeeCardOrdersChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrdersChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardOrdersChargedToCustomerIncludingVat (base name: "FixedFeeCardOrdersChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property FixedFeeCardOrdersChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrdersChargedToCustomerIncludingVat (base name: "PercentFeeCashOrdersChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrdersChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCashOrdersChargedToCustomerIncludingVat (base name: "FixedFeeCashOrdersChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property FixedFeeCashOrdersChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeTips (base name: "PercentFeeTips")', function() { + // uncomment below and update the code to test the property PercentFeeTips + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeTipsCollection (base name: "PercentFeeTipsCollection")', function() { + // uncomment below and update the code to test the property PercentFeeTipsCollection + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeTipsDelivery (base name: "PercentFeeTipsDelivery")', function() { + // uncomment below and update the code to test the property PercentFeeTipsDelivery + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property TaxRatePercent (base name: "TaxRatePercent")', function() { + // uncomment below and update the code to test the property TaxRatePercent + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrdersLocationService (base name: "PercentFeeCardOrdersLocationService")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrdersLocationService + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrdersLocationService (base name: "PercentFeeCashOrdersLocationService")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrdersLocationService + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardOrdersLocationService (base name: "FixedFeeCardOrdersLocationService")', function() { + // uncomment below and update the code to test the property FixedFeeCardOrdersLocationService + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCashOrdersLocationService (base name: "FixedFeeCashOrdersLocationService")', function() { + // uncomment below and update the code to test the property FixedFeeCashOrdersLocationService + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat (base name: "PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrdersLocationServiceChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat (base name: "PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrdersLocationServiceChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat (base name: "FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property FixedFeeCardOrdersLocationServiceChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat (base name: "FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat")', function() { + // uncomment below and update the code to test the property FixedFeeCashOrdersLocationServiceChargedToCustomerIncludingVat + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardOrdersIngest (base name: "PercentFeeCardOrdersIngest")', function() { + // uncomment below and update the code to test the property PercentFeeCardOrdersIngest + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCashOrdersIngest (base name: "PercentFeeCashOrdersIngest")', function() { + // uncomment below and update the code to test the property PercentFeeCashOrdersIngest + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardOrdersIngest (base name: "FixedFeeCardOrdersIngest")', function() { + // uncomment below and update the code to test the property FixedFeeCardOrdersIngest + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCashOrdersIngest (base name: "FixedFeeCashOrdersIngest")', function() { + // uncomment below and update the code to test the property FixedFeeCashOrdersIngest + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeDelivery (base name: "PercentFeeDelivery")', function() { + // uncomment below and update the code to test the property PercentFeeDelivery + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeDelivery (base name: "FixedFeeDelivery")', function() { + // uncomment below and update the code to test the property FixedFeeDelivery + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeCardPosTransaction (base name: "PercentFeeCardPosTransaction")', function() { + // uncomment below and update the code to test the property PercentFeeCardPosTransaction + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeCardPosTransaction (base name: "FixedFeeCardPosTransaction")', function() { + // uncomment below and update the code to test the property FixedFeeCardPosTransaction + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PercentFeeOrderWithGoogle (base name: "PercentFeeOrderWithGoogle")', function() { + // uncomment below and update the code to test the property PercentFeeOrderWithGoogle + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property FixedFeeOrderWithGoogle (base name: "FixedFeeOrderWithGoogle")', function() { + // uncomment below and update the code to test the property FixedFeeOrderWithGoogle + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property ShouldNotAutoIncreaseBefore (base name: "ShouldNotAutoIncreaseBefore")', function() { + // uncomment below and update the code to test the property ShouldNotAutoIncreaseBefore + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Reason (base name: "Reason")', function() { + // uncomment below and update the code to test the property Reason + //var instance = new Flipdish.StoreFeeConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreFeeConfigUpdatedEvent.spec.js b/test/model/StoreFeeConfigUpdatedEvent.spec.js new file mode 100644 index 00000000..197f579d --- /dev/null +++ b/test/model/StoreFeeConfigUpdatedEvent.spec.js @@ -0,0 +1,137 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreFeeConfigUpdatedEvent', function() { + it('should create an instance of StoreFeeConfigUpdatedEvent', function() { + // uncomment below and update the code to test StoreFeeConfigUpdatedEvent + //var instane = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreFeeConfigUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Changes (base name: "Changes")', function() { + // uncomment below and update the code to test the property Changes + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreFeeConfig (base name: "StoreFeeConfig")', function() { + // uncomment below and update the code to test the property StoreFeeConfig + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreFeeConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreGroup.spec.js b/test/model/StoreGroup.spec.js new file mode 100644 index 00000000..bc362856 --- /dev/null +++ b/test/model/StoreGroup.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreGroup', function() { + it('should create an instance of StoreGroup', function() { + // uncomment below and update the code to test StoreGroup + //var instane = new Flipdish.StoreGroup(); + //expect(instance).to.be.a(Flipdish.StoreGroup); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property GeneralRating (base name: "GeneralRating")', function() { + // uncomment below and update the code to test the property GeneralRating + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property GeneralRatingCount (base name: "GeneralRatingCount")', function() { + // uncomment below and update the code to test the property GeneralRatingCount + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryMenuMessage (base name: "DeliveryMenuMessage")', function() { + // uncomment below and update the code to test the property DeliveryMenuMessage + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property PickupMenuMessage (base name: "PickupMenuMessage")', function() { + // uncomment below and update the code to test the property PickupMenuMessage + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property BrandIds (base name: "BrandIds")', function() { + // uncomment below and update the code to test the property BrandIds + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.StoreGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreGroupBase.spec.js b/test/model/StoreGroupBase.spec.js new file mode 100644 index 00000000..2e1527e2 --- /dev/null +++ b/test/model/StoreGroupBase.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreGroupBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreGroupBase', function() { + it('should create an instance of StoreGroupBase', function() { + // uncomment below and update the code to test StoreGroupBase + //var instane = new Flipdish.StoreGroupBase(); + //expect(instance).to.be.a(Flipdish.StoreGroupBase); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreGroupBase(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.StoreGroupBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreGroupCreatedEvent.spec.js b/test/model/StoreGroupCreatedEvent.spec.js new file mode 100644 index 00000000..4e7f8b8b --- /dev/null +++ b/test/model/StoreGroupCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreGroupCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreGroupCreatedEvent', function() { + it('should create an instance of StoreGroupCreatedEvent', function() { + // uncomment below and update the code to test StoreGroupCreatedEvent + //var instane = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreGroupCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroup (base name: "StoreGroup")', function() { + // uncomment below and update the code to test the property StoreGroup + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreGroupCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreGroupDeletedEvent.spec.js b/test/model/StoreGroupDeletedEvent.spec.js new file mode 100644 index 00000000..21df006f --- /dev/null +++ b/test/model/StoreGroupDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreGroupDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreGroupDeletedEvent', function() { + it('should create an instance of StoreGroupDeletedEvent', function() { + // uncomment below and update the code to test StoreGroupDeletedEvent + //var instane = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be.a(Flipdish.StoreGroupDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroup (base name: "StoreGroup")', function() { + // uncomment below and update the code to test the property StoreGroup + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreGroupDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreGroupExtended.spec.js b/test/model/StoreGroupExtended.spec.js new file mode 100644 index 00000000..e204fd95 --- /dev/null +++ b/test/model/StoreGroupExtended.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreGroupExtended(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreGroupExtended', function() { + it('should create an instance of StoreGroupExtended', function() { + // uncomment below and update the code to test StoreGroupExtended + //var instane = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be.a(Flipdish.StoreGroupExtended); + }); + + it('should have the property TotalStores (base name: "TotalStores")', function() { + // uncomment below and update the code to test the property TotalStores + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property GroupedCoordinates (base name: "GroupedCoordinates")', function() { + // uncomment below and update the code to test the property GroupedCoordinates + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property StoreHeaders (base name: "StoreHeaders")', function() { + // uncomment below and update the code to test the property StoreHeaders + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property GeneralRating (base name: "GeneralRating")', function() { + // uncomment below and update the code to test the property GeneralRating + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property GeneralRatingCount (base name: "GeneralRatingCount")', function() { + // uncomment below and update the code to test the property GeneralRatingCount + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryMenuMessage (base name: "DeliveryMenuMessage")', function() { + // uncomment below and update the code to test the property DeliveryMenuMessage + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property PickupMenuMessage (base name: "PickupMenuMessage")', function() { + // uncomment below and update the code to test the property PickupMenuMessage + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property BrandIds (base name: "BrandIds")', function() { + // uncomment below and update the code to test the property BrandIds + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.StoreGroupExtended(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreGroupUpdatedEvent.spec.js b/test/model/StoreGroupUpdatedEvent.spec.js new file mode 100644 index 00000000..7e5d781c --- /dev/null +++ b/test/model/StoreGroupUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreGroupUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreGroupUpdatedEvent', function() { + it('should create an instance of StoreGroupUpdatedEvent', function() { + // uncomment below and update the code to test StoreGroupUpdatedEvent + //var instane = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreGroupUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroup (base name: "StoreGroup")', function() { + // uncomment below and update the code to test the property StoreGroup + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreGroupUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreHeader.spec.js b/test/model/StoreHeader.spec.js new file mode 100644 index 00000000..42c17171 --- /dev/null +++ b/test/model/StoreHeader.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreHeader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreHeader', function() { + it('should create an instance of StoreHeader', function() { + // uncomment below and update the code to test StoreHeader + //var instane = new Flipdish.StoreHeader(); + //expect(instance).to.be.a(Flipdish.StoreHeader); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreHeader(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreHeader(); + //expect(instance).to.be(); + }); + + it('should have the property Category (base name: "Category")', function() { + // uncomment below and update the code to test the property Category + //var instance = new Flipdish.StoreHeader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreItemHeader.spec.js b/test/model/StoreItemHeader.spec.js new file mode 100644 index 00000000..cd050b73 --- /dev/null +++ b/test/model/StoreItemHeader.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreItemHeader(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreItemHeader', function() { + it('should create an instance of StoreItemHeader', function() { + // uncomment below and update the code to test StoreItemHeader + //var instane = new Flipdish.StoreItemHeader(); + //expect(instance).to.be.a(Flipdish.StoreItemHeader); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreItemHeader(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreItemHeader(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreKioskSetting.spec.js b/test/model/StoreKioskSetting.spec.js new file mode 100644 index 00000000..ad1ac298 --- /dev/null +++ b/test/model/StoreKioskSetting.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreKioskSetting(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreKioskSetting', function() { + it('should create an instance of StoreKioskSetting', function() { + // uncomment below and update the code to test StoreKioskSetting + //var instane = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be.a(Flipdish.StoreKioskSetting); + }); + + it('should have the property KioskSettingId (base name: "KioskSettingId")', function() { + // uncomment below and update the code to test the property KioskSettingId + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property KioskName (base name: "KioskName")', function() { + // uncomment below and update the code to test the property KioskName + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property RequireCustomerName (base name: "RequireCustomerName")', function() { + // uncomment below and update the code to test the property RequireCustomerName + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property RequireCustomerPhoneNumber (base name: "RequireCustomerPhoneNumber")', function() { + // uncomment below and update the code to test the property RequireCustomerPhoneNumber + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property RequestCustomerPhoneNumber (base name: "RequestCustomerPhoneNumber")', function() { + // uncomment below and update the code to test the property RequestCustomerPhoneNumber + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property RequestTableNumber (base name: "RequestTableNumber")', function() { + // uncomment below and update the code to test the property RequestTableNumber + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property OfferDineInOrTakeawayOption (base name: "OfferDineInOrTakeawayOption")', function() { + // uncomment below and update the code to test the property OfferDineInOrTakeawayOption + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property PhysicalRestaurantId (base name: "PhysicalRestaurantId")', function() { + // uncomment below and update the code to test the property PhysicalRestaurantId + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + it('should have the property HydraConfigId (base name: "HydraConfigId")', function() { + // uncomment below and update the code to test the property HydraConfigId + //var instance = new Flipdish.StoreKioskSetting(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreKioskSettingUpdatedEvent.spec.js b/test/model/StoreKioskSettingUpdatedEvent.spec.js new file mode 100644 index 00000000..e34bbaae --- /dev/null +++ b/test/model/StoreKioskSettingUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreKioskSettingUpdatedEvent', function() { + it('should create an instance of StoreKioskSettingUpdatedEvent', function() { + // uncomment below and update the code to test StoreKioskSettingUpdatedEvent + //var instane = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreKioskSettingUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreKioskSetting (base name: "StoreKioskSetting")', function() { + // uncomment below and update the code to test the property StoreKioskSetting + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreKioskSettingUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreListItem.spec.js b/test/model/StoreListItem.spec.js new file mode 100644 index 00000000..1336d955 --- /dev/null +++ b/test/model/StoreListItem.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreListItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreListItem', function() { + it('should create an instance of StoreListItem', function() { + // uncomment below and update the code to test StoreListItem + //var instane = new Flipdish.StoreListItem(); + //expect(instance).to.be.a(Flipdish.StoreListItem); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreListItem(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.StoreListItem(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreListItem(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupName (base name: "StoreGroupName")', function() { + // uncomment below and update the code to test the property StoreGroupName + //var instance = new Flipdish.StoreListItem(); + //expect(instance).to.be(); + }); + + it('should have the property HasLoyaltyCampaign (base name: "HasLoyaltyCampaign")', function() { + // uncomment below and update the code to test the property HasLoyaltyCampaign + //var instance = new Flipdish.StoreListItem(); + //expect(instance).to.be(); + }); + + it('should have the property HasRetentionCampaign (base name: "HasRetentionCampaign")', function() { + // uncomment below and update the code to test the property HasRetentionCampaign + //var instance = new Flipdish.StoreListItem(); + //expect(instance).to.be(); + }); + + it('should have the property IsPublished (base name: "IsPublished")', function() { + // uncomment below and update the code to test the property IsPublished + //var instance = new Flipdish.StoreListItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreLogoCreatedEvent.spec.js b/test/model/StoreLogoCreatedEvent.spec.js new file mode 100644 index 00000000..4fae7df0 --- /dev/null +++ b/test/model/StoreLogoCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreLogoCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreLogoCreatedEvent', function() { + it('should create an instance of StoreLogoCreatedEvent', function() { + // uncomment below and update the code to test StoreLogoCreatedEvent + //var instane = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreLogoCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LogoUrl (base name: "LogoUrl")', function() { + // uncomment below and update the code to test the property LogoUrl + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreLogoCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreLogoDeletedEvent.spec.js b/test/model/StoreLogoDeletedEvent.spec.js new file mode 100644 index 00000000..4732d0a3 --- /dev/null +++ b/test/model/StoreLogoDeletedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreLogoDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreLogoDeletedEvent', function() { + it('should create an instance of StoreLogoDeletedEvent', function() { + // uncomment below and update the code to test StoreLogoDeletedEvent + //var instane = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be.a(Flipdish.StoreLogoDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreLogoDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreLogoUpdatedEvent.spec.js b/test/model/StoreLogoUpdatedEvent.spec.js new file mode 100644 index 00000000..d687c003 --- /dev/null +++ b/test/model/StoreLogoUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreLogoUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreLogoUpdatedEvent', function() { + it('should create an instance of StoreLogoUpdatedEvent', function() { + // uncomment below and update the code to test StoreLogoUpdatedEvent + //var instane = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreLogoUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property LogoUrl (base name: "LogoUrl")', function() { + // uncomment below and update the code to test the property LogoUrl + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreLogoUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreMenuAssignedEvent.spec.js b/test/model/StoreMenuAssignedEvent.spec.js new file mode 100644 index 00000000..c2a590b9 --- /dev/null +++ b/test/model/StoreMenuAssignedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreMenuAssignedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreMenuAssignedEvent', function() { + it('should create an instance of StoreMenuAssignedEvent', function() { + // uncomment below and update the code to test StoreMenuAssignedEvent + //var instane = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be.a(Flipdish.StoreMenuAssignedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreMenuAssignedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreNote.spec.js b/test/model/StoreNote.spec.js new file mode 100644 index 00000000..ed90f33a --- /dev/null +++ b/test/model/StoreNote.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreNote(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreNote', function() { + it('should create an instance of StoreNote', function() { + // uncomment below and update the code to test StoreNote + //var instane = new Flipdish.StoreNote(); + //expect(instance).to.be.a(Flipdish.StoreNote); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.StoreNote(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreNote(); + //expect(instance).to.be(); + }); + + it('should have the property Note (base name: "Note")', function() { + // uncomment below and update the code to test the property Note + //var instance = new Flipdish.StoreNote(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreOpeningHoursUpdatedEvent.spec.js b/test/model/StoreOpeningHoursUpdatedEvent.spec.js new file mode 100644 index 00000000..ea6a5abd --- /dev/null +++ b/test/model/StoreOpeningHoursUpdatedEvent.spec.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreOpeningHoursUpdatedEvent', function() { + it('should create an instance of StoreOpeningHoursUpdatedEvent', function() { + // uncomment below and update the code to test StoreOpeningHoursUpdatedEvent + //var instane = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreOpeningHoursUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // uncomment below and update the code to test the property DeliveryType + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryTypeString (base name: "DeliveryTypeString")', function() { + // uncomment below and update the code to test the property DeliveryTypeString + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessHoursPeriodOld (base name: "BusinessHoursPeriodOld")', function() { + // uncomment below and update the code to test the property BusinessHoursPeriodOld + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property BusinessHoursPeriod (base name: "BusinessHoursPeriod")', function() { + // uncomment below and update the code to test the property BusinessHoursPeriod + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreOpeningHoursUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreOrderCapacityConfig.spec.js b/test/model/StoreOrderCapacityConfig.spec.js new file mode 100644 index 00000000..2c2177dc --- /dev/null +++ b/test/model/StoreOrderCapacityConfig.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreOrderCapacityConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreOrderCapacityConfig', function() { + it('should create an instance of StoreOrderCapacityConfig', function() { + // uncomment below and update the code to test StoreOrderCapacityConfig + //var instane = new Flipdish.StoreOrderCapacityConfig(); + //expect(instance).to.be.a(Flipdish.StoreOrderCapacityConfig); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreOrderCapacityConfig(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryType (base name: "DeliveryType")', function() { + // uncomment below and update the code to test the property DeliveryType + //var instance = new Flipdish.StoreOrderCapacityConfig(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIntervalInMinutes (base name: "StoreIntervalInMinutes")', function() { + // uncomment below and update the code to test the property StoreIntervalInMinutes + //var instance = new Flipdish.StoreOrderCapacityConfig(); + //expect(instance).to.be(); + }); + + it('should have the property OrderCapacityPeriods (base name: "OrderCapacityPeriods")', function() { + // uncomment below and update the code to test the property OrderCapacityPeriods + //var instance = new Flipdish.StoreOrderCapacityConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreOrderCapacityConfigEditModel.spec.js b/test/model/StoreOrderCapacityConfigEditModel.spec.js new file mode 100644 index 00000000..39304510 --- /dev/null +++ b/test/model/StoreOrderCapacityConfigEditModel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreOrderCapacityConfigEditModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreOrderCapacityConfigEditModel', function() { + it('should create an instance of StoreOrderCapacityConfigEditModel', function() { + // uncomment below and update the code to test StoreOrderCapacityConfigEditModel + //var instane = new Flipdish.StoreOrderCapacityConfigEditModel(); + //expect(instance).to.be.a(Flipdish.StoreOrderCapacityConfigEditModel); + }); + + it('should have the property OrderCapacityPeriods (base name: "OrderCapacityPeriods")', function() { + // uncomment below and update the code to test the property OrderCapacityPeriods + //var instance = new Flipdish.StoreOrderCapacityConfigEditModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreOrderCapacityPeriod.spec.js b/test/model/StoreOrderCapacityPeriod.spec.js new file mode 100644 index 00000000..e3d61ea2 --- /dev/null +++ b/test/model/StoreOrderCapacityPeriod.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreOrderCapacityPeriod(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreOrderCapacityPeriod', function() { + it('should create an instance of StoreOrderCapacityPeriod', function() { + // uncomment below and update the code to test StoreOrderCapacityPeriod + //var instane = new Flipdish.StoreOrderCapacityPeriod(); + //expect(instance).to.be.a(Flipdish.StoreOrderCapacityPeriod); + }); + + it('should have the property MaxOrderNumberPerStoreInterval (base name: "MaxOrderNumberPerStoreInterval")', function() { + // uncomment below and update the code to test the property MaxOrderNumberPerStoreInterval + //var instance = new Flipdish.StoreOrderCapacityPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property DayOfTheWeek (base name: "DayOfTheWeek")', function() { + // uncomment below and update the code to test the property DayOfTheWeek + //var instance = new Flipdish.StoreOrderCapacityPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodStartHour (base name: "PeriodStartHour")', function() { + // uncomment below and update the code to test the property PeriodStartHour + //var instance = new Flipdish.StoreOrderCapacityPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodStartMinutes (base name: "PeriodStartMinutes")', function() { + // uncomment below and update the code to test the property PeriodStartMinutes + //var instance = new Flipdish.StoreOrderCapacityPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodEndHour (base name: "PeriodEndHour")', function() { + // uncomment below and update the code to test the property PeriodEndHour + //var instance = new Flipdish.StoreOrderCapacityPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodEndMinutes (base name: "PeriodEndMinutes")', function() { + // uncomment below and update the code to test the property PeriodEndMinutes + //var instance = new Flipdish.StoreOrderCapacityPeriod(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StorePreOrderConfigUpdatedEvent.spec.js b/test/model/StorePreOrderConfigUpdatedEvent.spec.js new file mode 100644 index 00000000..8aadfc7b --- /dev/null +++ b/test/model/StorePreOrderConfigUpdatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StorePreOrderConfigUpdatedEvent', function() { + it('should create an instance of StorePreOrderConfigUpdatedEvent', function() { + // uncomment below and update the code to test StorePreOrderConfigUpdatedEvent + //var instane = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StorePreOrderConfigUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property PreOrderConfig (base name: "PreOrderConfig")', function() { + // uncomment below and update the code to test the property PreOrderConfig + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OldPreOrderConfig (base name: "OldPreOrderConfig")', function() { + // uncomment below and update the code to test the property OldPreOrderConfig + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StorePreOrderConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StorePublishedEvent.spec.js b/test/model/StorePublishedEvent.spec.js new file mode 100644 index 00000000..4d2ca415 --- /dev/null +++ b/test/model/StorePublishedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StorePublishedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StorePublishedEvent', function() { + it('should create an instance of StorePublishedEvent', function() { + // uncomment below and update the code to test StorePublishedEvent + //var instane = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be.a(Flipdish.StorePublishedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StorePublishedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreServiceChargeUpdatedEvent.spec.js b/test/model/StoreServiceChargeUpdatedEvent.spec.js new file mode 100644 index 00000000..8c463240 --- /dev/null +++ b/test/model/StoreServiceChargeUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreServiceChargeUpdatedEvent', function() { + it('should create an instance of StoreServiceChargeUpdatedEvent', function() { + // uncomment below and update the code to test StoreServiceChargeUpdatedEvent + //var instane = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreServiceChargeUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property ServiceCharge (base name: "ServiceCharge")', function() { + // uncomment below and update the code to test the property ServiceCharge + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreServiceChargeUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreStatistics.spec.js b/test/model/StoreStatistics.spec.js new file mode 100644 index 00000000..bf733d2c --- /dev/null +++ b/test/model/StoreStatistics.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreStatistics(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreStatistics', function() { + it('should create an instance of StoreStatistics', function() { + // uncomment below and update the code to test StoreStatistics + //var instane = new Flipdish.StoreStatistics(); + //expect(instance).to.be.a(Flipdish.StoreStatistics); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property Data (base name: "Data")', function() { + // uncomment below and update the code to test the property Data + //var instance = new Flipdish.StoreStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreSummary.spec.js b/test/model/StoreSummary.spec.js new file mode 100644 index 00000000..02e84252 --- /dev/null +++ b/test/model/StoreSummary.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreSummary', function() { + it('should create an instance of StoreSummary', function() { + // uncomment below and update the code to test StoreSummary + //var instane = new Flipdish.StoreSummary(); + //expect(instance).to.be.a(Flipdish.StoreSummary); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property MenuId (base name: "MenuId")', function() { + // uncomment below and update the code to test the property MenuId + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Metadata (base name: "Metadata")', function() { + // uncomment below and update the code to test the property Metadata + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Coordinates (base name: "Coordinates")', function() { + // uncomment below and update the code to test the property Coordinates + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreTimezone (base name: "StoreTimezone")', function() { + // uncomment below and update the code to test the property StoreTimezone + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIanaTimezone (base name: "StoreIanaTimezone")', function() { + // uncomment below and update the code to test the property StoreIanaTimezone + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property TaxId (base name: "TaxId")', function() { + // uncomment below and update the code to test the property TaxId + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + it('should have the property PrettyAddress (base name: "PrettyAddress")', function() { + // uncomment below and update the code to test the property PrettyAddress + //var instance = new Flipdish.StoreSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreTipUpdatedEvent.spec.js b/test/model/StoreTipUpdatedEvent.spec.js new file mode 100644 index 00000000..95e4b05e --- /dev/null +++ b/test/model/StoreTipUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreTipUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreTipUpdatedEvent', function() { + it('should create an instance of StoreTipUpdatedEvent', function() { + // uncomment below and update the code to test StoreTipUpdatedEvent + //var instane = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreTipUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Config (base name: "Config")', function() { + // uncomment below and update the code to test the property Config + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreTipUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreUnarchivedEvent.spec.js b/test/model/StoreUnarchivedEvent.spec.js new file mode 100644 index 00000000..56b0628a --- /dev/null +++ b/test/model/StoreUnarchivedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreUnarchivedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreUnarchivedEvent', function() { + it('should create an instance of StoreUnarchivedEvent', function() { + // uncomment below and update the code to test StoreUnarchivedEvent + //var instane = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be.a(Flipdish.StoreUnarchivedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreUnarchivedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreUnpublishedEvent.spec.js b/test/model/StoreUnpublishedEvent.spec.js new file mode 100644 index 00000000..d9ff9e2f --- /dev/null +++ b/test/model/StoreUnpublishedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreUnpublishedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreUnpublishedEvent', function() { + it('should create an instance of StoreUnpublishedEvent', function() { + // uncomment below and update the code to test StoreUnpublishedEvent + //var instane = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be.a(Flipdish.StoreUnpublishedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreUnpublishedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreUpdatedEvent.spec.js b/test/model/StoreUpdatedEvent.spec.js new file mode 100644 index 00000000..8ab295f5 --- /dev/null +++ b/test/model/StoreUpdatedEvent.spec.js @@ -0,0 +1,131 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreUpdatedEvent', function() { + it('should create an instance of StoreUpdatedEvent', function() { + // uncomment below and update the code to test StoreUpdatedEvent + //var instane = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.StoreUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Store (base name: "Store")', function() { + // uncomment below and update the code to test the property Store + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.StoreUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StoreValidationConfig.spec.js b/test/model/StoreValidationConfig.spec.js new file mode 100644 index 00000000..61ffa050 --- /dev/null +++ b/test/model/StoreValidationConfig.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StoreValidationConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StoreValidationConfig', function() { + it('should create an instance of StoreValidationConfig', function() { + // uncomment below and update the code to test StoreValidationConfig + //var instane = new Flipdish.StoreValidationConfig(); + //expect(instance).to.be.a(Flipdish.StoreValidationConfig); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StoreValidationConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.StoreValidationConfig(); + //expect(instance).to.be(); + }); + + it('should have the property IsValid (base name: "IsValid")', function() { + // uncomment below and update the code to test the property IsValid + //var instance = new Flipdish.StoreValidationConfig(); + //expect(instance).to.be(); + }); + + it('should have the property StoreGroupId (base name: "StoreGroupId")', function() { + // uncomment below and update the code to test the property StoreGroupId + //var instance = new Flipdish.StoreValidationConfig(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigValidation (base name: "ConfigValidation")', function() { + // uncomment below and update the code to test the property ConfigValidation + //var instance = new Flipdish.StoreValidationConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Stream.spec.js b/test/model/Stream.spec.js new file mode 100644 index 00000000..803a2153 --- /dev/null +++ b/test/model/Stream.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Stream(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Stream', function() { + it('should create an instance of Stream', function() { + // uncomment below and update the code to test Stream + //var instane = new Flipdish.Stream(); + //expect(instance).to.be.a(Flipdish.Stream); + }); + + it('should have the property CanRead (base name: "CanRead")', function() { + // uncomment below and update the code to test the property CanRead + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + it('should have the property CanSeek (base name: "CanSeek")', function() { + // uncomment below and update the code to test the property CanSeek + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + it('should have the property CanTimeout (base name: "CanTimeout")', function() { + // uncomment below and update the code to test the property CanTimeout + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + it('should have the property CanWrite (base name: "CanWrite")', function() { + // uncomment below and update the code to test the property CanWrite + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + it('should have the property Length (base name: "Length")', function() { + // uncomment below and update the code to test the property Length + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + it('should have the property ReadTimeout (base name: "ReadTimeout")', function() { + // uncomment below and update the code to test the property ReadTimeout + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + it('should have the property WriteTimeout (base name: "WriteTimeout")', function() { + // uncomment below and update the code to test the property WriteTimeout + //var instance = new Flipdish.Stream(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StripeAccountLinkRequest.spec.js b/test/model/StripeAccountLinkRequest.spec.js new file mode 100644 index 00000000..9adc5540 --- /dev/null +++ b/test/model/StripeAccountLinkRequest.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StripeAccountLinkRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StripeAccountLinkRequest', function() { + it('should create an instance of StripeAccountLinkRequest', function() { + // uncomment below and update the code to test StripeAccountLinkRequest + //var instane = new Flipdish.StripeAccountLinkRequest(); + //expect(instance).to.be.a(Flipdish.StripeAccountLinkRequest); + }); + + it('should have the property StripeId (base name: "StripeId")', function() { + // uncomment below and update the code to test the property StripeId + //var instance = new Flipdish.StripeAccountLinkRequest(); + //expect(instance).to.be(); + }); + + it('should have the property ReturnUrl (base name: "ReturnUrl")', function() { + // uncomment below and update the code to test the property ReturnUrl + //var instance = new Flipdish.StripeAccountLinkRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Collect (base name: "Collect")', function() { + // uncomment below and update the code to test the property Collect + //var instance = new Flipdish.StripeAccountLinkRequest(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.StripeAccountLinkRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StripeConnectedAccount.spec.js b/test/model/StripeConnectedAccount.spec.js new file mode 100644 index 00000000..7e5d88d4 --- /dev/null +++ b/test/model/StripeConnectedAccount.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StripeConnectedAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StripeConnectedAccount', function() { + it('should create an instance of StripeConnectedAccount', function() { + // uncomment below and update the code to test StripeConnectedAccount + //var instane = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be.a(Flipdish.StripeConnectedAccount); + }); + + it('should have the property FlipdishConnectedAccountId (base name: "FlipdishConnectedAccountId")', function() { + // uncomment below and update the code to test the property FlipdishConnectedAccountId + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property StripeId (base name: "StripeId")', function() { + // uncomment below and update the code to test the property StripeId + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property WhitelabelConfigId (base name: "WhitelabelConfigId")', function() { + // uncomment below and update the code to test the property WhitelabelConfigId + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property CardPaymentsStatus (base name: "CardPaymentsStatus")', function() { + // uncomment below and update the code to test the property CardPaymentsStatus + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property TransfersStatus (base name: "TransfersStatus")', function() { + // uncomment below and update the code to test the property TransfersStatus + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property AccountStatus (base name: "AccountStatus")', function() { + // uncomment below and update the code to test the property AccountStatus + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutsEnabled (base name: "PayoutsEnabled")', function() { + // uncomment below and update the code to test the property PayoutsEnabled + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentsEnabled (base name: "PaymentsEnabled")', function() { + // uncomment below and update the code to test the property PaymentsEnabled + //var instance = new Flipdish.StripeConnectedAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StripeConnectedAccountInfo.spec.js b/test/model/StripeConnectedAccountInfo.spec.js new file mode 100644 index 00000000..c1ab0468 --- /dev/null +++ b/test/model/StripeConnectedAccountInfo.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StripeConnectedAccountInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StripeConnectedAccountInfo', function() { + it('should create an instance of StripeConnectedAccountInfo', function() { + // uncomment below and update the code to test StripeConnectedAccountInfo + //var instane = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be.a(Flipdish.StripeConnectedAccountInfo); + }); + + it('should have the property AccountStatus (base name: "AccountStatus")', function() { + // uncomment below and update the code to test the property AccountStatus + //var instance = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be(); + }); + + it('should have the property StripeId (base name: "StripeId")', function() { + // uncomment below and update the code to test the property StripeId + //var instance = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be(); + }); + + it('should have the property CardPaymentStatus (base name: "CardPaymentStatus")', function() { + // uncomment below and update the code to test the property CardPaymentStatus + //var instance = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutScheduleInterval (base name: "PayoutScheduleInterval")', function() { + // uncomment below and update the code to test the property PayoutScheduleInterval + //var instance = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutsEnabled (base name: "PayoutsEnabled")', function() { + // uncomment below and update the code to test the property PayoutsEnabled + //var instance = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be(); + }); + + it('should have the property PayoutsPaused (base name: "PayoutsPaused")', function() { + // uncomment below and update the code to test the property PayoutsPaused + //var instance = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentsEnabled (base name: "PaymentsEnabled")', function() { + // uncomment below and update the code to test the property PaymentsEnabled + //var instance = new Flipdish.StripeConnectedAccountInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StripeCustomConnectedAccount.spec.js b/test/model/StripeCustomConnectedAccount.spec.js new file mode 100644 index 00000000..2dd147c7 --- /dev/null +++ b/test/model/StripeCustomConnectedAccount.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StripeCustomConnectedAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StripeCustomConnectedAccount', function() { + it('should create an instance of StripeCustomConnectedAccount', function() { + // uncomment below and update the code to test StripeCustomConnectedAccount + //var instane = new Flipdish.StripeCustomConnectedAccount(); + //expect(instance).to.be.a(Flipdish.StripeCustomConnectedAccount); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.StripeCustomConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property StripeId (base name: "StripeId")', function() { + // uncomment below and update the code to test the property StripeId + //var instance = new Flipdish.StripeCustomConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property CardPaymentsStatus (base name: "CardPaymentsStatus")', function() { + // uncomment below and update the code to test the property CardPaymentsStatus + //var instance = new Flipdish.StripeCustomConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property TransfersStatus (base name: "TransfersStatus")', function() { + // uncomment below and update the code to test the property TransfersStatus + //var instance = new Flipdish.StripeCustomConnectedAccount(); + //expect(instance).to.be(); + }); + + it('should have the property AccountStatus (base name: "AccountStatus")', function() { + // uncomment below and update the code to test the property AccountStatus + //var instance = new Flipdish.StripeCustomConnectedAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StripeTerminalConnectionToken.spec.js b/test/model/StripeTerminalConnectionToken.spec.js new file mode 100644 index 00000000..1d787ed0 --- /dev/null +++ b/test/model/StripeTerminalConnectionToken.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StripeTerminalConnectionToken(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StripeTerminalConnectionToken', function() { + it('should create an instance of StripeTerminalConnectionToken', function() { + // uncomment below and update the code to test StripeTerminalConnectionToken + //var instane = new Flipdish.StripeTerminalConnectionToken(); + //expect(instance).to.be.a(Flipdish.StripeTerminalConnectionToken); + }); + + it('should have the property Token (base name: "Token")', function() { + // uncomment below and update the code to test the property Token + //var instance = new Flipdish.StripeTerminalConnectionToken(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StripeTerminalLocation.spec.js b/test/model/StripeTerminalLocation.spec.js new file mode 100644 index 00000000..accdc968 --- /dev/null +++ b/test/model/StripeTerminalLocation.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StripeTerminalLocation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StripeTerminalLocation', function() { + it('should create an instance of StripeTerminalLocation', function() { + // uncomment below and update the code to test StripeTerminalLocation + //var instane = new Flipdish.StripeTerminalLocation(); + //expect(instance).to.be.a(Flipdish.StripeTerminalLocation); + }); + + it('should have the property Location (base name: "Location")', function() { + // uncomment below and update the code to test the property Location + //var instance = new Flipdish.StripeTerminalLocation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StuartSettings.spec.js b/test/model/StuartSettings.spec.js new file mode 100644 index 00000000..b4da0fd1 --- /dev/null +++ b/test/model/StuartSettings.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StuartSettings(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StuartSettings', function() { + it('should create an instance of StuartSettings', function() { + // uncomment below and update the code to test StuartSettings + //var instane = new Flipdish.StuartSettings(); + //expect(instance).to.be.a(Flipdish.StuartSettings); + }); + + it('should have the property ClientId (base name: "ClientId")', function() { + // uncomment below and update the code to test the property ClientId + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property ClientSecret (base name: "ClientSecret")', function() { + // uncomment below and update the code to test the property ClientSecret + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookUrlBasicAuthentication (base name: "WebhookUrlBasicAuthentication")', function() { + // uncomment below and update the code to test the property WebhookUrlBasicAuthentication + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property OverrideWebhookUrl (base name: "OverrideWebhookUrl")', function() { + // uncomment below and update the code to test the property OverrideWebhookUrl + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property MinutesToPickupBeforeThanDeliveryTime (base name: "MinutesToPickupBeforeThanDeliveryTime")', function() { + // uncomment below and update the code to test the property MinutesToPickupBeforeThanDeliveryTime + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property PackageType (base name: "PackageType")', function() { + // uncomment below and update the code to test the property PackageType + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property TransportType (base name: "TransportType")', function() { + // uncomment below and update the code to test the property TransportType + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property CancelOrderIfStuartCancelDelivery (base name: "CancelOrderIfStuartCancelDelivery")', function() { + // uncomment below and update the code to test the property CancelOrderIfStuartCancelDelivery + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + it('should have the property TransportPrices (base name: "TransportPrices")', function() { + // uncomment below and update the code to test the property TransportPrices + //var instance = new Flipdish.StuartSettings(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/StuartSettingsTransportPrices.spec.js b/test/model/StuartSettingsTransportPrices.spec.js new file mode 100644 index 00000000..7ecb457e --- /dev/null +++ b/test/model/StuartSettingsTransportPrices.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.StuartSettingsTransportPrices(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StuartSettingsTransportPrices', function() { + it('should create an instance of StuartSettingsTransportPrices', function() { + // uncomment below and update the code to test StuartSettingsTransportPrices + //var instane = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be.a(Flipdish.StuartSettingsTransportPrices); + }); + + it('should have the property Bike (base name: "Bike")', function() { + // uncomment below and update the code to test the property Bike + //var instance = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be(); + }); + + it('should have the property Cargobike (base name: "Cargobike")', function() { + // uncomment below and update the code to test the property Cargobike + //var instance = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be(); + }); + + it('should have the property Cargobikexl (base name: "Cargobikexl")', function() { + // uncomment below and update the code to test the property Cargobikexl + //var instance = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be(); + }); + + it('should have the property Motorbike (base name: "Motorbike")', function() { + // uncomment below and update the code to test the property Motorbike + //var instance = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be(); + }); + + it('should have the property Motorbikexl (base name: "Motorbikexl")', function() { + // uncomment below and update the code to test the property Motorbikexl + //var instance = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be(); + }); + + it('should have the property Car (base name: "Car")', function() { + // uncomment below and update the code to test the property Car + //var instance = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be(); + }); + + it('should have the property Van (base name: "Van")', function() { + // uncomment below and update the code to test the property Van + //var instance = new Flipdish.StuartSettingsTransportPrices(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Subscription.spec.js b/test/model/Subscription.spec.js new file mode 100644 index 00000000..86f0e0b2 --- /dev/null +++ b/test/model/Subscription.spec.js @@ -0,0 +1,143 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Subscription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Subscription', function() { + it('should create an instance of Subscription', function() { + // uncomment below and update the code to test Subscription + //var instane = new Flipdish.Subscription(); + //expect(instance).to.be.a(Flipdish.Subscription); + }); + + it('should have the property Products (base name: "Products")', function() { + // uncomment below and update the code to test the property Products + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property NextInvoiceAmount (base name: "NextInvoiceAmount")', function() { + // uncomment below and update the code to test the property NextInvoiceAmount + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property NextInvoiceBillingDate (base name: "NextInvoiceBillingDate")', function() { + // uncomment below and update the code to test the property NextInvoiceBillingDate + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property UpcomingInvoiceItems (base name: "UpcomingInvoiceItems")', function() { + // uncomment below and update the code to test the property UpcomingInvoiceItems + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property UpcomingInvoiceDiscounts (base name: "UpcomingInvoiceDiscounts")', function() { + // uncomment below and update the code to test the property UpcomingInvoiceDiscounts + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property UpcomingInvoice (base name: "UpcomingInvoice")', function() { + // uncomment below and update the code to test the property UpcomingInvoice + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property SubscriptionId (base name: "SubscriptionId")', function() { + // uncomment below and update the code to test the property SubscriptionId + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property DefaultPaymentDescription (base name: "DefaultPaymentDescription")', function() { + // uncomment below and update the code to test the property DefaultPaymentDescription + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property CancellationRequestDate (base name: "CancellationRequestDate")', function() { + // uncomment below and update the code to test the property CancellationRequestDate + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + it('should have the property CancellationDate (base name: "CancellationDate")', function() { + // uncomment below and update the code to test the property CancellationDate + //var instance = new Flipdish.Subscription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SubscriptionInvoice.spec.js b/test/model/SubscriptionInvoice.spec.js new file mode 100644 index 00000000..3c4434d8 --- /dev/null +++ b/test/model/SubscriptionInvoice.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SubscriptionInvoice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SubscriptionInvoice', function() { + it('should create an instance of SubscriptionInvoice', function() { + // uncomment below and update the code to test SubscriptionInvoice + //var instane = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be.a(Flipdish.SubscriptionInvoice); + }); + + it('should have the property InvoiceId (base name: "InvoiceId")', function() { + // uncomment below and update the code to test the property InvoiceId + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property _Number (base name: "Number")', function() { + // uncomment below and update the code to test the property _Number + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Total (base name: "Total")', function() { + // uncomment below and update the code to test the property Total + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property SubscriptionId (base name: "SubscriptionId")', function() { + // uncomment below and update the code to test the property SubscriptionId + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property PaidAt (base name: "PaidAt")', function() { + // uncomment below and update the code to test the property PaidAt + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property FinalisedAt (base name: "FinalisedAt")', function() { + // uncomment below and update the code to test the property FinalisedAt + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property PdfLink (base name: "PdfLink")', function() { + // uncomment below and update the code to test the property PdfLink + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property HostedUrl (base name: "HostedUrl")', function() { + // uncomment below and update the code to test the property HostedUrl + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Overdue (base name: "Overdue")', function() { + // uncomment below and update the code to test the property Overdue + //var instance = new Flipdish.SubscriptionInvoice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SubscriptionProduct.spec.js b/test/model/SubscriptionProduct.spec.js new file mode 100644 index 00000000..500f4577 --- /dev/null +++ b/test/model/SubscriptionProduct.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SubscriptionProduct(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SubscriptionProduct', function() { + it('should create an instance of SubscriptionProduct', function() { + // uncomment below and update the code to test SubscriptionProduct + //var instane = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be.a(Flipdish.SubscriptionProduct); + }); + + it('should have the property ProductId (base name: "ProductId")', function() { + // uncomment below and update the code to test the property ProductId + //var instance = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Quantity (base name: "Quantity")', function() { + // uncomment below and update the code to test the property Quantity + //var instance = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be(); + }); + + it('should have the property PricePerUnit (base name: "PricePerUnit")', function() { + // uncomment below and update the code to test the property PricePerUnit + //var instance = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be(); + }); + + it('should have the property PriceTotal (base name: "PriceTotal")', function() { + // uncomment below and update the code to test the property PriceTotal + //var instance = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentFrequency (base name: "PaymentFrequency")', function() { + // uncomment below and update the code to test the property PaymentFrequency + //var instance = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.SubscriptionProduct(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SubscriptionStore.spec.js b/test/model/SubscriptionStore.spec.js new file mode 100644 index 00000000..a48cca23 --- /dev/null +++ b/test/model/SubscriptionStore.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SubscriptionStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SubscriptionStore', function() { + it('should create an instance of SubscriptionStore', function() { + // uncomment below and update the code to test SubscriptionStore + //var instane = new Flipdish.SubscriptionStore(); + //expect(instance).to.be.a(Flipdish.SubscriptionStore); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.SubscriptionStore(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.SubscriptionStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SubscriptionSummary.spec.js b/test/model/SubscriptionSummary.spec.js new file mode 100644 index 00000000..00be2ba9 --- /dev/null +++ b/test/model/SubscriptionSummary.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SubscriptionSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SubscriptionSummary', function() { + it('should create an instance of SubscriptionSummary', function() { + // uncomment below and update the code to test SubscriptionSummary + //var instane = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be.a(Flipdish.SubscriptionSummary); + }); + + it('should have the property NextInvoiceAmount (base name: "NextInvoiceAmount")', function() { + // uncomment below and update the code to test the property NextInvoiceAmount + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property NextInvoiceBillingDate (base name: "NextInvoiceBillingDate")', function() { + // uncomment below and update the code to test the property NextInvoiceBillingDate + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property SubscriptionId (base name: "SubscriptionId")', function() { + // uncomment below and update the code to test the property SubscriptionId + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property DefaultPaymentDescription (base name: "DefaultPaymentDescription")', function() { + // uncomment below and update the code to test the property DefaultPaymentDescription + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property CancellationRequestDate (base name: "CancellationRequestDate")', function() { + // uncomment below and update the code to test the property CancellationRequestDate + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + it('should have the property CancellationDate (base name: "CancellationDate")', function() { + // uncomment below and update the code to test the property CancellationDate + //var instance = new Flipdish.SubscriptionSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SupportedCountry.spec.js b/test/model/SupportedCountry.spec.js new file mode 100644 index 00000000..568268c7 --- /dev/null +++ b/test/model/SupportedCountry.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.SupportedCountry(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SupportedCountry', function() { + it('should create an instance of SupportedCountry', function() { + // uncomment below and update the code to test SupportedCountry + //var instane = new Flipdish.SupportedCountry(); + //expect(instance).to.be.a(Flipdish.SupportedCountry); + }); + + it('should have the property CountryCode (base name: "CountryCode")', function() { + // uncomment below and update the code to test the property CountryCode + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneCode (base name: "PhoneCode")', function() { + // uncomment below and update the code to test the property PhoneCode + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property LanguageCode (base name: "LanguageCode")', function() { + // uncomment below and update the code to test the property LanguageCode + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property LanguageName (base name: "LanguageName")', function() { + // uncomment below and update the code to test the property LanguageName + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property OtpNumber (base name: "OtpNumber")', function() { + // uncomment below and update the code to test the property OtpNumber + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property SupportNumber (base name: "SupportNumber")', function() { + // uncomment below and update the code to test the property SupportNumber + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property AddressLayout (base name: "AddressLayout")', function() { + // uncomment below and update the code to test the property AddressLayout + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property PostCodeType (base name: "PostCodeType")', function() { + // uncomment below and update the code to test the property PostCodeType + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + it('should have the property SupportRegion (base name: "SupportRegion")', function() { + // uncomment below and update the code to test the property SupportRegion + //var instance = new Flipdish.SupportedCountry(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TaxItem.spec.js b/test/model/TaxItem.spec.js new file mode 100644 index 00000000..6559421c --- /dev/null +++ b/test/model/TaxItem.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TaxItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TaxItem', function() { + it('should create an instance of TaxItem', function() { + // uncomment below and update the code to test TaxItem + //var instane = new Flipdish.TaxItem(); + //expect(instance).to.be.a(Flipdish.TaxItem); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.TaxItem(); + //expect(instance).to.be(); + }); + + it('should have the property Rate (base name: "Rate")', function() { + // uncomment below and update the code to test the property Rate + //var instance = new Flipdish.TaxItem(); + //expect(instance).to.be(); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.TaxItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TaxRate.spec.js b/test/model/TaxRate.spec.js new file mode 100644 index 00000000..53295b62 --- /dev/null +++ b/test/model/TaxRate.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TaxRate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TaxRate', function() { + it('should create an instance of TaxRate', function() { + // uncomment below and update the code to test TaxRate + //var instane = new Flipdish.TaxRate(); + //expect(instance).to.be.a(Flipdish.TaxRate); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.TaxRate(); + //expect(instance).to.be(); + }); + + it('should have the property Percentage (base name: "Percentage")', function() { + // uncomment below and update the code to test the property Percentage + //var instance = new Flipdish.TaxRate(); + //expect(instance).to.be(); + }); + + it('should have the property Total (base name: "Total")', function() { + // uncomment below and update the code to test the property Total + //var instance = new Flipdish.TaxRate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Teammate.spec.js b/test/model/Teammate.spec.js new file mode 100644 index 00000000..254603d3 --- /dev/null +++ b/test/model/Teammate.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Teammate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Teammate', function() { + it('should create an instance of Teammate', function() { + // uncomment below and update the code to test Teammate + //var instane = new Flipdish.Teammate(); + //expect(instance).to.be.a(Flipdish.Teammate); + }); + + it('should have the property TeammateId (base name: "TeammateId")', function() { + // uncomment below and update the code to test the property TeammateId + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property LastActivity (base name: "LastActivity")', function() { + // uncomment below and update the code to test the property LastActivity + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property InvitationStatus (base name: "InvitationStatus")', function() { + // uncomment below and update the code to test the property InvitationStatus + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // uncomment below and update the code to test the property AppAccessLevel + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property HasAccessToAllStores (base name: "HasAccessToAllStores")', function() { + // uncomment below and update the code to test the property HasAccessToAllStores + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + it('should have the property PropertyIds (base name: "PropertyIds")', function() { + // uncomment below and update the code to test the property PropertyIds + //var instance = new Flipdish.Teammate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TeammateBase.spec.js b/test/model/TeammateBase.spec.js new file mode 100644 index 00000000..67fe18cc --- /dev/null +++ b/test/model/TeammateBase.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TeammateBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TeammateBase', function() { + it('should create an instance of TeammateBase', function() { + // uncomment below and update the code to test TeammateBase + //var instane = new Flipdish.TeammateBase(); + //expect(instance).to.be.a(Flipdish.TeammateBase); + }); + + it('should have the property AppAccessLevel (base name: "AppAccessLevel")', function() { + // uncomment below and update the code to test the property AppAccessLevel + //var instance = new Flipdish.TeammateBase(); + //expect(instance).to.be(); + }); + + it('should have the property HasAccessToAllStores (base name: "HasAccessToAllStores")', function() { + // uncomment below and update the code to test the property HasAccessToAllStores + //var instance = new Flipdish.TeammateBase(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.TeammateBase(); + //expect(instance).to.be(); + }); + + it('should have the property PropertyIds (base name: "PropertyIds")', function() { + // uncomment below and update the code to test the property PropertyIds + //var instance = new Flipdish.TeammateBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TeammateDeletedEvent.spec.js b/test/model/TeammateDeletedEvent.spec.js new file mode 100644 index 00000000..06a6a0a8 --- /dev/null +++ b/test/model/TeammateDeletedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TeammateDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TeammateDeletedEvent', function() { + it('should create an instance of TeammateDeletedEvent', function() { + // uncomment below and update the code to test TeammateDeletedEvent + //var instane = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be.a(Flipdish.TeammateDeletedEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // uncomment below and update the code to test the property Teammate + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.TeammateDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TeammateInviteAcceptedEvent.spec.js b/test/model/TeammateInviteAcceptedEvent.spec.js new file mode 100644 index 00000000..3dff4202 --- /dev/null +++ b/test/model/TeammateInviteAcceptedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TeammateInviteAcceptedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TeammateInviteAcceptedEvent', function() { + it('should create an instance of TeammateInviteAcceptedEvent', function() { + // uncomment below and update the code to test TeammateInviteAcceptedEvent + //var instane = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be.a(Flipdish.TeammateInviteAcceptedEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // uncomment below and update the code to test the property Teammate + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.TeammateInviteAcceptedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TeammateInviteSentEvent.spec.js b/test/model/TeammateInviteSentEvent.spec.js new file mode 100644 index 00000000..d899b927 --- /dev/null +++ b/test/model/TeammateInviteSentEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TeammateInviteSentEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TeammateInviteSentEvent', function() { + it('should create an instance of TeammateInviteSentEvent', function() { + // uncomment below and update the code to test TeammateInviteSentEvent + //var instane = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be.a(Flipdish.TeammateInviteSentEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // uncomment below and update the code to test the property Teammate + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.TeammateInviteSentEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TeammateUpdatedEvent.spec.js b/test/model/TeammateUpdatedEvent.spec.js new file mode 100644 index 00000000..2e82e2cd --- /dev/null +++ b/test/model/TeammateUpdatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TeammateUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TeammateUpdatedEvent', function() { + it('should create an instance of TeammateUpdatedEvent', function() { + // uncomment below and update the code to test TeammateUpdatedEvent + //var instane = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.TeammateUpdatedEvent); + }); + + it('should have the property Teammate (base name: "Teammate")', function() { + // uncomment below and update the code to test the property Teammate + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.TeammateUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TelemetrySeriesProperty.spec.js b/test/model/TelemetrySeriesProperty.spec.js new file mode 100644 index 00000000..177203b4 --- /dev/null +++ b/test/model/TelemetrySeriesProperty.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TelemetrySeriesProperty(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TelemetrySeriesProperty', function() { + it('should create an instance of TelemetrySeriesProperty', function() { + // uncomment below and update the code to test TelemetrySeriesProperty + //var instane = new Flipdish.TelemetrySeriesProperty(); + //expect(instance).to.be.a(Flipdish.TelemetrySeriesProperty); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.TelemetrySeriesProperty(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.TelemetrySeriesProperty(); + //expect(instance).to.be(); + }); + + it('should have the property IntValues (base name: "IntValues")', function() { + // uncomment below and update the code to test the property IntValues + //var instance = new Flipdish.TelemetrySeriesProperty(); + //expect(instance).to.be(); + }); + + it('should have the property StringValues (base name: "StringValues")', function() { + // uncomment below and update the code to test the property StringValues + //var instance = new Flipdish.TelemetrySeriesProperty(); + //expect(instance).to.be(); + }); + + it('should have the property DoubleValues (base name: "DoubleValues")', function() { + // uncomment below and update the code to test the property DoubleValues + //var instance = new Flipdish.TelemetrySeriesProperty(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TelemetrySeriesQueryParameters.spec.js b/test/model/TelemetrySeriesQueryParameters.spec.js new file mode 100644 index 00000000..eef0fec9 --- /dev/null +++ b/test/model/TelemetrySeriesQueryParameters.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TelemetrySeriesQueryParameters(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TelemetrySeriesQueryParameters', function() { + it('should create an instance of TelemetrySeriesQueryParameters', function() { + // uncomment below and update the code to test TelemetrySeriesQueryParameters + //var instane = new Flipdish.TelemetrySeriesQueryParameters(); + //expect(instance).to.be.a(Flipdish.TelemetrySeriesQueryParameters); + }); + + it('should have the property KioskId (base name: "KioskId")', function() { + // uncomment below and update the code to test the property KioskId + //var instance = new Flipdish.TelemetrySeriesQueryParameters(); + //expect(instance).to.be(); + }); + + it('should have the property Variables (base name: "Variables")', function() { + // uncomment below and update the code to test the property Variables + //var instance = new Flipdish.TelemetrySeriesQueryParameters(); + //expect(instance).to.be(); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // uncomment below and update the code to test the property StartDate + //var instance = new Flipdish.TelemetrySeriesQueryParameters(); + //expect(instance).to.be(); + }); + + it('should have the property EndDate (base name: "EndDate")', function() { + // uncomment below and update the code to test the property EndDate + //var instance = new Flipdish.TelemetrySeriesQueryParameters(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TelemetrySeriesResult.spec.js b/test/model/TelemetrySeriesResult.spec.js new file mode 100644 index 00000000..61a6f5e6 --- /dev/null +++ b/test/model/TelemetrySeriesResult.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TelemetrySeriesResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TelemetrySeriesResult', function() { + it('should create an instance of TelemetrySeriesResult', function() { + // uncomment below and update the code to test TelemetrySeriesResult + //var instane = new Flipdish.TelemetrySeriesResult(); + //expect(instance).to.be.a(Flipdish.TelemetrySeriesResult); + }); + + it('should have the property Timestamps (base name: "Timestamps")', function() { + // uncomment below and update the code to test the property Timestamps + //var instance = new Flipdish.TelemetrySeriesResult(); + //expect(instance).to.be(); + }); + + it('should have the property Properties (base name: "Properties")', function() { + // uncomment below and update the code to test the property Properties + //var instance = new Flipdish.TelemetrySeriesResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TelephonyConfig.spec.js b/test/model/TelephonyConfig.spec.js new file mode 100644 index 00000000..cb09bcfc --- /dev/null +++ b/test/model/TelephonyConfig.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TelephonyConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TelephonyConfig', function() { + it('should create an instance of TelephonyConfig', function() { + // uncomment below and update the code to test TelephonyConfig + //var instane = new Flipdish.TelephonyConfig(); + //expect(instance).to.be.a(Flipdish.TelephonyConfig); + }); + + it('should have the property TelephonyConfigId (base name: "TelephonyConfigId")', function() { + // uncomment below and update the code to test the property TelephonyConfigId + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property ApmEnabled (base name: "ApmEnabled")', function() { + // uncomment below and update the code to test the property ApmEnabled + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property ConsentEnabled (base name: "ConsentEnabled")', function() { + // uncomment below and update the code to test the property ConsentEnabled + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property SendAppLinkSms (base name: "SendAppLinkSms")', function() { + // uncomment below and update the code to test the property SendAppLinkSms + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property UseCustomAppLinkSmsMessage (base name: "UseCustomAppLinkSmsMessage")', function() { + // uncomment below and update the code to test the property UseCustomAppLinkSmsMessage + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property UseCustomVoiceMessage (base name: "UseCustomVoiceMessage")', function() { + // uncomment below and update the code to test the property UseCustomVoiceMessage + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property AppLinkSmsMessage (base name: "AppLinkSmsMessage")', function() { + // uncomment below and update the code to test the property AppLinkSmsMessage + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + it('should have the property ResendApmMessageAfterDays (base name: "ResendApmMessageAfterDays")', function() { + // uncomment below and update the code to test the property ResendApmMessageAfterDays + //var instance = new Flipdish.TelephonyConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TelephonyConfigUpdatedEvent.spec.js b/test/model/TelephonyConfigUpdatedEvent.spec.js new file mode 100644 index 00000000..39909432 --- /dev/null +++ b/test/model/TelephonyConfigUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TelephonyConfigUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TelephonyConfigUpdatedEvent', function() { + it('should create an instance of TelephonyConfigUpdatedEvent', function() { + // uncomment below and update the code to test TelephonyConfigUpdatedEvent + //var instane = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.TelephonyConfigUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property TelephonyConfig (base name: "TelephonyConfig")', function() { + // uncomment below and update the code to test the property TelephonyConfig + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.TelephonyConfigUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ThirdPartyFeesDetails.spec.js b/test/model/ThirdPartyFeesDetails.spec.js new file mode 100644 index 00000000..1fb1605e --- /dev/null +++ b/test/model/ThirdPartyFeesDetails.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ThirdPartyFeesDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ThirdPartyFeesDetails', function() { + it('should create an instance of ThirdPartyFeesDetails', function() { + // uncomment below and update the code to test ThirdPartyFeesDetails + //var instane = new Flipdish.ThirdPartyFeesDetails(); + //expect(instance).to.be.a(Flipdish.ThirdPartyFeesDetails); + }); + + it('should have the property DeliveryIntegrationFee (base name: "DeliveryIntegrationFee")', function() { + // uncomment below and update the code to test the property DeliveryIntegrationFee + //var instance = new Flipdish.ThirdPartyFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryTipFee (base name: "DeliveryTipFee")', function() { + // uncomment below and update the code to test the property DeliveryTipFee + //var instance = new Flipdish.ThirdPartyFeesDetails(); + //expect(instance).to.be(); + }); + + it('should have the property TotalThirdPartyFees (base name: "TotalThirdPartyFees")', function() { + // uncomment below and update the code to test the property TotalThirdPartyFees + //var instance = new Flipdish.ThirdPartyFeesDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TipConfiguration.spec.js b/test/model/TipConfiguration.spec.js new file mode 100644 index 00000000..bf1d3cb0 --- /dev/null +++ b/test/model/TipConfiguration.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.TipConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TipConfiguration', function() { + it('should create an instance of TipConfiguration', function() { + // uncomment below and update the code to test TipConfiguration + //var instane = new Flipdish.TipConfiguration(); + //expect(instance).to.be.a(Flipdish.TipConfiguration); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.TipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.TipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AllowCustomTips (base name: "AllowCustomTips")', function() { + // uncomment below and update the code to test the property AllowCustomTips + //var instance = new Flipdish.TipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AllowRoundUp (base name: "AllowRoundUp")', function() { + // uncomment below and update the code to test the property AllowRoundUp + //var instance = new Flipdish.TipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AllowEmojis (base name: "AllowEmojis")', function() { + // uncomment below and update the code to test the property AllowEmojis + //var instance = new Flipdish.TipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Percentages (base name: "Percentages")', function() { + // uncomment below and update the code to test the property Percentages + //var instance = new Flipdish.TipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property DefaultPercentage (base name: "DefaultPercentage")', function() { + // uncomment below and update the code to test the property DefaultPercentage + //var instance = new Flipdish.TipConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UnRegisterCardReaderRequest.spec.js b/test/model/UnRegisterCardReaderRequest.spec.js new file mode 100644 index 00000000..2a4846c3 --- /dev/null +++ b/test/model/UnRegisterCardReaderRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UnRegisterCardReaderRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UnRegisterCardReaderRequest', function() { + it('should create an instance of UnRegisterCardReaderRequest', function() { + // uncomment below and update the code to test UnRegisterCardReaderRequest + //var instane = new Flipdish.UnRegisterCardReaderRequest(); + //expect(instance).to.be.a(Flipdish.UnRegisterCardReaderRequest); + }); + + it('should have the property ReaderId (base name: "ReaderId")', function() { + // uncomment below and update the code to test the property ReaderId + //var instance = new Flipdish.UnRegisterCardReaderRequest(); + //expect(instance).to.be(); + }); + + it('should have the property KioskDeviceId (base name: "KioskDeviceId")', function() { + // uncomment below and update the code to test the property KioskDeviceId + //var instance = new Flipdish.UnRegisterCardReaderRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpcomingInvoice.spec.js b/test/model/UpcomingInvoice.spec.js new file mode 100644 index 00000000..820a7b7c --- /dev/null +++ b/test/model/UpcomingInvoice.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpcomingInvoice(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpcomingInvoice', function() { + it('should create an instance of UpcomingInvoice', function() { + // uncomment below and update the code to test UpcomingInvoice + //var instane = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be.a(Flipdish.UpcomingInvoice); + }); + + it('should have the property Amount (base name: "Amount")', function() { + // uncomment below and update the code to test the property Amount + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property NextBillingDate (base name: "NextBillingDate")', function() { + // uncomment below and update the code to test the property NextBillingDate + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Subtotal (base name: "Subtotal")', function() { + // uncomment below and update the code to test the property Subtotal + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property TotalExcludingTax (base name: "TotalExcludingTax")', function() { + // uncomment below and update the code to test the property TotalExcludingTax + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property AmountDue (base name: "AmountDue")', function() { + // uncomment below and update the code to test the property AmountDue + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Tax (base name: "Tax")', function() { + // uncomment below and update the code to test the property Tax + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Items (base name: "Items")', function() { + // uncomment below and update the code to test the property Items + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + it('should have the property Discounts (base name: "Discounts")', function() { + // uncomment below and update the code to test the property Discounts + //var instance = new Flipdish.UpcomingInvoice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAppStoreApp.spec.js b/test/model/UpdateAppStoreApp.spec.js new file mode 100644 index 00000000..9d6d81aa --- /dev/null +++ b/test/model/UpdateAppStoreApp.spec.js @@ -0,0 +1,167 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateAppStoreApp(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAppStoreApp', function() { + it('should create an instance of UpdateAppStoreApp', function() { + // uncomment below and update the code to test UpdateAppStoreApp + //var instane = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be.a(Flipdish.UpdateAppStoreApp); + }); + + it('should have the property Details (base name: "Details")', function() { + // uncomment below and update the code to test the property Details + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigurationType (base name: "ConfigurationType")', function() { + // uncomment below and update the code to test the property ConfigurationType + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property FieldGroups (base name: "FieldGroups")', function() { + // uncomment below and update the code to test the property FieldGroups + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property SetupInstructions (base name: "SetupInstructions")', function() { + // uncomment below and update the code to test the property SetupInstructions + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalSetupLink (base name: "ExternalSetupLink")', function() { + // uncomment below and update the code to test the property ExternalSetupLink + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property TeammateAppAccessLevel (base name: "TeammateAppAccessLevel")', function() { + // uncomment below and update the code to test the property TeammateAppAccessLevel + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property PermissionsType (base name: "PermissionsType")', function() { + // uncomment below and update the code to test the property PermissionsType + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Support (base name: "Support")', function() { + // uncomment below and update the code to test the property Support + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionActionUrl (base name: "ExternalFunctionActionUrl")', function() { + // uncomment below and update the code to test the property ExternalFunctionActionUrl + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property ExternalFunctionSignatureKey (base name: "ExternalFunctionSignatureKey")', function() { + // uncomment below and update the code to test the property ExternalFunctionSignatureKey + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property IsPaid (base name: "IsPaid")', function() { + // uncomment below and update the code to test the property IsPaid + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Categories (base name: "Categories")', function() { + // uncomment below and update the code to test the property Categories + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property Countries (base name: "Countries")', function() { + // uncomment below and update the code to test the property Countries + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + it('should have the property DeveloperName (base name: "DeveloperName")', function() { + // uncomment below and update the code to test the property DeveloperName + //var instance = new Flipdish.UpdateAppStoreApp(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAppStoreAppConfiguration.spec.js b/test/model/UpdateAppStoreAppConfiguration.spec.js new file mode 100644 index 00000000..84132640 --- /dev/null +++ b/test/model/UpdateAppStoreAppConfiguration.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateAppStoreAppConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAppStoreAppConfiguration', function() { + it('should create an instance of UpdateAppStoreAppConfiguration', function() { + // uncomment below and update the code to test UpdateAppStoreAppConfiguration + //var instane = new Flipdish.UpdateAppStoreAppConfiguration(); + //expect(instance).to.be.a(Flipdish.UpdateAppStoreAppConfiguration); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.UpdateAppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.UpdateAppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Settings (base name: "Settings")', function() { + // uncomment below and update the code to test the property Settings + //var instance = new Flipdish.UpdateAppStoreAppConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAppStoreAppConfigurationValuesBatch.spec.js b/test/model/UpdateAppStoreAppConfigurationValuesBatch.spec.js new file mode 100644 index 00000000..80d5536d --- /dev/null +++ b/test/model/UpdateAppStoreAppConfigurationValuesBatch.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateAppStoreAppConfigurationValuesBatch(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAppStoreAppConfigurationValuesBatch', function() { + it('should create an instance of UpdateAppStoreAppConfigurationValuesBatch', function() { + // uncomment below and update the code to test UpdateAppStoreAppConfigurationValuesBatch + //var instane = new Flipdish.UpdateAppStoreAppConfigurationValuesBatch(); + //expect(instance).to.be.a(Flipdish.UpdateAppStoreAppConfigurationValuesBatch); + }); + + it('should have the property Settings (base name: "Settings")', function() { + // uncomment below and update the code to test the property Settings + //var instance = new Flipdish.UpdateAppStoreAppConfigurationValuesBatch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAppStoreAppConfigurationWebhookDTO.spec.js b/test/model/UpdateAppStoreAppConfigurationWebhookDTO.spec.js new file mode 100644 index 00000000..4bf98c57 --- /dev/null +++ b/test/model/UpdateAppStoreAppConfigurationWebhookDTO.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateAppStoreAppConfigurationWebhookDTO(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAppStoreAppConfigurationWebhookDTO', function() { + it('should create an instance of UpdateAppStoreAppConfigurationWebhookDTO', function() { + // uncomment below and update the code to test UpdateAppStoreAppConfigurationWebhookDTO + //var instane = new Flipdish.UpdateAppStoreAppConfigurationWebhookDTO(); + //expect(instance).to.be.a(Flipdish.UpdateAppStoreAppConfigurationWebhookDTO); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.UpdateAppStoreAppConfigurationWebhookDTO(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.UpdateAppStoreAppConfigurationWebhookDTO(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.UpdateAppStoreAppConfigurationWebhookDTO(); + //expect(instance).to.be(); + }); + + it('should have the property Settings (base name: "Settings")', function() { + // uncomment below and update the code to test the property Settings + //var instance = new Flipdish.UpdateAppStoreAppConfigurationWebhookDTO(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAppStoreAppExternalProduct.spec.js b/test/model/UpdateAppStoreAppExternalProduct.spec.js new file mode 100644 index 00000000..6351098c --- /dev/null +++ b/test/model/UpdateAppStoreAppExternalProduct.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateAppStoreAppExternalProduct(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAppStoreAppExternalProduct', function() { + it('should create an instance of UpdateAppStoreAppExternalProduct', function() { + // uncomment below and update the code to test UpdateAppStoreAppExternalProduct + //var instane = new Flipdish.UpdateAppStoreAppExternalProduct(); + //expect(instance).to.be.a(Flipdish.UpdateAppStoreAppExternalProduct); + }); + + it('should have the property ExternalProductId (base name: "ExternalProductId")', function() { + // uncomment below and update the code to test the property ExternalProductId + //var instance = new Flipdish.UpdateAppStoreAppExternalProduct(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateCatalogGroupReference.spec.js b/test/model/UpdateCatalogGroupReference.spec.js new file mode 100644 index 00000000..b882b354 --- /dev/null +++ b/test/model/UpdateCatalogGroupReference.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateCatalogGroupReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateCatalogGroupReference', function() { + it('should create an instance of UpdateCatalogGroupReference', function() { + // uncomment below and update the code to test UpdateCatalogGroupReference + //var instane = new Flipdish.UpdateCatalogGroupReference(); + //expect(instance).to.be.a(Flipdish.UpdateCatalogGroupReference); + }); + + it('should have the property CatalogGroupId (base name: "CatalogGroupId")', function() { + // uncomment below and update the code to test the property CatalogGroupId + //var instance = new Flipdish.UpdateCatalogGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.UpdateCatalogGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.UpdateCatalogGroupReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateCatalogItem.spec.js b/test/model/UpdateCatalogItem.spec.js new file mode 100644 index 00000000..1f7b3f1b --- /dev/null +++ b/test/model/UpdateCatalogItem.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateCatalogItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateCatalogItem', function() { + it('should create an instance of UpdateCatalogItem', function() { + // uncomment below and update the code to test UpdateCatalogItem + //var instane = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be.a(Flipdish.UpdateCatalogItem); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Groups (base name: "Groups")', function() { + // uncomment below and update the code to test the property Groups + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.UpdateCatalogItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateDriverNotificationToken.spec.js b/test/model/UpdateDriverNotificationToken.spec.js new file mode 100644 index 00000000..a48d9623 --- /dev/null +++ b/test/model/UpdateDriverNotificationToken.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateDriverNotificationToken(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateDriverNotificationToken', function() { + it('should create an instance of UpdateDriverNotificationToken', function() { + // uncomment below and update the code to test UpdateDriverNotificationToken + //var instane = new Flipdish.UpdateDriverNotificationToken(); + //expect(instance).to.be.a(Flipdish.UpdateDriverNotificationToken); + }); + + it('should have the property PushNotificationsToken (base name: "PushNotificationsToken")', function() { + // uncomment below and update the code to test the property PushNotificationsToken + //var instance = new Flipdish.UpdateDriverNotificationToken(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateDriverProfileModel.spec.js b/test/model/UpdateDriverProfileModel.spec.js new file mode 100644 index 00000000..800dc999 --- /dev/null +++ b/test/model/UpdateDriverProfileModel.spec.js @@ -0,0 +1,65 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateDriverProfileModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateDriverProfileModel', function() { + it('should create an instance of UpdateDriverProfileModel', function() { + // uncomment below and update the code to test UpdateDriverProfileModel + //var instane = new Flipdish.UpdateDriverProfileModel(); + //expect(instance).to.be.a(Flipdish.UpdateDriverProfileModel); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdateDriverProfileModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateFulfillmentStatesConfiguration.spec.js b/test/model/UpdateFulfillmentStatesConfiguration.spec.js new file mode 100644 index 00000000..c410637e --- /dev/null +++ b/test/model/UpdateFulfillmentStatesConfiguration.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateFulfillmentStatesConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateFulfillmentStatesConfiguration', function() { + it('should create an instance of UpdateFulfillmentStatesConfiguration', function() { + // uncomment below and update the code to test UpdateFulfillmentStatesConfiguration + //var instane = new Flipdish.UpdateFulfillmentStatesConfiguration(); + //expect(instance).to.be.a(Flipdish.UpdateFulfillmentStatesConfiguration); + }); + + it('should have the property OverwriteSystemTemplate (base name: "OverwriteSystemTemplate")', function() { + // uncomment below and update the code to test the property OverwriteSystemTemplate + //var instance = new Flipdish.UpdateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreIds (base name: "StoreIds")', function() { + // uncomment below and update the code to test the property StoreIds + //var instance = new Flipdish.UpdateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property StoreSelectorType (base name: "StoreSelectorType")', function() { + // uncomment below and update the code to test the property StoreSelectorType + //var instance = new Flipdish.UpdateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property States (base name: "States")', function() { + // uncomment below and update the code to test the property States + //var instance = new Flipdish.UpdateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AutomaticTransitionsEnabled (base name: "AutomaticTransitionsEnabled")', function() { + // uncomment below and update the code to test the property AutomaticTransitionsEnabled + //var instance = new Flipdish.UpdateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdateFulfillmentStatesConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateGroup.spec.js b/test/model/UpdateGroup.spec.js new file mode 100644 index 00000000..3226f3fe --- /dev/null +++ b/test/model/UpdateGroup.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateGroup(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateGroup', function() { + it('should create an instance of UpdateGroup', function() { + // uncomment below and update the code to test UpdateGroup + //var instane = new Flipdish.UpdateGroup(); + //expect(instance).to.be.a(Flipdish.UpdateGroup); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property AutogenerateDisplayText (base name: "AutogenerateDisplayText")', function() { + // uncomment below and update the code to test the property AutogenerateDisplayText + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property MinSelectCount (base name: "MinSelectCount")', function() { + // uncomment below and update the code to test the property MinSelectCount + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property MaxSelectCount (base name: "MaxSelectCount")', function() { + // uncomment below and update the code to test the property MaxSelectCount + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Products (base name: "Products")', function() { + // uncomment below and update the code to test the property Products + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.UpdateGroup(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateGroupReference.spec.js b/test/model/UpdateGroupReference.spec.js new file mode 100644 index 00000000..4c5775a1 --- /dev/null +++ b/test/model/UpdateGroupReference.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateGroupReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateGroupReference', function() { + it('should create an instance of UpdateGroupReference', function() { + // uncomment below and update the code to test UpdateGroupReference + //var instane = new Flipdish.UpdateGroupReference(); + //expect(instance).to.be.a(Flipdish.UpdateGroupReference); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.UpdateGroupReference(); + //expect(instance).to.be(); + }); + + it('should have the property GroupType (base name: "GroupType")', function() { + // uncomment below and update the code to test the property GroupType + //var instance = new Flipdish.UpdateGroupReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateLocationArea.spec.js b/test/model/UpdateLocationArea.spec.js new file mode 100644 index 00000000..e99a84fd --- /dev/null +++ b/test/model/UpdateLocationArea.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateLocationArea(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateLocationArea', function() { + it('should create an instance of UpdateLocationArea', function() { + // uncomment below and update the code to test UpdateLocationArea + //var instane = new Flipdish.UpdateLocationArea(); + //expect(instance).to.be.a(Flipdish.UpdateLocationArea); + }); + + it('should have the property LocationAreaId (base name: "LocationAreaId")', function() { + // uncomment below and update the code to test the property LocationAreaId + //var instance = new Flipdish.UpdateLocationArea(); + //expect(instance).to.be(); + }); + + it('should have the property LocationAreaName (base name: "LocationAreaName")', function() { + // uncomment below and update the code to test the property LocationAreaName + //var instance = new Flipdish.UpdateLocationArea(); + //expect(instance).to.be(); + }); + + it('should have the property IsDeleted (base name: "IsDeleted")', function() { + // uncomment below and update the code to test the property IsDeleted + //var instance = new Flipdish.UpdateLocationArea(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateMetafieldDefinition.spec.js b/test/model/UpdateMetafieldDefinition.spec.js new file mode 100644 index 00000000..ba741d22 --- /dev/null +++ b/test/model/UpdateMetafieldDefinition.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateMetafieldDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateMetafieldDefinition', function() { + it('should create an instance of UpdateMetafieldDefinition', function() { + // uncomment below and update the code to test UpdateMetafieldDefinition + //var instane = new Flipdish.UpdateMetafieldDefinition(); + //expect(instance).to.be.a(Flipdish.UpdateMetafieldDefinition); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UpdateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property Behaviors (base name: "Behaviors")', function() { + // uncomment below and update the code to test the property Behaviors + //var instance = new Flipdish.UpdateMetafieldDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateMobileAppsSubmissionStatus.spec.js b/test/model/UpdateMobileAppsSubmissionStatus.spec.js new file mode 100644 index 00000000..95a17e52 --- /dev/null +++ b/test/model/UpdateMobileAppsSubmissionStatus.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateMobileAppsSubmissionStatus(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateMobileAppsSubmissionStatus', function() { + it('should create an instance of UpdateMobileAppsSubmissionStatus', function() { + // uncomment below and update the code to test UpdateMobileAppsSubmissionStatus + //var instane = new Flipdish.UpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be.a(Flipdish.UpdateMobileAppsSubmissionStatus); + }); + + it('should have the property MobileAppsSubmissionStatusId (base name: "MobileAppsSubmissionStatusId")', function() { + // uncomment below and update the code to test the property MobileAppsSubmissionStatusId + //var instance = new Flipdish.UpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.UpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property AppStatus (base name: "AppStatus")', function() { + // uncomment below and update the code to test the property AppStatus + //var instance = new Flipdish.UpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property UpdateStatus (base name: "UpdateStatus")', function() { + // uncomment below and update the code to test the property UpdateStatus + //var instance = new Flipdish.UpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property LastUpdateStatusTime (base name: "LastUpdateStatusTime")', function() { + // uncomment below and update the code to test the property LastUpdateStatusTime + //var instance = new Flipdish.UpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + it('should have the property Notes (base name: "Notes")', function() { + // uncomment below and update the code to test the property Notes + //var instance = new Flipdish.UpdateMobileAppsSubmissionStatus(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdatePayGreenConfigurationRequest.spec.js b/test/model/UpdatePayGreenConfigurationRequest.spec.js new file mode 100644 index 00000000..77b3d89e --- /dev/null +++ b/test/model/UpdatePayGreenConfigurationRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdatePayGreenConfigurationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdatePayGreenConfigurationRequest', function() { + it('should create an instance of UpdatePayGreenConfigurationRequest', function() { + // uncomment below and update the code to test UpdatePayGreenConfigurationRequest + //var instane = new Flipdish.UpdatePayGreenConfigurationRequest(); + //expect(instance).to.be.a(Flipdish.UpdatePayGreenConfigurationRequest); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdatePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property AssignedStores (base name: "AssignedStores")', function() { + // uncomment below and update the code to test the property AssignedStores + //var instance = new Flipdish.UpdatePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateProduct.spec.js b/test/model/UpdateProduct.spec.js new file mode 100644 index 00000000..263767de --- /dev/null +++ b/test/model/UpdateProduct.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateProduct(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateProduct', function() { + it('should create an instance of UpdateProduct', function() { + // uncomment below and update the code to test UpdateProduct + //var instane = new Flipdish.UpdateProduct(); + //expect(instance).to.be.a(Flipdish.UpdateProduct); + }); + + it('should have the property Sku (base name: "Sku")', function() { + // uncomment below and update the code to test the property Sku + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Price (base name: "Price")', function() { + // uncomment below and update the code to test the property Price + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property ImageFileName (base name: "ImageFileName")', function() { + // uncomment below and update the code to test the property ImageFileName + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Alcohol (base name: "Alcohol")', function() { + // uncomment below and update the code to test the property Alcohol + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Groups (base name: "Groups")', function() { + // uncomment below and update the code to test the property Groups + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + it('should have the property Metafields (base name: "Metafields")', function() { + // uncomment below and update the code to test the property Metafields + //var instance = new Flipdish.UpdateProduct(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateProductReference.spec.js b/test/model/UpdateProductReference.spec.js new file mode 100644 index 00000000..ee9e7f77 --- /dev/null +++ b/test/model/UpdateProductReference.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateProductReference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateProductReference', function() { + it('should create an instance of UpdateProductReference', function() { + // uncomment below and update the code to test UpdateProductReference + //var instane = new Flipdish.UpdateProductReference(); + //expect(instance).to.be.a(Flipdish.UpdateProductReference); + }); + + it('should have the property CatalogItemId (base name: "CatalogItemId")', function() { + // uncomment below and update the code to test the property CatalogItemId + //var instance = new Flipdish.UpdateProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property ProductType (base name: "ProductType")', function() { + // uncomment below and update the code to test the property ProductType + //var instance = new Flipdish.UpdateProductReference(); + //expect(instance).to.be(); + }); + + it('should have the property PreselectedQuantity (base name: "PreselectedQuantity")', function() { + // uncomment below and update the code to test the property PreselectedQuantity + //var instance = new Flipdish.UpdateProductReference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateStorePayGreenConfigurationRequest.spec.js b/test/model/UpdateStorePayGreenConfigurationRequest.spec.js new file mode 100644 index 00000000..d8cd7819 --- /dev/null +++ b/test/model/UpdateStorePayGreenConfigurationRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateStorePayGreenConfigurationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateStorePayGreenConfigurationRequest', function() { + it('should create an instance of UpdateStorePayGreenConfigurationRequest', function() { + // uncomment below and update the code to test UpdateStorePayGreenConfigurationRequest + //var instane = new Flipdish.UpdateStorePayGreenConfigurationRequest(); + //expect(instance).to.be.a(Flipdish.UpdateStorePayGreenConfigurationRequest); + }); + + it('should have the property Active (base name: "Active")', function() { + // uncomment below and update the code to test the property Active + //var instance = new Flipdish.UpdateStorePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property PayGreenConfigurationId (base name: "PayGreenConfigurationId")', function() { + // uncomment below and update the code to test the property PayGreenConfigurationId + //var instance = new Flipdish.UpdateStorePayGreenConfigurationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateTipConfiguration.spec.js b/test/model/UpdateTipConfiguration.spec.js new file mode 100644 index 00000000..46c348ed --- /dev/null +++ b/test/model/UpdateTipConfiguration.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateTipConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateTipConfiguration', function() { + it('should create an instance of UpdateTipConfiguration', function() { + // uncomment below and update the code to test UpdateTipConfiguration + //var instane = new Flipdish.UpdateTipConfiguration(); + //expect(instance).to.be.a(Flipdish.UpdateTipConfiguration); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.UpdateTipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AllowCustomTips (base name: "AllowCustomTips")', function() { + // uncomment below and update the code to test the property AllowCustomTips + //var instance = new Flipdish.UpdateTipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AllowRoundUp (base name: "AllowRoundUp")', function() { + // uncomment below and update the code to test the property AllowRoundUp + //var instance = new Flipdish.UpdateTipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property AllowEmojis (base name: "AllowEmojis")', function() { + // uncomment below and update the code to test the property AllowEmojis + //var instance = new Flipdish.UpdateTipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property Percentages (base name: "Percentages")', function() { + // uncomment below and update the code to test the property Percentages + //var instance = new Flipdish.UpdateTipConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property DefaultPercentage (base name: "DefaultPercentage")', function() { + // uncomment below and update the code to test the property DefaultPercentage + //var instance = new Flipdish.UpdateTipConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateVoucher.spec.js b/test/model/UpdateVoucher.spec.js new file mode 100644 index 00000000..30310280 --- /dev/null +++ b/test/model/UpdateVoucher.spec.js @@ -0,0 +1,221 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateVoucher(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateVoucher', function() { + it('should create an instance of UpdateVoucher', function() { + // uncomment below and update the code to test UpdateVoucher + //var instane = new Flipdish.UpdateVoucher(); + //expect(instance).to.be.a(Flipdish.UpdateVoucher); + }); + + it('should have the property PromotionId (base name: "PromotionId")', function() { + // uncomment below and update the code to test the property PromotionId + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property PromotionName (base name: "PromotionName")', function() { + // uncomment below and update the code to test the property PromotionName + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property PromotionAwardMenuItemPublicIds (base name: "PromotionAwardMenuItemPublicIds")', function() { + // uncomment below and update the code to test the property PromotionAwardMenuItemPublicIds + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // uncomment below and update the code to test the property ValidOnOrdersOver + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // uncomment below and update the code to test the property TakesPriority + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // uncomment below and update the code to test the property IsAutomaticallyApplied + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // uncomment below and update the code to test the property IsValidForDeliveryOrders + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // uncomment below and update the code to test the property IsValidForPickupOrders + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedOnline + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedByCash + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // uncomment below and update the code to test the property IsValidForFirstOrderOnly + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // uncomment below and update the code to test the property IsValidOncePerCustomer + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // uncomment below and update the code to test the property IsValidOnlyOnce + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsDiscoverable (base name: "IsDiscoverable")', function() { + // uncomment below and update the code to test the property IsDiscoverable + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // uncomment below and update the code to test the property StartDate + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // uncomment below and update the code to test the property ExpiryDate + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelRestrictions (base name: "ChannelRestrictions")', function() { + // uncomment below and update the code to test the property ChannelRestrictions + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property ValidityPeriods (base name: "ValidityPeriods")', function() { + // uncomment below and update the code to test the property ValidityPeriods + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // uncomment below and update the code to test the property VoucherSubType + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerId (base name: "CustomerId")', function() { + // uncomment below and update the code to test the property CustomerId + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + it('should have the property MaxRedemptions (base name: "MaxRedemptions")', function() { + // uncomment below and update the code to test the property MaxRedemptions + //var instance = new Flipdish.UpdateVoucher(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateVoucherUsage.spec.js b/test/model/UpdateVoucherUsage.spec.js new file mode 100644 index 00000000..0994e0da --- /dev/null +++ b/test/model/UpdateVoucherUsage.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UpdateVoucherUsage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateVoucherUsage', function() { + it('should create an instance of UpdateVoucherUsage', function() { + // uncomment below and update the code to test UpdateVoucherUsage + //var instane = new Flipdish.UpdateVoucherUsage(); + //expect(instance).to.be.a(Flipdish.UpdateVoucherUsage); + }); + + it('should have the property IsUsed (base name: "IsUsed")', function() { + // uncomment below and update the code to test the property IsUsed + //var instance = new Flipdish.UpdateVoucherUsage(); + //expect(instance).to.be(); + }); + + it('should have the property UsedByCustomerId (base name: "UsedByCustomerId")', function() { + // uncomment below and update the code to test the property UsedByCustomerId + //var instance = new Flipdish.UpdateVoucherUsage(); + //expect(instance).to.be(); + }); + + it('should have the property TransactionKey (base name: "TransactionKey")', function() { + // uncomment below and update the code to test the property TransactionKey + //var instance = new Flipdish.UpdateVoucherUsage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserAnsweredSignupQuestionsEvent.spec.js b/test/model/UserAnsweredSignupQuestionsEvent.spec.js new file mode 100644 index 00000000..5487afc0 --- /dev/null +++ b/test/model/UserAnsweredSignupQuestionsEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserAnsweredSignupQuestionsEvent', function() { + it('should create an instance of UserAnsweredSignupQuestionsEvent', function() { + // uncomment below and update the code to test UserAnsweredSignupQuestionsEvent + //var instane = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be.a(Flipdish.UserAnsweredSignupQuestionsEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property SignupAnswers (base name: "SignupAnswers")', function() { + // uncomment below and update the code to test the property SignupAnswers + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.UserAnsweredSignupQuestionsEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserCreatedEvent.spec.js b/test/model/UserCreatedEvent.spec.js new file mode 100644 index 00000000..52f1c983 --- /dev/null +++ b/test/model/UserCreatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserCreatedEvent', function() { + it('should create an instance of UserCreatedEvent', function() { + // uncomment below and update the code to test UserCreatedEvent + //var instane = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be.a(Flipdish.UserCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.UserCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserDeletedEvent.spec.js b/test/model/UserDeletedEvent.spec.js new file mode 100644 index 00000000..52373be1 --- /dev/null +++ b/test/model/UserDeletedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserDeletedEvent', function() { + it('should create an instance of UserDeletedEvent', function() { + // uncomment below and update the code to test UserDeletedEvent + //var instane = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be.a(Flipdish.UserDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.UserDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserEventInfo.spec.js b/test/model/UserEventInfo.spec.js new file mode 100644 index 00000000..f84dd5c6 --- /dev/null +++ b/test/model/UserEventInfo.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserEventInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserEventInfo', function() { + it('should create an instance of UserEventInfo', function() { + // uncomment below and update the code to test UserEventInfo + //var instane = new Flipdish.UserEventInfo(); + //expect(instance).to.be.a(Flipdish.UserEventInfo); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.UserEventInfo(); + //expect(instance).to.be(); + }); + + it('should have the property UserName (base name: "UserName")', function() { + // uncomment below and update the code to test the property UserName + //var instance = new Flipdish.UserEventInfo(); + //expect(instance).to.be(); + }); + + it('should have the property UserPhoneNumber (base name: "UserPhoneNumber")', function() { + // uncomment below and update the code to test the property UserPhoneNumber + //var instance = new Flipdish.UserEventInfo(); + //expect(instance).to.be(); + }); + + it('should have the property UserEmail (base name: "UserEmail")', function() { + // uncomment below and update the code to test the property UserEmail + //var instance = new Flipdish.UserEventInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserFlipdishAccount.spec.js b/test/model/UserFlipdishAccount.spec.js new file mode 100644 index 00000000..8dd3233f --- /dev/null +++ b/test/model/UserFlipdishAccount.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserFlipdishAccount(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserFlipdishAccount', function() { + it('should create an instance of UserFlipdishAccount', function() { + // uncomment below and update the code to test UserFlipdishAccount + //var instane = new Flipdish.UserFlipdishAccount(); + //expect(instance).to.be.a(Flipdish.UserFlipdishAccount); + }); + + it('should have the property FlipdishAccountId (base name: "FlipdishAccountId")', function() { + // uncomment below and update the code to test the property FlipdishAccountId + //var instance = new Flipdish.UserFlipdishAccount(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UserFlipdishAccount(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserInfo.spec.js b/test/model/UserInfo.spec.js new file mode 100644 index 00000000..3be55937 --- /dev/null +++ b/test/model/UserInfo.spec.js @@ -0,0 +1,221 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserInfo', function() { + it('should create an instance of UserInfo', function() { + // uncomment below and update the code to test UserInfo + //var instane = new Flipdish.UserInfo(); + //expect(instance).to.be.a(Flipdish.UserInfo); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property EmailConfirmed (base name: "EmailConfirmed")', function() { + // uncomment below and update the code to test the property EmailConfirmed + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property PreventFromUsingCards (base name: "PreventFromUsingCards")', function() { + // uncomment below and update the code to test the property PreventFromUsingCards + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property IsUserPhoneNumberBlocked (base name: "IsUserPhoneNumberBlocked")', function() { + // uncomment below and update the code to test the property IsUserPhoneNumberBlocked + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property UserWhiteLabels (base name: "UserWhiteLabels")', function() { + // uncomment below and update the code to test the property UserWhiteLabels + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property UserName (base name: "UserName")', function() { + // uncomment below and update the code to test the property UserName + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerName (base name: "CustomerName")', function() { + // uncomment below and update the code to test the property CustomerName + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property HasLoggedIn (base name: "HasLoggedIn")', function() { + // uncomment below and update the code to test the property HasLoggedIn + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property DisableAppRatingControl (base name: "DisableAppRatingControl")', function() { + // uncomment below and update the code to test the property DisableAppRatingControl + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property GloballyOptedOut (base name: "GloballyOptedOut")', function() { + // uncomment below and update the code to test the property GloballyOptedOut + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property CompletedOrderCount (base name: "CompletedOrderCount")', function() { + // uncomment below and update the code to test the property CompletedOrderCount + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property CancelledOrderCount (base name: "CancelledOrderCount")', function() { + // uncomment below and update the code to test the property CancelledOrderCount + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property OrderTotalValue (base name: "OrderTotalValue")', function() { + // uncomment below and update the code to test the property OrderTotalValue + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property TsMostRecentOrder (base name: "TsMostRecentOrder")', function() { + // uncomment below and update the code to test the property TsMostRecentOrder + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property TsFirstOrder (base name: "TsFirstOrder")', function() { + // uncomment below and update the code to test the property TsFirstOrder + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property IsRestaurantUser (base name: "IsRestaurantUser")', function() { + // uncomment below and update the code to test the property IsRestaurantUser + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property Installs (base name: "Installs")', function() { + // uncomment below and update the code to test the property Installs + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property DeliveryLocations (base name: "DeliveryLocations")', function() { + // uncomment below and update the code to test the property DeliveryLocations + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property PaymentAccounts (base name: "PaymentAccounts")', function() { + // uncomment below and update the code to test the property PaymentAccounts + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property LanguageId (base name: "LanguageId")', function() { + // uncomment below and update the code to test the property LanguageId + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property CurrentLanguageName (base name: "CurrentLanguageName")', function() { + // uncomment below and update the code to test the property CurrentLanguageName + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property Languages (base name: "Languages")', function() { + // uncomment below and update the code to test the property Languages + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property SalesForceContactId (base name: "SalesForceContactId")', function() { + // uncomment below and update the code to test the property SalesForceContactId + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property StripeCustomerId (base name: "StripeCustomerId")', function() { + // uncomment below and update the code to test the property StripeCustomerId + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property UserMonthlyCommissions (base name: "UserMonthlyCommissions")', function() { + // uncomment below and update the code to test the property UserMonthlyCommissions + //var instance = new Flipdish.UserInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserLoginEvent.spec.js b/test/model/UserLoginEvent.spec.js new file mode 100644 index 00000000..0f39a5dc --- /dev/null +++ b/test/model/UserLoginEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserLoginEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserLoginEvent', function() { + it('should create an instance of UserLoginEvent', function() { + // uncomment below and update the code to test UserLoginEvent + //var instane = new Flipdish.UserLoginEvent(); + //expect(instance).to.be.a(Flipdish.UserLoginEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.UserLoginEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserMonthlyCommission.spec.js b/test/model/UserMonthlyCommission.spec.js new file mode 100644 index 00000000..af1b7908 --- /dev/null +++ b/test/model/UserMonthlyCommission.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserMonthlyCommission(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserMonthlyCommission', function() { + it('should create an instance of UserMonthlyCommission', function() { + // uncomment below and update the code to test UserMonthlyCommission + //var instane = new Flipdish.UserMonthlyCommission(); + //expect(instance).to.be.a(Flipdish.UserMonthlyCommission); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.UserMonthlyCommission(); + //expect(instance).to.be(); + }); + + it('should have the property MonthStart (base name: "MonthStart")', function() { + // uncomment below and update the code to test the property MonthStart + //var instance = new Flipdish.UserMonthlyCommission(); + //expect(instance).to.be(); + }); + + it('should have the property CommissionAmount (base name: "CommissionAmount")', function() { + // uncomment below and update the code to test the property CommissionAmount + //var instance = new Flipdish.UserMonthlyCommission(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.UserMonthlyCommission(); + //expect(instance).to.be(); + }); + + it('should have the property IsoCurrency (base name: "IsoCurrency")', function() { + // uncomment below and update the code to test the property IsoCurrency + //var instance = new Flipdish.UserMonthlyCommission(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserNote.spec.js b/test/model/UserNote.spec.js new file mode 100644 index 00000000..1fa9a249 --- /dev/null +++ b/test/model/UserNote.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserNote(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserNote', function() { + it('should create an instance of UserNote', function() { + // uncomment below and update the code to test UserNote + //var instane = new Flipdish.UserNote(); + //expect(instance).to.be.a(Flipdish.UserNote); + }); + + it('should have the property UserNoteId (base name: "UserNoteId")', function() { + // uncomment below and update the code to test the property UserNoteId + //var instance = new Flipdish.UserNote(); + //expect(instance).to.be(); + }); + + it('should have the property UserId (base name: "UserId")', function() { + // uncomment below and update the code to test the property UserId + //var instance = new Flipdish.UserNote(); + //expect(instance).to.be(); + }); + + it('should have the property Note (base name: "Note")', function() { + // uncomment below and update the code to test the property Note + //var instance = new Flipdish.UserNote(); + //expect(instance).to.be(); + }); + + it('should have the property TsCreate (base name: "TsCreate")', function() { + // uncomment below and update the code to test the property TsCreate + //var instance = new Flipdish.UserNote(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedByUserId (base name: "CreatedByUserId")', function() { + // uncomment below and update the code to test the property CreatedByUserId + //var instance = new Flipdish.UserNote(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedByUserName (base name: "CreatedByUserName")', function() { + // uncomment below and update the code to test the property CreatedByUserName + //var instance = new Flipdish.UserNote(); + //expect(instance).to.be(); + }); + + it('should have the property CreatedByUserEmail (base name: "CreatedByUserEmail")', function() { + // uncomment below and update the code to test the property CreatedByUserEmail + //var instance = new Flipdish.UserNote(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserPasswordCreatedEvent.spec.js b/test/model/UserPasswordCreatedEvent.spec.js new file mode 100644 index 00000000..c78e777f --- /dev/null +++ b/test/model/UserPasswordCreatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserPasswordCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserPasswordCreatedEvent', function() { + it('should create an instance of UserPasswordCreatedEvent', function() { + // uncomment below and update the code to test UserPasswordCreatedEvent + //var instane = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be.a(Flipdish.UserPasswordCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.UserPasswordCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserRole.spec.js b/test/model/UserRole.spec.js new file mode 100644 index 00000000..2326394f --- /dev/null +++ b/test/model/UserRole.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserRole(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserRole', function() { + it('should create an instance of UserRole', function() { + // uncomment below and update the code to test UserRole + //var instane = new Flipdish.UserRole(); + //expect(instance).to.be.a(Flipdish.UserRole); + }); + + it('should have the property RolesUserIn (base name: "RolesUserIn")', function() { + // uncomment below and update the code to test the property RolesUserIn + //var instance = new Flipdish.UserRole(); + //expect(instance).to.be(); + }); + + it('should have the property RolesUserNotIn (base name: "RolesUserNotIn")', function() { + // uncomment below and update the code to test the property RolesUserNotIn + //var instance = new Flipdish.UserRole(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserSearch.spec.js b/test/model/UserSearch.spec.js new file mode 100644 index 00000000..4e709e49 --- /dev/null +++ b/test/model/UserSearch.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserSearch(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserSearch', function() { + it('should create an instance of UserSearch', function() { + // uncomment below and update the code to test UserSearch + //var instane = new Flipdish.UserSearch(); + //expect(instance).to.be.a(Flipdish.UserSearch); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property PhoneNumber (base name: "PhoneNumber")', function() { + // uncomment below and update the code to test the property PhoneNumber + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property Email (base name: "Email")', function() { + // uncomment below and update the code to test the property Email + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerName (base name: "CustomerName")', function() { + // uncomment below and update the code to test the property CustomerName + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property HasLoggedIn (base name: "HasLoggedIn")', function() { + // uncomment below and update the code to test the property HasLoggedIn + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property UserDiscriminator (base name: "UserDiscriminator")', function() { + // uncomment below and update the code to test the property UserDiscriminator + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property TsCreate (base name: "TsCreate")', function() { + // uncomment below and update the code to test the property TsCreate + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property WhiteLabelConfigs (base name: "WhiteLabelConfigs")', function() { + // uncomment below and update the code to test the property WhiteLabelConfigs + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + it('should have the property UserType (base name: "UserType")', function() { + // uncomment below and update the code to test the property UserType + //var instance = new Flipdish.UserSearch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserStoreInfo.spec.js b/test/model/UserStoreInfo.spec.js new file mode 100644 index 00000000..f101bbe0 --- /dev/null +++ b/test/model/UserStoreInfo.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserStoreInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserStoreInfo', function() { + it('should create an instance of UserStoreInfo', function() { + // uncomment below and update the code to test UserStoreInfo + //var instane = new Flipdish.UserStoreInfo(); + //expect(instance).to.be.a(Flipdish.UserStoreInfo); + }); + + it('should have the property PropertyId (base name: "PropertyId")', function() { + // uncomment below and update the code to test the property PropertyId + //var instance = new Flipdish.UserStoreInfo(); + //expect(instance).to.be(); + }); + + it('should have the property StoreId (base name: "StoreId")', function() { + // uncomment below and update the code to test the property StoreId + //var instance = new Flipdish.UserStoreInfo(); + //expect(instance).to.be(); + }); + + it('should have the property StoreName (base name: "StoreName")', function() { + // uncomment below and update the code to test the property StoreName + //var instance = new Flipdish.UserStoreInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserUpdatedEvent.spec.js b/test/model/UserUpdatedEvent.spec.js new file mode 100644 index 00000000..ed70f8bf --- /dev/null +++ b/test/model/UserUpdatedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserUpdatedEvent', function() { + it('should create an instance of UserUpdatedEvent', function() { + // uncomment below and update the code to test UserUpdatedEvent + //var instane = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.UserUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.UserUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserWhiteLabelConfig.spec.js b/test/model/UserWhiteLabelConfig.spec.js new file mode 100644 index 00000000..b14b5e0b --- /dev/null +++ b/test/model/UserWhiteLabelConfig.spec.js @@ -0,0 +1,89 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserWhiteLabelConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserWhiteLabelConfig', function() { + it('should create an instance of UserWhiteLabelConfig', function() { + // uncomment below and update the code to test UserWhiteLabelConfig + //var instane = new Flipdish.UserWhiteLabelConfig(); + //expect(instance).to.be.a(Flipdish.UserWhiteLabelConfig); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.UserWhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property ConfigId (base name: "ConfigId")', function() { + // uncomment below and update the code to test the property ConfigId + //var instance = new Flipdish.UserWhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserWhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.UserWhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Level (base name: "Level")', function() { + // uncomment below and update the code to test the property Level + //var instance = new Flipdish.UserWhiteLabelConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserWhiteLabelInfo.spec.js b/test/model/UserWhiteLabelInfo.spec.js new file mode 100644 index 00000000..df1f21a0 --- /dev/null +++ b/test/model/UserWhiteLabelInfo.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.UserWhiteLabelInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserWhiteLabelInfo', function() { + it('should create an instance of UserWhiteLabelInfo', function() { + // uncomment below and update the code to test UserWhiteLabelInfo + //var instane = new Flipdish.UserWhiteLabelInfo(); + //expect(instance).to.be.a(Flipdish.UserWhiteLabelInfo); + }); + + it('should have the property WlConfigId (base name: "WlConfigId")', function() { + // uncomment below and update the code to test the property WlConfigId + //var instance = new Flipdish.UserWhiteLabelInfo(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.UserWhiteLabelInfo(); + //expect(instance).to.be(); + }); + + it('should have the property WhiteLabelName (base name: "WhiteLabelName")', function() { + // uncomment below and update the code to test the property WhiteLabelName + //var instance = new Flipdish.UserWhiteLabelInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ValidValue.spec.js b/test/model/ValidValue.spec.js new file mode 100644 index 00000000..1ba68eaf --- /dev/null +++ b/test/model/ValidValue.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ValidValue(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ValidValue', function() { + it('should create an instance of ValidValue', function() { + // uncomment below and update the code to test ValidValue + //var instane = new Flipdish.ValidValue(); + //expect(instance).to.be.a(Flipdish.ValidValue); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.ValidValue(); + //expect(instance).to.be(); + }); + + it('should have the property Name (base name: "Name")', function() { + // uncomment below and update the code to test the property Name + //var instance = new Flipdish.ValidValue(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ValidationErrorResult.spec.js b/test/model/ValidationErrorResult.spec.js new file mode 100644 index 00000000..ac74c141 --- /dev/null +++ b/test/model/ValidationErrorResult.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ValidationErrorResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ValidationErrorResult', function() { + it('should create an instance of ValidationErrorResult', function() { + // uncomment below and update the code to test ValidationErrorResult + //var instane = new Flipdish.ValidationErrorResult(); + //expect(instance).to.be.a(Flipdish.ValidationErrorResult); + }); + + it('should have the property FieldName (base name: "FieldName")', function() { + // uncomment below and update the code to test the property FieldName + //var instance = new Flipdish.ValidationErrorResult(); + //expect(instance).to.be(); + }); + + it('should have the property Errors (base name: "Errors")', function() { + // uncomment below and update the code to test the property Errors + //var instance = new Flipdish.ValidationErrorResult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ValidityPeriod.spec.js b/test/model/ValidityPeriod.spec.js new file mode 100644 index 00000000..04e22e87 --- /dev/null +++ b/test/model/ValidityPeriod.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.ValidityPeriod(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ValidityPeriod', function() { + it('should create an instance of ValidityPeriod', function() { + // uncomment below and update the code to test ValidityPeriod + //var instane = new Flipdish.ValidityPeriod(); + //expect(instance).to.be.a(Flipdish.ValidityPeriod); + }); + + it('should have the property DayOfWeek (base name: "DayOfWeek")', function() { + // uncomment below and update the code to test the property DayOfWeek + //var instance = new Flipdish.ValidityPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property StartTime (base name: "StartTime")', function() { + // uncomment below and update the code to test the property StartTime + //var instance = new Flipdish.ValidityPeriod(); + //expect(instance).to.be(); + }); + + it('should have the property EndTime (base name: "EndTime")', function() { + // uncomment below and update the code to test the property EndTime + //var instance = new Flipdish.ValidityPeriod(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Voucher.spec.js b/test/model/Voucher.spec.js new file mode 100644 index 00000000..5a6b851f --- /dev/null +++ b/test/model/Voucher.spec.js @@ -0,0 +1,257 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.Voucher(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Voucher', function() { + it('should create an instance of Voucher', function() { + // uncomment below and update the code to test Voucher + //var instane = new Flipdish.Voucher(); + //expect(instance).to.be.a(Flipdish.Voucher); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherType (base name: "VoucherType")', function() { + // uncomment below and update the code to test the property VoucherType + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property PromotionDetails (base name: "PromotionDetails")', function() { + // uncomment below and update the code to test the property PromotionDetails + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property CreditNoteDetails (base name: "CreditNoteDetails")', function() { + // uncomment below and update the code to test the property CreditNoteDetails + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property LumpDiscountDetails (base name: "LumpDiscountDetails")', function() { + // uncomment below and update the code to test the property LumpDiscountDetails + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property PercentDiscountDetails (base name: "PercentDiscountDetails")', function() { + // uncomment below and update the code to test the property PercentDiscountDetails + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // uncomment below and update the code to test the property ValidOnOrdersOver + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // uncomment below and update the code to test the property TakesPriority + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // uncomment below and update the code to test the property IsAutomaticallyApplied + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // uncomment below and update the code to test the property IsValidForDeliveryOrders + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // uncomment below and update the code to test the property IsValidForPickupOrders + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedOnline + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedByCash + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // uncomment below and update the code to test the property IsValidForFirstOrderOnly + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // uncomment below and update the code to test the property IsValidOncePerCustomer + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // uncomment below and update the code to test the property IsValidOnlyOnce + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property IsDiscoverable (base name: "IsDiscoverable")', function() { + // uncomment below and update the code to test the property IsDiscoverable + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // uncomment below and update the code to test the property StartDate + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // uncomment below and update the code to test the property ExpiryDate + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelRestrictions (base name: "ChannelRestrictions")', function() { + // uncomment below and update the code to test the property ChannelRestrictions + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property ValidityPeriods (base name: "ValidityPeriods")', function() { + // uncomment below and update the code to test the property ValidityPeriods + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // uncomment below and update the code to test the property VoucherSubType + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerId (base name: "CustomerId")', function() { + // uncomment below and update the code to test the property CustomerId + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property MaxRedemptions (base name: "MaxRedemptions")', function() { + // uncomment below and update the code to test the property MaxRedemptions + //var instance = new Flipdish.Voucher(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherAppliedEvent.spec.js b/test/model/VoucherAppliedEvent.spec.js new file mode 100644 index 00000000..6c672f42 --- /dev/null +++ b/test/model/VoucherAppliedEvent.spec.js @@ -0,0 +1,113 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VoucherAppliedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherAppliedEvent', function() { + it('should create an instance of VoucherAppliedEvent', function() { + // uncomment below and update the code to test VoucherAppliedEvent + //var instane = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be.a(Flipdish.VoucherAppliedEvent); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrderId (base name: "OrderId")', function() { + // uncomment below and update the code to test the property OrderId + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.VoucherAppliedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherCreatedEvent.spec.js b/test/model/VoucherCreatedEvent.spec.js new file mode 100644 index 00000000..0b3b04dd --- /dev/null +++ b/test/model/VoucherCreatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VoucherCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherCreatedEvent', function() { + it('should create an instance of VoucherCreatedEvent', function() { + // uncomment below and update the code to test VoucherCreatedEvent + //var instane = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be.a(Flipdish.VoucherCreatedEvent); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // uncomment below and update the code to test the property Voucher + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.VoucherCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherDataPoint.spec.js b/test/model/VoucherDataPoint.spec.js new file mode 100644 index 00000000..5221223e --- /dev/null +++ b/test/model/VoucherDataPoint.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VoucherDataPoint(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherDataPoint', function() { + it('should create an instance of VoucherDataPoint', function() { + // uncomment below and update the code to test VoucherDataPoint + //var instane = new Flipdish.VoucherDataPoint(); + //expect(instance).to.be.a(Flipdish.VoucherDataPoint); + }); + + it('should have the property PeriodStart (base name: "PeriodStart")', function() { + // uncomment below and update the code to test the property PeriodStart + //var instance = new Flipdish.VoucherDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property PeriodLengthInDays (base name: "PeriodLengthInDays")', function() { + // uncomment below and update the code to test the property PeriodLengthInDays + //var instance = new Flipdish.VoucherDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property Value (base name: "Value")', function() { + // uncomment below and update the code to test the property Value + //var instance = new Flipdish.VoucherDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherDeletedEvent.spec.js b/test/model/VoucherDeletedEvent.spec.js new file mode 100644 index 00000000..337ff898 --- /dev/null +++ b/test/model/VoucherDeletedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VoucherDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherDeletedEvent', function() { + it('should create an instance of VoucherDeletedEvent', function() { + // uncomment below and update the code to test VoucherDeletedEvent + //var instane = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be.a(Flipdish.VoucherDeletedEvent); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // uncomment below and update the code to test the property Voucher + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.VoucherDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherSummary.spec.js b/test/model/VoucherSummary.spec.js new file mode 100644 index 00000000..2525dd1a --- /dev/null +++ b/test/model/VoucherSummary.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VoucherSummary(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherSummary', function() { + it('should create an instance of VoucherSummary', function() { + // uncomment below and update the code to test VoucherSummary + //var instane = new Flipdish.VoucherSummary(); + //expect(instance).to.be.a(Flipdish.VoucherSummary); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.VoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.VoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.VoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherType (base name: "VoucherType")', function() { + // uncomment below and update the code to test the property VoucherType + //var instance = new Flipdish.VoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // uncomment below and update the code to test the property VoucherSubType + //var instance = new Flipdish.VoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.VoucherSummary(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.VoucherSummary(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherUpdatedEvent.spec.js b/test/model/VoucherUpdatedEvent.spec.js new file mode 100644 index 00000000..cfd3f478 --- /dev/null +++ b/test/model/VoucherUpdatedEvent.spec.js @@ -0,0 +1,125 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VoucherUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherUpdatedEvent', function() { + it('should create an instance of VoucherUpdatedEvent', function() { + // uncomment below and update the code to test VoucherUpdatedEvent + //var instane = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.VoucherUpdatedEvent); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Voucher (base name: "Voucher")', function() { + // uncomment below and update the code to test the property Voucher + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.VoucherUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherWithStats.spec.js b/test/model/VoucherWithStats.spec.js new file mode 100644 index 00000000..0c2fc165 --- /dev/null +++ b/test/model/VoucherWithStats.spec.js @@ -0,0 +1,287 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.VoucherWithStats(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherWithStats', function() { + it('should create an instance of VoucherWithStats', function() { + // uncomment below and update the code to test VoucherWithStats + //var instane = new Flipdish.VoucherWithStats(); + //expect(instance).to.be.a(Flipdish.VoucherWithStats); + }); + + it('should have the property TotalUsed (base name: "TotalUsed")', function() { + // uncomment below and update the code to test the property TotalUsed + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property TotalCustomers (base name: "TotalCustomers")', function() { + // uncomment below and update the code to test the property TotalCustomers + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property TotalAmountFromOrders (base name: "TotalAmountFromOrders")', function() { + // uncomment below and update the code to test the property TotalAmountFromOrders + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property TotalDiscounted (base name: "TotalDiscounted")', function() { + // uncomment below and update the code to test the property TotalDiscounted + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property AverageOrderSize (base name: "AverageOrderSize")', function() { + // uncomment below and update the code to test the property AverageOrderSize + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherId (base name: "VoucherId")', function() { + // uncomment below and update the code to test the property VoucherId + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property Status (base name: "Status")', function() { + // uncomment below and update the code to test the property Status + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherType (base name: "VoucherType")', function() { + // uncomment below and update the code to test the property VoucherType + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property Currency (base name: "Currency")', function() { + // uncomment below and update the code to test the property Currency + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property StoreNames (base name: "StoreNames")', function() { + // uncomment below and update the code to test the property StoreNames + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property PromotionDetails (base name: "PromotionDetails")', function() { + // uncomment below and update the code to test the property PromotionDetails + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property CreditNoteDetails (base name: "CreditNoteDetails")', function() { + // uncomment below and update the code to test the property CreditNoteDetails + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property LumpDiscountDetails (base name: "LumpDiscountDetails")', function() { + // uncomment below and update the code to test the property LumpDiscountDetails + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property PercentDiscountDetails (base name: "PercentDiscountDetails")', function() { + // uncomment below and update the code to test the property PercentDiscountDetails + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property Code (base name: "Code")', function() { + // uncomment below and update the code to test the property Code + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property Stores (base name: "Stores")', function() { + // uncomment below and update the code to test the property Stores + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property ValidOnOrdersOver (base name: "ValidOnOrdersOver")', function() { + // uncomment below and update the code to test the property ValidOnOrdersOver + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property TakesPriority (base name: "TakesPriority")', function() { + // uncomment below and update the code to test the property TakesPriority + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsEnabled (base name: "IsEnabled")', function() { + // uncomment below and update the code to test the property IsEnabled + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsAutomaticallyApplied (base name: "IsAutomaticallyApplied")', function() { + // uncomment below and update the code to test the property IsAutomaticallyApplied + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IncludeDeliveryFee (base name: "IncludeDeliveryFee")', function() { + // uncomment below and update the code to test the property IncludeDeliveryFee + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForDeliveryOrders (base name: "IsValidForDeliveryOrders")', function() { + // uncomment below and update the code to test the property IsValidForDeliveryOrders + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForPickupOrders (base name: "IsValidForPickupOrders")', function() { + // uncomment below and update the code to test the property IsValidForPickupOrders + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedOnline (base name: "IsValidForOrdersPayedOnline")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedOnline + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForOrdersPayedByCash (base name: "IsValidForOrdersPayedByCash")', function() { + // uncomment below and update the code to test the property IsValidForOrdersPayedByCash + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidForFirstOrderOnly (base name: "IsValidForFirstOrderOnly")', function() { + // uncomment below and update the code to test the property IsValidForFirstOrderOnly + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOncePerCustomer (base name: "IsValidOncePerCustomer")', function() { + // uncomment below and update the code to test the property IsValidOncePerCustomer + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsValidOnlyOnce (base name: "IsValidOnlyOnce")', function() { + // uncomment below and update the code to test the property IsValidOnlyOnce + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property IsDiscoverable (base name: "IsDiscoverable")', function() { + // uncomment below and update the code to test the property IsDiscoverable + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property ForceDiscount (base name: "ForceDiscount")', function() { + // uncomment below and update the code to test the property ForceDiscount + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property StartDate (base name: "StartDate")', function() { + // uncomment below and update the code to test the property StartDate + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property ExpiryDate (base name: "ExpiryDate")', function() { + // uncomment below and update the code to test the property ExpiryDate + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property ChannelRestrictions (base name: "ChannelRestrictions")', function() { + // uncomment below and update the code to test the property ChannelRestrictions + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property ValidityPeriods (base name: "ValidityPeriods")', function() { + // uncomment below and update the code to test the property ValidityPeriods + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property VoucherSubType (base name: "VoucherSubType")', function() { + // uncomment below and update the code to test the property VoucherSubType + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property CustomerId (base name: "CustomerId")', function() { + // uncomment below and update the code to test the property CustomerId + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + it('should have the property MaxRedemptions (base name: "MaxRedemptions")', function() { + // uncomment below and update the code to test the property MaxRedemptions + //var instance = new Flipdish.VoucherWithStats(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WaitHandle.spec.js b/test/model/WaitHandle.spec.js new file mode 100644 index 00000000..47f3adcd --- /dev/null +++ b/test/model/WaitHandle.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WaitHandle(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WaitHandle', function() { + it('should create an instance of WaitHandle', function() { + // uncomment below and update the code to test WaitHandle + //var instane = new Flipdish.WaitHandle(); + //expect(instance).to.be.a(Flipdish.WaitHandle); + }); + + it('should have the property Handle (base name: "Handle")', function() { + // uncomment below and update the code to test the property Handle + //var instance = new Flipdish.WaitHandle(); + //expect(instance).to.be(); + }); + + it('should have the property SafeWaitHandle (base name: "SafeWaitHandle")', function() { + // uncomment below and update the code to test the property SafeWaitHandle + //var instance = new Flipdish.WaitHandle(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebhookEventSample.spec.js b/test/model/WebhookEventSample.spec.js new file mode 100644 index 00000000..501aaa9f --- /dev/null +++ b/test/model/WebhookEventSample.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhookEventSample(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhookEventSample', function() { + it('should create an instance of WebhookEventSample', function() { + // uncomment below and update the code to test WebhookEventSample + //var instane = new Flipdish.WebhookEventSample(); + //expect(instance).to.be.a(Flipdish.WebhookEventSample); + }); + + it('should have the property Type (base name: "Type")', function() { + // uncomment below and update the code to test the property Type + //var instance = new Flipdish.WebhookEventSample(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.WebhookEventSample(); + //expect(instance).to.be(); + }); + + it('should have the property Body (base name: "Body")', function() { + // uncomment below and update the code to test the property Body + //var instance = new Flipdish.WebhookEventSample(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebhookLog.spec.js b/test/model/WebhookLog.spec.js new file mode 100644 index 00000000..7a5a50be --- /dev/null +++ b/test/model/WebhookLog.spec.js @@ -0,0 +1,149 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhookLog(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhookLog', function() { + it('should create an instance of WebhookLog', function() { + // uncomment below and update the code to test WebhookLog + //var instane = new Flipdish.WebhookLog(); + //expect(instance).to.be.a(Flipdish.WebhookLog); + }); + + it('should have the property WebhookSubscriptionOwnerUserId (base name: "WebhookSubscriptionOwnerUserId")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionOwnerUserId + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property EventCreated (base name: "EventCreated")', function() { + // uncomment below and update the code to test the property EventCreated + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookTriggered (base name: "WebhookTriggered")', function() { + // uncomment below and update the code to test the property WebhookTriggered + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookEventName (base name: "WebhookEventName")', function() { + // uncomment below and update the code to test the property WebhookEventName + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionCallbackUrl (base name: "WebhookSubscriptionCallbackUrl")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionCallbackUrl + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property HttpResponseStatusCode (base name: "HttpResponseStatusCode")', function() { + // uncomment below and update the code to test the property HttpResponseStatusCode + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property HttpResponseStatus (base name: "HttpResponseStatus")', function() { + // uncomment below and update the code to test the property HttpResponseStatus + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property RequestHeaders (base name: "RequestHeaders")', function() { + // uncomment below and update the code to test the property RequestHeaders + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property RequestBody (base name: "RequestBody")', function() { + // uncomment below and update the code to test the property RequestBody + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property ResponseHeaders (base name: "ResponseHeaders")', function() { + // uncomment below and update the code to test the property ResponseHeaders + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property ResponseBody (base name: "ResponseBody")', function() { + // uncomment below and update the code to test the property ResponseBody + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property Duration (base name: "Duration")', function() { + // uncomment below and update the code to test the property Duration + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property RetryCount (base name: "RetryCount")', function() { + // uncomment below and update the code to test the property RetryCount + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishWebhookId (base name: "FlipdishWebhookId")', function() { + // uncomment below and update the code to test the property FlipdishWebhookId + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + it('should have the property Version (base name: "Version")', function() { + // uncomment below and update the code to test the property Version + //var instance = new Flipdish.WebhookLog(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebhookSubscription.spec.js b/test/model/WebhookSubscription.spec.js new file mode 100644 index 00000000..8fbb2c15 --- /dev/null +++ b/test/model/WebhookSubscription.spec.js @@ -0,0 +1,101 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhookSubscription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhookSubscription', function() { + it('should create an instance of WebhookSubscription', function() { + // uncomment below and update the code to test WebhookSubscription + //var instane = new Flipdish.WebhookSubscription(); + //expect(instance).to.be.a(Flipdish.WebhookSubscription); + }); + + it('should have the property Id (base name: "Id")', function() { + // uncomment below and update the code to test the property Id + //var instance = new Flipdish.WebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property OwnerUserId (base name: "OwnerUserId")', function() { + // uncomment below and update the code to test the property OwnerUserId + //var instance = new Flipdish.WebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property Version (base name: "Version")', function() { + // uncomment below and update the code to test the property Version + //var instance = new Flipdish.WebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property EventNames (base name: "EventNames")', function() { + // uncomment below and update the code to test the property EventNames + //var instance = new Flipdish.WebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property CallbackUrl (base name: "CallbackUrl")', function() { + // uncomment below and update the code to test the property CallbackUrl + //var instance = new Flipdish.WebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property Enabled (base name: "Enabled")', function() { + // uncomment below and update the code to test the property Enabled + //var instance = new Flipdish.WebhookSubscription(); + //expect(instance).to.be(); + }); + + it('should have the property VerifyToken (base name: "VerifyToken")', function() { + // uncomment below and update the code to test the property VerifyToken + //var instance = new Flipdish.WebhookSubscription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebhookSubscriptionCreatedEvent.spec.js b/test/model/WebhookSubscriptionCreatedEvent.spec.js new file mode 100644 index 00000000..7415e206 --- /dev/null +++ b/test/model/WebhookSubscriptionCreatedEvent.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhookSubscriptionCreatedEvent', function() { + it('should create an instance of WebhookSubscriptionCreatedEvent', function() { + // uncomment below and update the code to test WebhookSubscriptionCreatedEvent + //var instane = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be.a(Flipdish.WebhookSubscriptionCreatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionEventInfo + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.WebhookSubscriptionCreatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebhookSubscriptionDeletedEvent.spec.js b/test/model/WebhookSubscriptionDeletedEvent.spec.js new file mode 100644 index 00000000..111d38cf --- /dev/null +++ b/test/model/WebhookSubscriptionDeletedEvent.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhookSubscriptionDeletedEvent', function() { + it('should create an instance of WebhookSubscriptionDeletedEvent', function() { + // uncomment below and update the code to test WebhookSubscriptionDeletedEvent + //var instane = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be.a(Flipdish.WebhookSubscriptionDeletedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionEventInfo + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.WebhookSubscriptionDeletedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebhookSubscriptionEventInfo.spec.js b/test/model/WebhookSubscriptionEventInfo.spec.js new file mode 100644 index 00000000..13fc1caa --- /dev/null +++ b/test/model/WebhookSubscriptionEventInfo.spec.js @@ -0,0 +1,83 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhookSubscriptionEventInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhookSubscriptionEventInfo', function() { + it('should create an instance of WebhookSubscriptionEventInfo', function() { + // uncomment below and update the code to test WebhookSubscriptionEventInfo + //var instane = new Flipdish.WebhookSubscriptionEventInfo(); + //expect(instance).to.be.a(Flipdish.WebhookSubscriptionEventInfo); + }); + + it('should have the property OwnerUserId (base name: "OwnerUserId")', function() { + // uncomment below and update the code to test the property OwnerUserId + //var instance = new Flipdish.WebhookSubscriptionEventInfo(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionId (base name: "WebhookSubscriptionId")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionId + //var instance = new Flipdish.WebhookSubscriptionEventInfo(); + //expect(instance).to.be(); + }); + + it('should have the property ClientId (base name: "ClientId")', function() { + // uncomment below and update the code to test the property ClientId + //var instance = new Flipdish.WebhookSubscriptionEventInfo(); + //expect(instance).to.be(); + }); + + it('should have the property CallbackUrl (base name: "CallbackUrl")', function() { + // uncomment below and update the code to test the property CallbackUrl + //var instance = new Flipdish.WebhookSubscriptionEventInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebhookSubscriptionUpdatedEvent.spec.js b/test/model/WebhookSubscriptionUpdatedEvent.spec.js new file mode 100644 index 00000000..7cdea6c4 --- /dev/null +++ b/test/model/WebhookSubscriptionUpdatedEvent.spec.js @@ -0,0 +1,107 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebhookSubscriptionUpdatedEvent', function() { + it('should create an instance of WebhookSubscriptionUpdatedEvent', function() { + // uncomment below and update the code to test WebhookSubscriptionUpdatedEvent + //var instane = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.WebhookSubscriptionUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property WebhookSubscriptionEventInfo (base name: "WebhookSubscriptionEventInfo")', function() { + // uncomment below and update the code to test the property WebhookSubscriptionEventInfo + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.WebhookSubscriptionUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebsiteImage.spec.js b/test/model/WebsiteImage.spec.js new file mode 100644 index 00000000..68ed0576 --- /dev/null +++ b/test/model/WebsiteImage.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebsiteImage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebsiteImage', function() { + it('should create an instance of WebsiteImage', function() { + // uncomment below and update the code to test WebsiteImage + //var instane = new Flipdish.WebsiteImage(); + //expect(instance).to.be.a(Flipdish.WebsiteImage); + }); + + it('should have the property ImageId (base name: "ImageId")', function() { + // uncomment below and update the code to test the property ImageId + //var instance = new Flipdish.WebsiteImage(); + //expect(instance).to.be(); + }); + + it('should have the property ImageLocation (base name: "ImageLocation")', function() { + // uncomment below and update the code to test the property ImageLocation + //var instance = new Flipdish.WebsiteImage(); + //expect(instance).to.be(); + }); + + it('should have the property ImageUrl (base name: "ImageUrl")', function() { + // uncomment below and update the code to test the property ImageUrl + //var instance = new Flipdish.WebsiteImage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebsiteTestimonial.spec.js b/test/model/WebsiteTestimonial.spec.js new file mode 100644 index 00000000..97a8e4af --- /dev/null +++ b/test/model/WebsiteTestimonial.spec.js @@ -0,0 +1,77 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebsiteTestimonial(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebsiteTestimonial', function() { + it('should create an instance of WebsiteTestimonial', function() { + // uncomment below and update the code to test WebsiteTestimonial + //var instane = new Flipdish.WebsiteTestimonial(); + //expect(instance).to.be.a(Flipdish.WebsiteTestimonial); + }); + + it('should have the property TestimonialId (base name: "TestimonialId")', function() { + // uncomment below and update the code to test the property TestimonialId + //var instance = new Flipdish.WebsiteTestimonial(); + //expect(instance).to.be(); + }); + + it('should have the property Author (base name: "Author")', function() { + // uncomment below and update the code to test the property Author + //var instance = new Flipdish.WebsiteTestimonial(); + //expect(instance).to.be(); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.WebsiteTestimonial(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebsiteTestimonialBase.spec.js b/test/model/WebsiteTestimonialBase.spec.js new file mode 100644 index 00000000..47cf27de --- /dev/null +++ b/test/model/WebsiteTestimonialBase.spec.js @@ -0,0 +1,71 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebsiteTestimonialBase(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebsiteTestimonialBase', function() { + it('should create an instance of WebsiteTestimonialBase', function() { + // uncomment below and update the code to test WebsiteTestimonialBase + //var instane = new Flipdish.WebsiteTestimonialBase(); + //expect(instance).to.be.a(Flipdish.WebsiteTestimonialBase); + }); + + it('should have the property Author (base name: "Author")', function() { + // uncomment below and update the code to test the property Author + //var instance = new Flipdish.WebsiteTestimonialBase(); + //expect(instance).to.be(); + }); + + it('should have the property Message (base name: "Message")', function() { + // uncomment below and update the code to test the property Message + //var instance = new Flipdish.WebsiteTestimonialBase(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebsiteUpdatedEvent.spec.js b/test/model/WebsiteUpdatedEvent.spec.js new file mode 100644 index 00000000..15015f0e --- /dev/null +++ b/test/model/WebsiteUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebsiteUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebsiteUpdatedEvent', function() { + it('should create an instance of WebsiteUpdatedEvent', function() { + // uncomment below and update the code to test WebsiteUpdatedEvent + //var instane = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.WebsiteUpdatedEvent); + }); + + it('should have the property AppNameId (base name: "AppNameId")', function() { + // uncomment below and update the code to test the property AppNameId + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.WebsiteUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WebsiteVanityUrlUpdatedEvent.spec.js b/test/model/WebsiteVanityUrlUpdatedEvent.spec.js new file mode 100644 index 00000000..ef6f7fc3 --- /dev/null +++ b/test/model/WebsiteVanityUrlUpdatedEvent.spec.js @@ -0,0 +1,119 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WebsiteVanityUrlUpdatedEvent', function() { + it('should create an instance of WebsiteVanityUrlUpdatedEvent', function() { + // uncomment below and update the code to test WebsiteVanityUrlUpdatedEvent + //var instane = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be.a(Flipdish.WebsiteVanityUrlUpdatedEvent); + }); + + it('should have the property EventName (base name: "EventName")', function() { + // uncomment below and update the code to test the property EventName + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Description (base name: "Description")', function() { + // uncomment below and update the code to test the property Description + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property User (base name: "User")', function() { + // uncomment below and update the code to test the property User + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property VanityUrl (base name: "VanityUrl")', function() { + // uncomment below and update the code to test the property VanityUrl + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property FlipdishEventId (base name: "FlipdishEventId")', function() { + // uncomment below and update the code to test the property FlipdishEventId + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property CreateTime (base name: "CreateTime")', function() { + // uncomment below and update the code to test the property CreateTime + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property Position (base name: "Position")', function() { + // uncomment below and update the code to test the property Position + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property AppId (base name: "AppId")', function() { + // uncomment below and update the code to test the property AppId + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property OrgId (base name: "OrgId")', function() { + // uncomment below and update the code to test the property OrgId + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + it('should have the property IpAddress (base name: "IpAddress")', function() { + // uncomment below and update the code to test the property IpAddress + //var instance = new Flipdish.WebsiteVanityUrlUpdatedEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WhiteLabelConfig.spec.js b/test/model/WhiteLabelConfig.spec.js new file mode 100644 index 00000000..9cd320f7 --- /dev/null +++ b/test/model/WhiteLabelConfig.spec.js @@ -0,0 +1,95 @@ +/** + * Flipdish Open API v1.0 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.Flipdish); + } +}(this, function(expect, Flipdish) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new Flipdish.WhiteLabelConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WhiteLabelConfig', function() { + it('should create an instance of WhiteLabelConfig', function() { + // uncomment below and update the code to test WhiteLabelConfig + //var instane = new Flipdish.WhiteLabelConfig(); + //expect(instance).to.be.a(Flipdish.WhiteLabelConfig); + }); + + it('should have the property WhiteLabelId (base name: "WhiteLabelId")', function() { + // uncomment below and update the code to test the property WhiteLabelId + //var instance = new Flipdish.WhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property WhiteLabelName (base name: "WhiteLabelName")', function() { + // uncomment below and update the code to test the property WhiteLabelName + //var instance = new Flipdish.WhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property CountryId (base name: "CountryId")', function() { + // uncomment below and update the code to test the property CountryId + //var instance = new Flipdish.WhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property AppNameId (base name: "AppNameId")', function() { + // uncomment below and update the code to test the property AppNameId + //var instance = new Flipdish.WhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property Website (base name: "Website")', function() { + // uncomment below and update the code to test the property Website + //var instance = new Flipdish.WhiteLabelConfig(); + //expect(instance).to.be(); + }); + + it('should have the property PanaceaVanityUrl (base name: "PanaceaVanityUrl")', function() { + // uncomment below and update the code to test the property PanaceaVanityUrl + //var instance = new Flipdish.WhiteLabelConfig(); + //expect(instance).to.be(); + }); + + }); + +}));